···539539540540 # systemd initrd
541541 boot.initrd.systemd.users = mkOption {
542542- visible = false;
543542 description = ''
544543 Users to include in initrd.
545544 '';
546545 default = {};
547546 type = types.attrsOf (types.submodule ({ name, ... }: {
548547 options.uid = mkOption {
549549- visible = false;
550548 type = types.int;
551549 description = ''
552550 ID of the user in initrd.
···555553 default = cfg.users.${name}.uid;
556554 };
557555 options.group = mkOption {
558558- visible = false;
559556 type = types.singleLineStr;
560557 description = ''
561558 Group the user belongs to in initrd.
···567564 };
568565569566 boot.initrd.systemd.groups = mkOption {
570570- visible = false;
571567 description = ''
572568 Groups to include in initrd.
573569 '';
574570 default = {};
575571 type = types.attrsOf (types.submodule ({ name, ... }: {
576572 options.gid = mkOption {
577577- visible = false;
578573 type = types.int;
579574 description = ''
580575 ID of the group in initrd.
-2
nixos/modules/services/hardware/udev.nix
···296296 packages = mkOption {
297297 type = types.listOf types.path;
298298 default = [];
299299- visible = false;
300299 description = lib.mdDoc ''
301300 *This will only be used when systemd is used in stage 1.*
302301···311310 binPackages = mkOption {
312311 type = types.listOf types.path;
313312 default = [];
314314- visible = false;
315313 description = lib.mdDoc ''
316314 *This will only be used when systemd is used in stage 1.*
317315
···11{ config, lib, pkgs, ... }:
2233{
44- options.boot.initrd.services.bcache.enable = (lib.mkEnableOption (lib.mdDoc "bcache support in the initrd")) // {
55- visible = false; # only works with systemd stage 1
44+ options.boot.initrd.services.bcache.enable = lib.mkEnableOption (lib.mdDoc "bcache support in the initrd") // {
55+ description = lib.mdDoc ''
66+ *This will only be used when systemd is used in stage 1.*
77+88+ Whether to enable bcache support in the initrd.
99+ '';
610 };
711812 config = {
+6-2
nixos/modules/tasks/lvm.nix
···2525 boot.vdo.enable = mkEnableOption (lib.mdDoc "support for booting from VDOLVs");
2626 };
27272828- options.boot.initrd.services.lvm.enable = (mkEnableOption (lib.mdDoc "enable booting from LVM2 in the initrd")) // {
2929- visible = false;
2828+ options.boot.initrd.services.lvm.enable = mkEnableOption (lib.mdDoc "booting from LVM2 in the initrd") // {
2929+ description = lib.mdDoc ''
3030+ *This will only be used when systemd is used in stage 1.*
3131+3232+ Whether to enable booting from LVM2 in the initrd.
3333+ '';
3034 };
31353236 config = mkMerge [
+6-2
nixos/modules/tasks/swraid.nix
···55in {
6677 options.boot.initrd.services.swraid = {
88- enable = (lib.mkEnableOption (lib.mdDoc "swraid support using mdadm")) // {
99- visible = false; # only has effect when the new stage 1 is in place
88+ enable = lib.mkEnableOption (lib.mdDoc "swraid support using mdadm") // {
99+ description = ''
1010+ *This will only be used when systemd is used in stage 1.*
1111+1212+ Whether to enable swraid support using mdadm.
1313+ '';
1014 };
11151216 mdadmConf = lib.mkOption {