2024-02-17 22:06:07 +01:00
|
|
|
{
|
|
|
|
description = "Hyprland's idle daemon";
|
|
|
|
|
|
|
|
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}) hypridle;
|
|
|
|
default = inputs.self.packages.${system}.hypridle;
|
|
|
|
});
|
|
|
|
|
2024-02-17 23:02:47 +01:00
|
|
|
homeManagerModules = {
|
|
|
|
hypridle = import ./nix/hm-module.nix inputs.self;
|
|
|
|
default = inputs.self.homeManagerModules.hypridle;
|
|
|
|
};
|
|
|
|
|
2024-02-17 22:06:07 +01:00
|
|
|
checks = genSystems (system: inputs.self.packages.${system});
|
|
|
|
|
|
|
|
formatter = genSystems (system: pkgsFor.${system}.alejandra);
|
|
|
|
};
|
|
|
|
}
|