upgrade gpu

This commit is contained in:
tristan 2023-05-25 08:59:08 +01:00
parent 6b601bfa4b
commit 4125a78bf2
2 changed files with 28 additions and 7 deletions

View file

@ -70,11 +70,4 @@
hardware.keyboard.zsa.enable = true;
services.tlp = {
settings = {
# power limit poor old radeon gpu
RADEON_DPM_PERF_LEVEL_ON_AC = "low";
};
};
}

28
lib/modules/wayland.nix Normal file
View file

@ -0,0 +1,28 @@
{ user }: { lib, pkgs, config, ... }:
with lib;
let
cfg = config.windowManager;
in
{
options.windowManager = {
hyprland = mkEnableOption "hyprland";
sway = mkEnableOption "sway";
};
config = {
services.greetd = {
enable = true;
settings = rec {
hypr_session = {
command = "Hyprland";
user = user;
};
sway_session = {
command = "sway";
user = user;
};
default_session = if cfg.sway then sway_session else hypr_session;
};
};
};
}