Move the attic-client to home-manager

This commit is contained in:
Andreas Zweili 2024-04-22 19:09:12 +02:00
parent 0cd03bfeaf
commit 75662dc389
6 changed files with 16 additions and 13 deletions

View File

@ -23,6 +23,7 @@
./programs/tmux ./programs/tmux
./programs/work-desktop ./programs/work-desktop
./programs/yt-dlp ./programs/yt-dlp
./services/attic-client
./services/desktop-base ./services/desktop-base
./services/dunst ./services/dunst
./services/espanso ./services/espanso

View File

@ -20,19 +20,19 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = [ inputs.attic.packages.${system}.attic-client ]; home.packages = [ inputs.attic.packages.${system}.attic-client ];
# sytemd service systemd.user.services.az-attic-client = {
systemd.services.az-attic-client = { Unit = {
description = "Watch the nix store and upload new paths to attic"; Description = "Watch the nix store and upload new paths to attic";
after = [ "network.target" ]; After = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; };
serviceConfig = { Install = {
WantedBy = [ "multi-user.target" ];
};
Service = {
Type = "simple"; Type = "simple";
ExecStart = "${atticWatcher}"; ExecStart = "${atticWatcher}";
Restart = "always"; Restart = "always";
RestartSec = "5";
User = config.az-username;
Group = "users";
}; };
}; };
}; };

View File

@ -33,6 +33,7 @@ in
}; };
services = { services = {
az-attic-client.enable = true;
az-desktop-base.enable = true; az-desktop-base.enable = true;
}; };
} }

View File

@ -84,5 +84,8 @@
}; };
}; };
}; };
services.ssh-agent.enable = true; services = {
az-attic-client.enable = true;
ssh-agent.enable = true;
};
} }

View File

@ -21,7 +21,6 @@
./programs/restic-management ./programs/restic-management
./programs/scripts ./programs/scripts
./programs/steam ./programs/steam
./services/attic-client
./services/attic-server ./services/attic-server
./services/common-x86 ./services/common-x86
./services/data-share ./services/data-share

View File

@ -81,7 +81,6 @@
}; };
services = { services = {
az-attic-client.enable = true;
az-logs-share.enable = true; az-logs-share.enable = true;
az-restic-client-desktop.enable = true; az-restic-client-desktop.enable = true;
az-tlp.enable = true; az-tlp.enable = true;