diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index cdd1147..1f7ae89 100755 --- a/nixos/modules/system/boot/stage-2-init.sh +++ b/nixos/modules/system/boot/stage-2-init.sh @@ -120,6 +120,10 @@ exec 1>&$logOutFd 2>&$logErrFd exec {logOutFd}>&- {logErrFd}>&- +mkdir -p \ + /run/etc/syndicate/core \ + /run/etc/syndicate/services + # Start Synit. echo "starting Synit..." exec synit-pid1 diff --git a/nixos/modules/system/boot/synit.nix b/nixos/modules/system/boot/synit.nix index 50aa752..d12fa75 100644 --- a/nixos/modules/system/boot/synit.nix +++ b/nixos/modules/system/boot/synit.nix @@ -95,7 +95,7 @@ with lib; "syndicate/core/hostname.pr".text = '' > - > + > ''; "syndicate/core/eudev.pr".text = let @@ -109,7 +109,7 @@ with lib; ''; in '' > - + > up>> @@ -134,7 +134,7 @@ with lib; } // (builtins.listToAttrs (map (file: { name = "syndicate/boot/${file}"; value.source = - "${pkgs.synit-pid1.src}packaging/packages/synit-config/files/etc/syndicate/boot/${file}"; + "${pkgs.synit-pid1.src}/packaging/packages/synit-config/files/etc/syndicate/boot/${file}"; }) [ "010-exec.pr" "010-milestone.pr" "010-service-state-up.pr" ])); environment.systemPackages = with pkgs; [