Added base DE utilities, added reload script to run after rebuild

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:51:19 +01:00
parent 208eec466e
commit 74e5398ccf
1 changed files with 18 additions and 4 deletions

View File

@ -25,6 +25,11 @@ in
default = "${pkgs.bash}/bin/bash";
description = "Bash script to execute after logging in.";
};
reloadScript = mkOption {
type = types.lines;
default = "";
description = "Shell script to execute after reload/rebuild.";
};
};
config = {
@ -34,13 +39,22 @@ in
home.packages = optionals cfg.wayland (
with pkgs;
[
pkgs.wl-clipboard
pkgs.wtype
pkgs.grim
pkgs.slurp
wl-clipboard
wtype
grim
slurp
]
);
home.activation = {
customReloadScript = lib.hm.dag.entryAfter [ "writeBoundary" ] (
''
#!${pkgs.bash}/bin/bash
''
+ cfg.reloadScript
);
};
home.file.".initrc" = {
enable = true;
executable = true;