Compare commits
No commits in common. "408fb6cc05618171921f3cbaf7b19590c4850ea3" and "9edd7773335a5678dd6d277cc0c0bd3fac1b5615" have entirely different histories.
408fb6cc05
...
9edd777333
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
setopt appendhistory notify
|
setopt appendhistory notify
|
||||||
unsetopt beep nomatch
|
unsetopt beep nomatch
|
||||||
setopt completealiases
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
|
|
@ -147,15 +147,8 @@
|
||||||
|
|
||||||
hardware.sane.enable = true; # scanners
|
hardware.sane.enable = true; # scanners
|
||||||
hardware.keyboard.qmk.enable = true;
|
hardware.keyboard.qmk.enable = true;
|
||||||
hardware.acpilight.enable = true;
|
|
||||||
services.udev.packages = [ pkgs.via ];
|
services.udev.packages = [ pkgs.via ];
|
||||||
services.udev.extraRules = ''
|
hardware.acpilight.enable = true;
|
||||||
# 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,7 +95,6 @@ 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,7 +7,6 @@
|
||||||
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";
|
||||||
|
|
@ -363,36 +362,6 @@
|
||||||
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