{ self, inputs, ... }: { flake.nixosModules.vecnaNiri = { pkgs, lib, config, ... }: { programs.niri = { enable = true; package = self.packages.${pkgs.stdenv.hostPlatform.system}.vecnaNiri; }; xdg.portal = { enable = true; extraPortals = [pkgs.xdg-desktop-portal-gtk]; }; environment.systemPackages = [pkgs.wlr-randr]; services.greetd = { enable = true; settings = { default_session = { command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --asterisks --cmd niri"; user = "jck"; }; }; }; }; perSystem = { pkgs, lib, config, self', ... }: { packages.vecnaNiri = inputs.wrapper-modules.wrappers.niri.wrap { inherit pkgs; imports = [ (self.wrapperModules.niri { inherit pkgs; inherit lib; inherit config; noctalia-shell = self'.packages.vecna-noctalia-shell; }) { config.settings.extraConfig = '' output "DP-3" { mode "2660x1440@170.07100" scale 1 } output "HDMI-A-1" { mode "1920x1080@74.97300" scale 1 position x=-1920 y=150 } workspace "w0" { open-on-output "DP-3" } workspace "w1" { open-on-output "DP-3" } workspace "w2" { open-on-output "DP-3" } workspace "w3" { open-on-output "DP-3" } workspace "w4" { open-on-output "DP-3" } workspace "w5" { open-on-output "HDMI-A-1" } workspace "w6" { open-on-output "HDMI-A-1" } workspace "w7" { open-on-output "HDMI-A-1" } workspace "w8" { open-on-output "HDMI-A-1" } workspace "w9" { open-on-output "HDMI-A-1" } ''; } ]; }; }; }