63 current 2024-02-29 23:59:32 24.05.20240228.9099616 6.6.18 *
This commit is contained in:
parent
92138af624
commit
a82745d399
2 changed files with 20 additions and 1 deletions
|
|
@ -58,6 +58,7 @@
|
|||
pkgs.alejandra
|
||||
pkgs.dconf
|
||||
pkgs.wl-clipboard
|
||||
pkgs.swaybg
|
||||
|
||||
# # You can also create simple shell scripts directly inside your
|
||||
# # configuration. For example, this adds a command 'my-hello' to your
|
||||
|
|
|
|||
|
|
@ -2,8 +2,16 @@
|
|||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
theme,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
with lib; let
|
||||
mkService = lib.recursiveUpdate {
|
||||
Unit.PartOf = ["graphical-session.target"];
|
||||
Unit.After = ["graphical-session.target"];
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
in {
|
||||
imports = [./config.nix ./binds.nix];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
|
@ -16,4 +24,14 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
swaybg = mkService {
|
||||
Unit.Description = "Wallpaper chooser";
|
||||
Service = {
|
||||
ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue