Variablize username more

This commit is contained in:
Jimbo 2025-01-03 17:52:33 -05:00
parent 33236aedc6
commit ea3a6db5af
39 changed files with 93 additions and 102 deletions

View file

@ -1,7 +1,7 @@
{ home-manager, ... }:
{
imports = [
./jimbo
./main
home-manager.nixosModules.home-manager
];
}

View file

@ -1,8 +1,7 @@
{ pkgs, config, ... }:
{
users.users.jimbo = {
description = "Jimbo";
hashedPassword = config.secrets.jimboAccPass;
users.users."${config.sysusers.main}" = {
hashedPassword = config.secrets.mainAccPass;
isNormalUser = true;
openssh.authorizedKeys.keys = [
(builtins.readFile ../../../../../../hosts/tower/id_ed25519.pub)
@ -34,5 +33,5 @@
shell = pkgs.zsh;
};
home-manager.users.jimbo = import ../../../../../home;
home-manager.users."${config.sysusers.main}" = import ../../../../../home;
}