From 30d2f29e7b1533bc8cee2c043963c8f4ce314af4 Mon Sep 17 00:00:00 2001 From: jmug Date: Fri, 25 Sep 2026 13:07:16 -0700 Subject: [PATCH] devbox: pass Home Manager output name explicitly --- flake.nix | 2 ++ users/devbox/home.nix | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 30c4cf8..9d3244b 100644 --- a/flake.nix +++ b/flake.nix @@ -228,6 +228,7 @@ devbox = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages."x86_64-linux"; extraSpecialArgs = { + homeConfigurationName = "devbox"; pkgs-unstable = pkgs-unstable_x86_64-linux; }; modules = [ @@ -237,6 +238,7 @@ armdevbox = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages."aarch64-linux"; extraSpecialArgs = { + homeConfigurationName = "armdevbox"; pkgs-unstable = pkgs-unstable_aarch64-linux; }; modules = [ diff --git a/users/devbox/home.nix b/users/devbox/home.nix index 90afd18..354088e 100644 --- a/users/devbox/home.nix +++ b/users/devbox/home.nix @@ -1,13 +1,9 @@ { + homeConfigurationName, pkgs, pkgs-unstable, ... -} : -let - homeConfiguration = - if pkgs.stdenv.hostPlatform.system == "aarch64-linux" then "armdevbox" else "devbox"; -in -{ +} : { imports = [ ../../home-modules/default.nix ../../home-modules/nvim.nix @@ -33,7 +29,7 @@ in programs.zsh = { shellAliases = { - homesw = "home-manager --flake /home/jmug/nixos#${homeConfiguration} --extra-experimental-features nix-command --extra-experimental-features flakes switch"; + homesw = "home-manager --flake /home/jmug/nixos#${homeConfigurationName} --extra-experimental-features nix-command --extra-experimental-features flakes switch"; }; };