mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-27 15:54:58 +08:00
vscode in wsl
This commit is contained in:
parent
bdcc88faa7
commit
00e46ff829
4 changed files with 57 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
# A server for (remote) development purposes.
|
||||
{ pkgs, ... }: {
|
||||
{ pkgs, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-vscode-server.nixosModules.system
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
nodejs-14_x # Need this for https://nixos.wiki/wiki/Vscode server
|
||||
wget
|
||||
];
|
||||
services.auto-fix-vscode-server.enable = true;
|
||||
}
|
||||
|
|
|
|||
38
flake.lock
generated
38
flake.lock
generated
|
|
@ -520,6 +520,25 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-vscode-server": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1621309617,
|
||||
"narHash": "sha256-wVraqnUMkDzVRoicKB9hwd16u53lls8gDN2Df6CmoK8=",
|
||||
"owner": "iosmanthus",
|
||||
"repo": "nixos-vscode-server",
|
||||
"rev": "b7d30b8afb614ea9da284ca8e9687689ae8fcfbd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "iosmanthus",
|
||||
"ref": "add-flake",
|
||||
"repo": "nixos-vscode-server",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1632583719,
|
||||
|
|
@ -599,6 +618,22 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1632660378,
|
||||
"narHash": "sha256-sjA8eQlnyDjDLyAyq3XlJmN0nqW0ftl/pb7VnMg86L0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1632660378,
|
||||
"narHash": "sha256-sjA8eQlnyDjDLyAyq3XlJmN0nqW0ftl/pb7VnMg86L0=",
|
||||
|
|
@ -735,7 +770,8 @@
|
|||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||
"nix-doom-emacs": "nix-doom-emacs",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
"nixos-vscode-server": "nixos-vscode-server",
|
||||
"nixpkgs": "nixpkgs_7"
|
||||
}
|
||||
},
|
||||
"rotate-text": {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
nixos-hardware.url = github:NixOS/nixos-hardware/master;
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixos-vscode-server = {
|
||||
url = "github:iosmanthus/nixos-vscode-server/add-flake";
|
||||
};
|
||||
himalaya.url = "github:soywod/himalaya";
|
||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||
|
|
@ -83,6 +86,7 @@
|
|||
wsl = mkComputer
|
||||
./hosts/wsl.nix
|
||||
[
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,16 @@ in
|
|||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
services.openssh.enable = true;
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "srid";
|
||||
dataDir = "/home/srid";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Disable systemd units that don't make sense on WSL
|
||||
systemd.services."serial-getty@ttyS0".enable = false;
|
||||
systemd.services."serial-getty@hvc0".enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue