vscode: do not use fhs env
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
95603f4d35
commit
066e5d203a
1 changed files with 120 additions and 119 deletions
|
@ -10,24 +10,24 @@ with lib; let
|
||||||
in {
|
in {
|
||||||
options.custom.programs.vscode.enable = mkOption {default = false;};
|
options.custom.programs.vscode.enable = mkOption {default = false;};
|
||||||
|
|
||||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
config = {
|
||||||
|
# Extension dependencies
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
alejandra # nix-ide
|
||||||
|
blueprint-compiler # blueprint-gtk
|
||||||
|
nixd # nix-ide
|
||||||
|
powershell # powershell
|
||||||
|
shfmt # shell-format
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
||||||
# https://wiki.nixos.org/wiki/VSCodium
|
# https://wiki.nixos.org/wiki/VSCodium
|
||||||
# https://github.com/VSCodium/vscodium
|
# https://github.com/VSCodium/vscodium
|
||||||
#!! Configuration is imperative
|
#!! Configuration is imperative
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mutableExtensionsDir = false;
|
mutableExtensionsDir = false;
|
||||||
|
package = pkgs.vscodium;
|
||||||
# Extension dependencies
|
|
||||||
# https://wiki.nixos.org/wiki/Visual_Studio_Code#Use_VS_Code_extensions_without_additional_configuration
|
|
||||||
package = pkgs.vscodium.fhsWithPackages (ps:
|
|
||||||
with ps; [
|
|
||||||
alejandra # nix-ide
|
|
||||||
blueprint-compiler # blueprint-gtk
|
|
||||||
nixd # nix-ide
|
|
||||||
powershell # powershell
|
|
||||||
shfmt # shell-format
|
|
||||||
]);
|
|
||||||
|
|
||||||
# https://github.com/nix-community/nix-vscode-extensions
|
# https://github.com/nix-community/nix-vscode-extensions
|
||||||
#?? nixos-rebuild repl > inputs.nix-vscode-extensions.extensions.${pkgs.system}.*
|
#?? nixos-rebuild repl > inputs.nix-vscode-extensions.extensions.${pkgs.system}.*
|
||||||
|
@ -138,4 +138,5 @@ in {
|
||||||
# '';
|
# '';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue