forked from mirrors_public/oddlama_nix-config
feat: separate common user setup
This commit is contained in:
parent
c81de3eff9
commit
bad942c919
8 changed files with 241 additions and 6 deletions
22
users/root/default.nix
Normal file
22
users/root/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue