Skip to content

Commit

Permalink
make module conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Apr 14, 2024
1 parent ddf2564 commit e2461ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/systemd/native/wrap-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
with lib;

let
cfg = config.wsl;

users-groups-module = import "${modulesPath}/config/users-groups.nix" {
inherit lib utils pkgs;
config = recursiveUpdate config {
Expand All @@ -27,5 +29,7 @@ let
};
in
{
system.activationScripts.users = users-groups-module.config.system.activationScripts.users;
config = mkIf (cfg.enable && cfg.nativeSystemd) {
system.activationScripts.users = users-groups-module.config.system.activationScripts.users;
};
}

0 comments on commit e2461ae

Please sign in to comment.