aboutsummaryrefslogtreecommitdiffstats
path: root/system/fileSystemLayouts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/fileSystemLayouts/default.nix25
1 files changed, 12 insertions, 13 deletions
diff --git a/system/fileSystemLayouts/default.nix b/system/fileSystemLayouts/default.nix
index d861d888..a3ba353b 100644
--- a/system/fileSystemLayouts/default.nix
+++ b/system/fileSystemLayouts/default.nix
@@ -5,6 +5,10 @@
}:
with lib; let
cfg = config.system.fileSystemLayouts;
+ defaultMountOptions = [
+ "compress-force=zstd:15" # This saves disk space, at a performance cost
+ "noatime" # should have some performance upsides, and I don't use it anyways
+ ];
in {
options.system.fileSystemLayouts = {
enable = mkEnableOption (mdDoc "fileSystemLayout");
@@ -30,30 +34,25 @@ in {
"/nix" = {
device = cfg.mainDisk;
fsType = "btrfs";
- options = ["subvol=nix" "compress-force=zstd:15"];
+ options = ["subvol=nix"] ++ defaultMountOptions;
};
"/srv" = {
device = cfg.mainDisk;
fsType = "btrfs";
neededForBoot = true;
- options = ["subvol=storage" "compress-force=zstd:15"];
+ options = ["subvol=storage"] ++ defaultMountOptions;
};
"/boot" = {
device = cfg.efiDisk;
fsType = "vfat";
};
- "/etc/nixos" = {
- device = "/srv/nix-config";
- options = ["bind"];
- };
-
-# This results in infinite recursion, don't ask my why
-# "${config.users.users.soispha.home}/.config" = {
-# device = "none";
-# fsType = "tmpfs";
-# options = ["defaults" "size=1G" "mode=755"];
-# };
+ # This results in infinite recursion, don't ask my why
+ # "${config.users.users.soispha.home}/.config" = {
+ # device = "none";
+ # fsType = "tmpfs";
+ # options = ["defaults" "size=1G" "mode=755"];
+ # };
};
swapDevices = [];
};