batmon/flake.nix

30 lines
760 B
Nix
Raw Normal View History

2024-01-09 10:49:33 +00:00
{
2024-01-11 19:51:07 +00:00
description = "Batmon - battery monitor";
2025-01-08 08:08:07 +00:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-01-09 10:49:33 +00:00
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
2024-01-11 20:43:27 +00:00
nixosModules = {
2025-01-08 08:08:07 +00:00
batmon = import ./nix/module.nix self;
default = self.nixosModules.batmon;
2024-01-11 20:43:27 +00:00
};
2024-01-09 10:49:33 +00:00
packages = forEachSystem (system: {
2024-01-11 19:51:07 +00:00
batmon = pkgsForEach.${system}.callPackage ./nix/package.nix {};
2024-01-11 20:43:27 +00:00
default = self.packages.${system}.batmon;
2024-01-09 10:49:33 +00:00
});
devShells = forEachSystem (system: {
2024-01-11 20:43:27 +00:00
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {
packagePath = ./nix/package.nix;
};
2024-01-09 10:49:33 +00:00
});
};
}