nixos-config/config/rainbow-resort.nix

119 lines
2.9 KiB
Nix
Raw Normal View History

2023-12-06 13:00:26 +00:00
{
config,
pkgs,
modulesPath,
lib,
nixos-hardware,
...
}: {
networking.hostName = "rainbow-resort";
2023-12-06 13:06:54 +00:00
networking.hostId = "776736c6";
2023-12-06 13:00:26 +00:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./systemd-boot.nix
./desktop.nix
./services/tpm2.nix
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd
./users/remote-build.nix
2024-06-01 08:21:59 +00:00
#./services/kubernetes.nix
2024-09-04 13:43:52 +00:00
./services/forgejo-runner.nix
2024-10-04 06:32:44 +00:00
./services/postgres.nix
2023-12-06 13:00:26 +00:00
];
hardware.cpu.amd.updateMicrocode = true;
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp"];
boot.initrd.kernelModules = ["amdgpu"];
2023-12-06 16:30:05 +00:00
boot.kernelModules = ["kvm-amd" "i2c-dev" "i2c-piix4"];
2023-12-06 13:00:26 +00:00
boot.extraModulePackages = [
config.boot.kernelPackages.zenpower
];
2023-12-06 16:09:48 +00:00
services.hardware.openrgb = {
enable = true;
package = pkgs.openrgb-with-all-plugins;
motherboard = "amd";
};
2023-12-06 13:00:26 +00:00
fileSystems."/" = {
2023-12-06 16:09:48 +00:00
device = "/dev/disk/by-uuid/23690ff2-7a65-431e-a6ee-fea0878e0bb1";
2023-12-06 13:00:26 +00:00
fsType = "btrfs";
options = ["compress=zstd"];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/B6BA-BE40";
fsType = "vfat";
};
services.btrfs.autoScrub = {
enable = true;
fileSystems = ["/"];
};
services.snapper.configs.main = {
SUBVOLUME = "/";
2024-07-05 14:26:31 +00:00
TIMELINE_LIMIT_HOURLY = 5;
TIMELINE_LIMIT_DAILY = 7;
TIMELINE_LIMIT_WEEKLY = 4;
TIMELINE_LIMIT_MONTHLY = 12;
TIMELINE_LIMIT_YEARLY = 0;
2023-12-06 13:00:26 +00:00
};
2024-09-08 06:38:56 +00:00
services.beesd.filesystems.root = {
2023-12-06 13:00:26 +00:00
spec = "/";
hashTableSizeMB = 2048;
verbosity = "crit";
extraOptions = ["--loadavg-target" "5.0"];
};
networking.interfaces.enp14s0.useDHCP = true;
2023-12-06 13:00:26 +00:00
system.stateVersion = "23.11";
services.xserver.videoDrivers = ["amdgpu"];
nix.settings.cores = 16;
boot.binfmt.emulatedSystems = [
"armv7l-linux"
"powerpc-linux"
"powerpc64-linux"
"powerpc64le-linux"
"wasm32-wasi"
"riscv32-linux"
"riscv64-linux"
];
hardware.enableRedistributableFirmware = true;
nix.daemonCPUSchedPolicy = "idle";
nix.daemonIOSchedClass = "idle";
nix.settings.system-features = [
"kvm"
"nixos-test"
"big-parallel"
"benchmark"
"gccarch-znver4"
"gccarch-znver3"
"gccarch-znver2"
"gccarch-znver1"
"gccarch-skylake"
"gccarch-skylake-avx512"
"ca-derivations"
];
services.tailscale.useRoutingFeatures = "client";
home-manager.users.darkkirb._module.args.withNSFW = lib.mkForce true;
2023-12-10 09:36:28 +00:00
services.prometheus.exporters.node.enabledCollectors = ["drm"];
2024-05-23 13:06:26 +00:00
services.k3s.role = lib.mkForce "agent";
2024-07-06 05:16:10 +00:00
services.ollama = {
2024-07-10 10:38:07 +00:00
enable = true; # broken. lol
2024-07-06 05:16:10 +00:00
acceleration = "rocm";
# Thank you amd for not supporting 11.0.1
environmentVariables.HCC_AMDGPU_TARGET = "gfx1100";
rocmOverrideGfx = "11.0.0";
};
2024-09-10 14:07:58 +00:00
services.joycond.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
2023-12-06 13:00:26 +00:00
}