No description
Flake lock file updates:
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/0cf4274b5d06325bd16dbf879a30981bc283e58a' (2023-02-19)
→ 'github:nixos/nixpkgs/a3d745e701c337e65ef467d5a9400d9336a303a1' (2023-02-21)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/65a2ffba207a43c13ab8eff94986199bb90048f4' (2023-02-20)
→ 'github:NixOS/nixpkgs/a31c3d5e095427c1b99422028dd2d63db0669ed9' (2023-02-23)
• Updated input 'nur':
'github:nix-community/NUR/28e77afbd298625bdbf8df61461f947b4d7bd189' (2023-02-20)
→ 'github:nix-community/NUR/6f0cb9a86feecb84a8bd6ebe4690eaba4523255c' (2023-02-23)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/1da7257baa1d6801c45d9d3dedae7ce79c0e6498' (2023-02-19)
→ 'github:Mic92/sops-nix/2c5828439d718a6cddd9a511997d9ac7626a4aff' (2023-02-21)
|
||
|---|---|---|
| home-manager | ||
| hosts | ||
| modules | ||
| pkgs | ||
| .editorconfig | ||
| .envrc | ||
| .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