diff options
author | Minijackson <minijackson@riseup.net> | 2025-03-26 22:09:03 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2025-03-26 22:09:03 +0100 |
commit | dd47efc591d634c310830b8f0f33aa02bb150826 (patch) | |
tree | e27344bf3f07320d6ae8b7bf4ff9b255f1dafebe | |
parent | 405e72861d12bb717a49ba5a48450e6ddac15529 (diff) | |
download | nixos-config-reborn-dd47efc591d634c310830b8f0f33aa02bb150826.tar.gz nixos-config-reborn-dd47efc591d634c310830b8f0f33aa02bb150826.zip |
usecases/wpaperd: init with new set of wallpapers
-rw-r--r-- | flake.lock | 19 | ||||
-rw-r--r-- | flake.nix | 4 | ||||
-rw-r--r-- | usecases/desktop/graphical.nix | 1 | ||||
-rw-r--r-- | usecases/desktop/graphical/wpaperd.nix | 32 |
4 files changed, 55 insertions, 1 deletions
@@ -208,7 +208,8 @@ | |||
208 | "nixpkgs-unstable": "nixpkgs-unstable", | 208 | "nixpkgs-unstable": "nixpkgs-unstable", |
209 | "nixvim": "nixvim", | 209 | "nixvim": "nixvim", |
210 | "rycee-nur": "rycee-nur", | 210 | "rycee-nur": "rycee-nur", |
211 | "shmart-prompt-dir": "shmart-prompt-dir" | 211 | "shmart-prompt-dir": "shmart-prompt-dir", |
212 | "wallpapers": "wallpapers" | ||
212 | } | 213 | } |
213 | }, | 214 | }, |
214 | "rycee-nur": { | 215 | "rycee-nur": { |
@@ -272,6 +273,22 @@ | |||
272 | "repo": "default", | 273 | "repo": "default", |
273 | "type": "github" | 274 | "type": "github" |
274 | } | 275 | } |
276 | }, | ||
277 | "wallpapers": { | ||
278 | "flake": false, | ||
279 | "locked": { | ||
280 | "lastModified": 1743021271, | ||
281 | "narHash": "sha256-S6wpeIS1QoMwQDc+K2whYUrgEO0zt/tNbCklhTTXs+Y=", | ||
282 | "ref": "refs/heads/main", | ||
283 | "rev": "3c18fcea2017fc1ed7f1877413c9dbe486e6a051", | ||
284 | "revCount": 1, | ||
285 | "type": "git", | ||
286 | "url": "https://git.huh.gdn/wallpapers" | ||
287 | }, | ||
288 | "original": { | ||
289 | "type": "git", | ||
290 | "url": "https://git.huh.gdn/wallpapers" | ||
291 | } | ||
275 | } | 292 | } |
276 | }, | 293 | }, |
277 | "root": "root", | 294 | "root": "root", |
@@ -25,6 +25,10 @@ | |||
25 | url = "github:minijackson/shmart-prompt-dir"; | 25 | url = "github:minijackson/shmart-prompt-dir"; |
26 | flake = false; | 26 | flake = false; |
27 | }; | 27 | }; |
28 | wallpapers = { | ||
29 | url = "git+https://git.huh.gdn/wallpapers"; | ||
30 | flake = false; | ||
31 | }; | ||
28 | }; | 32 | }; |
29 | 33 | ||
30 | outputs = inputs @ { self, nixpkgs, home-manager, ... }: { | 34 | outputs = inputs @ { self, nixpkgs, home-manager, ... }: { |
diff --git a/usecases/desktop/graphical.nix b/usecases/desktop/graphical.nix index 7289af3..7c262f6 100644 --- a/usecases/desktop/graphical.nix +++ b/usecases/desktop/graphical.nix | |||
@@ -18,6 +18,7 @@ inputs: { | |||
18 | ./graphical/swaync.nix | 18 | ./graphical/swaync.nix |
19 | ./graphical/waybar.nix | 19 | ./graphical/waybar.nix |
20 | ./graphical/wlsunset.nix | 20 | ./graphical/wlsunset.nix |
21 | (import ./graphical/wpaperd.nix inputs) | ||
21 | (import ./graphical/zathura.nix inputs) | 22 | (import ./graphical/zathura.nix inputs) |
22 | ]; | 23 | ]; |
23 | 24 | ||
diff --git a/usecases/desktop/graphical/wpaperd.nix b/usecases/desktop/graphical/wpaperd.nix new file mode 100644 index 0000000..0fe7b1a --- /dev/null +++ b/usecases/desktop/graphical/wpaperd.nix | |||
@@ -0,0 +1,32 @@ | |||
1 | inputs: | ||
2 | { lib, pkgs, ... }: | ||
3 | { | ||
4 | # TODO: migrate to services.wpaperd when upgrading from 24.11 to 25.05 | ||
5 | home-manager.users.minijackson.programs.wpaperd = { | ||
6 | enable = true; | ||
7 | |||
8 | settings.default = { | ||
9 | path = "${inputs.wallpapers}"; | ||
10 | duration = "30m"; | ||
11 | transition.directional-wipe = { }; | ||
12 | }; | ||
13 | }; | ||
14 | |||
15 | # TODO: remove when upgrading from 24.11 to 25.05 | ||
16 | systemd.user.services.wpaperd = { | ||
17 | wantedBy = [ "graphical-session.target" ]; | ||
18 | |||
19 | unitConfig = { | ||
20 | ConditionEnvironment = "WAYLAND_DISPLAY"; | ||
21 | Description = "wpaperd"; | ||
22 | PartOf = [ "graphical-session.target" ]; | ||
23 | After = [ "graphical-session.target" ]; | ||
24 | }; | ||
25 | |||
26 | serviceConfig = { | ||
27 | ExecStart = "${lib.getExe pkgs.wpaperd}"; | ||
28 | Restart = "always"; | ||
29 | RestartSec = "10"; | ||
30 | }; | ||
31 | }; | ||
32 | } | ||