almost there for multiple users????
This commit is contained in:
parent
f40207c455
commit
ce69116c39
8 changed files with 68 additions and 50 deletions
22
lib/_root.nix
Normal file
22
lib/_root.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
args@{ self, inputs, lib, pkgs, system ? "", config, options, ... }: let
|
||||
inherit (lib.my) mapModulesRec';
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# (import ../modules/home/shell/default.nix (args // { user = "root"; }))
|
||||
]
|
||||
++(mapModulesRec' ../modules/home (file: (import file (args // { user = "root"; }))));
|
||||
|
||||
config = {
|
||||
modules.root = {
|
||||
user = {
|
||||
full_name = "__ROOT__";
|
||||
email = "__ROOT__@${config.networking.hostName}";
|
||||
};
|
||||
|
||||
shell = {
|
||||
default = "zsh";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue