config-perso/users/root.nix

19 lines
503 B
Nix
Raw Normal View History

2024-03-28 10:44:37 +01:00
{ ssh }:
2024-03-13 11:11:16 +01:00
{ config, lib, pkgs, mods, ... }:
{
2024-03-28 10:44:37 +01:00
programs.zsh.enable = true;
2024-04-03 11:13:50 +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-03-17 11:31:42 +01:00
imports = with mods.home; [ neovim zsh ];
2024-03-13 11:11:16 +01:00
};
2024-03-28 10:44:37 +01:00
} // lib.attrsets.optionalAttrs ssh {
services.openssh.enable = true;
2024-03-13 11:11:16 +01:00
}