Cleanup for macOS

This commit is contained in:
Dave Gallant
2023-07-09 14:48:03 -04:00
parent 6e19c4512d
commit a1a485ceb6
28 changed files with 40 additions and 41 deletions

View File

@@ -0,0 +1,25 @@
{
lib,
pkgs,
config,
defaultUser,
...
}:
pkgs.substituteAll {
name = "syschdemd";
src = ./syschdemd.sh;
dir = "bin";
isExecutable = true;
buildInputs = with pkgs; [daemonize];
inherit (pkgs) daemonize;
inherit defaultUser;
inherit (config.security) wrapperDir;
fsPackagesPath = lib.makeBinPath config.system.fsPackages;
systemdWrapper = pkgs.writeShellScript "systemd-wrapper.sh" ''
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc || true
exec systemd
'';
}