This commit is contained in:
raf 2024-01-11 23:43:27 +03:00
commit 6221a470a3
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
7 changed files with 97 additions and 7 deletions

View file

@ -10,13 +10,19 @@
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
nixosModules = {
batmon = ./nix/module.nix {inherit self;};
};
packages = forEachSystem (system: {
batmon = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.${system}.batmon;
default = self.packages.${system}.batmon;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {
packagePath = ./nix/package.nix;
};
});
};
}