summaryrefslogtreecommitdiff
path: root/sys/fs/default.nix
blob: 9f2f646d79cf90fb94bcedf7a4d73d9cce5d0fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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" ];
    };
  };
}