dotfiles/hosts/Riva/default.nix

36 lines
951 B
Nix

{ inputs, config, pkgs, ... }:
let
serverIP = "192.168.1.2";
in {
imports = [
(import ../Common/default.nix { inherit inputs config pkgs; })
(import ../Common/desktop.nix { inherit inputs pkgs config; })
(import ../Common/nfs.nix { inherit pkgs serverIP; })
];
services.ollama = {
enable = true;
};
zramSwap.enable = true;
networking.wg-quick.interfaces = {
wg0 = {
address = [ "10.0.0.12/24" ];
privateKeyFile = "/home/user/.secrets/Wireguard/Riva.key";
listenPort = 51820;
peers = [{
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
allowedIPs = [ "10.0.0.1/8" ];
endpoint = "192.168.1.1:13231";
}];
};
};
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
}