git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit158a2972eb8c54f9a516d5fd314ec207ed305828 authorJanne Heß <janne@hess.ooo> dateSun 27 Mar 2022, 13:23 (5 years ago) parentdf64c2c
2 files changed+29−30
nixos/modules/system/boot/stage-2.nix−30 nixos/modules/tasks/filesystems.nix+29
nixos/modules/system/boot/stage-2.nix−30
@@ -47,36 +47,6 @@ in
4747 '';
4848 };
4949
50− devSize = mkOption {
51− default = "5%";
52− example = "32m";
53− type = types.str;
54− description = ''
55− Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
56− for the accepted syntax.
57− '';
58− };
59−
60− devShmSize = mkOption {
61− default = "50%";
62− example = "256m";
63− type = types.str;
64− description = ''
65− Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
66− for the accepted syntax.
67− '';
68− };
69−
70− runSize = mkOption {
71− default = "25%";
72− example = "256m";
73− type = types.str;
74− description = ''
75− Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
76− for the accepted syntax.
77− '';
78− };
79−
8050 systemdExecutable = mkOption {
8151 default = "systemd";
8252 type = types.str;
nixos/modules/tasks/filesystems.nix+29
@@ -215,6 +215,35 @@ in
215215 '';
216216 };
217217
218+ boot.devSize = mkOption {
219+ default = "5%";
220+ example = "32m";
221+ type = types.str;
222+ description = ''
223+ Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
224+ for the accepted syntax.
225+ '';
226+ };
227+
228+ boot.devShmSize = mkOption {
229+ default = "50%";
230+ example = "256m";
231+ type = types.str;
232+ description = ''
233+ Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
234+ for the accepted syntax.
235+ '';
236+ };
237+
238+ boot.runSize = mkOption {
239+ default = "25%";
240+ example = "256m";
241+ type = types.str;
242+ description = ''
243+ Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
244+ for the accepted syntax.
245+ '';
246+ };
218247 };
219248
220249