nixfiles/system/sessions/hyprland.nix
NullBite 33ee7046ef
nixfiles: add meta option
contains metadata about enabled modules (there's no "official" way to
check if wayland is enabled)
2024-02-16 17:50:43 +01:00

53 lines
1.0 KiB
Nix

{ lib, pkgs, config, ... }:
let
cfg = config.nixfiles.sessions.hyprland;
in
{
# imports = [
# ./desktop-common.nix
# # FIXME make this into an option
# ./wm-common.nix
# ];
options.nixfiles.sessions.hyprland = {
enable = lib.mkEnableOption "hyprland configuration";
};
config = lib.mkIf cfg.enable {
# enable dependencies
nixfiles.common = {
desktop.enable = true;
wm.enable = true;
};
nixfiles.meta.wayland = true;
services.xserver.displayManager.sddm.enable = true;
programs.hyprland = {
enable = true;
# TODO base this on if nvidia is enabled
enableNvidiaPatches = lib.mkDefault true;
xwayland.enable = true;
};
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
environment.systemPackages = with pkgs; [
kitty
dunst
polkit-kde-agent
eww
hyprpaper
rofi
hyprpicker
udiskie
polkit-kde-agent
];
};
}