dotfiles/users/root/configuration.nix
2024-03-12 03:43:06 -05:00

15 lines
358 B
Nix

{ config, lib, pkgs, settings, ... } @ args:
{
users.users.root = {
initialPassword = "password1";
};
system.activationScripts.sshConfig = {
text = ''
mkdir -p /root/.ssh
ln -snf ${config.age.secrets.nix2github.path} /root/.ssh/nix2github
ln -snf /home/${settings.user.username}/.ssh/config /root/.ssh/config
'';
};
}