mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Flake lock file updates:
• Updated input 'emacs-overlay':
'github:nix-community/emacs-overlay/a2f9d8baec7afbbb35f4f4c5e7bb4f6f24d8ea1b' (2022-07-15)
→ 'github:nix-community/emacs-overlay/e575199132c3c975f718ada1b0b8a744b0fb5186' (2022-07-18)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/365e1b3a859281cf11b94f87231adeabbdd878a2' (2022-07-13)
→ 'github:NixOS/nixpkgs/c06d5fa9c605d143b15cafdbbb61c7c95388d76e' (2022-07-14)
• Updated input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/4a01ca36d6bfc133bc617e661916a81327c9bbc8' (2022-07-14)
→ 'github:NixOS/nixpkgs/8f485713f5e6b6883a9b6959afa98688360a3ecb' (2022-07-16)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/912514e60a6e0227d6a2e0ecc8524752337fcde2' (2022-07-13)
→ 'github:Mic92/sops-nix/7526ce07b897ad1f1016680de5121f646e28a893' (2022-07-17)
• Updated input 'sops-nix/nixpkgs-22_05':
'github:NixOS/nixpkgs/0ad6eae04953060dff8ba28af158799c3e13878d' (2022-07-09)
→ 'github:NixOS/nixpkgs/4e329926df7ee5fa49929a83d31ee7d541f8b45c' (2022-07-17)
Nix-configuration
Deploy on a new machine
- setup the filesystem as you see fit
- check out repository to
/mnt/etc/nixos - run
nixos-generate-config --root /mntin/mnt/etc/nixos - create
machines/<machine-name>/default.nixand configure the machine - move
hardware-configuration.nixtomachines/<machine-name>/hardware-configuration.nix - stage the machine-folder
- run
nix-install --no-root-passwd --flake .#hostname --option experimental-features "nix-command flakes"
nix-sops
- generate on your (sshd-enabled) machine a pgp key:
nix shell nixpkgs#ssh-to-pgpsudo ssh-to-pgp -i /etc/ssh/ssh_host_rsa_key > /etc/nixos/secrets/keys/hosts/<hostname>.asc
- add the fingerprint of the new key to the
/etc/nixos/.sops.yamlfile - Rekey the secrets with either
- a master key
- or after a git push on another machine with enough permissions to rekey
- the flakes dev-shell (
nix devshell) allows to usesops <sops-file>as well assops-rekey <sops-file>to manage the keys on the system
Description
Languages
Nix
79.6%
Emacs Lisp
12.4%
Haskell
4.6%
CSS
3%
Shell
0.4%