hypridle/flake.nix

46 lines
1.1 KiB
Nix
Raw 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";
};
};
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
};
}