{ config, lib, ... }: let inherit (lib) mkIf mkEnableOption; cfg = config.snowhawk.niri; in { options.snowhawk.niri = { enable = mkEnableOption "niri nixos module"; }; config = mkIf cfg.enable { programs.niri.enable = true; services.displayManager.defaultSession = "niri"; }; }