From aacd610615555a3a1840c30cedbba2525e7f9437 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Mon, 20 Jul 2026 19:54:48 +0000 Subject: [PATCH 1/2] lib.nix: pick userborn using correct system attr --- nix/lib.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/lib.nix b/nix/lib.nix index 90554403..818eb680 100644 --- a/nix/lib.nix +++ b/nix/lib.nix @@ -81,7 +81,13 @@ let system-manager = pkgs.callPackage ./packages/wrapper.nix { system-manager-unwrapped = pkgs.callPackage ../package.nix { }; }; - userborn = userborn.packages.${config.nixpkgs.hostPlatform}.default; + userborn = + userborn.packages.${ + if config.nixpkgs.hostPlatform ? system then + config.nixpkgs.hostPlatform.system + else + config.nixpkgs.hostPlatform + }.default; }; }; From 61ddf36cf99d4fadfd4038ff205549671a7602f8 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Mon, 20 Jul 2026 20:09:21 +0000 Subject: [PATCH 2/2] modules/default: make userborn optional in deactivate script --- nix/modules/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/modules/default.nix b/nix/modules/default.nix index 76147858..6a99346b 100644 --- a/nix/modules/default.nix +++ b/nix/modules/default.nix @@ -265,7 +265,9 @@ ''; deactivationScript = pkgs.writeShellScript "deactivate" '' - export PATH="$PATH:${lib.makeBinPath [ config.services.userborn.package ]}" + export PATH="$PATH:${ + lib.makeBinPath (lib.optionals config.services.userborn.enable [ config.services.userborn.package ]) + }" ${system-manager}/bin/system-manager-engine deactivate "$@" '';