blob: dae77b5b087ed30c1159a897fee15c02334420e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# WSL
# System configuration for any wsl instance
{config, pkgs, inputs, ...}: {
imports = [
inputs.nixos-wsl.nixosModules.default
];
# options
hostName = "wsl";
minimal = true;
wsl.enable = true;
wsl.defaultUser = config.user;
# packages
environment.systemPackages = with pkgs; [
sphinx
inputs.self.packages.${system}.arcanist
];
# wsl ssh key
home-manager.users.${config.user} = {
programs.ssh = {
extraConfig = "IdentityFile ~/.ssh/id_wsl\n";
};
};
}
|