This commit is contained in:
KoenDR06 2025-03-04 21:36:54 +01:00
parent def078abfc
commit d448ebcbed
7 changed files with 24 additions and 16 deletions

View file

@ -52,7 +52,7 @@
}; };
timers = { timers = {
wol.enable = true; wol.enable = true;
}; };
}; };
} }

View file

@ -40,7 +40,7 @@ in {
]; ];
environment.sessionVariables = rec { environment.sessionVariables = rec {
TERM = "kitty" TERM = "kitty";
}; };
# Docker # Docker

View file

@ -12,6 +12,7 @@
./users ./users
./boot ./boot
./base ./base
./timers
./username.nix ./username.nix
]; ];
} }

View file

@ -17,23 +17,21 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
assert homeCfg.network.syncthing || throw "Syncthing has not been enabled on this machine, refusing to add timer."; systemd.timers."backupSyncthing" = {
wantedBy = ["timers.target"];
systemd.timers."backupsyncthing" = { timerConfig = {
wantedby = ["timers.target"]; onCalendar = "weekly";
timerconfig = { Persistent = true;
oncalendar = "weekly";
persistent = true;
}; };
}; };
systemd.services."backupsyncthing" = { systemd.services."backupSyncthing" = {
script = '' script = ''
/home/horseman/nix-config/misc/backup.sh /home/horseman/nix-config/misc/backup.sh
''; '';
serviceconfig = { serviceConfig = {
type = "oneshot"; Type = "oneshot";
user = "horseman"; User = "horseman";
}; };
}; };
}; };

View file

@ -0,0 +1,10 @@
{
inputs,
headless,
...
}: {
imports = [
./wol.nix
./backup.nix
];
}

View file

@ -17,8 +17,6 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
assert homeCfg.apps.terminal || throw "wakeonlan has not been not installed on this machine, refusing to add timer.";
systemd.timers."enable-wol" = { systemd.timers."enable-wol" = {
wantedBy = ["timers.target"]; wantedBy = ["timers.target"];
timerConfig = { timerConfig = {

View file

@ -25,7 +25,8 @@ in {
cd /home/horseman && \ cd /home/horseman && \
rm -r .config/qtile && \ rm -r .config/qtile && \
cp -r nix-config/modules/wm/qtile/config \ cp -r nix-config/modules/wm/qtile/config \
.config/qtile .config/qtile && \
sudo chown -R horseman:users .config/qtile
''; '';
}; };
} }