dotfiles/hosts/Riva/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-13 13:14:56 +02:00
{ inputs, config, pkgs, ... }:
2025-02-17 17:57:36 +01:00
{
2024-09-13 10:46:49 +02:00
imports = [
(import ../Common/default.nix { inherit inputs config pkgs; })
];
2024-06-13 13:58:30 +02:00
2024-10-28 20:00:55 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2024-09-13 10:46:49 +02:00
services.ollama = {
enable = true;
};
2024-06-13 14:29:55 +02:00
2024-09-13 10:46:49 +02:00
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";
}];
};
2024-06-13 13:58:30 +02:00
};
2025-02-17 17:57:36 +01:00
fileSystems."/home/server/Workspace" = {
2025-02-24 13:43:30 +01:00
device = "/mnt/Workspace";
2025-02-17 17:57:36 +01:00
fsType = "virtiofs";
};
fileSystems."/home/server/.cache/fzgo" = {
2025-02-24 13:43:30 +01:00
device = "/mnt/fzgo_cache";
2025-02-17 17:57:36 +01:00
fsType = "virtiofs";
};
fileSystems."/home/user/Workspace" = {
device = "/home/server/Workspace";
options = ["bind"];
};
2024-06-13 13:14:56 +02:00
}