summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-01-14 16:49:43 +0100
committerene <ene@sils.li>2023-01-14 16:49:43 +0100
commitd63b4c4560b373ddd6ed1efa3c21c95222944c11 (patch)
treedca846c3a448638c1c86f61b4e149f78ef6cb901
parentMerge pull request 'Feat: Added support for btrfs' (#4) from btrfs into server1 (diff)
parentFeat: Switch to inpersistent temproot. (diff)
downloadnixos-server-d63b4c4560b373ddd6ed1efa3c21c95222944c11.zip
Merge pull request 'New filesystemlayout' (#5) from server1_fslayout into server1
Reviewed-on: https://git.sils.li/vhack.eu/nixos-server/pulls/5 Reviewed-by: ene <ene@sils.li>
Diffstat (limited to '')
-rw-r--r--hardware-configuration.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
index cb9d265..d54f90a 100644
--- a/hardware-configuration.nix
+++ b/hardware-configuration.nix
@@ -3,8 +3,25 @@
boot.loader.grub.device = "/dev/vda";
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
boot.initrd.kernelModules = ["nvme" "btrfs"];
- fileSystems."/" = {
- device = "/dev/vda3";
- fsType = "btrfs";
+ fileSystems = {
+ "/" = {
+ device = "tmpfs";
+ fsType = "tmpfs";
+ options = ["defaults" "size=2G" "mode=755"];
+ };
+ "/nix" = {
+ device = "/dev/vda3";
+ fsType = "btrfs";
+ options = ["subvol=nix" "compress-force=zstd"];
+ };
+ "/srv" = {
+ device = "/dev/vda3";
+ fsType = "btrfs";
+ options = ["subvol=storage" "compress-force=zstd"];
+ };
+ "/etc/nixos" = {
+ device = "/srv/nix-config";
+ options = ["bind"];
+ };
};
}