No description
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/58eb968c21d309a6c2b020ea8d64e25c38ceebba' (2023-05-23)
→ 'github:nix-community/home-manager/bec196cd9b5f34213c7dc90ef2a524336df70e30' (2023-05-26)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/04aaf8511678a0d0f347fdf1e8072fe01e4a509e' (2023-05-24)
→ 'github:nixos/nixpkgs/3e01645c40b92d29f3ae76344a6d654986a91a91' (2023-05-25)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/f6fa8730fc85c675406af7eeba02cd854fe72bd2' (2023-05-25)
→ 'github:NixOS/nixpkgs/757a0d107c238d031652a8c09d1f6bf1b6f523a3' (2023-05-26)
• Updated input 'nur':
'github:nix-community/NUR/c4e46e935ba827acf70979c5e02a8431cf14cc5a' (2023-05-24)
→ 'github:nix-community/NUR/6c3d248aeb6e6763ab897d98c1e17de950ea2ad5' (2023-05-26)
|
||
|---|---|---|
| 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