nhms works again
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs, lib, ... }:
|
||||
{ inputs, ... }:
|
||||
let
|
||||
username = "john";
|
||||
in
|
||||
@@ -17,35 +17,30 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
modules = lib.recursiveUpdate
|
||||
(inputs.self.factory.user username true)
|
||||
{
|
||||
#
|
||||
# NixOS
|
||||
#
|
||||
nixos."${username}" = {
|
||||
users.users."${username}" = {
|
||||
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||
extraGroups = [ "docker" ];
|
||||
};
|
||||
};
|
||||
|
||||
#
|
||||
# Home Manager
|
||||
#
|
||||
homeManager."${username}" = with inputs.self.meta.users."${username}"; {
|
||||
home.stateVersion = "25.11";
|
||||
xdg.enable = true;
|
||||
|
||||
programs.git.settings.user.name = name;
|
||||
programs.git.settings.user.email = email;
|
||||
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
ssh
|
||||
shell-tools
|
||||
git
|
||||
];
|
||||
modules = {
|
||||
nixos."${username}" = {
|
||||
imports = [
|
||||
(inputs.self.factory.user username true).nixos."${username}"
|
||||
];
|
||||
users.users."${username}" = {
|
||||
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||
extraGroups = [ "docker" ];
|
||||
};
|
||||
};
|
||||
|
||||
homeManager."${username}" = with inputs.self.meta.users."${username}"; {
|
||||
home.stateVersion = "25.11";
|
||||
xdg.enable = true;
|
||||
|
||||
programs.git.settings.user.name = name;
|
||||
programs.git.settings.user.email = email;
|
||||
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
ssh
|
||||
shell-tools
|
||||
git
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user