hyprlock/flake.nix

60 lines
1.6 KiB
Nix
Raw Permalink 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
2024-11-28 17:16:37 +01:00
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";
};
2024-02-19 00:50:56 +01:00
hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
inputs.hyprutils.follows = "hyprutils";
2024-02-19 00:50:56 +01:00
};
};
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;
2024-05-21 18:44:59 +02:00
hyprlock = builtins.throw "hyprlock: the flake HM module has been removed. Use the module from Home Manager upstream.";
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
};
}