summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-16 05:04:27 -0400
committerseth <[email protected]>2023-05-16 05:17:19 -0400
commit4b2f271406f4f32dee01d0ecb7d8528e9eae1c1d (patch)
tree1535bafb63c40beed466c13fdf126d0495484cd0 /flake.nix
parent2b61b5e29cb66309bac452d25ae166e6a2760b42 (diff)
feat(flake): add nixos module
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;
};
}