nixos-config/nixos/configuration.nix

45 lines
1008 B
Nix
Raw Normal View History

2024-05-01 15:39:14 +03:00
{ config, ...}: {
2024-04-17 05:52:14 +05:00
imports = [
./hardware-configuration.nix
./packages.nix
./modules/bundle.nix
];
disabledModules = [
./modules/xserver.nix
];
networking.hostName = "nixos"; # Define your hostname.
2024-04-22 10:20:35 +03:00
time.timeZone = "Europe/Moscow"; # Set your time zone.
2024-04-17 05:52:14 +05:00
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
2024-05-01 15:39:14 +03:00
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";
};
};
2024-04-17 05:52:14 +05:00
}