flake: add wsl host

This commit is contained in:
NullBite 2024-03-03 02:24:59 +00:00
parent fa727b54c9
commit 59134e6276
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 35 additions and 0 deletions

View File

@ -214,6 +214,12 @@
hostname = "nullbox";
stateVersion = "23.11";
};
nixos-wsl = mkWSLSystem {
system = "x86_64-linux";
stateVersion = "23.11";
hostname = "nixos-wsl";
};
}; # end nixosConfigurations
}; # end outputs
} # end flake

View File

@ -0,0 +1,23 @@
{ pkgs, config, lib, ... }:
{
config = {
networking.hostName = "nixos-wsl";
nixfiles.profile.base.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "gnome3";
};
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts
noto-fonts-cjk
];
fileSystems."/mnt/wsl/instances/NixOS" = {
device = "/";
options = [ "bind" ];
};
};
}

6
hosts/nixos-wsl/home.nix Normal file
View File

@ -0,0 +1,6 @@
{ pkgs, lib, config, osConfig ? {}, ... }:
{
config = {
nixfiles.profile.base.enable = true;
};
}