flake: add wsl host
This commit is contained in:
parent
fa727b54c9
commit
59134e6276
@ -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
|
||||
|
23
hosts/nixos-wsl/configuration.nix
Normal file
23
hosts/nixos-wsl/configuration.nix
Normal 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
6
hosts/nixos-wsl/home.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ pkgs, lib, config, osConfig ? {}, ... }:
|
||||
{
|
||||
config = {
|
||||
nixfiles.profile.base.enable = true;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user