anyrun-org / anyrun

A wayland native, highly customizable runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is the snippet provided in the Nix + flakes documentation incorrect?

bzm3r opened this issue · comments

A link to the section I am referring to: https://github.com/Kirottu/anyrun?tab=readme-ov-file#nix

In particular, in this snippet:

# flake.nix
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    anyrun.url = "github:Kirottu/anyrun";
    anyrun.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, anyrun }: let
  in {
    nixosConfigurations.HOSTNAME = nixpkgs.lib.nixosSystem {
      # ...

      system.packages = [ anyrun.packages.${system}.anyrun ];

      # ...
    };
  };
}

...is the line system.packages = [...] supposed to be environment.systemPackages = [...]?

commented

that's correct, it should be environment.systemPackages and not system.packages

updated via #138

commented

#138 does not address the issue. As I've said, it should be environment.systemPackages.

Sorry, my bad.