mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 11:23:40 +00:00
Cleanup for macOS
This commit is contained in:
25
modules/machines/aether/nixos-wsl/syschdemd.nix
Normal file
25
modules/machines/aether/nixos-wsl/syschdemd.nix
Normal 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
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user