nixos/filesystems: Move options into the fs module

This was probably forgotten during a refactoring. The module is where
the values of the options are actually used.
This commit is contained in:
Janne Heß 2022-03-27 13:23:44 +02:00
parent df64c2c722
commit 158a2972eb
No known key found for this signature in database
GPG Key ID: 69165158F05265DF
2 changed files with 29 additions and 30 deletions

View File

@ -47,36 +47,6 @@ in
'';
};
devSize = mkOption {
default = "5%";
example = "32m";
type = types.str;
description = ''
Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
devShmSize = mkOption {
default = "50%";
example = "256m";
type = types.str;
description = ''
Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
runSize = mkOption {
default = "25%";
example = "256m";
type = types.str;
description = ''
Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
systemdExecutable = mkOption {
default = "systemd";
type = types.str;

View File

@ -215,6 +215,35 @@ in
'';
};
boot.devSize = mkOption {
default = "5%";
example = "32m";
type = types.str;
description = ''
Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
boot.devShmSize = mkOption {
default = "50%";
example = "256m";
type = types.str;
description = ''
Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
boot.runSize = mkOption {
default = "25%";
example = "256m";
type = types.str;
description = ''
Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
for the accepted syntax.
'';
};
};