Closed zeratax closed 1 year ago
I tried in on both a server with an older version of NixOS and a VM (with release 23.05) and I could not reproduce your problem. Could you give me more details? What Nixpkgs are you using? How are you using it?
I have this in my home-manager conf:
{
imports = [
(fetchTarball "https://github.com/msteen/nixos-vscode-server/tarball/master")
];
services.vscode-server.enable = true;
services.vscode-server.nodejsPackage = pkgs.nodejs-16_x;
}
and my system:
$ nix-shell -p nix-info --run "nix-info -m"
:
"x86_64-linux"
Linux 5.15.90.2-microsoft-standard-WSL2, NixOS, 22.11 (Raccoon), 22.11.4773.ea4c80b39be
yes
yes
nix-env (Nix) 2.11.1
"nixos-22.11, nixos-unstable"
"home-manager-22.11.tar.gz"
/nix/var/nix/profiles/per-user/root/channels/nixos
That explains the issue. You are using the NixOS module within Home Manager, and the systemd configuration for both of them differ, as an example the description
attribute in your reported error is one of the differences. To solve your issue you need to import the Home Manager module instead as described in the README. The only surprising thing is that you mention it suddenly not working anymore. It should never have worked the way you had it setup. So I am curious what caused that though. Since this should solve your problem. I am closing it for now.
thank you so much! idk how i overlooked that 🤦
This suddenly seems to fail with: