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

21 lines
439 B
Nix

{ lib, ... }:
let
scriptPath = "/path/to/your/script";
scriptExists = lib.fileExists 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}";
};
};
}