summaryrefslogtreecommitdiff
path: root/hosts/wsl/default.nix
blob: f73eb01b30ec4ad9587824cee94f7aa1c9d0fbb1 (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
27
28
29
30
31
32
33
34
35
36
37
# 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; [
    (python3.withPackages (ppkgs:
      with ppkgs; [
        myst-parser
        sphinx
      ]))
    gnumake
    texliveFull
    arcanist
  ];

  # wsl ssh key
  home-manager.users.${config.user} = {
    programs.ssh = {
      extraConfig = "IdentityFile ~/.ssh/id_wsl\n";
    };
  };
}