diff options
| author | nzbr <mail@nzbr.de> | 2022-02-03 16:25:52 +0100 |
|---|---|---|
| committer | nzbr <mail@nzbr.de> | 2022-02-08 12:24:30 +0100 |
| commit | 5b81e1e59e127c24778cb7351bdb8e49fe0c3dec (patch) | |
| tree | 5e7d44c8d189f9681e87a621f7b80b6255cb9e10 /configuration.nix | |
| parent | e844679c6a0413dae78476268e191f0b4844c164 (diff) | |
create an installer tarball to circumvent the unspecified error when running wsl --import
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/configuration.nix b/configuration.nix index 7fe5c53..89b700b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,18 +2,14 @@ with lib; let - defaultUser = "nixos"; - automountPath = "/mnt"; syschdemd = import ./syschdemd.nix { inherit lib pkgs config defaultUser; }; nixos-wsl = import ./default.nix; in { - imports = with nixos-wsl.nixosModules; [ + imports = [ "${modulesPath}/profiles/minimal.nix" - build-tarball - docker-desktop - wsl-distro + nixos-wsl.nixosModules.wsl ]; wsl = { @@ -26,7 +22,8 @@ in # docker.enable = true; }; - # Enable nix-flakes by default + # Enable nix flakes + nix.package = pkgs.nixFlakes; nix.extraOptions = '' experimental-features = nix-command flakes ''; |
