config-perso/users/root.nix

29 lines
547 B
Nix
Raw Normal View History

2024-03-28 10:44:37 +01:00
{ ssh }:
2024-05-14 19:21:19 +02:00
{
config,
lib,
pkgs,
mods,
...
}:
2024-03-13 11:11:16 +01:00
{
2024-03-28 10:44:37 +01:00
programs.zsh.enable = true;
2024-05-14 19:21:19 +02:00
users.users.root =
{
shell = pkgs.zsh;
}
// lib.attrsets.optionalAttrs ssh {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
];
};
2024-03-13 11:11:16 +01:00
home-manager.users.root = {
home.stateVersion = "23.11";
2024-05-14 19:21:19 +02:00
imports = with mods.home; [
neovim
zsh
];
2024-03-13 11:11:16 +01:00
};
}
2024-05-14 19:21:19 +02:00
// lib.attrsets.optionalAttrs ssh { services.openssh.enable = true; }