Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NixOS configuration of all my computers / servers using flakes

License

Notifications You must be signed in to change notification settings

cterence/nixos-config

Repository files navigation

nixos-config

built with nix

NixOS configuration of all my computers / servers using flakes.

Currently managing configuration for 3 computers and 2 servers.

Structure is heavily inspired by Vimjoyer's videos.

I'm still new to the nix ecosystem, so you might see some slop, but it works for me.

Highlights

Reinstall tips

⚠️ Do not run nixos-rebuild switch --flake [...] before doing this, else nix-daemon will crash and you'll have to reboot to a previous generation!

  • On the new host
    • Generate a new age key:
      nix-shell -p age
      mkdir -p ~/.config/sops/age
      age-keygen -o ~/.config/sops/age/keys.txt
    • Update the modules/system/.sops.yaml file with the new key directly in GitHub
  • On an existing host
    • Run cd nixos/modules/system && sops updatekeys secrets.yaml
    • Commit & push
  • On the new host
    • Pull the repo

You may now use the flake to rebuild.

About

NixOS configuration of all my computers / servers using flakes

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages