nixos/modules/niri.nix

19 lines
306 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 00:34:57 +00:00
};
}