No description
Flake lock file updates:
• Updated input 'nix-pre-commit-hooks':
'github:cachix/pre-commit-hooks.nix/e1d203c2fa7e2593c777e490213958ef81f71977' (2023-12-11)
→ 'github:cachix/pre-commit-hooks.nix/007a45d064c1c32d04e1b8a0de5ef00984c419bc' (2023-12-13)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/781e2a9797ecf0f146e81425c822dca69fe4a348' (2023-12-10)
→ 'github:nixos/nixpkgs/cf28ee258fd5f9a52de6b9865cdb93a1f96d09b7' (2023-12-12)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/d92daec27ee4662c8a4a10206d9bfc3d7e557f90' (2023-12-12)
→ 'github:NixOS/nixpkgs/45bfb4ce9d07be9a3504848b7729c8545e6c38bb' (2023-12-13)
• Updated input 'nur':
'github:nix-community/NUR/afac0dcdeb4bcfd484dee11afa7c9ab0b354d251' (2023-12-12)
→ 'github:nix-community/NUR/0ff0cfc638d7d75b6994d7620fc033ebd6639cd3' (2023-12-13)
|
||
|---|---|---|
| .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