This commit is contained in:
2025-10-10 21:07:42 +03:00
parent 27807816cb
commit f32895b48b
+12 -13
View File
@@ -82,19 +82,18 @@
}; };
}; };
systemd.services.nixos-auto-rebuild-sops = { # systemd.services.nixos-auto-rebuild-sops = {
description = "Auto rebuild NixOS at boot"; # description = "Auto rebuild NixOS at boot";
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ]; # after = [ "network-online.target" ];
serviceConfig = { # serviceConfig = {
Type = "oneshot"; # Type = "oneshot";
User = "${xlib.device.username}"; # User = "${xlib.device.username}";
Group = "users"; # Group = "users";
WorkingDirectory = "/etc/nixos"; # WorkingDirectory = "/etc/nixos";
ExecStart = [ "/run/wrappers/bin/sudo ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch" ]; # ExecStart = [ "/run/wrappers/bin/sudo ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch" ];
}; # };
}; # };
# fileSystems."/etc/ssh".neededForBoot = true; # fileSystems."/etc/ssh".neededForBoot = true;
} }