File tree Expand file tree Collapse file tree 3 files changed +14
-26
lines changed Expand file tree Collapse file tree 3 files changed +14
-26
lines changed Original file line number Diff line number Diff line change 147
147
users = digga . lib . rakeLeaves ./users ;
148
148
} ;
149
149
suites = with profiles ; rec {
150
- base = [ core . darwin users . darwin ] ;
150
+ base = [ core . darwin users . admin ] ;
151
151
} ;
152
152
} ;
153
153
} ;
162
162
} ;
163
163
} ;
164
164
users = {
165
- # TODO: does this naming convention still make sense with darwin support?
166
- #
167
- # - it doesn't make sense to make a 'nixos' user available on
168
- # darwin, and vice versa
169
- #
170
- # - the 'nixos' user might have special significance as the default
171
- # user for fresh systems
172
- #
173
- # - perhaps a system-agnostic home-manager user is more appropriate?
174
- # something like 'primaryuser'?
175
- #
176
- # all that said, these only exist within the `hmUsers` attrset, so
177
- # it could just be left to the developer to determine what's
178
- # appropriate. after all, configuring these hm users is one of the
179
- # first steps in customizing the template.
180
165
nixos = { suites , ... } : { imports = suites . base ; } ;
181
- darwin = { suites , ... } : { imports = suites . base ; } ;
182
- } ; # digga.lib.importers.rakeLeaves ./users/hm;
166
+ primary = { suites , ... } : { imports = suites . base ; } ;
167
+ } ;
183
168
} ;
184
169
185
170
devshell = ./shell ;
Original file line number Diff line number Diff line change
1
+ { hmUsers , ... } :
2
+ {
3
+ # The user profile names defined in `self.home.users` don't need to correspond
4
+ # directly to system usernames. They can, instead, be imported as a module in
5
+ # any `home-manager.users` configuration, allowing for more flexibility.
6
+ home-manager . users . admin = { ...} : { imports = [ hmUsers . primary ] ; } ;
7
+
8
+ users . users . admin = {
9
+ description = "default" ;
10
+ } ;
11
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments