dotfiles

My PC Dotfiles & Website

modules/hosts/wsl/_vscode.nix (437B)


 1## Remote VS Code ##
 2{config, ...}: let
 3  inherit (config.flake) files;
 4in {
 5  home = {
 6    lib,
 7    pkgs,
 8    ...
 9  }: {
10    home = {
11      packages = with pkgs; [nixd alejandra];
12      file.".vscode-server/data/Machine/settings.json" = {
13        text = builtins.toJSON (lib.filterAttrs (name: _: lib.hasPrefix "nix." name || name == "[nix]") files.vscode.settings);
14        force = true;
15        mutable = true;
16      };
17    };
18  };
19}