mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: darwin + NixOS base
This commit is contained in:
parent
d03de5a56e
commit
d35f67edf4
5 changed files with 60 additions and 28 deletions
30
default.nix
30
default.nix
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue