all repos — nixfiles @ 5fdc1a576d0b039e65f8d9238ec34950c5019f55

System and user configuration, managed by nix and home-manager

move home-manager update to auto-upgrade module

Alin
commit

5fdc1a576d0b039e65f8d9238ec34950c5019f55

parent

3829da7df19192a1381a057f140bd4166b86a212

1 file changed, 2 insertions(+), 18 deletions(-)

changed files
M system/roles/server.nix → system/roles/server.nix
@@ -36,27 +36,11 @@ services.sshguard = {
enable = true; }; + systemd.services.home-manager-update.enable = true; + services.journald.extraConfig = '' MaxRetentionSec=1 month ''; - - systemd.services.update-home-manager = - let - nixfiles = lib.removePrefix "-" config.systemd.services.update-nixfiles.serviceConfig.WorkingDirectory; - in - { - startAt = "weekly"; - path = with pkgs; [ - openssh - nix - config.programs.git.package - ]; - serviceConfig = rec { - Type = "oneshot"; - User = "alin"; - ExecStart = "${lib.getExe pkgs.nh} home switch --file ${nixfiles} homeConfigurations.${User}@%H --no-nom"; - }; - }; services.syncthing = { dataDir = "/srv/syncthing";