(auxin) fixed gpu?

This commit is contained in:
ArgentumCation 2025-01-12 22:06:11 -05:00
parent e1a90662d9
commit bc9c85aa64
2 changed files with 61 additions and 51 deletions

View file

@ -1,9 +1,9 @@
{ config {
, lib config,
, pkgs lib,
, ... pkgs,
}: ...
let }: let
ports = [ ports = [
111 # RPC? 111 # RPC?
2049 # NFS 2049 # NFS
@ -29,8 +29,7 @@ let
8888 # Kodi 8888 # Kodi
9000 # Portainer (-> 9443) 9000 # Portainer (-> 9443)
]; #// lib.lists.range 6800 7568 ; ]; #// lib.lists.range 6800 7568 ;
in in {
{
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
# ./hardware-configuration.nix # ./hardware-configuration.nix
@ -43,10 +42,12 @@ in
}; };
networking = { networking = {
interfaces.enp5s0f0u1c2.ipv4.addresses = [{ interfaces.enp5s0f0u1c2.ipv4.addresses = [
{
address = "192.168.2.153"; address = "192.168.2.153";
prefixLength = 24; prefixLength = 24;
}]; }
];
# hostName = "auxin"; # Define your hostname. # hostName = "auxin"; # Define your hostname.
nameservers = ["192.168.1.1"]; nameservers = ["192.168.1.1"];
firewall = { firewall = {
@ -59,6 +60,7 @@ in
}; };
}; };
environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";}; #
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty
czkawka czkawka
@ -188,9 +190,18 @@ in
inputstream-adaptive inputstream-adaptive
]); ]);
}; };
displayManager.lightdm.greeter.enable = false;
}; };
displayManager.autoLogin ={ enable = true; user="mira";}; displayManager = {
sddm = {
enable = true;
wayland.enable = false;
};
autoLogin = {
enable = false;
user = "mira";
};
};
btrbk = {}; # TODO: btrbk = {}; # TODO:
caddy = {}; # TODO: caddy = {}; # TODO:
fail2ban = { fail2ban = {
@ -253,7 +264,8 @@ in
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
# TODO: # TODO:
powerManagement.enable = lib.mkForce powerManagement.enable =
lib.mkForce
false; false;
systemd = { systemd = {
targets = { targets = {
@ -301,7 +313,6 @@ in
}; };
}; };
system = { system = {
stateVersion = "23.11"; # NOTE: Don't fuck with this stateVersion = "23.11"; # NOTE: Don't fuck with this
}; };
} }

View file

@ -1,11 +1,12 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config {
, lib config,
, pkgs lib,
, modulesPath pkgs,
, ... modulesPath,
...
}: { }: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
@ -21,10 +22,10 @@
# initrd.kernelModules = ["i915"]; # initrd.kernelModules = ["i915"];
kernelModules = ["kvm-amd" "iscsi_tcp"]; kernelModules = ["kvm-amd" "iscsi_tcp"];
extraModulePackages = []; extraModulePackages = [];
kernelPackages = pkgs.linuxPackages_latest; kernelParams = ["i915.force_probe=56a5"
# kernelParams = [
#"i915.enable_guc=0" #"i915.enable_guc=0"
# ]; ];
# kernelPackages = pkgs.linuxPackages_latest;
}; };
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-label/SYSTEM"; device = "/dev/disk/by-label/SYSTEM";
@ -35,7 +36,6 @@
device = "//192.168.2.146/raid"; device = "//192.168.2.146/raid";
fsType = "cifs"; fsType = "cifs";
options = ["credentials=/etc/nixos/smb-secrets" "_netdev" "uid=1000" "gid=1000" "file_mode=0777" "dir_mode=0777"]; options = ["credentials=/etc/nixos/smb-secrets" "_netdev" "uid=1000" "gid=1000" "file_mode=0777" "dir_mode=0777"];
}; };
fileSystems."/nix" = { fileSystems."/nix" = {
device = "/dev/disk/by-label/SYSTEM"; device = "/dev/disk/by-label/SYSTEM";
@ -63,14 +63,13 @@
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
# pulseaudio.enable = true; # pulseaudio.enable = true;
# pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired. # pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired.
# graphics = { graphics = {
# enable = true; enable = true;
# # extraPackages = with pkgs; [ extraPackages = with pkgs; [
# # # intel-vaapi-driver vpl-gpu-rt
# # intel-media-driver intel-media-driver
# # libvdpau-va-gl libvdpau-va-gl
# # ]; ];
# }; };
}; };
} }