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

• Updated input 'comma':
    'github:nix-community/comma/87f7d49716271cb48fb46f939e9f272f202a3728' (2023-03-06)
  → 'github:nix-community/comma/ef97634016d17cc8cdea396ebcc002320494391a' (2023-04-05)
• Updated input 'comma/flake-compat':
    'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19)
  → 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
• Updated input 'comma/naersk':
    'github:nix-community/naersk/6944160c19cb591eb85bbf9b2f2768a935623ed3' (2022-09-03)
  → 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/6a2222bf037ac02d79f28c5455ec62adad699560' (2023-04-04)
  → 'github:nix-community/emacs-overlay/ed6438672d7f9fcb2b11df7c0a626c24cc5f93d4' (2023-04-10)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/a6aa8174fa61e55bd7e62d35464d3092aefe0421' (2023-03-29)
  → 'github:NixOS/nixos-hardware/3006d2860a6ed5e01b0c3e7ffb730e9b293116e2' (2023-04-07)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/799d153e4f316143a9db0eb869ecf44d8d4c0356' (2023-04-03)
  → 'github:NixOS/nixpkgs/48dcbaf7fa799509cbec85d55b8d62dcf1477d57' (2023-04-09)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/53dad94e874c9586e71decf82d972dfb640ef044' (2023-04-03)
  → 'github:NixOS/nixpkgs/fd531dee22c9a3d4336cc2da39e8dd905e8f3de4' (2023-04-09)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/b93eb910f768f9788737bfed596a598557e5625d' (2023-04-02)
  → 'github:Mic92/sops-nix/ddc6f124cb9be22d2ba066064c28bc19039a6bce' (2023-04-09)
• Updated input 'sops-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/c1e2efaca8d8a3db6a36f652765d6c6ba7bb8fae' (2023-04-01)
  → 'github:NixOS/nixpkgs/e45cc0138829ad86e7ff17a76acf2d05e781e30a' (2023-04-09)
2023-04-10 11:31:26 +02:00
2022-08-22 16:39:47 +02:00
2023-03-27 16:48:50 +02:00
2023-03-27 16:48:50 +02:00
2023-02-17 09:53:34 +01:00
2023-01-20 13:17:23 +01:00
2022-08-22 16:39:47 +02:00
2022-08-22 16:39:47 +02:00
2022-08-22 16:39:47 +02:00
2023-04-10 11:31:26 +02:00
2023-03-26 16:05:07 +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%