mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-15 09:27:17 +00:00
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
osConfig,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
|
|
hyprPkgs = import ./packages {inherit pkgs;};
|
|
|
|
# TODO: Switch to flake
|
|
hyprlandPkg = pkgs.hyprland;
|
|
xdgDesktopPortalHyprlandPkg = pkgs.xdg-desktop-portal-hyprland;
|
|
|
|
cfg = osConfig.myOptions.home-manager.wms.hyprland;
|
|
in {
|
|
imports = [
|
|
./config
|
|
];
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [
|
|
hyprPkgs.hyprland-move-window
|
|
hyprPkgs.hyprland-screenshot
|
|
hyprPkgs.quick-record
|
|
hyprPkgs.toggle-fake-fullscreen
|
|
hyprPkgs.toggle-notifications
|
|
hyprPkgs.toggle-idle
|
|
hyprPkgs.brightness
|
|
pkgs.brightnessctl
|
|
pkgs.hyprpicker
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
package = hyprlandPkg;
|
|
systemd = {
|
|
enable = true;
|
|
variables = ["--all"];
|
|
};
|
|
};
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
configPackages = [hyprlandPkg];
|
|
extraPortals = [
|
|
xdgDesktopPortalHyprlandPkg
|
|
];
|
|
};
|
|
};
|
|
}
|