This commit is contained in:
dusk 2022-07-21 01:41:36 +03:00
parent a6d2cbad1a
commit bc3d6c9b5f
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 11 additions and 1 deletions

View File

@ -77,7 +77,7 @@ in
algorithm = "zstd"; algorithm = "zstd";
}; };
nix.settings.max-jobs = lib.mkDefault 8; nix.settings.max-jobs = lib.mkForce 16;
security = { security = {
pam.loginLimits = [ pam.loginLimits = [
{ {
@ -108,7 +108,12 @@ in
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
hardware = { hardware = {
nvidia.prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
opengl = { opengl = {
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
@ -132,6 +137,8 @@ in
support32Bit = true; support32Bit = true;
}; };
}; };
programs.light.enable = true;
fonts = { fonts = {
enableDefaultFonts = true; enableDefaultFonts = true;

View File

@ -25,6 +25,7 @@ in {
"wheel" "wheel"
"adbusers" "adbusers"
"dialout" "dialout"
"video"
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPassword = "$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/"; hashedPassword = "$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/";
@ -176,6 +177,8 @@ in {
cloudflared cloudflared
lutris lutris
discord-open-asar discord-open-asar
gamescope
protontricks
]; ];
shellAliases = shellAliases =
nixosConfig.environment.shellAliases nixosConfig.environment.shellAliases