niri: refactor nixos module

This commit is contained in:
Zynh Ludwig 2024-09-13 17:27:15 -07:00
parent fa8accf3a6
commit 78254cbe5e

View file

@ -13,9 +13,13 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.niri.enable = true; programs.niri.enable = true;
services.displayManager.defaultSession = "niri"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
services.displayManager.enable = true;
services.displayManager.sddm.enable = true; services.displayManager = {
services.displayManager.sddm.wayland.enable = true; defaultSession = "niri";
enable = true;
sddm.enable = true;
sddm.wayland.enable = true;
};
}; };
} }