Compare commits
2 Commits
9edd777333
...
408fb6cc05
| Author | SHA1 | Date |
|---|---|---|
|
|
408fb6cc05 | |
|
|
046a83c3dc |
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
setopt appendhistory notify
|
setopt appendhistory notify
|
||||||
unsetopt beep nomatch
|
unsetopt beep nomatch
|
||||||
|
setopt completealiases
|
||||||
|
|
||||||
#
|
#
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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; [
|
||||||
|
|
|
||||||
|
|
@ -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?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue