add storage to NixNAS
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./filesystems.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "NixNAS";
|
networking.hostName = "NixNAS";
|
||||||
|
|||||||
@@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user