diff options
Diffstat (limited to 'modules/snorlax/default.nix')
-rw-r--r-- | modules/snorlax/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/snorlax/default.nix b/modules/snorlax/default.nix index a05b1f4..9cf1bfe 100644 --- a/modules/snorlax/default.nix +++ b/modules/snorlax/default.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, lib, ... }: { imports = [ ./disk-config.nix @@ -15,6 +15,9 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.initrd.postDeviceCommands = lib.mkAfter '' + zfs rollback -r data/local/root@blank + ''; time.timeZone = "Europe/Amsterdam"; @@ -29,9 +32,6 @@ services.syncoid.enable = true; services.syncoid.sshKey = config.age.secrets.syncoid-key.path; services.syncoid.commands = { - "zroot/persist" = { - source = "zroot/persist"; - target = "ubuntu@185.107.88.38:backup/snorlax"; - }; + "data/safe/persist".target = "ubuntu@185.107.88.38:backup/snorlax"; }; } |