New end-script service, recreated nix files

This commit is contained in:
2026-03-04 09:03:25 +01:00
parent 9a77a97fdc
commit 3c9c0e882d
4 changed files with 341 additions and 318 deletions
+6 -13
View File
@@ -52,6 +52,12 @@
package = hyprland.packages.${pkgs.system}.hyprland;
};
})
# cleaning up
system.activationScripts.cleanBackup = ''
#!${pkgs.runtimeShell}
find ${config.home.homeDirectory}/.config -name "*.backup" -delete
'';
})
({ lib, ... }: {
nixpkgs.overlays = [ emacs-overlay.overlays.default ];
})
@@ -76,19 +82,6 @@
}
catppuccin.nixosModules.catppuccin # theme
# end_script as a systemd service
({ lib, config, pkgs, ... }: {
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
description = "Run end script after Home Manager";
wantedBy = [ "default.target" ];
after = [ "home-manager-henrov.service" ];
serviceConfig.Type = "oneshot";
script = ''
${pkgs.bash}/bin/bash -c 'cd $HOME && ${./assets/scripts/end_script.sh}'
'';
};
})
];
specialArgs = {
hostname = machine;