Files
nixos/henrovnix_ok/configuration/end_script.nix
T
2026-03-04 22:01:32 +01:00

21 lines
454 B
Nix

{ lib, builtins, ... }:
let
scriptPath = "/path/to/your/script";
scriptExists = builtins.pathExists scriptPath;
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {
description = "Run end script after Home Manager";
after = [
"home-manager-activate.service"
"graphical-session.target"
];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${scriptPath}";
};
};
}