oops it's been a minute

This commit is contained in:
atagen 2024-11-06 09:53:19 +11:00
parent 5f434b1979
commit 55013f738c
22 changed files with 468 additions and 323 deletions

View file

@ -2,13 +2,15 @@
config,
lib,
pkgs,
inputs,
mainUser,
...
}: {
imports = [
./configuration.nix
];
services.ollama.enable = true;
system.stateVersion = "22.11"; # Did you read the comment?
networking.hostName = "quiver";
@ -30,7 +32,6 @@
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "i2c-dev"];
boot.kernelParams = [
"nvidia-drm.fbdev=1"
"mitigations=off"
"acpi_enforce_resources=lax"
"preempt=full"
@ -83,31 +84,15 @@
# src = inputs.podman;
# };
};
# docker = {
# enable = true;
# enableOnBoot = true;
# enableNvidia = true;
# extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime";
# };
};
# services.minidlna = {
# enable = true;
# settings = {
# notify_interval = 120;
# friendly_name = "PC";
# media_dir = ["A,/data/Music/Slsk"];
# };
# };
services.xserver.videoDrivers = ["nvidia"];
# TODO figure out why i can't resume properly
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
# powerManagement.enable = true;
powerManagement.enable = true;
nvidiaPersistenced = true;
open = false;
# nvidiaPersistenced = true;
};
programs.xwayland.enable = true;