Update 'configuration.nix'
This commit is contained in:
parent
a19b1f27ed
commit
87cbe0412b
1 changed files with 2 additions and 29 deletions
|
@ -156,34 +156,7 @@ git
|
||||||
|
|
||||||
#source of this code: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/modules/system/boot/tmp.nix
|
#source of this code: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/modules/system/boot/tmp.nix
|
||||||
|
|
||||||
#boot.tmpOnTmpfs = true;
|
boot.tmpOnTmpfs = true;
|
||||||
#boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
|
|
||||||
options = {
|
|
||||||
|
|
||||||
boot.cleanTmpDir = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Whether to delete all files in {file}`/tmp` during boot.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.tmpOnTmpfs = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Whether to mount a tmpfs on {file}`/tmp` during boot.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.tmpOnTmpfsSize = mkOption {
|
|
||||||
type = types.oneOf [ types.str types.types.ints.positive ];
|
|
||||||
default = "50%";
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Size of tmpfs in percentage.
|
|
||||||
Percentage is defined by systemd.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue