Files
nixos/hosts/wsl/configuration.nix
2025-12-02 11:18:49 -05:00

57 lines
1.2 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,
inputs,
...
}: {
imports = [
inputs.home-manager.nixosModules.default
../../modules/nixos/user.nix
../../modules/nixos/postgres.nix
../../modules/nixos/podman.nix
];
wsl = {
enable = true;
defaultUser = "mthomson";
startMenuLaunchers = true;
wslConf = {
network = {
generateResolvConf = true;
};
};
};
networking.hostName = "wsl";
environment.systemPackages = with pkgs; [
git
wget
vim
dconf
];
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
programs.nix-ld.enable = true;
home-manager = {
extraSpecialArgs = {inherit inputs;};
useGlobalPkgs = true;
useUserPackages = true;
users = {
mthomson = import ./home.nix;
};
};
system.stateVersion = "24.11";
}