hyprlock/flake.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-19 00:50:56 +01:00
{
description = "Hyprland's GPU-accelerated screen locking utility";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-02-29 14:13:35 +01:00
systems.url = "github:nix-systems/default-linux";
2024-02-19 00:50:56 +01:00
hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-02-29 14:13:35 +01:00
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];
2024-02-19 00:50:56 +01:00
});
in {
overlays = import ./nix/overlays.nix {inherit inputs lib;};
2024-02-29 14:13:35 +01:00
packages = eachSystem (system: {
default = self.packages.${system}.hyprlock;
2024-02-19 00:50:56 +01:00
inherit (pkgsFor.${system}) hyprlock;
});
homeManagerModules = {
2024-02-29 14:13:35 +01:00
default = self.homeManagerModules.hyprlock;
hyprlock = import ./nix/hm-module.nix self;
2024-02-19 00:50:56 +01:00
};
2024-02-29 14:13:35 +01:00
checks = eachSystem (system: self.packages.${system});
2024-02-19 00:50:56 +01:00
2024-02-29 14:13:35 +01:00
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
2024-02-19 00:50:56 +01:00
};
}