17 lines
254 B
Nix
17 lines
254 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.sane.impermanence;
|
||
|
in
|
||
|
{
|
||
|
fileSystems."/" = lib.mkIf (cfg.enable && cfg.root-on-tmpfs) {
|
||
|
device = "none";
|
||
|
fsType = "tmpfs";
|
||
|
options = [
|
||
|
"mode=755"
|
||
|
"size=1G"
|
||
|
"defaults"
|
||
|
];
|
||
|
};
|
||
|
}
|