dotfiles/modules/nixos/profiles/graphical/wm.nix

54 lines
950 B
Nix

{
inputs,
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
in {
imports = [
inputs.niri.nixosModules.niri
];
config = mkIf config.bosun.profiles.graphical.enable {
environment.systemPackages = with pkgs; [
wayland-utils
wl-clipboard
libsForQt5.qtstyleplugin-kvantum
xwayland-satellite
nautilus
];
programs.niri = {
enable = true;
package = pkgs.niri; # TODO: Use input niri pkgs/overlay!
};
services = {
xserver.enable = true;
displayManager = {
defaultSession = "niri";
sddm = {
enable = true;
wayland.enable = true;
};
};
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config.common.default = "gtk";
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
];
};
security.polkit.enable = true;
};
}