summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-08-29 14:32:14 +0300
committerGitHub <noreply@github.com>2022-08-29 13:32:14 +0200
commitc1b0259313f661cf74051c916cf3bb4f061ce11f (patch)
tree899473089a30e666cdb1a1851c74695406294288 /modules
parent0b29fc7500d3222c396556661276b98f060d6838 (diff)
feat: rewrite syschdemd (#126)
Mostly just a big pile of cleanups. Important changes: - refactor and clean up the code, fix all the shellcheck complaints - stop trying to guess paths in scripts and wrap them correctly instead - use nsfs instead of trying to figure out the right PID to copy namespaces from - clean up $WSLPATH to remove extra impure entries - don't try to restart systemd if it died - make sure the store is read-only before we do anything, so systemd can't mess with it - reformat shell scripts with shfmt
Diffstat (limited to 'modules')
-rw-r--r--modules/wsl-distro.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index 4c6eda5..b3437d7 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -33,7 +33,7 @@ with builtins; with lib;
config =
let
cfg = config.wsl;
- syschdemd = import ../syschdemd.nix { inherit lib pkgs config; inherit (cfg) automountPath defaultUser; defaultUserHome = config.users.users.${cfg.defaultUser}.home; };
+ syschdemd = pkgs.callPackage ../scripts/syschdemd.nix { inherit (cfg) automountPath defaultUser; };
in
mkIf cfg.enable {