Hyprland/nix/module.nix

22 lines
455 B
Nix
Raw Normal View History

2022-12-04 20:29:12 +01:00
inputs: {
2022-05-21 12:07:55 +02:00
config,
lib,
pkgs,
...
}: let
inherit (pkgs.stdenv.hostPlatform) system;
cfg = config.programs.hyprland;
package = inputs.self.packages.${system}.hyprland;
portalPackage = inputs.self.packages.${system}.xdg-desktop-portal-hyprland.override {
hyprland = cfg.finalPackage;
};
2022-05-21 12:07:55 +02:00
in {
config = {
programs.hyprland = {
package = lib.mkDefault package;
portalPackage = lib.mkDefault portalPackage;
};
2022-05-21 12:07:55 +02:00
};
}