diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-10-06 13:56:07 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-10-06 13:56:07 -0500 |
| commit | e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455 (patch) | |
| tree | 8d641ec4b3697a9b3ec703d8f8a52eedf21d45d7 /flake.nix | |
| parent | 100d1e49f6578d4c30a7f6b5baf3704a7c9b9510 (diff) | |
| download | cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.gz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.bz2 cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.lz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.xz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.zst cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.zip | |
Updated cooklang-chef
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 68 |
1 files changed, 20 insertions, 48 deletions
@@ -2,61 +2,33 @@ description = "cooklang utilities"; inputs = { - nixpkgs.url = github:nixos/nixpkgs; - flake-utils.url = github:numtide/flake-utils; - poetry2nix = { - url = github:nix-community/poetry2nix; - inputs = { - nixpkgs.follows = "nixpkgs"; - flake-utils.follows = "flake-utils"; - }; - }; + nixpkgs.url = "github:nixos/nixpkgs"; + flake-parts.url = "github:hercules-ci/flake-parts"; + systems.url = "github:nix-systems/default"; }; - outputs = inputs@{ self, nixpkgs, flake-utils, poetry2nix, ... }: { - - overlays = { - default = import ./overlays; - }; + outputs = inputs @ { self, nixpkgs, flake-parts, ... }: flake-parts.lib.mkFlake { inherit self inputs; } { + systems = import inputs.systems; - nixosModules = { - default = import ./modules/nixos; - }; - homeManagerModules = { - default = import ./modules/home-manager; + flake = { + overlays.default = import ./overlays; + nixosModules.default = import ./modules/nixos; + homeModules.default = import ./modules/home-manager; }; - } // flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { - inherit system; - overlays = [ - self.overlays.default - (prev: final: { - poetry2nix = poetry2nix.lib.mkPoetry2Nix { pkgs = prev; }; - }) - ]; - }; - in { - packages = { - inherit (pkgs) cooklang-chef cook-cli; - inherit (pkgs.vimPlugins) vim-cooklang; - }; - - apps = { - chef = { - type = "app"; - program = pkgs.lib.getExe pkgs.cooklang-chef; - }; - cookcli = { - type = "app"; - program = pkgs.lib.getExe pkgs.cook-cli; + perSystem = { config, pkgs, system, ... }: { + _module.args.pkgs = import nixpkgs { + inherit system; + overlays = [ + self.overlays.default + ]; }; - cook-import = { - type = "app"; - program = pkgs.lib.getExe pkgs.cook-import; + + packages = { + inherit (pkgs) cooklang-chef; + inherit (pkgs.vimPlugins) vim-cooklang; }; }; - }); + }; } |
