commit 62583c6e2294b7713bffadab2faa8f8fb3007af9
parent ac1f29c06af3338dce07ea44b0bbc0c9046b4b21
Author: Toni Brown <tb148@proton.me>
Date: Wed, 27 Aug 2025 13:47:41 +0800
use sync mode
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configuration.nix b/configuration.nix
@@ -34,11 +34,16 @@
};
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
- nixpkgs.config.allowlistedLicenses = [ lib.licenses.unfreeRedistributable ];
+ nixpkgs.config.allowUnfree = true;
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
+ hardware.nvidia.prime = {
+ sync.enable = true;
+ intelBusId = "PCI:0:2:0";
+ nvidiaBusId = "PCI:1:0:0";
+ };
nix.settings.experimental-features = [
"nix-command"
@@ -103,7 +108,7 @@
catppuccin.sddm.fontSize = "12";
xdg.icons.fallbackCursorThemes = [ "catppuccin-mocha-mauve-cursors" ];
- programs.steam.enable = true;
+ # programs.steam.enable = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you