File tree 2 files changed +22
-20
lines changed
2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 69
69
specialArgs = config . nixos . importables // { inherit ( config ) self inputs ; } ;
70
70
71
71
modules = config . nixos . hostDefaults . exportedModules ++ defaultHostModules ++ [
72
- ( { config , pkgs , self , ... } : {
73
- users . mutableUsers = lib . mkDefault false ;
74
- hardware . enableRedistributableFirmware = lib . mkDefault true ;
75
- system . configurationRevision = lib . mkIf ( self ? rev ) self . rev ;
76
- } )
72
+ internal-modules . nixosDefaults
77
73
] ;
78
74
}
79
75
( stripNull config . nixos . hostDefaults ) ;
Original file line number Diff line number Diff line change 29
29
lib . mkDefault builds ;
30
30
} ;
31
31
32
- hmNixosDefaults = { specialArgs , modules } :
33
- { options , ... } : {
34
- config = lib . optionalAttrs ( options ? home-manager ) {
35
- home-manager = {
36
- # always use the system nixpkgs from the host's channel
37
- useGlobalPkgs = true ;
38
- # and use the possible future default (see manual)
39
- useUserPackages = lib . mkDefault true ;
40
-
41
- extraSpecialArgs = specialArgs ;
42
- sharedModules = modules ;
43
- } ;
44
- } ;
45
- } ;
46
-
47
32
globalDefaults = { hmUsers } :
48
33
{ config , pkgs , self , ... } : {
49
34
# digga lib can be accessed in modules directly as config.lib.digga
59
44
'' ;
60
45
} ;
61
46
} ;
47
+
48
+ nixosDefaults = { self , ... } : {
49
+ users . mutableUsers = lib . mkDefault false ;
50
+ hardware . enableRedistributableFirmware = lib . mkDefault true ;
51
+ system . configurationRevision = lib . mkIf ( self ? rev ) self . rev ;
52
+ } ;
53
+
54
+ hmNixosDefaults = { specialArgs , modules } :
55
+ { options , ... } : {
56
+ config = lib . optionalAttrs ( options ? home-manager ) {
57
+ home-manager = {
58
+ # always use the system nixpkgs from the host's channel
59
+ useGlobalPkgs = true ;
60
+ # and use the possible future default (see manual)
61
+ useUserPackages = lib . mkDefault true ;
62
+
63
+ extraSpecialArgs = specialArgs ;
64
+ sharedModules = modules ;
65
+ } ;
66
+ } ;
67
+ } ;
62
68
}
You can’t perform that action at this time.
0 commit comments