diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-08-08 03:53:33 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-08-08 03:55:09 -0600 |
| commit | 829102167e61ece218c33b83141b81b78cdf6087 (patch) | |
| tree | c904377da29368698be9edfbf5f3d23332533648 /sys/fs/default.nix | |
| parent | f86be644309028046732c254fb5d0e80bc58dfff (diff) | |
sys/fs: move fs config out of sys/default.nix
Diffstat (limited to 'sys/fs/default.nix')
| -rw-r--r-- | sys/fs/default.nix | 21 |
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" ]; + }; + }; +} |
