Added darwin variations of pkgs, unstable and utils
This commit is contained in:
parent
4bc41031ef
commit
1c7e852283
11
flake.nix
11
flake.nix
@ -13,6 +13,7 @@
|
|||||||
inputs@{ self, nixpkgs, nixos-unstable, home-manager, vim-extra-plugins }:
|
inputs@{ self, nixpkgs, nixos-unstable, home-manager, vim-extra-plugins }:
|
||||||
let
|
let
|
||||||
x64System = "x86_64-linux";
|
x64System = "x86_64-linux";
|
||||||
|
darwinSystem = "aarch64-darwin";
|
||||||
|
|
||||||
wrapPkgsSystem = { system }:
|
wrapPkgsSystem = { system }:
|
||||||
import nixpkgs rec {
|
import nixpkgs rec {
|
||||||
@ -33,13 +34,21 @@
|
|||||||
|
|
||||||
pkgsX64 = wrapPkgsSystem { system = x64System; };
|
pkgsX64 = wrapPkgsSystem { system = x64System; };
|
||||||
unstableX64 = wrapPkgsSystem { system = x64System; };
|
unstableX64 = wrapPkgsSystem { system = x64System; };
|
||||||
|
|
||||||
utilsX64 = import ./lib {
|
utilsX64 = import ./lib {
|
||||||
inherit nixpkgs nixos-unstable home-manager;
|
inherit nixpkgs nixos-unstable home-manager;
|
||||||
pkgs = pkgsX64;
|
pkgs = pkgsX64;
|
||||||
unstable = unstableX64;
|
unstable = unstableX64;
|
||||||
system = x64System;
|
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 {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
architect = utilsX64.host.mkHost {
|
architect = utilsX64.host.mkHost {
|
||||||
|
Loading…
Reference in New Issue
Block a user