summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 228e6a8..5c1f76f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,6 +25,10 @@
forAllSystems = nixpkgs.lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
+
+ packageFn = pkgs: {
+ getchoo-website = pkgs.callPackage ./nix {};
+ };
in {
checks = forAllSystems (system: {
pre-commit-check = pre-commit-hooks.lib.${system}.run {
@@ -61,11 +65,16 @@
};
});
+ nixosModules.default = import ./nix/module.nix;
+
packages = forAllSystems (s: let
pkgs = nixpkgsFor.${s};
- in rec {
- getchoo-website = pkgs.callPackage ./nix {};
- default = getchoo-website;
+ p = packageFn pkgs;
+ in {
+ inherit (p) getchoo-website;
+ default = p.getchoo-website;
});
+
+ overlays.default = _: packageFn;
};
}