Recreated nix files
This commit is contained in:
+302
-302
File diff suppressed because it is too large
Load Diff
@@ -714,16 +714,16 @@ We also add a devshell that makes editing this repository easier in emacs.
|
|||||||
catppuccin.nixosModules.catppuccin # theme
|
catppuccin.nixosModules.catppuccin # theme
|
||||||
|
|
||||||
# end_script as a systemd service
|
# end_script as a systemd service
|
||||||
({ lib, config, pkgs, ... }: {
|
({ lib, config, pkgs, ... }: {
|
||||||
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
|
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
|
||||||
description = "Run end script after Home Manager";
|
description = "Run end script after Home Manager";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
after = [ "home-manager-activate.service" ];
|
after = [ "home-manager-henrov.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
${./assets/scripts/end_script.sh}
|
${pkgs.bash}/bin/bash ${./assets/scripts/end_script.sh}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -78,16 +78,16 @@
|
|||||||
catppuccin.nixosModules.catppuccin # theme
|
catppuccin.nixosModules.catppuccin # theme
|
||||||
|
|
||||||
# end_script as a systemd service
|
# end_script as a systemd service
|
||||||
({ lib, config, pkgs, ... }: {
|
({ lib, config, pkgs, ... }: {
|
||||||
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
|
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
|
||||||
description = "Run end script after Home Manager";
|
description = "Run end script after Home Manager";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
after = [ "home-manager-activate.service" ];
|
after = [ "home-manager-henrov.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
${./assets/scripts/end_script.sh}
|
${pkgs.bash}/bin/bash ${./assets/scripts/end_script.sh}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user