No description
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/6761b8188b860f374b457eddfdb05c82eef9752f' (2023-12-10)
→ 'github:nix-community/home-manager/aa99c2f4e9847cbb7e46fac0844ea1eb164b3b3a' (2023-12-15)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/45bfb4ce9d07be9a3504848b7729c8545e6c38bb' (2023-12-13)
→ 'github:NixOS/nixpkgs/b77e9f0eccfd52600c5f815615e30cb29815972c' (2023-12-17)
• Updated input 'nur':
'github:nix-community/NUR/0ff0cfc638d7d75b6994d7620fc033ebd6639cd3' (2023-12-13)
→ 'github:nix-community/NUR/47e505f4e877fb5d469764f8e0d48f1bfcdfde55' (2023-12-17)
• Updated input 'poetry2nix':
'github:nix-community/poetry2nix/c12ac880114d52a3cad5fa02b00f2e2090e89982' (2023-12-12)
→ 'github:nix-community/poetry2nix/9d9d434528404a22fb0c8283fea1ea3a7410ff80' (2023-12-14)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/d806e546f96c88cd9f7d91c1c19ebc99ba6277d9' (2023-12-10)
→ 'github:Mic92/sops-nix/21f2b8f123a1601fef3cf6bbbdf5171257290a77' (2023-12-17)
• Updated input 'sops-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/b8f33c044e51de6dde3ad80a9676945e0e4e3227' (2023-12-09)
→ 'github:NixOS/nixpkgs/a19a71d1ee93226fd71984359552affbc1cd3dc3' (2023-12-17)
|
||
|---|---|---|
| .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