mirror of
https://github.com/tboerger/nixos-config
synced 2026-12-01 01:15:09 +01:00
36 lines
661 B
Nix
36 lines
661 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
users = {
|
|
defaultUserShell = pkgs.zsh;
|
|
mutableUsers = false;
|
|
|
|
users = {
|
|
root = {
|
|
shell = pkgs.zsh;
|
|
hashedPasswordFile = config.age.secrets."users/root/password".path;
|
|
openssh = {
|
|
authorizedKeys = {
|
|
keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINaQYR0/Oj6k1H03kshz2J7rlGCaDSuaGPhhOs9FcZfn Thomas Boerger"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
age.secrets."users/root/password" = {
|
|
file = ../../secrets/users/root/password.age;
|
|
};
|
|
};
|
|
}
|