universe/users/root/default.nix

20 lines
481 B
Nix

{ lib, config, self, ... }: {
users.users.root = {
passwordFile = lib.mkIf config.modules.secrets.enable config.secrets.root-password;
openssh.authorizedKeys.keys = import ./ssh-keys.nix;
};
home-manager.users.root = { suites, profiles, ... }: {
imports = lib.lists.flatten [
(with suites; [
base
])
];
programs.ssh.matchBlocks = {
"server.doge-inc.net" = {
identityFile = "/root/.ssh/id_25519";
};
};
};
}