Skip to content

Commit

Permalink
nvidia: stop the spam
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlet-storm committed Jan 2, 2025
1 parent 8343232 commit 79ff773
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
3 changes: 3 additions & 0 deletions config/home-manager/panel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var clockWidget = panelWidgets["org.kde.plasma.digitalclock"];
clockWidget.currentConfigGroup = ["Appearance"];
clockWidget.writeConfig("dateFormat", "isoDate");
1 change: 1 addition & 0 deletions config/home-manager/plasma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ in
{
floating = true;
height = 40;
extraSettings = builtins.readFile ./panel.js;
}
];
};
Expand Down
6 changes: 6 additions & 0 deletions config/homes/violet@aqours.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ in
programs.plasma.workspace.wallpaper = "${f3KanataIdolized}";
programs.plasma.configFile.kdeglobals.General.AccentColor = "166,100,160";
services.syncthing.enable = true;
programs.mangohud = {
enable = true;
settings = {
procmem = true;
};
};
home.stateVersion = "24.05";
}
15 changes: 14 additions & 1 deletion config/nixos/hardware/gpu/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
config,
lib,
modules,
pkgs,
...
}:

Expand All @@ -13,7 +14,19 @@
powerManagement.enable = true;
open = true;
nvidiaSettings = true;
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.latest;
package = lib.mkDefault (
config.boot.kernelPackages.nvidiaPackages.beta
// {
open = config.boot.kernelPackages.nvidiaPackages.beta.open.overrideAttrs (prevAttrs: {
patches = prevAttrs.patches ++ [
(pkgs.fetchpatch {
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/raw/2432b41b0946e035f133e733e604d41697a8afd5/silence-event-assert-until-570.patch";
hash = "sha256-0quYUU7mWDNgd81IzXlmVkch/zSPW9NxvIm4RlzEldA=";
})
];
});
}
);
};
unfree.packageList = [
"nvidia-settings"
Expand Down
9 changes: 7 additions & 2 deletions config/nixos/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
programs.steam.localNetworkGameTransfers.openFirewall = true;
hardware.steam-hardware.enable = true;
programs.steam.package = pkgs.steam.override {
buildFHSEnv =
buildFHSEnv = (
p:
pkgs.buildFHSEnvBubblewrap (
p
Expand All @@ -31,7 +31,12 @@
"--chdir \$HOME"
];
}
);
)
);
extraEnv = {
MANGOHUD = true;
};
};
programs.steam.extraPackages = with pkgs; [ mangohud ];
environment.systemPackages = [ pkgs.bubblewrap ];
}

0 comments on commit 79ff773

Please sign in to comment.