Hyprland/nix/module.nix

22 lines
455 B
Nix
Raw Normal View History

2022-12-04 22:29:12 +03:00
inputs: {
2022-05-21 13:07:55 +03: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 13:07:55 +03:00
in {
config = {
programs.hyprland = {
package = lib.mkDefault package;
portalPackage = lib.mkDefault portalPackage;
};
2022-05-21 13:07:55 +03:00
};
}