51 lines
1.8 KiB
Nix
51 lines
1.8 KiB
Nix
# Edit this configuration file to define what should be installed on
|
|
# your system. Help is available in the configuration.nix(5) man page, on
|
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
|
|
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
|
|
# https://github.com/nix-community/NixOS-WSL
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
# include NixOS-WSL modules
|
|
../defaults/users.nix
|
|
<nixos-wsl/modules>
|
|
];
|
|
|
|
wsl.enable = true;
|
|
wsl.defaultUser = "autumn";
|
|
wsl.wslConf.network.generateHosts = false;
|
|
networking.hostName = "wsl-hive";
|
|
environment.systemPackages = with pkgs; [git openssl nh];
|
|
programs.zsh.enable = true;
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
networking.extraHosts = ''
|
|
10.0.0.217 hoardfrost hoardfrost.lan
|
|
10.0.0.210 yukigekko yukigekko.lan
|
|
10.0.0.110 wesbos wesbos.lan
|
|
172.18.84.193 wsl-hive wsl-hive.lan
|
|
'';
|
|
|
|
# Configure NetworkManager to use your main NixOS server
|
|
networking.networkmanager.dns = "systemd-resolved";
|
|
services.resolved.enable = true;
|
|
services.resolved.dnssec = "false";
|
|
services.resolved.extraConfig = ''
|
|
DNS=10.0.0.217 8.8.8.8 1.1.1.1
|
|
FallbackDNS=1.0.0.1 8.8.4.4
|
|
Domains=lan
|
|
'';
|
|
# wsl.wslConf.network.generateResolvConf = false;
|
|
|
|
# This value determines the NixOS release from which the default
|
|
# settings for stateful data, like file locations and database versions
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
# this value at the release version of the first install of this system.
|
|
# Before changing this value read the documentation for this option
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
system.stateVersion = "25.05"; # Did you read the comment?
|
|
}
|