hypridle/flake.nix

54 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-02-17 22:06:07 +01:00
{
description = "Hyprland's idle daemon";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-02-29 14:09:56 +01:00
systems.url = "github:nix-systems/default-linux";
2024-02-17 22:06:07 +01:00
hyprlang = {
url = "github:hyprwm/hyprlang";
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-17 22:06:07 +01:00
};
};
2024-02-29 14:09:56 +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-17 22:06:07 +01:00
});
in {
overlays = import ./nix/overlays.nix {inherit inputs lib;};
2024-02-29 14:09:56 +01:00
packages = eachSystem (system: {
default = self.packages.${system}.hypridle;
2024-02-17 22:06:07 +01:00
inherit (pkgsFor.${system}) hypridle;
});
2024-02-17 23:02:47 +01:00
homeManagerModules = {
2024-02-29 14:09:56 +01:00
default = self.homeManagerModules.hypridle;
2024-05-21 18:46:17 +02:00
hypridle = builtins.throw "hypridle: the flake HM module has been removed. Use the module from Home Manager upstream.";
2024-02-17 23:02:47 +01:00
};
2024-02-29 14:09:56 +01:00
checks = eachSystem (system: self.packages.${system});
2024-02-17 22:06:07 +01:00
2024-02-29 14:09:56 +01:00
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
2024-02-17 22:06:07 +01:00
};
}