nixos/modules/niri.nix
Zoty bf35832817
fix anti-patterns: niri portals, nix optimise, zram; add dev packages
- niri: remove explicit package override (use niri-flake default), drop
  KDE portal, set xdg.portal.config for deterministic portal resolution,
  remove unused waybar
- core: replace synchronous auto-optimise-store with async
  nix.optimise.automatic, reduce zramSwap.memoryPercent from 300 to 100
- dev: add python3 and uv to system packages
- add .mcp.json (nixos MCP server) and CLAUDE.md
2026-06-25 09:37:50 -03:00

47 lines
1.1 KiB
Nix

{ inputs, den, pkgs, ... }: {
den.aspects.niri.nixos = { pkgs, ... }:
let
quickshell-niri = inputs.qml-niri.packages.${pkgs.stdenv.hostPlatform.system}.quickshell;
in {
imports = [ inputs.niri-flake.nixosModules.niri ];
fonts.packages = [ pkgs.nerd-fonts.jetbrains-mono ];
programs.niri.enable = true;
programs.gpu-screen-recorder.enable = true;
environment.systemPackages = with pkgs; [
quickshell-niri
fuzzel
swaylock
swayidle
swww
grim
slurp
wl-clipboard
xdg-desktop-portal-gnome
xwayland-satellite
gpu-screen-recorder-gtk
libnotify
qalculate-gtk
rofimoji
];
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
config.common.default = [ "gnome" ];
};
security.pam.services.swaylock = {};
services.greetd = {
enable = true;
settings.default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd niri-session";
user = "greeter";
};
};
};
}