summaryrefslogtreecommitdiff
path: root/sys/fs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/default.nix')
-rw-r--r--sys/fs/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/fs/default.nix b/sys/fs/default.nix
new file mode 100644
index 0000000..9f2f646
--- /dev/null
+++ b/sys/fs/default.nix
@@ -0,0 +1,21 @@
+{ lib, config, ... }:
+with lib; let
+ cfg = config.local;
+in {
+ imports = [ ./btrfs.nix ./layout.nix ];
+
+ options.local.fs.boot.device = with lib.types; mkOption {
+ type = str;
+ };
+
+ config = {
+ # !!!
+ boot.tmpOnTmpfs = true;
+
+ fileSystems."/boot" = {
+ inherit (cfg.fs.boot) device;
+ fsType = "vfat";
+ options = [ "noatime" "umask=027" ];
+ };
+ };
+}