This commit is contained in:
2026-03-25 18:57:06 +00:00
parent fbf8265a08
commit 9bdcd24b29
3 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@
nvidiaSettings = true; nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.latest; package = config.boot.kernelPackages.nvidiaPackages.beta;
}; };
}; };
+1 -2
View File
@@ -32,9 +32,8 @@
}; };
# gtk.enable = lib.mkForce false; # gtk.enable = lib.mkForce false;
xdg.portal = { xdg.portal = {
enable = lib.mkForce false; enable = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-termfilechooser
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
]; ];
}; };
@@ -0,0 +1,33 @@
{ den, modules, ... }:
{
modules.rfkill-sleep = {
nixos =
{ pkgs, ... }:
let
sleep-rfkill = pkgs.writeShellScript "sleep-rfkill" "
${pkgs.util-linux}/bin/rfkill block all
";
wake-rfkill = pkgs.writeShellScript "wake-rfkill" "
${pkgs.util-linux}/bin/rfkill unblock all
";
in
{
# My laptop doesn't like having connectivity when it goes to sleep, it burns through battery
systemd.services.sleep-rfkill = {
enable = true;
DefaultDependencies = false;
StopWhenUnneeded = true;
description = "";
before = [ "sleep.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${sleep-rfkill}";
ExecStop = "${wake-rfkill}";
RemainAfterExit = true;
};
wantedBy = [ "sleep.target" ];
};
};
};
}