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