Added base DE utilities, added reload script to run after rebuild
This commit is contained in:
parent
208eec466e
commit
74e5398ccf
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue