From b6b586ecd213e55d3908200c7d0f95e665ad2342 Mon Sep 17 00:00:00 2001 From: k3t Date: Wed, 24 Jun 2026 21:00:57 -0600 Subject: [PATCH] add storage to NixNAS --- hosts/NixNAS/configuration.nix | 1 + hosts/NixNAS/filesystems.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hosts/NixNAS/filesystems.nix diff --git a/hosts/NixNAS/configuration.nix b/hosts/NixNAS/configuration.nix index acc44a0..b01075e 100644 --- a/hosts/NixNAS/configuration.nix +++ b/hosts/NixNAS/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./filesystems.nix ]; networking.hostName = "NixNAS"; diff --git a/hosts/NixNAS/filesystems.nix b/hosts/NixNAS/filesystems.nix new file mode 100644 index 0000000..87309f9 --- /dev/null +++ b/hosts/NixNAS/filesystems.nix @@ -0,0 +1,14 @@ +{ + fileSystems = { + "/mnt/hdd" = + { device = "/dev/disk/by-label/NixNAS_HDD"; + fsType = "btrfs"; + options = [ "discard" ]; + }; + "/mnt/ssd" = + { device = "/dev/disk/by-label/NixNAS_SSD"; + fsType = "btrfs"; + options = [ "discard" ]; + }; + } +} \ No newline at end of file