No description
Flake lock file updates:
• Updated input 'nix-pre-commit-hooks':
'github:cachix/pre-commit-hooks.nix/70f504012f0a132ac33e56988e1028d88a48855c' (2024-04-08)
→ 'github:cachix/pre-commit-hooks.nix/40e6053ecb65fcbf12863338a6dcefb3f55f1bf8' (2024-04-12)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/d272ca50d1f7424fbfcd1e6f1c9e01d92f6da167' (2024-04-08)
→ 'github:nixos/nixpkgs/e402c3eb6d88384ca6c52ef1c53e61bdc9b84ddd' (2024-04-17)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/949fe90552a65bb7c03d72dd03e3e1383c5f9122' (2024-04-10)
→ 'github:NixOS/nixpkgs/cc5b30542b0202032f2ad5792cfa3955446fdfdf' (2024-04-19)
• Updated input 'nur':
'github:nix-community/NUR/f8e01e52fb1c4007d66d178f0205a9eec9bf54f5' (2024-04-10)
→ 'github:nix-community/NUR/e16ee8a64f1ab6bfbd54f24985141a0bd1243c29' (2024-04-19)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/538c114cfdf1f0458f507087b1dcf018ce1c0c4c' (2024-04-08)
→ 'github:Mic92/sops-nix/a929a011a09db735abc45a8a45d1ff7fdee62755' (2024-04-19)
• Updated input 'sops-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/e38d7cb66ea4f7a0eb6681920615dfcc30fc2920' (2024-04-06)
→ 'github:NixOS/nixpkgs/8494ae076b7878d61a7d2d25e89a847fe8f8364c' (2024-04-18)
|
||
|---|---|---|
| .git-crypt | ||
| custom-utils | ||
| home-manager | ||
| hosts | ||
| modules | ||
| pkgs | ||
| .editorconfig | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| .sops.yaml | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| README.md | ||
home-manager
https://github.com/nix-community/home-manager
For a systematic overview of Home Manager and its available options, please see
- the Home Manager manual and
- the Home Manager configuration options.
Install a new host
This installs nixos on host somehost:
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