bye bye prime

This commit is contained in:
Peder Bergebakken Sundt 2023-09-07 01:44:45 +02:00
parent b8da8338a1
commit 29da74a2fb
3 changed files with 6 additions and 5 deletions

View File

@ -132,7 +132,7 @@
noximilien = mkConfig "noximilien" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]); noximilien = mkConfig "noximilien" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]);
bolle = mkConfig "bolle" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]); bolle = mkConfig "bolle" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]);
nord = mkConfig "nord" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel-cpu-only common-cpu-intel-sandy-bridge common-gpu-amd common-hidpi ]); nord = mkConfig "nord" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel-cpu-only common-cpu-intel-sandy-bridge common-gpu-amd common-hidpi ]);
sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia ]); sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia-nonprime ]);
garp = mkConfig "garp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia ]); garp = mkConfig "garp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia ]);
#gomperud smattkuken skrytebiffen skalkesnerken #gomperud smattkuken skrytebiffen skalkesnerken
}; };

View File

@ -15,8 +15,8 @@
#hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start #hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start
# PRIME: (lspci) # PRIME: (lspci)
hardware.nvidia.prime.intelBusId = "PCI:0:02:0"; #hardware.nvidia.prime.intelBusId = "PCI:0:02:0";
hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0"; #hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0";
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -114,7 +114,8 @@
]; ];
# nvidia bad # nvidia bad
nixpkgs.config.packageOverrides = lib.mkIf (!config.hardware.nvidia.prime.offload.enable) (pkgs: { #nixpkgs.config.packageOverrides = lib.mkIf (!config.hardware.nvidia.prime.offload.enable) (pkgs: {
nixpkgs.config.packageOverrides = (pkgs: {
teams = pkgs.teams.overrideAttrs (old: rec { teams = pkgs.teams.overrideAttrs (old: rec {
postInstall = (old.postInstall or "") + '' postInstall = (old.postInstall or "") + ''
substituteInPlace $out/share/applications/teams.desktop \ substituteInPlace $out/share/applications/teams.desktop \

View File

@ -2,7 +2,7 @@
{ {
#imports = [ <home-manager/nixos> ]; #imports = [ <home-manager/nixos> ];
imports = [ inputs.home-manager.nixosModule ]; imports = [ inputs.home-manager.nixosModule ];
home-manager.useGlobalPkgs = true; # go brrr home-manager.useGlobalPkgs = true; # go brrr, reuse overrides
#home-manager.useUserPackages = true # needed if VM, somewhat brrr, installs user packages to /etc instead of ~/.nix-profile #home-manager.useUserPackages = true # needed if VM, somewhat brrr, installs user packages to /etc instead of ~/.nix-profile
# When adding a new user accounts: Don't forget to set a password with passwd! # When adding a new user accounts: Don't forget to set a password with passwd!