nixos/machines/wsl/configuration.nix

27 lines
446 B
Nix
Raw Normal View History

2024-04-07 17:53:24 +00:00
{
username,
pkgs,
...
}: {
programs.nix-ld = {
enable = true;
};
wsl = {
enable = true;
defaultUser = username;
};
home-manager.users.${username}.imports = [
2024-04-09 20:45:15 +00:00
./home-manager.nix
2024-04-07 17:53:24 +00:00
];
# Hacks to enable vscode
services.vscode-server.enable = true;
wsl.extraBin = with pkgs; [
{ src = "${coreutils}/bin/uname"; }
{ src = "${coreutils}/bin/dirname"; }
{ src = "${coreutils}/bin/readlink"; }
];
}