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/75c9adac36eee0d6ed7217b61fc5d8e259a91de0' (2022-06-11)
→ 'github:nix-community/comma/af2f2904f165f7bb56f0baca7135e75923c2bc1a' (2022-06-24)
• Updated input 'dwarffs':
'github:edolstra/dwarffs/e768ce3239156de05f7ff3210d86a80762730f30' (2022-03-06)
→ 'github:edolstra/dwarffs/b439f87e614ad4664e57eea29afac337c9a4839f' (2022-06-25)
• Updated input 'dwarffs/nix':
'github:NixOS/nix/b09baf690bb00125805a02e0feae9636b2114599' (2022-03-03)
→ 'github:NixOS/nix/586fa707fca207dbd12e49800691390249bdcd03' (2022-06-24)
• Updated input 'dwarffs/nix/nixpkgs':
'github:NixOS/nixpkgs/82891b5e2c2359d7e58d08849e4c89511ab94234' (2021-09-28)
→ 'github:NixOS/nixpkgs/2fa57ed190fd6c7c746319444f34b5917666e5c1' (2022-05-31)
• Updated input 'emacs-overlay':
'github:nix-community/emacs-overlay/fe861d4aa31ca8f503209f88ece1b5b7584b8f65' (2022-06-23)
→ 'github:nix-community/emacs-overlay/79d813d9d4ebbd8ab34c1f755439cab4aedb2ddb' (2022-06-28)
• Updated input 'emacs-overlay/flake-utils':
'github:numtide/flake-utils/1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1' (2022-05-30)
→ 'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
• Updated input 'home-manager':
'github:nix-community/home-manager/ac2287df5a2d6f0a44bbcbd11701dbbf6ec43675' (2022-06-01)
→ 'github:nix-community/home-manager/4a3d01fb53f52ac83194081272795aa4612c2381' (2022-06-25)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/f9d8dff4e621f2d7f2b84d9e84bc6359715f971c' (2022-06-21)
→ 'github:NixOS/nixos-hardware/78e7c2c397b0376526e83162b58de921362e3399' (2022-06-27)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/21321a6381fd8d3660fe1cdc0485fbb5978112ce' (2022-06-22)
→ 'github:NixOS/nixpkgs/cd90e773eae83ba7733d2377b6cdf84d45558780' (2022-06-26)
• Updated input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/e1e08fe28bf0588a41cd556eac40b98d2793da99' (2022-06-22)
→ 'github:NixOS/nixpkgs/f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5' (2022-06-26)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/2a8d731e401889bd3e03b40da50f7314dee4a4da' (2022-06-20)
→ 'github:Mic92/sops-nix/d26947f2d6252e2aae5ffddfe9b38b7c4b94e8f9' (2022-06-28)
• Updated input 'sops-nix/nixpkgs-21_11':
'github:NixOS/nixpkgs/27dffce7eaa9648b4a13a461e786f169a17c0889' (2022-06-18)
→ 'github:NixOS/nixpkgs/46af3303651699dc58cfc251d9b18c0f59d857da' (2022-06-25)
• Updated input 'sops-nix/nixpkgs-22_05':
'github:NixOS/nixpkgs/57622cb817210146b379adbbd036d3da0d1f367c' (2022-06-18)
→ 'github:NixOS/nixpkgs/72a1f167077060a1a7b6e0104863245d0483fa7f' (2022-06-25)
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%