From 2b9cf7362c4f1fe4231cc7e309387856d4083dba Mon Sep 17 00:00:00 2001 From: Sense T Date: Mon, 13 Nov 2023 09:39:35 +0800 Subject: [PATCH] test vscode --- flake.nix | 8 +++++++- services.nix | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 services.nix diff --git a/flake.nix b/flake.nix index adcd6c4..820b063 100644 --- a/flake.nix +++ b/flake.nix @@ -12,9 +12,13 @@ url = "github:oxalica/nil/2023-08-09"; inputs.nixpkgs.follows = "nixpkgs"; }; + vscode-server = { + url = "github:nix-community/nixos-vscode-server"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { nixpkgs, home-manager, nil, ... }: + outputs = { nixpkgs, home-manager, nil, vscode-server, ... }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; @@ -27,12 +31,14 @@ modules = [ ./home.nix ./programs.nix + ./services.nix ]; # Optionally use extraSpecialArgs # to pass through arguments to home.nix extraSpecialArgs = { nil = nil.packages.${system}; + vscode-server = vscode-server.pakcages.${system}; }; }; }; diff --git a/services.nix b/services.nix new file mode 100644 index 0000000..14fbdf1 --- /dev/null +++ b/services.nix @@ -0,0 +1,7 @@ +{ + imports = [ + /modules/vscode-server/home.nix + ]; + + services.vscode-server.enable = true; +}