This commit is contained in:
Grigory Shipunov 2022-10-29 20:38:12 +02:00
parent 96095790cd
commit 3884eb2f82
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
9 changed files with 162 additions and 7 deletions

View file

@ -18,7 +18,7 @@
kicad
gimp
inkscape
(xfce.thunar.override { thunarPlugins = with xfce; [ thunar-volman thunar-archive-plugin ];})
#(xfce.thunar.override { thunarPlugins = with xfce; [ thunar-volman thunar-archive-plugin ];})
];
@ -73,6 +73,7 @@
"plugdev"
"dialout"
"bluetooth"
"networkmanager"
];
group = "users";
home = "/home/grue";

View file

@ -3,7 +3,7 @@
./configuration.nix
./hardware-configuration.nix
./network.nix
./stateful-networking.nix
./secrets.nix
];
}

View file

@ -0,0 +1,30 @@
{ pkgs, config, ... }: {
networking = {
hostName = "microwave"; # Define your hostname.
hostId = "7da4f1e6";
firewall.enable = true;
wireguard.enable = true;
# wireless.iwd.enable = true;
# networkmanager.wifi.backend = "iwd";
};
# fix networkmanager wireguard
networking.firewall = {
# if packets are still dropped, they will show up in dmesg
logReversePathDrops = true;
# wireguard trips rpfilter up
extraCommands = ''
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
'';
extraStopCommands = ''
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
'';
};
services.resolved = {
enable = true;
dnssec = "allow-downgrade";
};
}