dns configuration with networkmanager
This commit is contained in:
parent
4c0362efb7
commit
062f82dbed
3 changed files with 39 additions and 45 deletions
|
|
@ -16,46 +16,28 @@
|
|||
./vps-init.nix
|
||||
];
|
||||
networking = {
|
||||
networkmanager = {
|
||||
dns = "dnsmasq";
|
||||
ensureProfiles = {
|
||||
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
||||
profiles = {
|
||||
dhcp-ethernet.connection = {
|
||||
id = "dhcp-ethernet";
|
||||
type = "ethernet";
|
||||
networkmanager.ensureProfiles = {
|
||||
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
||||
profiles = {
|
||||
dhcp-ethernet.connection = {
|
||||
id = "dhcp-ethernet";
|
||||
type = "ethernet";
|
||||
};
|
||||
home-wifi = {
|
||||
connection = {
|
||||
id = "home-wifi";
|
||||
type = "wifi";
|
||||
};
|
||||
home-wifi = {
|
||||
connection = {
|
||||
id = "home-wifi";
|
||||
type = "wifi";
|
||||
};
|
||||
wifi-security = {
|
||||
key-mgmt = "sae";
|
||||
psk = "$BOGALE_PSK";
|
||||
};
|
||||
wifi.ssid = "bogale";
|
||||
wifi-security = {
|
||||
key-mgmt = "sae";
|
||||
psk = "$BOGALE_PSK";
|
||||
};
|
||||
wifi.ssid = "bogale";
|
||||
};
|
||||
};
|
||||
};
|
||||
wg-quick.interfaces.awg0.type = "amneziawg";
|
||||
};
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
bogus-priv = true;
|
||||
cache-size = 4096;
|
||||
domain-needed = true;
|
||||
no-resolv = true;
|
||||
server = [
|
||||
"1.0.0.2"
|
||||
"1.1.1.2"
|
||||
"2606:4700:4700::1002"
|
||||
"2606:4700:4700::1112"
|
||||
];
|
||||
};
|
||||
};
|
||||
sops = {
|
||||
age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
defaultSopsFile = ../.secrets.yaml;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue