refactor: add encrypted private.nix to hold private values

This commit is contained in:
Yuri Tatishchev 2025-05-18 01:07:48 -07:00
parent 80b7bf0ed4
commit 585ff678b8
Signed by: CaZzzer
SSH Key Fingerprint: SHA256:sqXB3fe0LMpfH+IeM/vlmxKdso52kssrIJBlwKXVe1U
6 changed files with 11 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
private.nix filter=crypt diff=crypt merge=crypt

View File

@ -177,6 +177,7 @@
fd
helix
micro
openssl
ripgrep
starship
tealdeer

View File

@ -72,10 +72,12 @@ in
lsof
micro
mpv
openssl
ripgrep
rustscan
starship
tealdeer
transcrypt
waypipe
whois
];

2
hosts/router/private.nix Normal file
View File

@ -0,0 +1,2 @@
U2FsdGVkX1/98w32OE1ppwT0I5A3UOTKCLJfvk+TQdrbf0TLfYNZ9TC9n8cH2hC9
ObKVuFlOLwHlzeBy7MXaLg==

View File

@ -1,4 +1,6 @@
let
private = import ./private.nix;
mkIfConfig = {
name_,
domain_,
@ -43,7 +45,7 @@ rec {
};
p4 = "10.17"; # .0.0/16
pdFromWan = ""; # ::/60
pdFromWan = private.pdFromWan; # ::/60
ulaPrefix = "fdab:07d3:581d"; # ::/48
ifs = rec {
wan = rec {

View File

@ -95,9 +95,11 @@
ldns
micro
mpv
openssl
ripgrep
starship
tealdeer
transcrypt
waypipe
whois
zfs