1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: update flake (cache wireguard)

This commit is contained in:
oddlama 2024-11-26 02:26:30 +01:00
parent bbe2cbe923
commit 2cbf0a5e5b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 660 additions and 455 deletions

1106
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -17,7 +17,7 @@
}; };
perSystem = {config, ...}: { perSystem = {config, ...}: {
agenix-rekey.nodes = self.nodes; agenix-rekey.nixosConfigurations = self.nodes;
devshells.default = { devshells.default = {
commands = [ commands = [
{ {

View file

@ -71,5 +71,12 @@
nodes = config.nixosConfigurations // config.guestConfigs; nodes = config.nixosConfigurations // config.guestConfigs;
# Add a shorthand to easily target toplevel derivations # Add a shorthand to easily target toplevel derivations
"@" = mapAttrs (_: v: v.config.system.build.toplevel) config.nodes; "@" = mapAttrs (_: v: v.config.system.build.toplevel) config.nodes;
# Pre-evaluate the wireguard network information to avoid recalculating it
# for every host and every location it is used.
wireguardEvalCache = config.pkgs.x86_64-linux.lib.wireguard.createEvalCache inputs [
"proxy-sentinel"
"proxy-home"
];
}; };
} }