mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Flake lock file updates:
• Updated input 'comma':
'github:nix-community/comma/af2f2904f165f7bb56f0baca7135e75923c2bc1a' (2022-06-24)
→ 'github:nix-community/comma/f5732a6e8871348bafa3139a2f0d9bb7bc34c076' (2022-07-05)
• Updated input 'emacs-overlay':
'github:nix-community/emacs-overlay/8772891c73e2809df5e5469d14535ea77e123d3e' (2022-06-28)
→ 'github:nix-community/emacs-overlay/a2f9d8baec7afbbb35f4f4c5e7bb4f6f24d8ea1b' (2022-07-15)
• Updated input 'emacs-overlay/flake-utils':
'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
→ 'github:numtide/flake-utils/7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249' (2022-07-04)
• Updated input 'flake-utils-plus':
'github:gytis-ivaskevicius/flake-utils-plus/f8d6d1f87b6177e3bc674c29f247bdbf897ba274' (2022-05-16)
→ 'github:gytis-ivaskevicius/flake-utils-plus/2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a' (2022-07-07)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/78e7c2c397b0376526e83162b58de921362e3399' (2022-06-27)
→ 'github:NixOS/nixos-hardware/76c9664813ed7082115ac7efb8a1619a804a631f' (2022-07-14)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/be6da3774db3746e6ae94bf412dd3707e35b2800' (2022-06-29)
→ 'github:NixOS/nixpkgs/365e1b3a859281cf11b94f87231adeabbdd878a2' (2022-07-13)
• Updated input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/cf3ab54b4afe2b7477faa1dd0b65bf74c055d70c' (2022-06-29)
→ 'github:NixOS/nixpkgs/4a01ca36d6bfc133bc617e661916a81327c9bbc8' (2022-07-14)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/d26947f2d6252e2aae5ffddfe9b38b7c4b94e8f9' (2022-06-28)
→ 'github:Mic92/sops-nix/912514e60a6e0227d6a2e0ecc8524752337fcde2' (2022-07-13)
• Removed input 'sops-nix/nixpkgs-21_11'
• Updated input 'sops-nix/nixpkgs-22_05':
'github:NixOS/nixpkgs/72a1f167077060a1a7b6e0104863245d0483fa7f' (2022-06-25)
→ 'github:NixOS/nixpkgs/0ad6eae04953060dff8ba28af158799c3e13878d' (2022-07-09)
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%