ooknet/home/modules/desktop/wayland/windowManager/hyprland/default.nix
ooks-io 2130903850 refactor(hyprland): change to structure of hyprland configuration
- move bind scripts to standalone shell applications
- split configuration into more modules
- still more work to be done
2024-03-08 17:29:54 +13:00

35 lines
835 B
Nix

{ lib, config, pkgs, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume hyprkillsession;
in
{
imports = [
inputs.hyprland.homeManagerModules.default
./settings
];
config = lib.mkIf cfg.enable {
xdg.portal = {
extraPortals = [ pkgs.inputs.hyprland.xdg-desktop-portal-hyprland ];
configPackages = [ pkgs.inputs.hyprland.hyprland ];
};
home.packages = [
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
pkgs.hyprshade
hyprvolume
hyprkillsession
hyprbrightness
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd = {
enable = true;
variables = ["--all"];
};
};
};
}