Skip to content

Commit

Permalink
add vscode-server
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunsingh committed Nov 25, 2023
1 parent 160bca8 commit 3fc0d7a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
darwin.url = "github:lnl7/nix-darwin";
home.url = "github:nix-community/home-manager";
nixos-wsl.url = "github:nix-community/nixos-wsl";
vscode-server.url = "github:nix-community/nixos-vscode-server";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";

### -- tooling
Expand Down
5 changes: 0 additions & 5 deletions hosts/wsl2/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,4 @@
};

hardware.opengl.enable = true;

environment.systemPackages = with pkgs; [
git
home-manager
];
}
18 changes: 17 additions & 1 deletion modules/parts/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,26 @@ let
})
] ++ lib.optionals config.wsl [
inputs.nixos-wsl.nixosModules.wsl
inputs.vscode-server.nixosModules.default

({ lib, pkgs, ... }: {
wsl.wslConf.network.hostname = name;
# needed for vscode-server
wsl = {
wslConf.network.hostname = name;
extraBin = with pkgs; [
{ src = "${coreutils}/bin/uname"; }
{ src = "${coreutils}/bin/dirname"; }
{ src = "${coreutils}/bin/readlink"; }
];
};
programs.nix-ld.enable = true;
services.vscode-server.enable = true;
system.build.installBootLoader = lib.mkForce "${pkgs.coreutils}/bin/true";
environment.systemPackages = with pkgs; [
git
wget
home-manager
];
})
];
}
Expand Down

0 comments on commit 3fc0d7a

Please sign in to comment.