bye bye prime
This commit is contained in:
parent
b8da8338a1
commit
29da74a2fb
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
|
@ -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’!
|
||||||
|
|
Loading…
Reference in New Issue