2023-01-03 13:32:15 +02:00
|
|
|
Config
|
|
|
|
------
|
|
|
|
|
2023-07-23 14:27:29 +03:00
|
|
|
Flakes:
|
2023-01-03 13:35:57 +02:00
|
|
|
|
2024-08-03 16:55:08 +03:00
|
|
|
$ deploy --interactive '#fwminex'
|
2023-04-05 09:15:02 +03:00
|
|
|
|
2024-07-31 09:06:53 +03:00
|
|
|
$ nix build .#deploy.nodes.fra1-b.profiles.system.path
|
2023-04-05 09:15:02 +03:00
|
|
|
|
2023-08-15 16:25:36 +03:00
|
|
|
Other:
|
2023-04-14 14:12:45 +03:00
|
|
|
|
2023-09-14 13:27:05 +03:00
|
|
|
$ nix build .#nixosConfigurations.vno3-rp3b.config.system.build.toplevel
|
2024-08-03 16:55:08 +03:00
|
|
|
$ nix eval .#nixosConfigurations.fwminex.config.services.nsd
|
2023-08-22 14:23:18 +03:00
|
|
|
|
2023-04-14 14:12:45 +03:00
|
|
|
Encoding host-only secrets
|
|
|
|
--------------------------
|
2023-04-16 06:54:29 +03:00
|
|
|
|
|
|
|
Encode a secret on host:
|
|
|
|
|
2023-04-14 14:12:45 +03:00
|
|
|
rage -e -r "$(cat /etc/ssh/ssh_host_ed25519_key.pub)" -o secret.age /path/to/plaintext
|
2023-04-16 06:54:29 +03:00
|
|
|
|
|
|
|
Decode a secret on host (to test things out):
|
|
|
|
|
2023-04-14 14:12:45 +03:00
|
|
|
rage -d -i /etc/ssh/ssh_host_ed25519_key secret.age
|
2024-08-27 09:00:57 +03:00
|
|
|
|
|
|
|
Borg
|
|
|
|
----
|
|
|
|
|
|
|
|
BORG_PASSCOMMAND="cat /run/agenix/borgbackup-fwminex" borg --remote-path=borg1 list zh2769@zh2769.rsync.net:fwminex.servers.jakst-home-motiejus-annex2
|