nixos/modules/niri.nix

31 lines
578 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;
};
home-manager.sharedModules = [
./home/niri.nix
{ snowhawk.niri.enable = lib.mkDefault true; }
];
2024-09-12 00:34:57 +00:00
};
}