45 lines
1008 B
Nix
45 lines
1008 B
Nix
{ config, ...}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./packages.nix
|
|
./modules/bundle.nix
|
|
];
|
|
|
|
disabledModules = [
|
|
./modules/xserver.nix
|
|
];
|
|
|
|
networking.hostName = "nixos"; # Define your hostname.
|
|
|
|
time.timeZone = "Europe/Moscow"; # Set your time zone.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8"; # Select internationalisation properties.
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Enabling flakes
|
|
|
|
system.stateVersion = "23.05"; # Don't change it bro
|
|
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
powerManagement.finegrained = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
prime = {
|
|
sync.enable = true;
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
};
|
|
}
|