nixos/modules/niri.nix

22 lines
453 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;
services.displayManager.defaultSession = "niri";
2024-09-12 01:44:30 +00:00
services.displayManager.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
2024-09-12 00:34:57 +00:00
};
}