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