about summary refs log tree commit diff
path: root/modules/nixos/common/tmp.nix
blob: d56e2b66bdfd6a70e033bb5e3d1af18250d79c06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
_: {
  systemd.mounts = [
    {
      type = "tmpfs";
      what = "tmpfs";
      where = "/tmp";
      mountConfig.Options = [
        "huge=within_size"
        "mode=1777"
        "noatime"
        "nodev"
        "nosuid"
        "rw"
        "size=25%"
      ];
    }
  ];
}

Consider giving Nix/NixOS a try! <3