diff options
| author | K900 <me@0upti.me> | 2023-09-30 08:26:46 +0300 |
|---|---|---|
| committer | K900 <me@0upti.me> | 2023-09-30 08:39:41 +0300 |
| commit | dd632e50ba1a4d181c4d0c0ca12563cc3e4449d6 (patch) | |
| tree | 43c4c377ddbecd0d07ecf5a91c0c4076b5e2c66b | |
| parent | 8735bdfa5fdfa6e90d944ff9f5f806668b53eacb (diff) | |
fix: fix config generation for legacy/tests
| -rw-r--r-- | modules/build-tarball.nix | 8 | ||||
| -rw-r--r-- | tests/docker/docker-native.nix | 2 | ||||
| -rw-r--r-- | tests/login-shell/session-variables.nix | 1 | ||||
| -rw-r--r-- | tests/shells.Tests.ps1 | 1 | ||||
| -rw-r--r-- | tests/username-change/username-change.nix | 1 |
5 files changed, 6 insertions, 7 deletions
diff --git a/modules/build-tarball.nix b/modules/build-tarball.nix index f48c9ce..577f044 100644 --- a/modules/build-tarball.nix +++ b/modules/build-tarball.nix @@ -21,7 +21,7 @@ let wsl.enable = true; wsl.defaultUser = "nixos"; - ${cfg.extraTarballConfig} + ${lib.optionalString (!cfg.nativeSystemd) "wsl.nativeSystemd = false;"} # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions @@ -34,12 +34,6 @@ let ''; in { - options.wsl.extraTarballConfig = mkOption { - type = types.str; - internal = true; - default = ""; - }; - # These options make no sense without the wsl-distro module anyway config = mkIf cfg.enable { system.build.tarballBuilder = pkgs.writeShellApplication { diff --git a/tests/docker/docker-native.nix b/tests/docker/docker-native.nix index f119482..d6f76f0 100644 --- a/tests/docker/docker-native.nix +++ b/tests/docker/docker-native.nix @@ -4,6 +4,8 @@ ]; wsl.enable = true; + wsl.nativeSystemd = false; + users.users.nixos.extraGroups = [ "docker" ]; virtualisation.docker = { diff --git a/tests/login-shell/session-variables.nix b/tests/login-shell/session-variables.nix index 6829bbf..c3cca3c 100644 --- a/tests/login-shell/session-variables.nix +++ b/tests/login-shell/session-variables.nix @@ -9,6 +9,7 @@ in ]; wsl.enable = true; + wsl.nativeSystemd = false; home-manager.users.nixos = { ... }: { home = { diff --git a/tests/shells.Tests.ps1 b/tests/shells.Tests.ps1 index 6bcc640..c1dbf73 100644 --- a/tests/shells.Tests.ps1 +++ b/tests/shells.Tests.ps1 @@ -18,6 +18,7 @@ Describe "Shells" { config = mkMerge [ { wsl.enable = true; + wsl.nativeSystemd = false; users.users.nixos.shell = pkgs.$package; } (optionalAttrs (hasAttrByPath ["programs" "$package" "enable"] options) { diff --git a/tests/username-change/username-change.nix b/tests/username-change/username-change.nix index 32d7e1e..fc4609f 100644 --- a/tests/username-change/username-change.nix +++ b/tests/username-change/username-change.nix @@ -4,5 +4,6 @@ ]; wsl.enable = true; + wsl.nativeSystemd = false; wsl.defaultUser = "different-name"; } |
