File tree Expand file tree Collapse file tree 8 files changed +9
-0
lines changed Expand file tree Collapse file tree 8 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
lib . mkEnableOption "Enable the Facter bluetooth module"
5
5
// {
6
6
default = builtins . length ( config . facter . report . hardware . bluetooth or [ ] ) > 0 ;
7
+ defaultText = "hardware dependent" ;
7
8
} ;
8
9
9
10
config . hardware . bluetooth . enable = lib . mkIf config . facter . detected . bluetooth . enable (
Original file line number Diff line number Diff line change 16
16
++ ( report . hardware . storage_controller or [ ] )
17
17
)
18
18
) ;
19
+ defaultText = "hardware dependent" ;
19
20
description = ''
20
21
List of kernel modules that are needed to access the disk.
21
22
'' ;
Original file line number Diff line number Diff line change 25
25
{ }
26
26
else
27
27
builtins . fromJSON ( builtins . readFile config . facter . reportPath ) ;
28
+ defaultText = "A JSON import from config.facter.reportPath (if not null), {} otherwise." ;
28
29
description = "An import for the reportPath." ;
29
30
} ;
30
31
Original file line number Diff line number Diff line change 9
9
default = builtins . elem "amdgpu" (
10
10
facterLib . collectDrivers ( config . facter . report . hardware . graphics_card or [ ] )
11
11
) ;
12
+ defaultText = "hardware dependent" ;
12
13
} ;
13
14
} ;
14
15
config = lib . mkIf cfg . enable {
Original file line number Diff line number Diff line change 10
10
options . facter . detected = {
11
11
graphics . enable = lib . mkEnableOption "Enable the Graphics module" // {
12
12
default = builtins . length ( config . facter . report . hardware . monitor or [ ] ) > 0 ;
13
+ defaultText = "hardware dependent" ;
13
14
} ;
14
15
boot . graphics . kernelModules = lib . mkOption {
15
16
type = lib . types . listOf lib . types . str ;
18
19
default = lib . remove "nouveau" (
19
20
facterLib . stringSet ( facterLib . collectDrivers ( config . facter . report . hardware . graphics_card or [ ] ) )
20
21
) ;
22
+ defaultText = "hardware dependent" ;
21
23
description = ''
22
24
List of kernel modules to load at boot for the graphics card.
23
25
'' ;
Original file line number Diff line number Diff line change 8
8
options . facter . detected . boot . keyboard . kernelModules = lib . mkOption {
9
9
type = lib . types . listOf lib . types . str ;
10
10
default = facterLib . stringSet ( facterLib . collectDrivers ( report . hardware . usb_controller or [ ] ) ) ;
11
+ defaultText = "hardware dependent" ;
11
12
example = [ "usbhid" ] ;
12
13
description = ''
13
14
List of kernel modules to include in the initrd to support the keyboard.
Original file line number Diff line number Diff line change 8
8
9
9
options . facter . detected . dhcp . enable = lib . mkEnableOption "Facter dhcp module" // {
10
10
default = builtins . length config . facter . report . hardware . network_interface or [ ] > 0 ;
11
+ defaultText = "hardware dependent" ;
11
12
} ;
12
13
config = lib . mkIf config . facter . detected . dhcp . enable {
13
14
networking . useDHCP = lib . mkDefault true ;
Original file line number Diff line number Diff line change 10
10
default = facterLib . stringSet (
11
11
facterLib . collectDrivers ( report . hardware . network_controller or [ ] )
12
12
) ;
13
+ defaultText = "hardware dependent" ;
13
14
description = ''
14
15
List of kernel modules to include in the initrd to support networking.
15
16
'' ;
You can’t perform that action at this time.
0 commit comments