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/work-desktop
./programs/yt-dlp
./services/attic-client
./services/desktop-base
./services/dunst
./services/espanso

View File

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

View File

@ -33,6 +33,7 @@ in
};
services = {
az-attic-client.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/scripts
./programs/steam
./services/attic-client
./services/attic-server
./services/common-x86
./services/data-share

View File

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