Switching is done with just one command. However, you have to copy over your current hardware configuration and make sure that nothing conflicts.
Tip: to avoid breakage, nixos-rebuild boot
is preferred for the first rebuild on this flake. Reboot, make sure everything works - and use nixos-rebuild switch
afterwards (unless not suitable for the change you made).
# UID 0 (root) must perform this action.
nixos-rebuild <boot/switch> --flake .#<hostname>
It's quite easy. Just go to the root directory of the Git repo and execute this command.
home-manager switch --flake .#<username>
I broke up my configuration into modules to make it more or less readable. You can easily enable/disable modules by commenting out imports.
{
imports = [
#./hardened.nix # <- Commented out module.
./sudo.nix
./doas.nix
];
}
Fork this repository and create a new branch. After committing your changes, go to GitHub/Gitea and open a new pull request. Thanks!