aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 435a792732d1944060ff4fc8cf5e37950203e3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  description = "cooklang utilities";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs";
    flake-parts.url = "github:hercules-ci/flake-parts";
    systems.url = "github:nix-systems/default";
  };

  outputs = inputs @ { self, nixpkgs, flake-parts, ... }: flake-parts.lib.mkFlake { inherit self inputs; } {
    systems = import inputs.systems;


    flake = {
      overlays.default = import ./overlays;
      nixosModules.default = import ./modules/nixos;
      homeModules.default = import ./modules/home-manager;
    };

    perSystem = { config, pkgs, system, ... }: {
      _module.args.pkgs = import nixpkgs {
        inherit system;
        overlays = [
          self.overlays.default
        ];
      };

      packages = {
        inherit (pkgs) cooklang-chef;
        inherit (pkgs.vimPlugins) vim-cooklang;
      };
    };
  };
}