diff options
| author | seth <[email protected]> | 2023-05-16 05:04:27 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-16 05:17:19 -0400 |
| commit | 4b2f271406f4f32dee01d0ecb7d8528e9eae1c1d (patch) | |
| tree | 1535bafb63c40beed466c13fdf126d0495484cd0 /flake.nix | |
| parent | 2b61b5e29cb66309bac452d25ae166e6a2760b42 (diff) | |
feat(flake): add nixos module
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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; }; } |
