2024-06-10 12:14:37 +02:00
|
|
|
{ pkgs, inputs, config, ... }:
|
2024-06-04 22:13:24 +02:00
|
|
|
{
|
2024-06-10 12:14:37 +02:00
|
|
|
imports = [
|
2024-06-10 16:09:54 +02:00
|
|
|
(import ../Common/default.nix { inherit inputs pkgs config; })
|
|
|
|
(import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
2024-06-10 12:14:37 +02:00
|
|
|
];
|
2024-06-05 01:02:16 +02:00
|
|
|
hardware.opengl.extraPackages = [
|
|
|
|
pkgs.intel-compute-runtime
|
|
|
|
pkgs.intel-media-driver
|
|
|
|
];
|
2024-06-07 01:01:14 +02:00
|
|
|
|
|
|
|
services.ollama = {
|
|
|
|
enable = true;
|
|
|
|
acceleration = "cuda";
|
|
|
|
};
|
2024-06-04 22:13:24 +02:00
|
|
|
|
2024-06-10 16:09:54 +02:00
|
|
|
services.logind.extraConfig = ''HandlePowerKey=ignore'';
|
2024-06-04 22:13:24 +02:00
|
|
|
networking.wg-quick.interfaces = {
|
|
|
|
wg0 = {
|
2024-06-04 23:42:15 +02:00
|
|
|
address = [ "10.0.0.5/24" "2a02:a03f:83ad:2101::5/128" ];
|
2024-06-04 22:13:24 +02:00
|
|
|
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
|
|
|
listenPort = 51820;
|
2024-06-05 18:34:54 +02:00
|
|
|
postUp = "resolvectl dns wg0 10.0.0.1; resolvectl domain wg0 ~thomasave.be;";
|
2024-06-04 22:13:24 +02:00
|
|
|
peers = [{
|
|
|
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
2024-06-04 23:42:15 +02:00
|
|
|
allowedIPs = [ "10.0.0.1/8" "192.168.1.2/32" ];
|
2024-06-04 22:13:24 +02:00
|
|
|
endpoint = "h.thomasave.be:13231";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
2024-06-06 20:15:03 +02:00
|
|
|
networking.wireless.iwd.enable = true;
|
|
|
|
networking.wireless.iwd.settings = {
|
|
|
|
IPv6 = {
|
|
|
|
Enabled = true;
|
|
|
|
};
|
|
|
|
Settings = {
|
|
|
|
AutoConnect = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-04 22:13:24 +02:00
|
|
|
}
|