This commit is contained in:
2024-01-15 22:59:53 +00:00
parent 57b29a4220
commit 540659fd95
6 changed files with 128 additions and 91 deletions

View File

@@ -15,7 +15,7 @@ in {
device = "//192.168.1.109/Public";
fsType = "cifs";
# options = ["uid=0,gid=1000"];
options = ["guest" "uid=1000"];
options = ["guest" "uid=1000" "iocharset=utf8"];
};
};
}

View File

@@ -15,12 +15,38 @@ in {
# Enable native Docker support
virtualisation.docker.enable = true;
wsl.extraBin = [
# Required by VS Code's Remote WSL extension
# Required by VS Code's Remote WSL extension
{ src = "${pkgs.coreutils}/bin/dirname"; }
{ src = "${pkgs.coreutils}/bin/readlink"; }
{ src = "${pkgs.coreutils}/bin/uname"; }
{ src = "${pkgs.coreutils}/bin/mkdir"; }
{ src = "${pkgs.coreutils}/bin/rm"; }
{ src = "${pkgs.coreutils}/bin/wc"; }
{ src = "${pkgs.coreutils}/bin/date"; }
{ src = "${pkgs.coreutils}/bin/mv"; }
{ src = "${pkgs.coreutils}/bin/sleep"; }
{ src = "${pkgs.gnutar}/bin/tar"; }
{ src = "${pkgs.gzip}/bin/gzip"; }
];
programs.nix-ld = {
enable = true;
libraries = [
# Required by NodeJS installed by VS Code's Remote WSL extension
pkgs.stdenv.cc.cc
];
# Use `nix-ld-rs` instead of `nix-ld`, because VS Code's Remote WSL extension launches a non-login non-interactive shell, which is not supported by `nix-ld`, while `nix-ld-rs` works in non-login non-interactive shells.
package = inputs.nix-ld-rs.packages.${pkgs.system}.nix-ld-rs;
};
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = "sstent";
startMenuLaunchers = true;
wslConf.interop.appendWindowsPath = false;
# wslConf.interop.appendWindowsPath = false;
#No longer needed in 23.05
#interop.preserveArgvZero = true;
# docker-native.enable = true;