1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
Stefan Ellmauthaler ca1bc86700
flake.lock: Update
Flake lock file updates:

• Updated input 'dwarffs':
    'github:edolstra/dwarffs/1f850df9c932acb95da2f31b576a8f6c7c188376' (2022-09-06)
  → 'github:edolstra/dwarffs/1ca3b9298931fc26a5e7d471d5ffee69b90f9ea1' (2023-08-22)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/ee309584c89d9603338c77cfa931944fbafac6b4' (2023-08-14)
  → 'github:nix-community/emacs-overlay/6ca342ac670b56ad15124314d71852276e892062' (2023-08-25)
• Updated input 'emacs-overlay/flake-utils':
    'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
  → 'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/3fe694c4156b84dac12627685c7ae592a71e2206' (2023-08-12)
  → 'github:NixOS/nixpkgs/fc944919f743bb22379dddf18dcb72db6cff84aa' (2023-08-23)
• Updated input 'home-manager':
    'github:nix-community/home-manager/7f351e2993ed170dd9b8521a9e41f4d91d9b9c5d' (2023-08-13)
  → 'github:nix-community/home-manager/2a6679aa9cc3872c29ba2a57fe1b71b3e3c5649f' (2023-08-15)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/430a56dd16fe583a812b2df44dca002acab2f4f6' (2023-08-12)
  → 'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/720e61ed8de116eec48d6baea1d54469b536b985' (2023-08-13)
  → 'github:NixOS/nixpkgs/fc944919f743bb22379dddf18dcb72db6cff84aa' (2023-08-23)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/100a1550b0e7a64b960c625b656f9229bdef5f87' (2023-08-13)
  → 'github:NixOS/nixpkgs/b85ed9dcbf187b909ef7964774f8847d554fab3b' (2023-08-22)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/32603de0dc988d60a7b80774dd7aed1083cd9629' (2023-08-13)
  → 'github:Mic92/sops-nix/1b7b3a32d65dbcd69c217d7735fdf0a6b2184f45' (2023-08-22)
• Updated input 'sops-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/efeed708ece1a9f4ae0506ae4a4d7da264a74102' (2023-08-12)
  → 'github:NixOS/nixpkgs/5e63e8bbc46bc4fc22254da1edaf42fc7549c18a' (2023-08-20)
2023-08-25 09:59:12 +02:00
2022-08-22 16:39:47 +02:00
2023-06-01 14:57:02 +02:00
2023-08-11 16:59:14 +02:00
2023-06-01 14:57:02 +02:00
2023-06-01 14:57:02 +02:00
2022-08-22 16:39:47 +02:00
2022-08-22 16:39:47 +02:00
2023-08-25 09:59:12 +02:00
2023-08-11 16:59:14 +02:00
2022-07-19 10:50:37 +02:00

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 /mnt in /mnt/etc/nixos
  • create machines/<machine-name>/default.nix and configure the machine
  • move hardware-configuration.nix to machines/<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-pgp
    • sudo 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.yaml file
  • 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 use sops <sops-file> as well as sops-rekey <sops-file> to manage the keys on the system
Description
No description provided
Readme 3.2 MiB
Languages
Nix 79.6%
Emacs Lisp 12.4%
Haskell 4.6%
CSS 3%
Shell 0.4%