diff options
| author | Seth Flynn <[email protected]> | 2025-02-13 17:44:18 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-13 22:09:11 -0500 |
| commit | 8531a2bc3189e31ce1623123f92cdcfce20e49b6 (patch) | |
| tree | 9632a5f799ece67019f97f5f99f2d3b01fb23477 /modules/nixos/mixins/niri.nix | |
| parent | 386ecf3d14ea486aba523b14200fcd2e7e04b9d6 (diff) | |
nixos: make desktop stuff mixins
Diffstat (limited to 'modules/nixos/mixins/niri.nix')
| -rw-r--r-- | modules/nixos/mixins/niri.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/modules/nixos/mixins/niri.nix b/modules/nixos/mixins/niri.nix new file mode 100644 index 0000000..151c185 --- /dev/null +++ b/modules/nixos/mixins/niri.nix @@ -0,0 +1,47 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + config = lib.mkIf config.programs.niri.enable { + environment = { + sessionVariables = { + NIXOS_OZONE_WL = "1"; # Niri doesn't have native XWayland support + }; + + systemPackages = with pkgs; [ + # Terminal + alacritty + # Media player + celluloid + # PDF viewer + evince + # Application runner + fuzzel + # Image viewer + loupe + # Notification daemon + mako + # Polkit agent + pantheon.pantheon-agent-polkit + # Screen locker + swaylock + # Trash manager + trashy + ]; + }; + + services.greetd = { + enable = lib.mkDefault true; + settings = { + default_session.command = toString [ + (lib.getExe pkgs.greetd.tuigreet) + "--time" + ]; + }; + }; + }; +} |
