Recreated nix files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
scriptPath = ./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";
|
||||
script = ''
|
||||
${scriptPath}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user