hyprlock/flake.nix
2024-02-20 14:37:12 +02:00

42 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);
};
}