Files
nixos-configuration/extra-services.nix
2022-11-07 08:14:35 +01:00

50 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
##### sysstat #####
services.sysstat = {
enable = true;
collect-frequency = "*:*:00";
};
###### Virtualisation and Docker #######
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
qemu
docker-compose
];
###### Yubikey service #####
services.pcscd.enable = true;
###### NTFS (3G) support ######
boot.supportedFilesystems = [ "ntfs" ];
##### Let wiregurad thru firewall ##########
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 1637 -j RETURN
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 1637 -j RETURN
'';
extraStopCommands = ''
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 1637 -j RETURN || true
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 1637 -j RETURN || true
'';
};
}