35 lines
908 B
Nix
35 lines
908 B
Nix
{ inputs, config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(import ../Common { inherit inputs pkgs; })
|
|
];
|
|
|
|
# AMD CPU
|
|
boot.blacklistedKernelModules = [ "k10temp" ];
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
|
|
boot.kernelModules = [ "zenpower amd_pstate=active" ];
|
|
|
|
# AMD CPU & GPU
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
services.logind.extraConfig = ''HandlePowerKey=suspend'';
|
|
|
|
services.ollama = {
|
|
enable = true;
|
|
};
|
|
|
|
networking.wg-quick.interfaces = {
|
|
wg0 = {
|
|
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
|
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
|
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
|
listenPort = 51820;
|
|
peers = [{
|
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
|
allowedIPs = [ "10.0.0.1/8" ];
|
|
endpoint = "192.168.1.1:13231";
|
|
}];
|
|
};
|
|
};
|
|
}
|