From 829102167e61ece218c33b83141b81b78cdf6087 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 8 Aug 2022 03:53:33 -0600 Subject: sys/fs: move fs config out of sys/default.nix --- sys/fs/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys/fs/default.nix (limited to 'sys/fs/default.nix') 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" ]; + }; + }; +} -- cgit v1.2.3