Installation on NixOS - yodlang/yod GitHub Wiki

Add the Yod input and inherit inputs in your flake.nix configuration for your system and for Home Manager if you have it:

{
  inputs = {
    …
    yod = {
      url = "github:yodlang/yod";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs =
    { nixpkgs, home-manager, ... }@inputs:
    {
      nixosConfigurations.host = nixpkgs.lib.nixosSystem {
        …
        specialArgs = {
          inherit inputs;
        };
        modules = [
          …
          home-manager.nixosModules.home-manager
          {
            home-manager = {
              …
              extraSpecialArgs = {
                inherit inputs;
              };
            };
          }
        ];
      };
    };
}

You can then install Yod as a system package:

{ …, pkgs, inputs, ... }:

{
  environment.systemPackages = with pkgs; [
    …
    inputs.yod.packages.${system}.default
  ];
}

Or as a user package with Home Manager:

{ …, pkgs, inputs, ... }:

{
  home.packages = with pkgs; [
    …
    inputs.yod.packages.${system}.default
  ];
}