15 lines
546 B
Nix
15 lines
546 B
Nix
{ inputs, pkgs, lib, nixosConfig, ... }:
|
|
let
|
|
cfg = nixosConfig.my.desktop;
|
|
in
|
|
{
|
|
programs.kitty.enable = cfg.enable; # required for the default Hyprland config
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
# set the flake package
|
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
|
# make sure to also set the portal package, so that they are in sync
|
|
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
systemd.enable = true;
|
|
};
|
|
} |