(auxin) fixed gpu?
This commit is contained in:
parent
e1a90662d9
commit
bc9c85aa64
2 changed files with 61 additions and 51 deletions
|
|
@ -1,9 +1,9 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
ports = [
|
||||
111 # RPC?
|
||||
2049 # NFS
|
||||
|
|
@ -29,8 +29,7 @@ let
|
|||
8888 # Kodi
|
||||
9000 # Portainer (-> 9443)
|
||||
]; #// lib.lists.range 6800 7568 ;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
# ./hardware-configuration.nix
|
||||
|
|
@ -43,10 +42,12 @@ in
|
|||
};
|
||||
|
||||
networking = {
|
||||
interfaces.enp5s0f0u1c2.ipv4.addresses = [{
|
||||
interfaces.enp5s0f0u1c2.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.2.153";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
}
|
||||
];
|
||||
# hostName = "auxin"; # Define your hostname.
|
||||
nameservers = ["192.168.1.1"];
|
||||
firewall = {
|
||||
|
|
@ -59,6 +60,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";}; #
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
czkawka
|
||||
|
|
@ -188,9 +190,18 @@ in
|
|||
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:
|
||||
caddy = {}; # TODO:
|
||||
fail2ban = {
|
||||
|
|
@ -253,7 +264,8 @@ in
|
|||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
# TODO:
|
||||
powerManagement.enable = lib.mkForce
|
||||
powerManagement.enable =
|
||||
lib.mkForce
|
||||
false;
|
||||
systemd = {
|
||||
targets = {
|
||||
|
|
@ -301,7 +313,6 @@ in
|
|||
};
|
||||
};
|
||||
system = {
|
||||
|
||||
stateVersion = "23.11"; # NOTE: Don't fuck with this
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, modulesPath
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
|
|
@ -21,10 +22,10 @@
|
|||
# initrd.kernelModules = ["i915"];
|
||||
kernelModules = ["kvm-amd" "iscsi_tcp"];
|
||||
extraModulePackages = [];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelParams = [
|
||||
kernelParams = ["i915.force_probe=56a5"
|
||||
#"i915.enable_guc=0"
|
||||
# ];
|
||||
];
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/SYSTEM";
|
||||
|
|
@ -35,7 +36,6 @@
|
|||
device = "//192.168.2.146/raid";
|
||||
fsType = "cifs";
|
||||
options = ["credentials=/etc/nixos/smb-secrets" "_netdev" "uid=1000" "gid=1000" "file_mode=0777" "dir_mode=0777"];
|
||||
|
||||
};
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-label/SYSTEM";
|
||||
|
|
@ -63,14 +63,13 @@
|
|||
enableRedistributableFirmware = true;
|
||||
# pulseaudio.enable = true;
|
||||
# pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired.
|
||||
# graphics = {
|
||||
# enable = true;
|
||||
# # extraPackages = with pkgs; [
|
||||
# # # intel-vaapi-driver
|
||||
# # intel-media-driver
|
||||
# # libvdpau-va-gl
|
||||
# # ];
|
||||
# };
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
vpl-gpu-rt
|
||||
intel-media-driver
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue