diff --git a/flake.lock b/flake.lock index 6959928..3fb87ef 100644 --- a/flake.lock +++ b/flake.lock @@ -173,6 +173,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_4" + }, + "locked": { + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -334,7 +352,8 @@ "flake-parts": "flake-parts", "home-manager": "home-manager_2", "lanzaboote": "lanzaboote", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "vscode-server": "vscode-server" } }, "rust-overlay": { @@ -407,6 +426,21 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "inputs": { "systems": "systems_2" @@ -424,6 +458,27 @@ "repo": "flake-utils", "type": "github" } + }, + "vscode-server": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1684517665, + "narHash": "sha256-SaAr66uCQ8CF75jIr23FZjk1+9Kfwm5sQnwV25206Gs=", + "owner": "nix-community", + "repo": "nixos-vscode-server", + "rev": "1e1358493df6529d4c7bc4cc3066f76fd16d4ae6", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-vscode-server", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 7b3714c..f86aa08 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,11 @@ url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; }; + + vscode-server = { + url = "github:nix-community/nixos-vscode-server"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = {flake-parts, ...} @ inputs: diff --git a/modules/common.nix b/modules/common.nix index 91881c1..00e1849 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -96,6 +96,8 @@ openFirewall = lib.mkDefault false; }; + vscode-server.enable = true; + tailscale = { enable = true; useRoutingFeatures = "both"; diff --git a/systems/default.nix b/systems/default.nix index d231c3d..2c72313 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -26,6 +26,7 @@ ../modules/common.nix agenix.nixosModules.default home-manager.nixosModules.home-manager + vscode-server.nixosModules.default ]; desktop = with inputs;