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

Adding how to add the nix-index to the nixos configuration or flakes #258

Open
osbm opened this issue Oct 26, 2024 · 0 comments
Open

Adding how to add the nix-index to the nixos configuration or flakes #258

osbm opened this issue Oct 26, 2024 · 0 comments

Comments

@osbm
Copy link

osbm commented Oct 26, 2024

You know just like the README of vscode server repository.

Install as a tarball

{
  imports = [
    (fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master")
  ];

  services.vscode-server.enable = true;
}

Install as a flake

{
  inputs.vscode-server.url = "github:nix-community/nixos-vscode-server";

  outputs = { self, nixpkgs, vscode-server }: {
    nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
      modules = [
        vscode-server.nixosModules.default
        ({ config, pkgs, ... }: {
          services.vscode-server.enable = true;
        })
      ];
    };
  };
}

I don't know how to add this package to my system permanently. And these installation scripts seem a bit imperative rather than declarative.

This may seem unnecessary but i think anything that reduces friction to setting up a feature is a good thing.

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

No branches or pull requests

1 participant