dotfiles/users/root/configuration.nix
RingOfStorms (Josh) 5fd3d3a40a more secrets
2024-05-07 01:02:42 -05:00

21 lines
438 B
Nix

{
config,
lib,
pkgs,
settings,
...
}@args:
{
users.users.root = {
initialPassword = "password1";
};
system.activationScripts.sshConfig = {
# TODO revisit this, this is stupid and ugly what am I doing here...
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
'';
};
}