Added darwin variations of pkgs, unstable and utils

This commit is contained in:
Giulio De Pasquale 2022-10-14 00:46:59 +02:00
parent 4bc41031ef
commit 1c7e852283

View File

@ -13,6 +13,7 @@
inputs@{ self, nixpkgs, nixos-unstable, home-manager, vim-extra-plugins }:
let
x64System = "x86_64-linux";
darwinSystem = "aarch64-darwin";
wrapPkgsSystem = { system }:
import nixpkgs rec {
@ -33,13 +34,21 @@
pkgsX64 = wrapPkgsSystem { system = x64System; };
unstableX64 = wrapPkgsSystem { system = x64System; };
utilsX64 = import ./lib {
inherit nixpkgs nixos-unstable home-manager;
pkgs = pkgsX64;
unstable = unstableX64;
system = x64System;
};
pkgsDarwin = wrapPkgsSystem { system = darwinSystem; };
unstableDarwin = wrapPkgsSystem { system = darwinSystem; };
utilsDarwin = import ./lib {
inherit nixpkgs nixos-unstable home-manager;
pkgs = pkgsDarwin;
unstable = unstableDarwin;
system = darwinSystem;
};
in {
nixosConfigurations = {
architect = utilsX64.host.mkHost {