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