added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
28
nyx/homes/notashelf/services/wayland/swaybg/default.nix
Normal file
28
nyx/homes/notashelf/services/wayland/swaybg/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf getExe mkGraphicalService;
|
||||
inherit (osConfig) modules meta;
|
||||
|
||||
env = modules.usrEnv;
|
||||
in {
|
||||
config = mkIf (meta.isWayland && (env.desktop != "Hyprland")) {
|
||||
systemd.user.services = {
|
||||
swaybg = mkGraphicalService {
|
||||
Unit.Description = "Wallpaper chooser service";
|
||||
Service = let
|
||||
wall = builtins.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/catppuccin/wallpapers/main/wallpapers/catppuccin/01.png";
|
||||
sha256 = lib.fakeHash;
|
||||
};
|
||||
in {
|
||||
ExecStart = "${getExe pkgs.swaybg} -i ${wall}";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue