nixos/hosts/wsl/configuration.nix
2025-08-27 15:08:09 +00:00

56 lines
1.1 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
];
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";
}