Files
nixos/henrovnix_ok/configuration/end_script.nix
T
2026-03-04 21:55:36 +01:00

15 lines
458 B
Nix

systemd.user.services.endScript = lib.mkIf scriptExists {
description = "Run end script after Home Manager";
wantedBy = [ ]; # Not needed for user services
after = [
"home-manager-activate.service"
"graphical-session.target" # If using a graphical session
];
wantedBy = [ "default.target" ]; # This is redundant for user services
serviceConfig = {
Type = "oneshot";
RemainAfterExit = yes;
ExecStart = "${scriptPath}";
};
};