config-perso/users/root.nix

16 lines
461 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-03-13 11:11:16 +01:00
users.users.root.shell = pkgs.zsh;
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 {
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
];
services.openssh.enable = true;
2024-03-13 11:11:16 +01:00
}