mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
prep main darwin config
This commit is contained in:
parent
50da7ffff8
commit
523aaff701
32 changed files with 423 additions and 142 deletions
16
flake.nix
16
flake.nix
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{
|
||||
description = "thegeneralist's config flake";
|
||||
|
||||
inputs = {
|
||||
|
|
@ -20,14 +20,22 @@
|
|||
ghostty = {
|
||||
url = "github:ghostty-org/ghostty";
|
||||
};
|
||||
# wrapper-manager = {
|
||||
# url = "github:viperML/wrapper-manager";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
#nix.url = "github:DeterminateSystems/nix-src";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, ... }: let
|
||||
outputs = inputs@{ self, nixpkgs, nix-darwin, nix, ... }: let
|
||||
inherit (builtins) readDir;
|
||||
inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs;
|
||||
inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs last mkOption splitString;
|
||||
#nix.enable = false;
|
||||
|
||||
lib = nixpkgs.lib // nix-darwin.lib;
|
||||
|
||||
targetHost = readDir ./hosts
|
||||
|> mapAttrs (name: const <| import ./hosts/${name} nixpkgs.lib inputs self)
|
||||
|> mapAttrs (name: const <| import ./hosts/${name} lib inputs self)
|
||||
|> attrsToList
|
||||
|> groupBy (host:
|
||||
if host.name == "thegeneralist" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue