nixos/hosts/Northstar/configuration.nix

30 lines
916 B
Nix
Raw Normal View History

2024-01-30 14:21:50 +00:00
{
config,
pkgs,
...
2024-02-12 12:59:18 +00:00
}: {
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
hardware.opengl.extraPackages32 = [pkgs.driversi686Linux.amdvlk];
2024-02-20 15:48:42 +00:00
networking.wg-quick.interfaces = {
2024-02-20 15:52:07 +00:00
protonvpn = {
2024-02-20 15:48:42 +00:00
address = ["10.2.0.2/32"];
dns = ["10.2.0.1"];
privateKeyFile = "/root/wireguard-keys/privatekey";
peers = [
{
publicKey = "uIYz5QpWqSNGRSJw0m4Py3eHR1dXQPb95sIKV8KaEC4=";
# presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key";
allowedIPs = ["0.0.0.0/0"];
endpoint = "154.47.24.193:51820";
persistentKeepalive = 25;
}
];
};
};
2024-02-12 12:59:18 +00:00
}