cosmic checkpoint

This commit is contained in:
atagen 2024-08-14 01:01:53 +10:00
parent 4031a614a8
commit f623faa0ef
26 changed files with 1163 additions and 538 deletions

View file

@ -8,9 +8,16 @@
./configuration.nix
];
system.stateVersion = "22.11"; # Did you read the comment?
networking.hostName = "quiver";
users.users.bolt = {
isNormalUser = true;
extraGroups = ["wheel" "podman" "docker"]; # Enable sudo for the user.
extraGroups = [
"wheel"
"podman"
];
};
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbcore" "sd_mod"];
@ -29,7 +36,6 @@
"vt.global_cursor_default=0"
];
# boot.kernelPackages = pkgs.linuxPackages_cachyos;
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
boot.supportedFilesystems = {
ntfs = true;
@ -39,42 +45,41 @@
boot.loader.systemd-boot.configurationLimit = 5;
boot.loader.efi.canTouchEfiVariables = true;
# boot.plymouth = with pkgs.rice.plymouth; {
# inherit font theme themePackages;
# enable = true;
# };
security.tpm2.enable = true;
networking.useDHCP = lib.mkDefault true;
hardware.cpu.amd.updateMicrocode = true;
environment.pathsToLink = ["/share/xdg-desktop-portal" "/share/applications"];
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=5";
GBM_BACKEND = "nvidia-drm";
NVD_BACKEND = "direct";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
LIBVA_DRIVER_NAME = "nvidia";
__GL_GSYNC_ALLOWED = "1";
__GL_VRR_ALLOWED = "1";
# GBM_BACKEND = "nvidia-drm";
# NVD_BACKEND = "direct";
# __GLX_VENDOR_LIBRARY_NAME = "nvidia";
# LIBVA_DRIVER_NAME = "nvidia";
# __GL_GSYNC_ALLOWED = "1";
# __GL_VRR_ALLOWED = "1";
EDITOR = "hx";
};
nix.settings.trusted-users = ["bolt"];
virtualisation.oci-containers.backend = "podman";
hardware.nvidia-container-toolkit.enable = true;
virtualisation = {
podman = {
enable = true;
# dockerSocket.enable = true;
# enableNvidia = true;
dockerSocket.enable = true;
defaultNetwork.settings.dns_enabled = true;
};
docker = {
enable = true;
enableNvidia = true;
enableOnBoot = true;
extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime";
};
# docker = {
# enable = true;
# enableOnBoot = true;
# enableNvidia = true;
# extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime";
# };
};
services.minidlna = {
@ -87,12 +92,13 @@
};
services.xserver.videoDrivers = ["nvidia"];
# TODO figure out why i can't resume properly
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
powerManagement.enable = true;
# powerManagement.enable = true;
open = false;
nvidiaPersistenced = true;
# nvidiaPersistenced = true;
};
programs.xwayland.enable = true;
@ -118,22 +124,22 @@
xclip
];
networking.hostName = "quiver"; # Define your hostname.
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/b993b463-c131-4ef1-9aba-0e3eadaa2f9a";
fsType = "btrfs";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/b993b463-c131-4ef1-9aba-0e3eadaa2f9a";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/6B75-AF9F";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6B75-AF9F";
fsType = "vfat";
};
fileSystems."/data" = {
device = "/dev/disk/by-uuid/39D4F78C658E8B56";
fsType = "ntfs";
options = ["rw" "uid=1000" "gid=100"];
"/data" = {
device = "/dev/disk/by-uuid/39D4F78C658E8B56";
fsType = "ntfs";
options = ["rw" "uid=1000" "gid=100"];
};
};
swapDevices = [