mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-17 07:15:57 +01:00
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
|
{
|
||
|
description = "Hyprland's GPU-accelerated screen locking utility";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
||
|
hyprlang = {
|
||
|
url = "github:hyprwm/hyprlang";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = inputs: let
|
||
|
inherit (inputs.nixpkgs) lib;
|
||
|
genSystems = lib.genAttrs [
|
||
|
# Add more systems if they are supported
|
||
|
"x86_64-linux"
|
||
|
"aarch64-linux"
|
||
|
];
|
||
|
pkgsFor = genSystems (system:
|
||
|
import inputs.nixpkgs {
|
||
|
overlays = [inputs.self.overlays.default];
|
||
|
inherit system;
|
||
|
});
|
||
|
in {
|
||
|
overlays = import ./nix/overlays.nix {inherit inputs lib;};
|
||
|
|
||
|
packages = genSystems (system: {
|
||
|
inherit (pkgsFor.${system}) hyprlock;
|
||
|
default = inputs.self.packages.${system}.hyprlock;
|
||
|
});
|
||
|
|
||
|
homeManagerModules = {
|
||
|
hyprlock = import ./nix/hm-module.nix inputs.self;
|
||
|
default = inputs.self.homeManagerModules.hyprlock;
|
||
|
};
|
||
|
|
||
|
checks = genSystems (system: inputs.self.packages.${system});
|
||
|
|
||
|
formatter = genSystems (system: pkgsFor.${system}.alejandra);
|
||
|
};
|
||
|
}
|