-
Notifications
You must be signed in to change notification settings - Fork 9
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use this with home-manager
without using flakes?
#30
Comments
home-mananger
without using flakes?home-manager
without using flakes?
I don't have a nixos system available at the moment but I think this might be what you are looking for? |
Does that indeed apply to home-manager? I'm not very knowledgeable on the Nix language so I have no idea how to translate that to something else. For example, how do I use that piece of code in something like this: programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
dracula-theme.theme-dracula
vscodevim.vim
yzhang.markdown-all-in-one
];
}; Basically, how would I use the extensions from this repo in this |
Hi, @hyperspace01! I don't use home manager. I suggest you first explore the nix-repl> t = (import (builtins.fetchGit {
url = "https://github.com/nix-community/nix-vscode-extensions";
ref = "refs/heads/master";
rev = "c43d9089df96cf8aca157762ed0e2ddca9fcd71e";
})).extensions
nix-repl> t.x86_64-linux.<TAB>
t.x86_64-linux.forVSCodeVersion t.x86_64-linux.open-vsx-release t.x86_64-linux.vscode-marketplace-release
t.x86_64-linux.open-vsx t.x86_64-linux.vscode-marketplace If you use nix-repl> t = (import (builtins.fetchGit {
url = "https://github.com/nix-community/nix-vscode-extensions";
ref = "refs/heads/master";
rev = "c43d9089df96cf8aca157762ed0e2ddca9fcd71e";
}))
nix-repl> t.overlays.default
芦lambda @ /nix/store/3n6lyzv4jvpaq34qa5j89c9cjmk38dwi-source/flake.nix:33:19禄
nix-repl> pkgs = import <nixpkgs> {system = builtins.currentSystem; overlays = [t.overlays.default];}
nix-repl> pkgs.vscod<TAB>
pkgs.vscode pkgs.vscode-langservers-extracted pkgs.vscode-with-extensions
pkgs.vscode-extensions pkgs.vscode-marketplace pkgs.vscodium
pkgs.vscode-fhs pkgs.vscode-marketplace-release pkgs.vscodium-fhs
pkgs.vscode-fhsWithPackages pkgs.vscode-utils pkgs.vscodium-fhsWithPackages Choose the necessary attrset and use like |
I genuinely don't know what's going on here. Is it a nix thing, or is it more likely to be a home-manager thing? I tried googling but I didn't get helpful results. Can you help me out? :) programs.vscode = {
enable = true;
t = (import (builtins.fetchGit {
url = "https://github.com/nix-community/nix-vscode-extensions";
ref = "refs/heads/master";
rev = "c43d9089df96cf8aca157762ed0e2ddca9fcd71e";
})).extensions
extensions = [
t.x86_64-linux.vscodevim.vim
];
}; Error:
|
@hyperspace01 You forgot But I'd try something like:
|
@hyperspace01 , you'll be more productive if you study the Nix language basics |
Alright, thanks a lot everyone! |
#29 mentions home-manager, however only when using flakes. I currently have no interest in using flakes, so I hope it's possible to use it with a traditional config.
Thanks 馃槃
The text was updated successfully, but these errors were encountered: