File tree Expand file tree Collapse file tree 6 files changed +27
-19
lines changed Expand file tree Collapse file tree 6 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pkgs.mkShellNoCC {
67
67
68
68
facterMarkdown = mkMarkdown "facter" eval . options . facter . detected ;
69
69
otherMarkdown = lib . mapAttrsToList mkMarkdown (
70
- lib . filterAttrs ( n : v : n != "detected" ) eval . options . facter
70
+ lib . filterAttrs ( n : _v : n != "detected" ) eval . options . facter
71
71
) ;
72
72
73
73
optionsMarkdown = pkgs . symlinkJoin {
Original file line number Diff line number Diff line change 1
1
{ lib , config , ... } :
2
2
{
3
- options . facter . detected . bluetooth . enable = lib . mkEnableOption "Enable the Facter bluetooth module" // {
4
- default = builtins . length ( config . facter . report . hardware . bluetooth or [ ] ) > 0 ;
5
- } ;
3
+ options . facter . detected . bluetooth . enable =
4
+ lib . mkEnableOption "Enable the Facter bluetooth module"
5
+ // {
6
+ default = builtins . length ( config . facter . report . hardware . bluetooth or [ ] ) > 0 ;
7
+ } ;
6
8
7
- config . hardware . bluetooth . enable = lib . mkIf config . facter . detected . bluetooth . enable ( lib . mkDefault true ) ;
9
+ config . hardware . bluetooth . enable = lib . mkIf config . facter . detected . bluetooth . enable (
10
+ lib . mkDefault true
11
+ ) ;
8
12
}
Original file line number Diff line number Diff line change 8
8
options . facter . detected . boot . disk . kernelModules = lib . mkOption {
9
9
type = lib . types . listOf lib . types . str ;
10
10
default = facterLib . stringSet (
11
- facterLib . collectDrivers (
12
- # A disk might be attached.
13
- ( report . hardware . firewire_controller or [ ] )
14
- # definitely important
15
- ++ ( report . hardware . disk or [ ] )
16
- ++ ( report . hardware . storage_controller or [ ] )
17
- )
18
- ) ;
11
+ facterLib . collectDrivers (
12
+ # A disk might be attached.
13
+ ( report . hardware . firewire_controller or [ ] )
14
+ # definitely important
15
+ ++ ( report . hardware . disk or [ ] )
16
+ ++ ( report . hardware . storage_controller or [ ] )
17
+ )
18
+ ) ;
19
19
description = ''
20
20
List of kernel modules that are needed to access the disk.
21
21
'' ;
Original file line number Diff line number Diff line change 18
18
options . facter = with lib ; {
19
19
report = mkOption {
20
20
type = types . raw ;
21
- default = if config . facter . reportPath == null then { } else builtins . fromJSON ( builtins . readFile config . facter . reportPath ) ;
21
+ default =
22
+ if config . facter . reportPath == null then
23
+ { }
24
+ else
25
+ builtins . fromJSON ( builtins . readFile config . facter . reportPath ) ;
22
26
description = "An import for the reportPath." ;
23
27
} ;
24
28
Original file line number Diff line number Diff line change 6
6
} :
7
7
{
8
8
nixpkgs = lib . mkIf ( ! options . nixpkgs . pkgs . isDefined ) {
9
- hostPlatform = lib . mkIf ( config . facter . report . system or null != null ) ( lib . mkDefault config . facter . report . system ) ;
9
+ hostPlatform = lib . mkIf ( config . facter . report . system or null != null ) (
10
+ lib . mkDefault config . facter . report . system
11
+ ) ;
10
12
} ;
11
13
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
- "extends" : [
4
- " config:recommended"
5
- ]
2
+ "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
+ "extends" : [" config:recommended" ]
6
4
}
You can’t perform that action at this time.
0 commit comments