Rebuilt nixes

This commit is contained in:
2026-03-04 21:55:36 +01:00
parent 185f4ae975
commit fc26270df4
5 changed files with 331 additions and 342 deletions
+304 -305
View File
File diff suppressed because it is too large Load Diff
+14 -15
View File
@@ -1457,22 +1457,21 @@ The configuration is done in the home manager section.
** Setting the config ** Setting the config
#+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes #+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes
{ config, pkgs, flakeRoot, lib, ... }: systemd.user.services.endScript = lib.mkIf scriptExists {
let description = "Run end script after Home Manager";
scriptPath = flakeRoot + "/assets/scripts/end_script.sh"; wantedBy = [ ]; # Not needed for user services
scriptExists = builtins.pathExists scriptPath; after = [
in "home-manager-activate.service"
{ "graphical-session.target" # If using a graphical session
systemd.user.services.endScript = lib.mkIf scriptExists { ];
description = "Run end script after Home Manager"; wantedBy = [ "default.target" ]; # This is redundant for user services
wantedBy = [ "default.target" ]; # Enable the service serviceConfig = {
after = [ "home-manager-activate.service" ]; Type = "oneshot";
serviceConfig.Type = "oneshot"; RemainAfterExit = yes;
script = '' ExecStart = "${scriptPath}";
${scriptPath}
'';
}; };
} };
#+end_src #+end_src
View File
@@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
rm -f ~/.config/starship.toml.backup \
~/.config/waybar/style.css.backup \
~/.config/kitty/kitty.conf.backup \
~/.config/hypr/hyprland.conf.backup
+13 -15
View File
@@ -1,16 +1,14 @@
{ config, pkgs, flakeRoot, lib, ... }: systemd.user.services.endScript = lib.mkIf scriptExists {
let description = "Run end script after Home Manager";
scriptPath = flakeRoot + "/assets/scripts/end_script.sh"; wantedBy = [ ]; # Not needed for user services
scriptExists = builtins.pathExists scriptPath; after = [
in "home-manager-activate.service"
{ "graphical-session.target" # If using a graphical session
systemd.user.services.endScript = lib.mkIf scriptExists { ];
description = "Run end script after Home Manager"; wantedBy = [ "default.target" ]; # This is redundant for user services
wantedBy = [ "default.target" ]; # Enable the service serviceConfig = {
after = [ "home-manager-activate.service" ]; Type = "oneshot";
serviceConfig.Type = "oneshot"; RemainAfterExit = yes;
script = '' ExecStart = "${scriptPath}";
${scriptPath}
'';
}; };
} };