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:
parent
bbe2cbe923
commit
2cbf0a5e5b
3 changed files with 660 additions and 455 deletions
1106
flake.lock
generated
1106
flake.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -17,7 +17,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem = {config, ...}: {
|
perSystem = {config, ...}: {
|
||||||
agenix-rekey.nodes = self.nodes;
|
agenix-rekey.nixosConfigurations = self.nodes;
|
||||||
devshells.default = {
|
devshells.default = {
|
||||||
commands = [
|
commands = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue