51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
|
{ lib, pkgs, config, modulesPath, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
nixos-wsl = import ./nixos-wsl;
|
||
|
in
|
||
|
{
|
||
|
imports = [
|
||
|
"${modulesPath}/profiles/minimal.nix"
|
||
|
./hardware-configuration.nix
|
||
|
nixos-wsl.nixosModules.wsl
|
||
|
];
|
||
|
|
||
|
system.stateVersion = "22.05";
|
||
|
|
||
|
wsl = {
|
||
|
enable = true;
|
||
|
automountPath = "/mnt";
|
||
|
defaultUser = "nixos"; # if change defaultUser, make sure uid to be 1000 (first user)
|
||
|
startMenuLaunchers = true;
|
||
|
|
||
|
# Enable native Docker support
|
||
|
# docker-native.enable = true;
|
||
|
|
||
|
# Enable integration with Docker Desktop (needs to be installed)
|
||
|
docker-desktop.enable = true;
|
||
|
|
||
|
};
|
||
|
# users.users.<defaultUser>.uid = 1000;
|
||
|
# networking.hostName = "nixos";
|
||
|
|
||
|
# Enable nix flakes
|
||
|
nix.package = pkgs.nixFlakes;
|
||
|
nix.extraOptions = ''
|
||
|
experimental-features = nix-command flakes
|
||
|
'';
|
||
|
|
||
|
# Some basic programs
|
||
|
programs.neovim = {
|
||
|
enable = true;
|
||
|
defaultEditor = true;
|
||
|
};
|
||
|
programs.git = {
|
||
|
enable = true;
|
||
|
# more information should be configured under user level
|
||
|
};
|
||
|
environment.systemPackages = [
|
||
|
pkgs.gnumake
|
||
|
];
|
||
|
}
|