full, tested wsl config.
This commit is contained in:
parent
b900d6761a
commit
9f21d3020b
|
@ -83,6 +83,10 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
|
|
|
@ -86,6 +86,10 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
|
|
|
@ -9,18 +9,20 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
../../modules/hostopts.nix
|
||||
../../modules/nixos/common.nix
|
||||
../modules/hostopts.nix
|
||||
../modules/nixos/common.nix
|
||||
({
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
wsl.enable = true;
|
||||
wsl.wslConf.network.generateResolvConf = false;
|
||||
networking.nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||
host = {
|
||||
user = "gabe";
|
||||
user = "nixos";
|
||||
};
|
||||
networking.hostName = "workstation-vm"; # Define your hostname.
|
||||
networking.hostName = "gv-wsl"; # Define your hostname.
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
|
@ -40,7 +42,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
}: {
|
||||
host = osConfig.host;
|
||||
home = {
|
||||
enable-speech = true;
|
||||
nvim = {
|
||||
enable-lsp = true;
|
||||
enable-treesitter = true;
|
||||
|
@ -54,8 +55,8 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
};
|
||||
};
|
||||
imports = [
|
||||
../../roles/home-manager/terminal.nix
|
||||
../../modules/home-manager/common.nix
|
||||
../roles/home-manager/terminal.nix
|
||||
../modules/home-manager/common.nix
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
};
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
outputs,
|
||||
...
|
||||
}: {
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = ''
|
||||
|
|
Loading…
Reference in a new issue