Giter VIP home page Giter VIP logo

Comments (1)

hoidOS avatar hoidOS commented on June 26, 2024

There you go just replace SYSTEM and USER with your actual system and username. If you don't know the exact system use the nix repl and then type builtins.currentSystem.
It is setup to track the nixpkgs-unstable channel you can modify that also if you want. I would recommend to use home-manager then just for the overlays you can still install other packages the manual way.

{
  description = "Home Manager Config";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Overlay inputs
    neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
  };

  outputs = inputs @ { nixpkgs, home-manager, ... }:
    let
      # System get in $nix repl: builtins.currentSystem
      system = "aarch64-darwin"; # e.g. x86_64-linux

      # Overlays
      neovim = inputs.neovim-nightly-overlay.overlay;

      # Pkgs config
      pkgs = import nixpkgs {
        inherit system;
        config.allowUnfree = true;
        overlays = [ neovim ];
      };
    in
    {
      homeConfigurations."USER" = home-manager.lib.homeManagerConfiguration {
        inherit pkgs;

        modules = [ ./home.nix ];
      };
    };
}

If you just want to install neovim-nightly use something like this:

{
  description = "Neovim Nightly";

  inputs = {
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
  };

  outputs = inputs @ { self, nixpkgs-unstable, ... }:
    let
      system = "x86_64-linux";

      # Neovim nightly overlay
      neovim = inputs.neovim-nightly-overlay.overlay;

      # All the pkgs options
      pkgs = import nixpkgs-unstable {
        overlays = [ neovim ];
        inherit system;
      };
    in
    {
      devShells.${system}.default = pkgs.mkShell {
        packages = with pkgs; [
          neovim-nightly
        ];
      };
    };
}

from neovim-nightly-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.