feat: separate common user setup

This commit is contained in:
oddlama 2022-12-15 01:36:03 +01:00
parent c81de3eff9
commit bad942c919
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 241 additions and 6 deletions

22
users/root/default.nix Normal file
View file

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
with lib; {
users.users.root = {
initialHashedPassword = "$6$EBo/CaxB.dQoq2W8$lo2b5vKgJlLPdGGhEqa08q3Irf1Zd1PcFBCwJOrG8lqjwbABkn1DEhrMh1P3ezwnww2HusUBuZGDSMa4nvSQg1";
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm"];
shell = pkgs.zsh;
};
home-manager.users.root = {
imports = [
../common
];
home.username = config.users.users.root.name;
home.uid = config.users.users.root.uid;
};
}