jordanisaacs / neovim-flake

Nix flake for neovim with configuration
https://jordanisaacs.github.io/neovim-flake
MIT License
259 stars 56 forks source link

Applying flake to system configuration... #9

Closed LukaKon closed 2 years ago

LukaKon commented 2 years ago

Hello, Really nice flake :) I used it a little bit and decided to implement it to my system configuration... and here problem appear. Till now I used @wiltaylor flake and it was implemented like this: ` inputs.neovim-flake = {

url = "github:jordanisaacs/neovim-flake";

  url = "github:wiltaylor/neovim-flake";
};

outputs = inputs@{ self ..., , neovim-flake , ... }: nixosConfigurations = { let system = "x86_64-linux";

  lib = nixpkgs-unstable.lib;

  pkgs = import nixpkgs-unstable {
    inherit system; # overlays;
    config.allowUnfree = true;
    overlays = [
      (final: prev: {
        # neovim = neovim-flake.defaultPackage.${system};
      })
    ];
  };
in {
    # desktop
    fuji = lib.nixosSystem {
      inherit system pkgs;
      modules = [
        ({ config, pkgs, ... }:
          {
            environment.systemPackages = with pkgs; [
              neovim-flake.defaultPackage.${system}
            ];
            imports = [ ./comp/fuji.nix ];
          }
        )
      ];
    };`

... I thought it will be enough to repleace url in inputs but rebuild generate an error: error: attribute 'defaultPackage' missing Generally I don't know nix (I am a few steps after beginning :) and I build my config by copy/paste method and I am happy when it's working :) Any hint would be appreciated :) Thanks in advance!