nixos/modules/niri.nix

26 lines
460 B
Nix
Raw Normal View History

2024-09-12 00:34:57 +00:00
{ config, lib, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.snowhawk.niri;
in
{
options.snowhawk.niri = {
enable = mkEnableOption "niri nixos module";
};
config = mkIf cfg.enable {
2024-09-12 00:49:01 +00:00
programs.niri.enable = true;
2024-09-14 00:27:15 +00:00
environment.sessionVariables.NIXOS_OZONE_WL = "1";
services.displayManager = {
defaultSession = "niri";
enable = true;
sddm.enable = true;
sddm.wayland.enable = true;
};
2024-09-12 00:34:57 +00:00
};
}