laptop
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user