mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-12 15:42:39 +02:00
fix(home): move nix.package fallback to darwin module
This commit is contained in:
+1
-3
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user