dotfiles/hosts/Kell/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-05 13:28:56 +02:00
{ inputs, config, pkgs, ... }:
2024-06-03 01:00:53 +02:00
2024-06-02 16:36:56 +02:00
{
2024-06-10 12:14:37 +02:00
imports = [
2024-06-13 13:21:06 +02:00
(import ../Common/default.nix { inherit inputs pkgs; })
(import ../Common/desktop.nix { inherit inputs pkgs config; })
2024-06-10 12:14:37 +02:00
];
2024-06-05 13:28:56 +02:00
# AMD CPU
boot.blacklistedKernelModules = [ "k10temp" ];
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
2024-06-05 13:57:00 +02:00
boot.kernelModules = [ "zenpower amd_pstate=active" ];
2024-06-05 13:28:56 +02:00
# AMD CPU & GPU
2024-06-05 13:57:00 +02:00
boot.initrd.kernelModules = [ "amdgpu" ];
2024-06-05 14:31:58 +02:00
services.logind.extraConfig = ''HandlePowerKey=suspend'';
2024-06-08 17:31:27 +02:00
services.ollama = {
2024-06-13 11:53:29 +02:00
enable = true;
2024-06-08 17:31:27 +02:00
};
2024-06-23 02:44:05 +02:00
hardware.graphics.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
environment.variables = {
ROC_ENABLE_PRE_VEGA = "1";
};
2024-06-03 16:02:50 +02:00
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" ];
2024-06-04 22:13:24 +02:00
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
2024-06-03 16:02:50 +02:00
listenPort = 51820;
peers = [{
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
allowedIPs = [ "10.0.0.1/8" ];
endpoint = "192.168.1.1:13231";
}];
};
};
2024-06-20 10:27:29 +02:00
programs.gnupg.agent.enable = true;
2024-06-02 16:36:56 +02:00
}