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.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
|
@ -86,6 +86,10 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
|
@ -9,22 +9,24 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.nixos-wsl.nixosModules.default
|
inputs.nixos-wsl.nixosModules.default
|
||||||
../../modules/hostopts.nix
|
../modules/hostopts.nix
|
||||||
../../modules/nixos/common.nix
|
../modules/nixos/common.nix
|
||||||
({
|
({
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
wsl.enable=true;
|
wsl.enable = true;
|
||||||
|
wsl.wslConf.network.generateResolvConf = false;
|
||||||
|
networking.nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||||
host = {
|
host = {
|
||||||
user = "gabe";
|
user = "nixos";
|
||||||
};
|
};
|
||||||
networking.hostName = "workstation-vm"; # Define your hostname.
|
networking.hostName = "gv-wsl"; # Define your hostname.
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
programs.zsh.enable=true;
|
programs.zsh.enable = true;
|
||||||
environment.shells = with pkgs; [zsh];
|
environment.shells = with pkgs; [zsh];
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.${config.host.user} = {
|
users.users.${config.host.user} = {
|
||||||
|
@ -40,7 +42,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
}: {
|
}: {
|
||||||
host = osConfig.host;
|
host = osConfig.host;
|
||||||
home = {
|
home = {
|
||||||
enable-speech = true;
|
|
||||||
nvim = {
|
nvim = {
|
||||||
enable-lsp = true;
|
enable-lsp = true;
|
||||||
enable-treesitter = true;
|
enable-treesitter = true;
|
||||||
|
@ -54,8 +55,8 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
../../roles/home-manager/terminal.nix
|
../roles/home-manager/terminal.nix
|
||||||
../../modules/home-manager/common.nix
|
../modules/home-manager/common.nix
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
outputs,
|
outputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# Bootloader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}: {
|
}: {
|
||||||
#note: needs to have something that autostarts desktop files.
|
#note: needs to have something that autostarts desktop files.
|
||||||
services.spice-vdagentd.enable = true;
|
services.spice-vdagentd.enable = true;
|
||||||
services.spice-autorandr.enable=true;
|
services.spice-autorandr.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
./vm.nix
|
./vm.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue