Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake: add nixd overlay (providing the nixd package) #55

Merged
merged 1 commit into from Jun 3, 2023
Merged

flake: add nixd overlay (providing the nixd package) #55

merged 1 commit into from Jun 3, 2023

Conversation

Ruixi-rebirth
Copy link
Member

@Ruixi-rebirth Ruixi-rebirth commented Jun 3, 2023

add overlay support

{
  description = "My configuration";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nixd.url = "github:nix-community/nixd";
  };

  outputs = { nixpkgs, nixd, ... }:
    {
      nixosConfigurations = {
        hostname = nixpkgs.lib.nixosSystem
          {
            system = "x86_64-linux";
            modules = [
              {
                nixpkgs.overlays = [ nixd.overlays.default ];
                environment.systemPackages = with pkgs;[
                  nixd
                ];
              }
            ];
          };
      };
    };
}

Copy link
Member

@inclyc inclyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this stuff compatible with direnv? Personally I'm using devShells for environmental variables only.

Currently, I think it may not be necessary to introduce new features in flakes. If you like this environment, you can create a local flake and use nix develop your-local-flake-ref#your-shell. It is better to apply upstream changes to everyone.

lib/nixd/src/Diagnostic.cpp Outdated Show resolved Hide resolved
lib/nixd/src/Server.cpp Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
@inclyc inclyc changed the title improve devshells flake: add nixd overlay (providing nixd package) Jun 3, 2023
@inclyc inclyc changed the title flake: add nixd overlay (providing nixd package) flake: add nixd overlay (providing the nixd package) Jun 3, 2023
.gitignore Outdated Show resolved Hide resolved
add overlay support

add overlay support

add overlay support

add overlay support
@inclyc inclyc merged commit b93143e into nix-community:main Jun 3, 2023
14 checks passed
@inclyc inclyc mentioned this pull request Jun 3, 2023
23 tasks
@Ruixi-rebirth Ruixi-rebirth deleted the devs branch June 11, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants