nixfiles/hosts/nixos-wsl/configuration.nix

31 lines
581 B
Nix

{ pkgs, config, lib, ... }:
{
config = {
networking.hostName = "nixos-wsl";
nixfiles = {
profile.base.enable = true;
binfmt.enable = true;
};
wsl.interop.register = true;
networking.networkmanager.enable = false;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "qt";
};
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts
noto-fonts-cjk
];
fileSystems."/mnt/wsl/instances/NixOS" = {
device = "/";
options = [ "bind" ];
};
};
}