home: Handle wallpapers differently

This commit is contained in:
Erwin Boskma 2024-01-10 21:56:44 +01:00
parent 3307db5fb4
commit 81d9552f73
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -1,6 +1,7 @@
{ pkgs, config, lib, inputs, ... }: { pkgs, config, lib, inputs, ... }:
with lib; let with lib; let
cfg = config.eboskma.users.erwin; cfg = config.eboskma.users.erwin;
homeCfg = config.home-manager.users.erwin;
bt = config.eboskma.bluetooth; bt = config.eboskma.bluetooth;
ewwDaemon = ewwDaemon =
@ -10,7 +11,7 @@ with lib; let
pkgs.writeShellScript "eww-daemon" '' pkgs.writeShellScript "eww-daemon" ''
export PATH=${path}:''${PATH} export PATH=${path}:''${PATH}
${config.home-manager.users.erwin.eboskma.programs.eww.package}/bin/eww $@ ${homeCfg.eboskma.programs.eww.package}/bin/eww $@
''; '';
in in
{ {
@ -94,7 +95,7 @@ in
rofi = { rofi = {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
terminal = config.home-manager.users.erwin.wayland.windowManager.sway.config.terminal; terminal = homeCfg.wayland.windowManager.sway.config.terminal;
}; };
vscode.enable = true; vscode.enable = true;
solvespace.enable = true; solvespace.enable = true;
@ -102,10 +103,10 @@ in
starship.enable = true; starship.enable = true;
sway = { sway = {
enable = true; enable = true;
lock-wallpaper = ../../wallpapers/river-2560.png; lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-2560.png";
output = { output = {
"DP-2" = { "DP-2" = {
bg = "${../../wallpapers/jwst-saturn-nircam-2560.png} fill"; bg = "${homeCfg.home.homeDirectory}/.wallpapers/river-2560.png fill";
mode = "2560x1440@165Hz"; mode = "2560x1440@165Hz";
adaptive_sync = "on"; adaptive_sync = "on";
max_render_time = "2"; max_render_time = "2";
@ -200,7 +201,6 @@ in
ripgrep ripgrep
scid-vs-pc scid-vs-pc
signal-desktop signal-desktop
solo2-cli
steam steam
steamcmd steamcmd
steam-tui steam-tui
@ -221,6 +221,15 @@ in
gtk.enable = true; gtk.enable = true;
x11.enable = true; x11.enable = true;
}; };
file = {
wallpapers = {
source = ../../wallpapers;
target = ".wallpapers";
recursive = true;
};
};
}; };
xdg = { xdg = {