Configurations cleanup

Fix home state version
This commit is contained in:
Filippo Berto 2022-12-06 21:50:55 +01:00
parent c6c8c23058
commit abc9f50a30
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 76 additions and 82 deletions

View file

@ -2,30 +2,29 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ pkgs, ... }: {
boot.initrd.kernelModules = [ "i915" ];
# boot.kernelPackages = pkgs.linuxPackages;
boot = {
initrd.kernelModules = [ "i915" ];
kernelPackages = pkgs.linuxPackages_latest;
};
hardware.nvidia = {
# modesetting.enable = true;
# package = pkgs.linuxPackages.nvidia_x11;
prime = {
offload.enable = false;
sync.enable = true;
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
services.xserver = {
videoDrivers = [ "nvidia" ];
# displayManager.gdm = {
# enable = true;
# wayland = false;
# };
displayManager.sddm = {
enable = true;
autoNumlock = true;
theme = "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
};
};
services.xserver.displayManager.sddm = {
enable = true;
autoNumlock = true;
theme = "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
};
hardware.nvidia.prime = {
offload.enable = false;
sync.enable = true;
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
# hardware.nvidia.modesetting.enable = true;
# hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11;
hardware.opengl.driSupport32Bit = true;
}