mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 05:19:48 +01:00
4667f721be
* core: move to hyprgraphics * Nix: add hyprgraphics --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
{
|
|
description = "Hyprland's GPU-accelerated screen locking utility";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
|
|
hyprgraphics = {
|
|
url = "github:hyprwm/hyprgraphics";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
inputs.hyprutils.follows = "hyprutils";
|
|
};
|
|
|
|
hyprutils = {
|
|
url = "github:hyprwm/hyprutils";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
hyprlang = {
|
|
url = "github:hyprwm/hyprlang";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
inputs.hyprutils.follows = "hyprutils";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
systems,
|
|
...
|
|
} @ inputs: let
|
|
inherit (nixpkgs) lib;
|
|
eachSystem = lib.genAttrs (import systems);
|
|
pkgsFor = eachSystem (system:
|
|
import nixpkgs {
|
|
localSystem.system = system;
|
|
overlays = with self.overlays; [default];
|
|
});
|
|
in {
|
|
overlays = import ./nix/overlays.nix {inherit inputs lib;};
|
|
|
|
packages = eachSystem (system: {
|
|
default = self.packages.${system}.hyprlock;
|
|
inherit (pkgsFor.${system}) hyprlock;
|
|
});
|
|
|
|
homeManagerModules = {
|
|
default = self.homeManagerModules.hyprlock;
|
|
hyprlock = builtins.throw "hyprlock: the flake HM module has been removed. Use the module from Home Manager upstream.";
|
|
};
|
|
|
|
checks = eachSystem (system: self.packages.${system});
|
|
|
|
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
|
|
};
|
|
}
|