mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-15 21:59:12 +02:00
wip: migrate client modules
This commit is contained in:
parent
f6d2ff1544
commit
7ce27d5d2f
245 changed files with 20254 additions and 188 deletions
26
modules-clone/home/common/attic-store-push.nix
Normal file
26
modules-clone/home/common/attic-store-push.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
options.swarselmodules.attic-store-push = lib.mkEnableOption "enable automatic attic store push";
|
||||
config = lib.mkIf config.swarselmodules.attic-store-push {
|
||||
|
||||
systemd.user.services.attic-store-push = {
|
||||
Unit = {
|
||||
Description = "Attic store pusher";
|
||||
Requires = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${lib.getExe pkgs.attic-client} watch-store ${config.swarselsystems.mainUser}:${config.swarselsystems.mainUser}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue