upgrade gpu
This commit is contained in:
parent
6b601bfa4b
commit
4125a78bf2
2 changed files with 28 additions and 7 deletions
|
|
@ -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
28
lib/modules/wayland.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue