mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 02:08:29 +02:00
feat: use the same nixpkgs as much as possible - macOS
This commit is contained in:
@@ -140,7 +140,7 @@
|
|||||||
}
|
}
|
||||||
// inputs;
|
// inputs;
|
||||||
base_args = {
|
base_args = {
|
||||||
inherit nix-darwin home-manager system specialArgs;
|
inherit nix-darwin home-manager system specialArgs nixpkgs;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
harmonica = macosSystem (base_args // {
|
harmonica = macosSystem (base_args // {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
nixpkgs,
|
||||||
nix-darwin,
|
nix-darwin,
|
||||||
home-manager,
|
home-manager,
|
||||||
system,
|
system,
|
||||||
@@ -13,6 +14,15 @@ in
|
|||||||
modules =
|
modules =
|
||||||
darwin-modules
|
darwin-modules
|
||||||
++ [
|
++ [
|
||||||
|
{
|
||||||
|
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
|
||||||
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
|
|
||||||
|
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
|
||||||
|
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
|
||||||
|
nix.nixPath = ["/etc/nix/inputs"];
|
||||||
|
}
|
||||||
|
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user