Desktop and laptop configurations.
nix-shell -p git openssh
.sudo ssh-keygen -t ed25519 -N '' -f /root/.ssh/id_ed25519 && sudo cat /root/.ssh/id_ed25519.pub
.sudo ssh-keygen -t ed25519 -N '' -f /etc/ssh/ssh_host_ed25519_key && sudo cat /etc/ssh/ssh_host_ed25519_key.pub
.agenix -r
to rekey.ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519 && cat ~/.ssh/id_ed25519.pub
.agenix -r
to rekey.git clone git@gitlab.com:marvinroman/nixos-configuration.git myNixOS && cd myNixOS
.sudo nixos-rebuild switch --flake ./#[baker|toaster]
.This is not necessary for regular updates you have to be in repository directory to run.
Update secrets input.
nix flake update mysecrets
Update all flake inputs.
nix flake update
This is automatically run every day so it's no necesary to run unless you want to run after updating lock file.
sudo nixos-rebuild switch --flake ./#[baker|toaster] --upgrade
Need to authorize any keys within the user account to be available for pam by running the following commands.
nix-shell -p yubico-pam
ykpamcfg -2