Compare commits

...

2 Commits

Author SHA1 Message Date
Audrey 408fb6cc05 misc 2026-06-15 16:15:01 -07:00
Audrey 046a83c3dc offsite backups 2026-06-15 16:14:54 -07:00
4 changed files with 41 additions and 1 deletions

View File

@ -2,6 +2,7 @@
setopt appendhistory notify setopt appendhistory notify
unsetopt beep nomatch unsetopt beep nomatch
setopt completealiases
# #
# Aliases # Aliases

View File

@ -147,8 +147,15 @@
hardware.sane.enable = true; # scanners hardware.sane.enable = true; # scanners
hardware.keyboard.qmk.enable = true; hardware.keyboard.qmk.enable = true;
services.udev.packages = [ pkgs.via ];
hardware.acpilight.enable = true; hardware.acpilight.enable = true;
services.udev.packages = [ pkgs.via ];
services.udev.extraRules = ''
# Disable DS4 touchpad acting as mouse
# USB
ATTRS{name}=="Sony Interactive Entertainment Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
# Bluetooth
ATTRS{name}=="Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
'';
}; };
options.rhelmot.isDesktop = lib.mkOption { options.rhelmot.isDesktop = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;

View File

@ -95,6 +95,7 @@ in {
cronie cronie
radicle-node radicle-node
editorconfig-core-c editorconfig-core-c
smartmontools
]; ];
rhelmot.globalPythonPackages = [ (p: with p; [ rhelmot.globalPythonPackages = [ (p: with p; [

View File

@ -7,6 +7,7 @@
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;
services.zfs.trim.enable = true; services.zfs.trim.enable = true;
services.syncoid.enable = lib.mkForce false;
networking.hostName = "hydrangea"; networking.hostName = "hydrangea";
networking.hostId = "5dfd64c1"; networking.hostId = "5dfd64c1";
@ -362,6 +363,36 @@
enable = true; enable = true;
}; };
systemd.timers.offsite-backups = {
wantedBy = ["timers.target"];
timerConfig = {
OnBootSec = "15min";
OnUnitActiveSec = "1w";
};
};
systemd.services.offsite-backups = {
path = with pkgs; [zfs backblaze-b2];
environment = {
paths = "/var/lib/immich /var/lib/syncthing /var/lib/vaultwarden /var/lib/sftpgo";
HOME = "/root";
};
script = /* bash */ ''
set +e
result=0
for f in $paths; do
backblaze-b2 sync --replace-newer --keep-days 30 "$f" "b2://hydrangea-datasets/$(basename $f)" || result=1
done
exit $result
'';
serviceConfig = {
Type = "oneshot";
User = "root";
Group = "root";
};
};
# TODO # TODO
# - transfer old nextcloud files # - transfer old nextcloud files
# - move old data files to sftpgo/audrey? # - move old data files to sftpgo/audrey?