niri: refactor nixos module
This commit is contained in:
parent
fa8accf3a6
commit
78254cbe5e
1 changed files with 8 additions and 4 deletions
|
@ -13,9 +13,13 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
programs.niri.enable = true;
|
||||
|
||||
services.displayManager.defaultSession = "niri";
|
||||
services.displayManager.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
services.displayManager = {
|
||||
defaultSession = "niri";
|
||||
enable = true;
|
||||
sddm.enable = true;
|
||||
sddm.wayland.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue