new nix files
This commit is contained in:
+291
-291
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@
|
|||||||
./dev/terminal.nix
|
./dev/terminal.nix
|
||||||
./core/boot.nix
|
./core/boot.nix
|
||||||
./services/services.nix
|
./services/services.nix
|
||||||
./assets/end_script.nix
|
./end_script.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
|
||||||
|
description = "Run end script after Home Manager";
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
after = [ "home-manager-henrov.service" ];
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
script = ''
|
||||||
|
${pkgs.bash}/bin/bash -c 'cd $HOME && ${./assets/scripts/end_script.sh}'
|
||||||
|
'';
|
||||||
|
serviceConfig.Restart = "no";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services.endScript.enable = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user