From 0e66d9355ee6b07cebfe932e9570057383e0ffaa Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 6 Oct 2023 14:59:28 +0100 Subject: [PATCH] home-manager/minimal: disable reloadSystemd/setupLaunchAgents --- home-manager/minimal.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home-manager/minimal.nix b/home-manager/minimal.nix index 51871aec..6686f635 100644 --- a/home-manager/minimal.nix +++ b/home-manager/minimal.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ pkgs, lib, ... }: { imports = [ ./default.nix ]; @@ -25,6 +25,12 @@ }; # Disable systemd services/sockets/timers/etc. + home.activation = { + reloadSystemd = lib.mkIf pkgs.stdenv.isLinux + (lib.mkForce (lib.hm.dag.entryAfter [ "linkGeneration" ] "")); + setupLaunchAgents = lib.mkIf pkgs.stdenv.isDarwin + (lib.mkForce (lib.hm.dag.entryAfter [ "writeBoundary" ] "")); + }; systemd.user = { automounts = lib.mkForce { }; mounts = lib.mkForce { };