chore(systems/fuji-wsl): add function for extraBin
This commit is contained in:
parent
8633cc8ba5
commit
2b1a15d868
1 changed files with 13 additions and 10 deletions
|
@ -5,6 +5,14 @@
|
||||||
nixos-wsl,
|
nixos-wsl,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
mkExtraBin = lib.mapAttrsToList (
|
||||||
|
name: value: {
|
||||||
|
inherit name;
|
||||||
|
src = lib.escapeShellArg value;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
|
@ -23,16 +31,11 @@
|
||||||
useWindowsDriver = true;
|
useWindowsDriver = true;
|
||||||
interop.includePath = false;
|
interop.includePath = false;
|
||||||
|
|
||||||
extraBin = [
|
extraBin = mkExtraBin {
|
||||||
{
|
code = "/mnt/c/Users/Leo/AppData/Local/Programs/Microsoft VS Code/bin/code";
|
||||||
name = "code";
|
neovide-unwrapped = "/mnt/c/Program Files/Neovide/neovide.exe";
|
||||||
src = lib.escapeShellArg "/mnt/c/Users/Leo/AppData/Local/Programs/Microsoft VS Code/bin/code";
|
win32yank = "/mnt/c/Program Files/win32yank/win32yank.exe";
|
||||||
}
|
};
|
||||||
{
|
|
||||||
name = "neovide-unwrapped";
|
|
||||||
src = lib.escapeShellArg "/mnt/c/Program Files/Neovide/neovide.exe";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
wslConf.network = {
|
wslConf.network = {
|
||||||
hostname = config.networking.hostName;
|
hostname = config.networking.hostName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue