use latest nix versions
This commit is contained in:
@@ -4,5 +4,6 @@
|
|||||||
./index.nix
|
./index.nix
|
||||||
./ld.nix
|
./ld.nix
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
./latest.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
14
modules/nix/latest.nix
Normal file
14
modules/nix/latest.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ lib, inputs, config, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.custom.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.custom.nix = {
|
||||||
|
useLatest = mkEnableOption "Use latest nix versions";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.useLatest {
|
||||||
|
nix.package = pkgs.nixVersions.latest;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -37,6 +37,14 @@ in
|
|||||||
networking.nat.internalInterfaces = [ "wg0" ];
|
networking.nat.internalInterfaces = [ "wg0" ];
|
||||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||||
|
|
||||||
|
#[Interface]
|
||||||
|
#PrivateKey = <your private key here>
|
||||||
|
#Address = 192.168.2.20/24
|
||||||
|
#[Peer]
|
||||||
|
#PublicKey = vyHNUy97R1cvqEvElznPpFQtoqm7WUHnT96UP6Dquwc=
|
||||||
|
#AllowedIPs = 192.168.2.0/24
|
||||||
|
#Endpoint = kopatz.dev:51820
|
||||||
|
#PersistentKeepalive = 25
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
autostart = true;
|
autostart = true;
|
||||||
@@ -117,6 +125,14 @@ in
|
|||||||
];
|
];
|
||||||
publicKey = "AGBWzMeSTxmB3jwNdROYHbyiqhhAVyofMV5Ku5JIE1A=";
|
publicKey = "AGBWzMeSTxmB3jwNdROYHbyiqhhAVyofMV5Ku5JIE1A=";
|
||||||
}
|
}
|
||||||
|
# more keys
|
||||||
|
# unused
|
||||||
|
{
|
||||||
|
allowedIPs = [
|
||||||
|
"192.168.2.100/32"
|
||||||
|
];
|
||||||
|
publicKey = "Oj2IYrHgPhIvN+s2oi9kpqN48BXjkYMr4J/z6Baqv0Q=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
privateKeyFile = config.age.secrets.wireguard-private.path;
|
privateKeyFile = config.age.secrets.wireguard-private.path;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
cli-tools.enable = true;
|
cli-tools.enable = true;
|
||||||
nixvimPlugins = true;
|
nixvimPlugins = true;
|
||||||
nix = {
|
nix = {
|
||||||
|
useLatest = true;
|
||||||
index.enable = true;
|
index.enable = true;
|
||||||
ld.enable = true;
|
ld.enable = true;
|
||||||
settings.enable = true;
|
settings.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user