summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-09-30 08:26:46 +0300
committerK900 <me@0upti.me>2023-09-30 08:39:41 +0300
commitdd632e50ba1a4d181c4d0c0ca12563cc3e4449d6 (patch)
tree43c4c377ddbecd0d07ecf5a91c0c4076b5e2c66b /modules
parent8735bdfa5fdfa6e90d944ff9f5f806668b53eacb (diff)
fix: fix config generation for legacy/tests
Diffstat (limited to 'modules')
-rw-r--r--modules/build-tarball.nix8
1 files changed, 1 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 {