No description
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/3876cc613ac3983078964ffb5a0c01d00028139e' (2023-05-31)
→ 'github:nix-community/home-manager/0144ac418ef633bfc9dbd89b8c199ad3a617c59f' (2023-06-10)
• Updated input 'nix-pre-commit-hooks':
'github:cachix/pre-commit-hooks.nix/ca2fdbf3edda2a38140184da6381d49f8206eaf4' (2023-05-29)
→ 'github:cachix/pre-commit-hooks.nix/182af51202998af5b64ddecaa7ff9be06425399b' (2023-06-08)
• Updated input 'nix-pre-commit-hooks/nixpkgs':
'github:NixOS/nixpkgs/fe2ecaf706a5907b5e54d979fbde4924d84b65fc' (2023-04-12)
→ 'github:NixOS/nixpkgs/a53a3bec10deef6e1cc1caba5bc60f53b959b1e8' (2023-06-04)
• Updated input 'nix-pre-commit-hooks/nixpkgs-stable':
'github:NixOS/nixpkgs/9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8' (2023-03-15)
→ 'github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373' (2023-06-03)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/3a70dd92993182f8e514700ccf5b1ae9fc8a3b8d' (2023-05-31)
→ 'github:nixos/nixpkgs/85bcb95aa83be667e562e781e9d186c57a07d757' (2023-06-09)
• Updated input 'nixpkgsMaster':
'github:NixOS/nixpkgs/50f1969bfa42113715adf0f7b9b42a6d8f534c84' (2023-06-01)
→ 'github:NixOS/nixpkgs/dbab573bf0ecebe2e835a0dbf56989936794345d' (2023-06-11)
• Updated input 'nur':
'github:nix-community/NUR/3c58e841ac19ae929e68c5ae11c6b2c92996a618' (2023-06-01)
→ 'github:nix-community/NUR/312e17aac9f113c744ce745f8e2e33664b3d45d9' (2023-06-11)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/876846cde9762ae563f018c17993354875e2538e' (2023-05-30)
→ 'github:Mic92/sops-nix/cb85e297937af1bd1434cf5f85a3f86a21dc8207' (2023-06-11)
• Updated input 'sops-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/ba6e4ddeb3e8ad3f3e3bec63dafbc9fe558729bb' (2023-05-27)
→ 'github:NixOS/nixpkgs/ef24b2fa0c5f290a35064b847bc211f25cb85c88' (2023-06-10)
|
||
|---|---|---|
| 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