No description
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/bf0abfde48f469c256f2b0f481c6281ff04a5db2?narHash=sha256-rMEuiK69MDhjz1JgbaeQ9mBDXMJ2/P8vmOYRbFndXsk%3D' (2025-01-16)
→ 'github:nix-community/disko/18d0a984cc2bc82cf61df19523a34ad463aa7f54?narHash=sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML%2B3TKAo%3D' (2025-01-29)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/e7d1ad8950c9c4d3f17626b5a44965b26ca1a44a?narHash=sha256-AFirXjuOH227NzuDeVn%2BgLsTkSGjo0Ve2oPR1JA8fjU%3D' (2025-01-27)
→ 'github:nixos/nixpkgs/bff401190a036ff01401d57f3b1a30b311cfdec9?narHash=sha256-l3Tn6TREbT%2BSQNWhol5EIjrdt60MLTKRJobacesN/0w%3D' (2025-01-31)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/f104c8eca09a5affe9fa1de5d98d33affb31ade3?narHash=sha256-Nb4mQxo%2BYww06Z1v6QgZkAV/9tUPMUGBudvcRbzxfRw%3D' (2025-01-27)
→ 'github:NixOS/nixpkgs/2b5331b146af2487829bfba45d01cd6904f4cccd?narHash=sha256-k/tJ6wBMWjrdOaQ138AT6Wa/KLIeFOTn4SXZTnYqtm0%3D' (2025-01-31)
• Updated input 'nur':
'github:nix-community/NUR/be257bb480af81493b38f11c5ffde5a4c2594b73?narHash=sha256-f1YmugFJjPguW65Mn0jNmvS6NO6YWK0B092Pmx7ihWo%3D' (2025-01-27)
→ 'github:nix-community/NUR/df289edee9290b9adc0a8f3aa20c702f312f3658?narHash=sha256-meglyu9QhgFeTFp0AQdwYAyUvQ%2B4fRDgVH7PAS4jc7A%3D' (2025-01-31)
• Updated input 'nur/nixpkgs':
'github:nixos/nixpkgs/852ff1d9e153d8875a83602e03fdef8a63f0ecf8?narHash=sha256-Zf0hSrtzaM1DEz8//%2BXs51k/wdSajticVrATqDrfQjg%3D' (2025-01-26)
→ 'github:nixos/nixpkgs/9d3ae807ebd2981d593cddd0080856873139aa40?narHash=sha256-NGqpVVxNAHwIicXpgaVqJEJWeyqzoQJ9oc8lnK9%2BWC4%3D' (2025-01-29)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/015d461c16678fc02a2f405eb453abb509d4e1d4?narHash=sha256-j9IdflJwRtqo9WpM0OfAZml47eBblUHGNQTe62OUqTw%3D' (2025-01-20)
→ 'github:Mic92/sops-nix/4c1251904d8a08c86ac6bc0d72cc09975e89aef7?narHash=sha256-wkwYJc8cKmmQWUloyS9KwttBnja2ONRuJQDEsmef320%3D' (2025-01-31)
|
||
|---|---|---|
| .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'
Build a configuration
nix build .#nixosConfigurations.iron.config.system.build.toplevel
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