From 7030e812fca8e764c771354cf7f1aa62e14ecebe Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Sun, 3 May 2026 23:51:00 -0400 Subject: [PATCH] nixos/hosts: declare fileSystems for testing hosts --- nixos/hosts/tuxcord-acmetest/default.nix | 4 ++++ nixos/hosts/tuxcord-acmetest/storage.nix | 6 ++++++ nixos/hosts/tuxcord-ca/storage.nix | 1 + nixos/hosts/tuxcord-test/default.nix | 4 ++++ nixos/hosts/tuxcord-test/storage.nix | 6 ++++++ nixos/impermanence.nix | 2 -- 6 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 nixos/hosts/tuxcord-acmetest/storage.nix create mode 100644 nixos/hosts/tuxcord-test/storage.nix diff --git a/nixos/hosts/tuxcord-acmetest/default.nix b/nixos/hosts/tuxcord-acmetest/default.nix index cb830ab..5f5e620 100644 --- a/nixos/hosts/tuxcord-acmetest/default.nix +++ b/nixos/hosts/tuxcord-acmetest/default.nix @@ -1,4 +1,8 @@ { + imports = [ + ./storage.nix + ]; + networking.fqdn = "nix.tuxcord.net"; acme.rfc2136.nameserver = "tuxcord.net"; diff --git a/nixos/hosts/tuxcord-acmetest/storage.nix b/nixos/hosts/tuxcord-acmetest/storage.nix new file mode 100644 index 0000000..be18773 --- /dev/null +++ b/nixos/hosts/tuxcord-acmetest/storage.nix @@ -0,0 +1,6 @@ +{ + fileSystems."/" = { + device = "/dev/vda"; + fsType = "ext4"; + }; +} diff --git a/nixos/hosts/tuxcord-ca/storage.nix b/nixos/hosts/tuxcord-ca/storage.nix index f26d226..ff3a04e 100644 --- a/nixos/hosts/tuxcord-ca/storage.nix +++ b/nixos/hosts/tuxcord-ca/storage.nix @@ -32,6 +32,7 @@ device = "/dev/xvda2"; fsType = "btrfs"; options = [ "subvol=@persist" ] ++ defaultOptions; + neededForBoot = true; }; }; } diff --git a/nixos/hosts/tuxcord-test/default.nix b/nixos/hosts/tuxcord-test/default.nix index c09e559..322dd18 100644 --- a/nixos/hosts/tuxcord-test/default.nix +++ b/nixos/hosts/tuxcord-test/default.nix @@ -1,4 +1,8 @@ { + imports = [ + ./storage.nix + ]; + networking.fqdn = "tuxcord.test"; acme.enable = false; diff --git a/nixos/hosts/tuxcord-test/storage.nix b/nixos/hosts/tuxcord-test/storage.nix new file mode 100644 index 0000000..be18773 --- /dev/null +++ b/nixos/hosts/tuxcord-test/storage.nix @@ -0,0 +1,6 @@ +{ + fileSystems."/" = { + device = "/dev/vda"; + fsType = "ext4"; + }; +} diff --git a/nixos/impermanence.nix b/nixos/impermanence.nix index dd58434..7e0a903 100644 --- a/nixos/impermanence.nix +++ b/nixos/impermanence.nix @@ -55,8 +55,6 @@ }; }; - fileSystems."/persist".neededForBoot = true; - environment.persistence."/persist" = { enable = true; hideMounts = true;