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/6ca342ac670b56ad15124314d71852276e892062' (2023-08-25)
→ 'github:nix-community/emacs-overlay/7c239d6ec798caba895588ee98e42d6a3df318e0' (2023-08-28)
• Updated input 'emacs-overlay/nixpkgs-stable':
'github:NixOS/nixpkgs/fc944919f743bb22379dddf18dcb72db6cff84aa' (2023-08-23)
→ 'github:NixOS/nixpkgs/f155f0cf4ea43c4e3c8918d2d327d44777b6cad4' (2023-08-26)
• Updated input 'home-manager':
'github:nix-community/home-manager/2a6679aa9cc3872c29ba2a57fe1b71b3e3c5649f' (2023-08-15)
→ 'github:nix-community/home-manager/5bac4a1c06cd77cf8fc35a658ccb035a6c50cd2c' (2023-08-28)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18)
→ 'github:NixOS/nixos-hardware/817e297fc3352fadc15f2c5306909aa9192d7d97' (2023-08-25)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/fc944919f743bb22379dddf18dcb72db6cff84aa' (2023-08-23)
→ 'github:NixOS/nixpkgs/ea5234e7073d5f44728c499192544a84244bf35a' (2023-08-28)
• Updated input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/b85ed9dcbf187b909ef7964774f8847d554fab3b' (2023-08-22)
→ 'github:NixOS/nixpkgs/cf2004afe4d4b95a295c63c911e949e40915eedb' (2023-08-27)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/1b7b3a32d65dbcd69c217d7735fdf0a6b2184f45' (2023-08-22)
→ 'github:Mic92/sops-nix/0618c8f0ed5255ad74ee08d1618841ff5af85c86' (2023-08-27)
• Updated input 'sops-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/5e63e8bbc46bc4fc22254da1edaf42fc7549c18a' (2023-08-20)
→ 'github:NixOS/nixpkgs/9117c4e9dc117a6cd0319cca40f2349ed333669d' (2023-08-27)
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 develop) 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%