Skip to content

Commit

Permalink
Merge pull request #276 from barrucadu/flake-packages
Browse files Browse the repository at this point in the history
Pull in packages via their flakes
  • Loading branch information
barrucadu authored Mar 18, 2024
2 parents 8b6a811 + 240bae4 commit 8eadd9c
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 137 deletions.
1 change: 0 additions & 1 deletion docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- [Hosts](./hosts.md)
- [Modules](./modules.md)
- [Options](./options.md)
- [Packages](./packages.md)

# Alert Runbooks

Expand Down
187 changes: 184 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 36 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
# my packages
bookdb = {
url = "github:barrucadu/bookdb";
inputs.nixpkgs.follows = "nixpkgs";
inputs.gitignore.follows = "gitignore";
inputs.rust-overlay.follows = "rust-overlay";
};
bookmarks = {
url = "github:barrucadu/bookmarks";
inputs.nixpkgs.follows = "nixpkgs";
inputs.gitignore.follows = "gitignore";
inputs.rust-overlay.follows = "rust-overlay";
};
prometheus-awair-exporter = {
url = "github:barrucadu/prometheus-awair-exporter";
inputs.nixpkgs.follows = "nixpkgs";
inputs.gitignore.follows = "gitignore";
};
resolved = {
url = "github:barrucadu/resolved";
inputs.nixpkgs.follows = "nixpkgs";
inputs.gitignore.follows = "gitignore";
inputs.rust-overlay.follows = "rust-overlay";
};
gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, sops-nix, ... }@flakeInputs:
Expand Down Expand Up @@ -44,10 +76,10 @@

packages.${system} =
{
bookdb = pkgs.callPackage ./packages/bookdb { };
bookmarks = pkgs.callPackage ./packages/bookmarks { };
prometheus-awair-exporter = pkgs.callPackage ./packages/prometheus-awair-exporter { };
resolved = pkgs.callPackage ./packages/resolved { };
bookdb = flakeInputs.bookdb.packages.${system}.default;
bookmarks = flakeInputs.bookmarks.packages.${system}.default;
prometheus-awair-exporter = flakeInputs.prometheus-awair-exporter.packages.${system}.default;
resolved = flakeInputs.resolved.packages.${system}.default;
};

apps.${system} =
Expand Down
24 changes: 0 additions & 24 deletions packages/bookdb/default.nix

This file was deleted.

24 changes: 0 additions & 24 deletions packages/bookmarks/default.nix

This file was deleted.

21 changes: 0 additions & 21 deletions packages/prometheus-awair-exporter/default.nix

This file was deleted.

26 changes: 0 additions & 26 deletions packages/resolved/default.nix

This file was deleted.

Loading

0 comments on commit 8eadd9c

Please sign in to comment.