Enable home-manager on WSL, importing the shared home.nix config. Remove duplicate packages and env vars from wsl.nix that are now provided by home-manager (git, ripgrep, fzf, direnv, etc.).
67 lines
2.3 KiB
Nix
67 lines
2.3 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, ... }:
|
|
|
|
{
|
|
wsl = {
|
|
enable = true;
|
|
defaultUser = "nixos";
|
|
wslConf.network.generateResolvConf = false;
|
|
};
|
|
|
|
networking = {
|
|
useDHCP = true;
|
|
# nameserver sources: https://dnsmap.io/articles/most-popular-dns-servers
|
|
nameservers = [ "84.200.69.80" "8.26.56.26" "1.1.1.1" "8.8.8.8" "64.6.65.6" "208.67.222.222" "209.244.0.3" ];
|
|
};
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
programs.nix-ld.enable = true;
|
|
# direnv is now managed by home-manager (home/danny/home.nix)
|
|
|
|
# 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?
|
|
|
|
users.users.dth = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
initialPassword = "test";
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# User-level packages (git, ripgrep, fzf, etc.) are managed by
|
|
# home-manager via home/danny/home.nix. Only system-wide deps here.
|
|
environment.systemPackages = with pkgs; [
|
|
wget # needed by vscode-server
|
|
busybox # useful system utilities (tree, unzip, etc.)
|
|
xdg-utils # terminal desktop integrations
|
|
jq # parse json
|
|
];
|
|
|
|
services.ollama.enable = true;
|
|
services.open-webui = { enable = true; port = 8080; };
|
|
|
|
services.vscode-server.enable = true;
|
|
security.rtkit.enable = true; # realtime kit hands out realtime scheduling priority
|
|
services.pipewire = {
|
|
enable = true; # if not already enabled
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
# If you want to use JACK applications, uncomment this
|
|
#jack.enable = true;
|
|
};
|
|
|
|
}
|