mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
wallpaper
This commit is contained in:
parent
80f49e02ab
commit
3b0cba6cae
2 changed files with 34 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ in
|
|||
./firefox.nix
|
||||
./vscode.nix
|
||||
./waybar.nix
|
||||
./wallpaper.nix
|
||||
./swaylock.nix
|
||||
./swaync.nix
|
||||
];
|
||||
|
|
|
|||
33
home-manager/wallpaper.nix
Normal file
33
home-manager/wallpaper.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
|
||||
let
|
||||
pkg = (import
|
||||
(pkgs.fetchFromGitHub {
|
||||
owner = "Noratrieb";
|
||||
repo = "wallpapersc";
|
||||
rev = "ce0def46fd0ae8d36b65ede91e068c4bca2cf9a6";
|
||||
hash = "sha256-GSBFoAElnkh0+adIqSPKwJlyYiwp4NDhsOpT+SoZv5I=";
|
||||
}))
|
||||
{ inherit pkgs; };
|
||||
in
|
||||
{
|
||||
systemd.user.services.wallpapersc = {
|
||||
Unit = {
|
||||
Description = "wallpaper daemon";
|
||||
PartOf = [
|
||||
config.wayland.systemd.target
|
||||
];
|
||||
After = [ config.wayland.systemd.target ];
|
||||
ConditionEnvironment = "WAYLAND_DISPLAY";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkg}/bin/wallpapersc";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
Install.WantedBy = [
|
||||
config.wayland.systemd.target
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue