From 45d3c6cc26ebc6e7d644742bfe98f779f8769997 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 25 Jan 2025 17:58:11 +0000 Subject: [PATCH] add impermenence to cloudnix --- hosts/cloudnix/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/cloudnix/default.nix b/hosts/cloudnix/default.nix index 282f435..b396bdd 100644 --- a/hosts/cloudnix/default.nix +++ b/hosts/cloudnix/default.nix @@ -1,10 +1,13 @@ { configVars, outputs, + lib, + ... }: let user = "admin"; merlinIp = configVars.networking.addresses.merlin.ip; + btrfsMountDevice = "/dev/sda2"; in { imports = [ # Create users for this host @@ -14,6 +17,13 @@ in { ./hardware-configuration.nix ../common/core + # Impermanence + ../common/optional/persistence.nix + (import ../common/disks/btrfs/impermanence.nix { + btrfsMountDevice = btrfsMountDevice; + lib = lib; + }) + # Import optional options ../common/optional/persistence.nix ../common/optional/openssh.nix