This commit is contained in:
Martin Benonisen 2024-05-01 18:29:17 +02:00
parent db969dec51
commit 760b0c6163
Signed by: mbeno
SSH Key Fingerprint: SHA256:iAzOA1WUAxocdh/WRWXcSg5nw2dJ1aDCvPuT+3ZjkwI
5 changed files with 24 additions and 2 deletions

View File

@ -31,6 +31,7 @@
XDG_STATE_HOME = "$HOME/.local/state"; XDG_STATE_HOME = "$HOME/.local/state";
XDG_BIN_HOME = "$HOME/.local/bin"; XDG_BIN_HOME = "$HOME/.local/bin";
PATH = [ "${XDG_BIN_HOME}" ]; PATH = [ "${XDG_BIN_HOME}" ];
}; };
fileSystems."/data" = { fileSystems."/data" = {
device = "/dev/data/data"; device = "/dev/data/data";
@ -62,6 +63,7 @@
trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ]; trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ];
}; };
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
virtualisation.docker.liveRestore = false;
system.stateVersion = "23.11"; # Did you read the comment? system.stateVersion = "23.11"; # Did you read the comment?
} }

View File

@ -1,10 +1,21 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
hardware = { hardware = {
enableRedistributableFirmware = true;
cpu.intel.updateMicrocode = true;
opengl = { opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
];
}; };
ckb-next.enable = true; ckb-next.enable = true;
nvidia = { nvidia = {
@ -13,8 +24,9 @@
powerManagement.finegrained = false; powerManagement.finegrained = false;
open = false; open = false;
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.production;
}; };
pulseaudio.enable = false; pulseaudio.enable = false;
}; };
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
} }

View File

@ -41,6 +41,7 @@
xdg-utils xdg-utils
pass pass
xdg-desktop-portal xdg-desktop-portal
pkg-config
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
zoom-us zoom-us
neovim neovim

View File

@ -30,7 +30,6 @@
i3blocks #if you are planning on using i3blocks over i3status i3blocks #if you are planning on using i3blocks over i3status
polybar polybar
rofi rofi
picom
nitrogen nitrogen
]; ];
}; };

View File

@ -3,7 +3,11 @@
# Generic tools # Generic tools
age age
discord discord
libpng
lshw
vlc vlc
expat
xdeltaUnstable
transmission-gtk transmission-gtk
alacritty alacritty
btop btop
@ -21,7 +25,11 @@
ncdu ncdu
nwg-look nwg-look
mumble mumble
pavucontrol
jellyfin-media-player
unrar
mpv mpv
lutris
pamixer pamixer
pinentry pinentry
pre-commit pre-commit