Closed spott closed 1 year ago
On way to do it is to use this flake's overlay. You can modify your overlays
to be:
overlays = sys: [
# Your Original Overlay
(self: super: {
python = super.python310;
})
# Nix VSCode Extensions Overlay
nix-vscode-extensions.overlays.default
];
Notice that you don't need to use the system
attribute with overlays. You can safely convert overlays
to a list instead of a function taking sys
as input:
overlays = [
# Your Original Overlay
(self: super: {
python = super.python310;
})
# Nix VSCode Extensions Overlay
nix-vscode-extensions.overlays.default
];
And then you would use it like this:
pkgs = system: import nixpkgs {
inherit system overlays;
config = {allowUnfree = true;};
};
Now you can use pkgs.vscode-marketplace.PUBLISHER.NAME
to use extensions from within your home-manager
config.
Thanks a ton! That definitely makes sense.
I'm far from a nix pro, but I wanted to add this to my (flaked) homemanager config so I can get all the nice benefits.
Unfortunately, I can't figure out how to do this.
My flake:
I'd appreciate any help, not sure if this is the right place to post this, if not, point me in the right direction.