No description
Flake lock file updates:
• Updated input 'gomod2nix':
'github:nix-community/gomod2nix/f11423d1a082d83710275913f05b2a0b606f5aed?narHash=sha256-i3FpT1w4x1hNZSKj20Rt2qHQvp1xp3Dz9rCPeSIQp0s%3D' (2024-11-25)
→ 'github:nix-community/gomod2nix/514283ec89c39ad0079ff2f3b1437404e4cba608?narHash=sha256-tPsqU00FhgdFr0JiQUiBMgPVbl1jbPCY5gbFiJycL3I%3D' (2024-12-08)
• Updated input 'nix-pre-commit-hooks':
'github:cachix/git-hooks.nix/6f4e2a2112050951a314d2733a994fbab94864c6?narHash=sha256-SVQVsbafSM1dJ4fpgyBqLZ%2BLft%2BjcQuMtEL3lQWx2Sk%3D' (2024-12-04)
→ 'github:cachix/git-hooks.nix/d8c02f0ffef0ef39f6063731fc539d8c71eb463a?narHash=sha256-%2BXTFXYlFJBxohhMGLDpYdEnhUNdxN8dyTA8WAd%2Blh2A%3D' (2024-12-08)
• Updated input 'nixos-hardware':
'github:nixos/nixos-hardware/e563803af3526852b6b1d77107a81908c66a9fcf?narHash=sha256-IS3bxa4N1VMSh3/P6vhEAHQZecQ3oAlKCDvzCQSO5Is%3D' (2024-12-06)
→ 'github:nixos/nixos-hardware/cf737e2eba82b603f54f71b10cb8fd09d22ce3f5?narHash=sha256-%2BjjPup/ByS0LEVIrBbt7FnGugJgLeG9oc%2BivFASYn2U%3D' (2024-12-10)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/ba3fa71b0a4442712885529f01291a084cf3f504?narHash=sha256-YZ2/U5x/6i5HZ7deI1diw48H9NQ3a5EJXUk1li15%2BD4%3D' (2024-12-07)
→ 'github:nixos/nixpkgs/6d60fef390f5959497a1475633a367eff2531c6e?narHash=sha256-sh/6PyGBXVboXqHDCjnmRuJMlRfKRAEKiVDp/wq5md0%3D' (2024-12-11)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/347d7e1d88770c4fd41fb758ac486563137240c4?narHash=sha256-2r0KpVWBz3BvExWsbRVk%2BBt8vhm%2BDMm37nkRJFuiTiA%3D' (2024-12-07)
→ 'github:NixOS/nixpkgs/e09964d017754a834c6ea18691ab03fd79a8a5e9?narHash=sha256-92qbxStkOTkn2TcWZHJ6Q0EC3OYFZoy4BoKXgeGnYoM%3D' (2024-12-11)
• Updated input 'nur':
'github:nix-community/NUR/9e479b56f56dc09cc23d265c2957e3ed0f2fa7fe?narHash=sha256-YVvIoxhDCGYYDQhEj0%2BXtiTd4msUjjIXhE98AFenvDI%3D' (2024-12-07)
→ 'github:nix-community/NUR/d0b75000239c951baf13a810249da08f849d617f?narHash=sha256-mscKfmp9UIhqlkf/OBQqgYqe6e0SnXZCinRA59swOqI%3D' (2024-12-11)
• Updated input 'nur/nixpkgs':
'github:nixos/nixpkgs/55d15ad12a74eb7d4646254e13638ad0c4128776?narHash=sha256-M1%2BuCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo%3D' (2024-12-03)
→ 'github:nixos/nixpkgs/a73246e2eef4c6ed172979932bc80e1404ba2d56?narHash=sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU%3D' (2024-12-09)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/c6134b6fff6bda95a1ac872a2a9d5f32e3c37856?narHash=sha256-m6/qwJAJYcidGMEdLqjKzRIjapK4nUfMq7rDCTmZajc%3D' (2024-12-02)
→ 'github:Mic92/sops-nix/a80af8929781b5fe92ddb8ae52e9027fae780d2a?narHash=sha256-pm4cfEcPXripE36PYCl0A2Tu5ruwHEvTee%2BHzNk%2BSQE%3D' (2024-12-09)
|
||
|---|---|---|
| .git-crypt | ||
| custom-utils | ||
| hosts | ||
| modules | ||
| pkgs | ||
| users | ||
| .editorconfig | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| .sops.yaml | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| README.md | ||
jalr's NixOS Configuration
Install a new host
This installs nixos on host somehost:
NixOS Anywhere
nix run github:nix-community/nixos-anywhere -- --flake .#<somehost> root@<somehost>
The traditional way
nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy'
setting up sops
Get the host key and convert it.
ssh-keyscan -t ed25519 $host | ssh-to-age
Then add the key to .sops.yaml
If the key changed, you might want to run
sops updatekeys hosts/$host/secrets.yaml
nix repl
start an interactive environment for evaluating Nix expressions
$ nix repl
nix-repl> a=builtins.getFlake (toString ./.)
$ nix repl
nix-repl> :lf .#
Import GPG public key
gpg --card-edit
gpg/card> fetch
gpg --edit-key $key
gpg> trust
Your decision? 5
Debugging boot issues
- Add
rd.systemd.debug_shellkernel parameter - Press CTRL+ALT+F9 to switch to root shell