1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

refactor: hosts' systems & modules

This commit is contained in:
TheGeneralist 2025-08-02 17:07:19 +02:00
parent 0e465f6c84
commit 37c4eeaca6
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
7 changed files with 77 additions and 125 deletions

View file

@ -28,10 +28,6 @@
url = "github:oxalica/nil";
inputs.nixpkgs.follows = "nixpkgs";
};
# wrapper-manager = {
# url = "github:viperML/wrapper-manager";
# inputs.nixpkgs.follows = "nixpkgs";
# };
#nix.url = "github:DeterminateSystems/nix-src";
};
@ -40,7 +36,8 @@
inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs;
#nix.enable = false;
lib = nixpkgs.lib // nix-darwin.lib;
lib' = nixpkgs.lib.extend (_: _: nix-darwin.lib);
lib = lib'.extend <| import ./lib inputs;
targetHost = readDir ./hosts
|> mapAttrs (name: const <| import ./hosts/${name} lib inputs self)