feat: darwin + NixOS base

This commit is contained in:
Kat Inskip 2022-12-01 22:01:03 +01:00
parent d03de5a56e
commit d35f67edf4
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 60 additions and 28 deletions

View file

@ -1,2 +1,30 @@
{ inputs }: {
{ nixpkgs, darwin, ... }@inputs: let
tree = (inputs.tree.tree {
inherit inputs;
folder = ./.;
config = {
"/" = {
excludes = [
"flake"
"default"
];
};
};
}).impure;
lib = inputs.nixpkgs.lib;
inherit (lib.attrsets) mapAttrs;
in {
inherit tree;
nixosConfigurations = mapAttrs (name: path: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
path
];
} ) tree.nixos.systems;
darwinConfigurations = mapAttrs (name: path: darwin.lib.darwinSystem {
system = "x86_64-linux";
modules = [
path
];
} ) tree.darwin.systems;
}