lkjdsalkjsadlkj
This commit is contained in:
parent
bf2389475e
commit
1c9cceea79
3
base.nix
3
base.nix
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}";
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
element-desktop#-wayland
|
||||
slack
|
||||
telegram-desktop
|
||||
teams
|
||||
zoom-us
|
||||
|
||||
f3d
|
||||
firefox
|
||||
zotero
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue