My configuration. Probably nothing to look for here.
Motiejus Jakštys
b0276b9d4f
Flake lock file updates: • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/a8dd1b21995964b115b1e3ec639dd6ce24ab9806' (2024-10-12) → 'github:NixOS/nixos-hardware/38279034170b1e2929b2be33bdaedbf14a57bfeb' (2024-10-19) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/dc2e0028d274394f73653c7c90cc63edbb696be1' (2024-10-16) → 'github:NixOS/nixpkgs/4eb33fe664af7b41a4c446f87d20c9a0a6321fa3' (2024-10-17) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7' (2024-10-09) → 'github:NixOS/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0' (2024-10-18) • Updated input 'nur': 'github:nix-community/NUR/a17eb2fba1c65b9508a494375953f62ff9dd6ee1' (2024-10-18) → 'github:nix-community/NUR/b62f662188131b632f86dfcfcbd8ec718d2eac93' (2024-10-19) |
||
---|---|---|
hosts | ||
modules | ||
pkgs | ||
secrets | ||
shared | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
data.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
secrets.nix |
Config
Flakes:
$ deploy --interactive '#fwminex'
$ nix build .#deploy.nodes.fra1-b.profiles.system.path
Other:
$ nix build .#nixosConfigurations.vno3-rp3b.config.system.build.toplevel
$ nix eval .#nixosConfigurations.fwminex.config.services.nsd
Encoding host-only secrets
Encode a secret on host:
rage -e -r "$(cat /etc/ssh/ssh_host_ed25519_key.pub)" -o secret.age /path/to/plaintext
Decode a secret on host (to test things out):
rage -d -i /etc/ssh/ssh_host_ed25519_key secret.age
Borg
BORG_PASSCOMMAND="cat /run/agenix/borgbackup-fwminex" borg --remote-path=borg1 list zh2769@zh2769.rsync.net:fwminex.servers.jakst-home-motiejus-annex2