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 = {
wol.enable = true;
wol.enable = true;
};
};
}

View file

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

View file

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

View file

@ -17,23 +17,21 @@ in {
};
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"];
timerconfig = {
oncalendar = "weekly";
persistent = true;
systemd.timers."backupSyncthing" = {
wantedBy = ["timers.target"];
timerConfig = {
onCalendar = "weekly";
Persistent = true;
};
};
systemd.services."backupsyncthing" = {
systemd.services."backupSyncthing" = {
script = ''
/home/horseman/nix-config/misc/backup.sh
'';
serviceconfig = {
type = "oneshot";
user = "horseman";
serviceConfig = {
Type = "oneshot";
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 {
assert homeCfg.apps.terminal || throw "wakeonlan has not been not installed on this machine, refusing to add timer.";
systemd.timers."enable-wol" = {
wantedBy = ["timers.target"];
timerConfig = {

View file

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