diff --git a/hosts/main.nix b/hosts/main.nix index 1c6e83f..0fca5f6 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ inputs, pkgs, ... }: { imports = [ @@ -20,7 +20,7 @@ ../nix-os/services/nix-binary-cache.nix ../nix-os/udev.nix - (builtins.fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/fc900c16efc6a5ed972fb6be87df018bcf3035bc") + "${inputs.nixos-vscode-server}" ]; config = { diff --git a/inputs.nix b/inputs.nix index 536a8e9..6c3a94d 100644 --- a/inputs.nix +++ b/inputs.nix @@ -5,6 +5,11 @@ let self = { { inherit lock; + nixos-vscode-server = builtins.fetchTarball { + name = "nixos-vscode-server"; + url = "https://github.com/nix-community/nixos-vscode-server/archive/${lock.nixos-vscode-server.revision}.tar.gz"; + sha256 = "${lock.nixos-vscode-server.sha256}"; + }; nixpkgs = builtins.fetchTarball { name = "nixpkgs"; url = "https://github.com/NixOS/nixpkgs/archive/${lock.nixpkgs.revision}.tar.gz"; diff --git a/lock.nix b/lock.nix index 1f08af2..09cca69 100644 --- a/lock.nix +++ b/lock.nix @@ -1,4 +1,8 @@ { + nixos-vscode-server = { + revision = "fc900c16efc6a5ed972fb6be87df018bcf3035bc"; + sha256 = "1rq8mrlmbzpcbv9ys0x88alw30ks70jlmvnfr2j8v830yy5wvw7h"; + }; nixpkgs = { revision = "10c832d0548e9e3a6df7eb51e68c2783212a303e"; sha256 = "1p206hgfxbz0rmkzaslfrknbdss4n4dnb09pi5466h8ksmm8216q";