fix(home): move nix.package fallback to darwin module

This commit is contained in:
Ryan Yin
2026-07-10 12:51:41 +08:00
parent 0bba489dbc
commit 2868b72019
2 changed files with 7 additions and 3 deletions
+1 -3
View File
@@ -1,4 +1,4 @@
{ myvars, pkgs, ... }: { myvars, ... }:
{ {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
@@ -15,6 +15,4 @@
# changes in each release. # changes in each release.
stateVersion = "24.11"; stateVersion = "24.11";
}; };
nix.package = pkgs.nix;
} }
+6
View File
@@ -1,10 +1,16 @@
{ {
lib,
mylib, mylib,
myvars, myvars,
pkgs,
... ...
}: }:
{ {
home.homeDirectory = "/Users/${myvars.username}"; home.homeDirectory = "/Users/${myvars.username}";
# home-manager's darwin module only forwards the system-level nix.package
# when `nix.enable` is on, so provide a low-priority fallback here.
nix.package = lib.mkDefault pkgs.nix;
imports = (mylib.scanPaths ./.) ++ [ imports = (mylib.scanPaths ./.) ++ [
../base/core ../base/core
../base/tui ../base/tui