refactor(nix/darwin): Simplify code
This commit is contained in:
parent
539e282cda
commit
472e3e05db
2 changed files with 6 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
mkCommon = import ../../lib/mkCommon.nix;
|
||||
mkSystem = import ../../lib/mkSystem.nix;
|
||||
mkBrew = import ../../overlays/darwin/brew.nix;
|
||||
in
|
||||
{
|
||||
# Host list
|
||||
|
@ -21,10 +22,7 @@ in
|
|||
unstable = nixpkgs-unstable;
|
||||
extraOverlays = [
|
||||
inputs.firefox-darwin.overlay
|
||||
(import ../../overlays/darwin/brew.nix {
|
||||
inherit system brew-api;
|
||||
nixpkgs = nixpkgs-stable;
|
||||
})
|
||||
(mkBrew { inherit system brew-api; nixpkgs = nixpkgs-stable; })
|
||||
(import ../../overlays/darwin/heliport.nix)
|
||||
];
|
||||
}
|
||||
|
@ -50,10 +48,7 @@ in
|
|||
unstable = nixpkgs-unstable;
|
||||
extraOverlays = [
|
||||
inputs.firefox-darwin.overlay
|
||||
(import ../../overlays/darwin/brew.nix {
|
||||
inherit system brew-api;
|
||||
nixpkgs = nixpkgs-stable;
|
||||
})
|
||||
(mkBrew { inherit system brew-api; nixpkgs = nixpkgs-stable; })
|
||||
];
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
mkSystem = import ../lib/mkSystem.nix;
|
||||
mkBrew = import ../../overlays/darwin/brew.nix
|
||||
in
|
||||
{
|
||||
# Host list
|
||||
|
@ -21,15 +22,12 @@ in
|
|||
system = "x86_64-darwin";
|
||||
inherit (
|
||||
mkSystem {
|
||||
arch = "x86_64-darwin";
|
||||
arch = system;
|
||||
stable = nixpkgs-stable;
|
||||
unstable = nixpkgs-unstable;
|
||||
extraOverlays = [
|
||||
inputs.firefox-darwin.overlay
|
||||
(import ../../overlays/darwin/brew.nix {
|
||||
inherit system brew-api;
|
||||
nixpkgs = nixpkgs-stable;
|
||||
})
|
||||
(mkBrew { inherit system brew-api; nixpkgs = nixpkgs-stable; })
|
||||
];
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue