many changes to fw, small fixes to nb
This commit is contained in:
@@ -16,16 +16,9 @@
|
||||
./modules/sway/sway.nix
|
||||
# ./modules/gnome.nix
|
||||
./modules/printer.nix
|
||||
./modules/nvidia.nix
|
||||
./modules/nvim/default.nix
|
||||
# ./modules/tuxedo.nix
|
||||
./utils/modules/autoupgrade.nix
|
||||
|
||||
# ./pkgs/howdy/howdy-module.nix
|
||||
# ./pkgs/howdy/ir-toggle-module.nix
|
||||
|
||||
# ./modules/howdy
|
||||
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -23,18 +23,9 @@
|
||||
};
|
||||
|
||||
boot.initrd = {
|
||||
luks = {
|
||||
# yubikeySupport = true;
|
||||
devices."nixos-enc" = {
|
||||
luks.devices."nixos-enc" = {
|
||||
crypttabExtraOpts = [ "fido2-device=auto" ];
|
||||
device = "/dev/disk/by-uuid/7435d48f-f942-485b-9817-328ad3fc0b93";
|
||||
# yubikey = {
|
||||
# slot = 2;
|
||||
# twoFactor = false;
|
||||
# storage = {
|
||||
# device = "/dev/disk/by-uuid/C281-E509";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
systemd.enable = true;
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
{config, lib, pkgs, ...}: {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
# Modesetting is required.
|
||||
modesetting.enable = true;
|
||||
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
|
||||
open = false;
|
||||
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
# boot.initrd.kernelModules = [ "nvidia" ];
|
||||
boot.extraModulePackages = [
|
||||
config.boot.kernelPackages.nvidia_x11
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
# Make sure to use the correct Bus ID values for your system!
|
||||
amdgpuBusId = "PCI:193:0:0";
|
||||
nvidiaBusId = "PCI:100:0:0";
|
||||
};
|
||||
|
||||
specialisation = {
|
||||
gaming.configuration = {
|
||||
system.nixos.tags = [ "gaming" ];
|
||||
hardware.nvidia = {
|
||||
prime.offload.enable = lib.mkForce false;
|
||||
prime.offload.enableOffloadCmd = lib.mkForce false;
|
||||
prime.sync.enable = lib.mkForce true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user