lkjdsalkjsadlkj

This commit is contained in:
Peder Bergebakken Sundt 2023-07-09 00:10:03 +02:00
parent bf2389475e
commit 1c9cceea79
5 changed files with 18 additions and 6 deletions

View File

@ -32,6 +32,9 @@
nixpkgs.config.allowUnfreePredicate = (pkg: true);
nixpkgs.config.nonfreeLicensing = true; # used by ffmpeg
# TODO: per host?
hardware.enableRedistributableFirmware = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"

View File

@ -145,7 +145,7 @@
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 ]);
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-nonprime ]);
sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia ]);
};
homeConfigurations = forAllSystems ({ pkgs, flakes, ... }: let

View File

@ -14,9 +14,9 @@
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
#hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start
# PRIME:
#hardware.nvidia.prime.intelBusId = "PCI:0:02:0";
#hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0";
# PRIME: (lspci)
hardware.nvidia.prime.intelBusId = "PCI:0:02:0";
hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0";
imports = [
./hardware-configuration.nix
@ -113,7 +113,13 @@
];
# nvidia bad
nixpkgs.config.packageOverrides = (pkgs: {
nixpkgs.config.packageOverrides = lib.mkIf (!config.hardware.nvidia.prime.offload.enable) (pkgs: {
teams = pkgs.teams.overrideAttrs (old: rec {
postInstall = (old.postInstall or "") + ''
substituteInPlace $out/share/applications/teams.desktop \
--replace 'Exec=teams' 'Exec=teams --disable-gpu'
'';
});
discord = pkgs.discord.overrideAttrs (old: rec {
desktopItem = old.desktopItem.override (old: {
#exec = "${pkgs.coreutils}/bin/env NIXOS_OZONE_WL=1 ${old.exec}";

View File

@ -18,6 +18,9 @@
element-desktop#-wayland
slack
telegram-desktop
teams
zoom-us
f3d
firefox
zotero

View File

@ -40,7 +40,7 @@
home.shellAliases.dc = "cd";
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
#programs.direnv.nix-direnv.enable = true;
programs.tealdeer.enable = true;