backup: fix timers after boot, prepare steamdeck

This commit is contained in:
Kabbone 2024-10-20 11:00:40 +02:00
parent 2e4f1d5dfa
commit 5c4e09f773
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
5 changed files with 50 additions and 13 deletions

View File

@ -87,9 +87,9 @@
};
};
systemd.services = {
systemd.timers = {
btrbk-bak = {
after = [ "network.target" ];
requires = [ "network-online.target" ];
};
};

View File

@ -82,7 +82,7 @@
userServices = true;
};
};
tailscale.enable = true;
#tailscale.enable = true;
};

View File

@ -32,7 +32,7 @@
};
kernelModules = [ "kvm-intel" ];
kernelParams = [ "luks.options=fido2-device=auto" "sysrq_always_enabled=1" ];
kernelParams = [ "luks.options=fido2-device=auto" "sysrq_always_enabled=1" "pcie_aspm=force" ];
extraModprobeConfig = ''
options i915 enable_guc=3
'';
@ -42,10 +42,10 @@
zramSwap.enable = true;
powerManagement = {
powerDownCommands = "${pkgs.kmod}/bin/rmmod intel_lpss_pci";
resumeCommands = "${pkgs.kmod}/bin/modprobe intel_lpss_pci";
};
# powerManagement = {
# powerDownCommands = "${pkgs.kmod}/bin/rmmod intel_lpss_pci";
# resumeCommands = "${pkgs.kmod}/bin/modprobe intel_lpss_pci";
# };
services = {
@ -96,7 +96,7 @@
snapshot_preserve_min = "all";
target_preserve_min = "no";
target_preserve = "2m 4w";
target_preserve = "2m 4w 3d";
ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas";
ssh_user = "btrbk";
@ -115,9 +115,9 @@
};
};
systemd.services = {
systemd.timers = {
btrbk-bak = {
after = [ "network.target" ];
requires = [ "network-online.target" ];
};
};
@ -214,7 +214,7 @@
#defaultGateway = "192.168.0.1";
#nameservers = [ "192.168.0.4" ];
firewall = {
checkReversePath = false;
#checkReversePath = false;
enable = true;
allowedUDPPorts = [ 24727 51820 ];
allowedTCPPorts = [ 24727 ];

View File

@ -108,6 +108,10 @@
target = "/mnt/nas/Backups/Lifebook";
snapshot_dir = "@snapshots/@lifebook";
};
# "@steamdeck/@home" = {
# target = "/mnt/nas/Backups/Steamdeck";
# snapshot_dir = "@snapshots/@steamdeck";
# };
};
};
};
@ -130,7 +134,7 @@
systemd.services = {
btrbk-bak = {
after = [ "network.target" ];
requires = [ "network-online.target" ];
};
};

View File

@ -74,9 +74,42 @@
};
};
};
# bak = {
# onCalendar = "daily";
# settings = {
# stream_buffer = "256m";
# stream_compress = "lz4";
# incremental = "yes";
# snapshot_create = "no";
# snapshot_dir = "@snapshots";
# timestamp_format = "long";
#
# snapshot_preserve_min = "all";
# target_preserve_min = "no";
# target_preserve = "2m 4w 3d";
#
# ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas";
# ssh_user = "btrbk";
#
# volume = {
# "/mnt/snapshots/root" = {
# subvolume = {
# "@home" = {};
# };
# target = "ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Mars/@snapshots/@steamdeck";
# };
# };
# };
# };
};
};
};
#
# systemd.timers = {
# btrbk-bak = {
# requires = [ "network-online.target" ];
# };
# };
fileSystems."/" =
{ device = "/dev/mapper/crypted";