summaryrefslogtreecommitdiff
path: root/hosts/wsl/default.nix
blob: 2dc86c4d6623361ed583a03ea9b6fae2e0b2730b (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
# 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
    inputs.self.packages.${system}.arcanist
  ];

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