Files
nixos/henrovnix_ok/configuration/end_script.nix
T
2026-03-04 19:53:14 +01:00

17 lines
473 B
Nix

{ lib, config, pkgs, flakeRoot, ... }:
let
scriptPath = flakeRoot + "/assets/scripts/end_script.sh";
scriptExists = lib.systems.lib.fileExists scriptPath;
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {
description = "Run end script after Home Manager";
wantedBy = [ "default.target" ]; # Enable the service
after = [ "home-manager-activate.service" ];
serviceConfig.Type = "oneshot";
script = ''
${scriptPath}
'';
};
}