Skip to content

Commit

Permalink
feat(cache): change domain
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Dec 21, 2023
1 parent f5e082c commit 07a1747
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@

Personal collection of NixOS machines.

## Deploying

### Cache

```bash
nixos-rebuild switch --flake .#cache-vultr --target-host "[email protected]"
```
15 changes: 8 additions & 7 deletions secrets/cache.age
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 560D6A UKOA/TvKHFxldtH6gldodJ2IFKnWWcl9+kR9h8mSuhw
nRs7n8HYIW+KTHOPXIEmdM6oFlU98q4GFittSwz6e+I
-> <-grease `X
/1YjaM0zK1N2Scx6lE+DPDiwRA
--- seWSpt2EiH2YEslI4s3W3m7NcJnUByY/dg25gsFe3eM
FZCg��T����s�x^�g�)�kgܑ��h6�{�V"�.����zS�H�|��~��*tX%
NpJ�M��k�~?�X�S�ս�*3}m���>��QC�� �I�;�1M��K@���si�C27��gՀ�
-> ssh-ed25519 560D6A FI/Kd4cA+QXxCIXFalAuGYA5rlaE81E/kLxmbZ0hrAc
ScXG4wu1InrX2LIdoiils/vZsmkS5Ff84caS9pNPEpE
-> Jp-A;k,g-grease Uwr._)! 7}pNZ*=T fPWGGWK f<]apqV8
ryX4Ag3/XAA3cN31fc3wjoxsLjHhaZZBtKotPOIDkcQ6
--- K6VMrrF+7TbbyeM90iBufesI7bzI8nKmdouROYRUsck
�-�mVc���<���hp�e<T��j��'^���O�U�5�#���ԫ��x� f��kW����`��z�`BѲ�$//3 �
y�鸀�3ĭ�Ѥ�������/�
���X-{ք�����T�oJR�TG�#W�:<����
2 changes: 1 addition & 1 deletion secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ let klarkc = builtins.readFile ./klarkc.pub;
cache-vultr = builtins.readFile ./cache-vultr.pub;
in
{
"cache.age".publicKeys = [ klarkc cache-vultr ];
"cache.age".publicKeys = [ cache-vultr ];
}
8 changes: 4 additions & 4 deletions setups/cache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
inherit (flake.outputs.lib) mkSystem secrets;
agenix = flake.inputs.agenix.nixosModules.default;
nix-serve = flake.inputs.nix-serve-ng.nixosModules.default;
domain = "cache.64-b.it";
domain = "cache.tcp4.me";
home = "/home/klarkc";
authorizedKeys.keys = [
(builtins.readFile ../../secrets/klarkc.pub)
Expand All @@ -18,9 +18,9 @@ let
disko
];
# cd secrets
# nix-store --generate-binary-cache-key cache.64-b.it ./cache ./cache.skey
# cat cache | nix run github:ryantm/agenix -- -e cache.age -i ~/.ssh/id_ed25519
# cp ~/.ssh/id_ed25519.pub klarkc.pub
# nix-store --generate-binary-cache-key cache.tcp4.me ./cache ./cache.skey
# cat cache | nix run github:ryantm/agenix -- -e cache.age -i cache-vultr.pub
# scp ssh://[email protected]:/etc/ssh/ssh_host_ed25519_key.pub cache-vultr.pub
age.secrets.cache.file = "${secrets}/cache.age";
system.stateVersion = config.system.nixos.version;
boot.loader.systemd-boot.enable = true;
Expand Down

0 comments on commit 07a1747

Please sign in to comment.