lol

nixos/*: unhide remaining systemd stage-1 options

These options were missed in NixOS/nixpkgs#226237, but they all were
specifically added for systemd stage-1.

+19 -14
-5
nixos/modules/config/users-groups.nix
··· 539 539 540 540 # systemd initrd 541 541 boot.initrd.systemd.users = mkOption { 542 - visible = false; 543 542 description = '' 544 543 Users to include in initrd. 545 544 ''; 546 545 default = {}; 547 546 type = types.attrsOf (types.submodule ({ name, ... }: { 548 547 options.uid = mkOption { 549 - visible = false; 550 548 type = types.int; 551 549 description = '' 552 550 ID of the user in initrd. ··· 555 553 default = cfg.users.${name}.uid; 556 554 }; 557 555 options.group = mkOption { 558 - visible = false; 559 556 type = types.singleLineStr; 560 557 description = '' 561 558 Group the user belongs to in initrd. ··· 567 564 }; 568 565 569 566 boot.initrd.systemd.groups = mkOption { 570 - visible = false; 571 567 description = '' 572 568 Groups to include in initrd. 573 569 ''; 574 570 default = {}; 575 571 type = types.attrsOf (types.submodule ({ name, ... }: { 576 572 options.gid = mkOption { 577 - visible = false; 578 573 type = types.int; 579 574 description = '' 580 575 ID of the group in initrd.
-2
nixos/modules/services/hardware/udev.nix
··· 296 296 packages = mkOption { 297 297 type = types.listOf types.path; 298 298 default = []; 299 - visible = false; 300 299 description = lib.mdDoc '' 301 300 *This will only be used when systemd is used in stage 1.* 302 301 ··· 311 310 binPackages = mkOption { 312 311 type = types.listOf types.path; 313 312 default = []; 314 - visible = false; 315 313 description = lib.mdDoc '' 316 314 *This will only be used when systemd is used in stage 1.* 317 315
+1 -1
nixos/modules/services/system/dbus.nix
··· 22 22 options = { 23 23 24 24 boot.initrd.systemd.dbus = { 25 - enable = mkEnableOption (lib.mdDoc "dbus in stage 1") // { visible = false; }; 25 + enable = mkEnableOption (lib.mdDoc "dbus in stage 1"); 26 26 }; 27 27 28 28 services.dbus = {
+6 -2
nixos/modules/tasks/bcache.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 3 { 4 - options.boot.initrd.services.bcache.enable = (lib.mkEnableOption (lib.mdDoc "bcache support in the initrd")) // { 5 - visible = false; # only works with systemd stage 1 4 + options.boot.initrd.services.bcache.enable = lib.mkEnableOption (lib.mdDoc "bcache support in the initrd") // { 5 + description = lib.mdDoc '' 6 + *This will only be used when systemd is used in stage 1.* 7 + 8 + Whether to enable bcache support in the initrd. 9 + ''; 6 10 }; 7 11 8 12 config = {
+6 -2
nixos/modules/tasks/lvm.nix
··· 25 25 boot.vdo.enable = mkEnableOption (lib.mdDoc "support for booting from VDOLVs"); 26 26 }; 27 27 28 - options.boot.initrd.services.lvm.enable = (mkEnableOption (lib.mdDoc "enable booting from LVM2 in the initrd")) // { 29 - visible = false; 28 + options.boot.initrd.services.lvm.enable = mkEnableOption (lib.mdDoc "booting from LVM2 in the initrd") // { 29 + description = lib.mdDoc '' 30 + *This will only be used when systemd is used in stage 1.* 31 + 32 + Whether to enable booting from LVM2 in the initrd. 33 + ''; 30 34 }; 31 35 32 36 config = mkMerge [
+6 -2
nixos/modules/tasks/swraid.nix
··· 5 5 in { 6 6 7 7 options.boot.initrd.services.swraid = { 8 - enable = (lib.mkEnableOption (lib.mdDoc "swraid support using mdadm")) // { 9 - visible = false; # only has effect when the new stage 1 is in place 8 + enable = lib.mkEnableOption (lib.mdDoc "swraid support using mdadm") // { 9 + description = '' 10 + *This will only be used when systemd is used in stage 1.* 11 + 12 + Whether to enable swraid support using mdadm. 13 + ''; 10 14 }; 11 15 12 16 mdadmConf = lib.mkOption {