Cleanup for macOS

This commit is contained in:
Dave Gallant
2023-07-09 14:48:03 -04:00
parent 6e19c4512d
commit a1a485ceb6
28 changed files with 40 additions and 41 deletions

View File

@@ -0,0 +1,43 @@
{
lib,
pkgs,
config,
modulesPath,
...
}:
with lib; let
nixos-wsl = import ./nixos-wsl;
in {
imports = [
"${modulesPath}/profiles/minimal.nix"
./nix-ld-config.nix
nixos-wsl.nixosModules.wsl
];
nix-ld-config.enable = true;
nixpkgs.config.allowUnfree = true;
system.stateVersion = "unstable";
networking = {hostName = "aether";};
wsl = {
enable = true;
automountPath = "/mnt";
defaultUser = "dave";
startMenuLaunchers = true;
# Enable integration with Docker Desktop
docker.enable = true;
tailscale.enable = true;
};
# Enable nix flakes
nix.package = pkgs.nixVersions.stable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
}