This commit is contained in:
2026-03-04 14:34:06 +01:00
parent 6ecfa365f8
commit 75017b50a8
3 changed files with 336 additions and 336 deletions
+313 -313
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -14,7 +14,7 @@
./dev/terminal.nix
./core/boot.nix
./services/services.nix
./end_script.nix
# ./end_script.nix
];
+22 -22
View File
@@ -1,22 +1,22 @@
# { lib, config, pkgs, ... }:
# let
# scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
# scriptExists = lib.fileExists "${scriptPath}";
# in
# {
# systemd.user.services.endScript = lib.mkIf scriptExists {
# description = "Run end script after Home Manager";
# wantedBy = [ "multi-user.target" ];
# after = [ "home-manager-activate.service" ];
# serviceConfig = {
# Type = "oneshot";
# WorkingDirectory = "${config.nixpkgs.config}/..";
# Environment = [
# "HOME=${config.users.users.henrov.home}"
# ];
# };
# script = ''
# ${scriptPath}
# '';
# };
# }
{ lib, config, pkgs, ... }:
let
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
scriptExists = lib.fileExists "${scriptPath}";
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {
description = "Run end script after Home Manager";
wantedBy = [ "multi-user.target" ];
after = [ "home-manager-activate.service" ];
serviceConfig = {
Type = "oneshot";
WorkingDirectory = "${config.nixpkgs.config}/..";
Environment = [
"HOME=${config.users.users.henrov.home}"
];
};
script = ''
${scriptPath}
'';
};
}