fix(dotfiles): qualify stable UID helpers
This commit is contained in:
@@ -40,6 +40,8 @@
|
|||||||
|
|
||||||
## Gotchas
|
## Gotchas
|
||||||
|
|
||||||
|
- `configs/nixos/registry/stable-uid.nix` receives library functions through `lib`.
|
||||||
|
Qualify its library calls with `lib.`.
|
||||||
- Guest modules are host-agnostic wiring, while host files own deployment-specific service configuration such as served volumes and host paths.
|
- Guest modules are host-agnostic wiring, while host files own deployment-specific service configuration such as served volumes and host paths.
|
||||||
For example, `guests/copyparty.nix` should expose options and translate them into guest mounts/service settings, while `hosts/pikachu/default.nix` chooses `/inbox`, `/media`, and their backing paths.
|
For example, `guests/copyparty.nix` should expose options and translate them into guest mounts/service settings, while `hosts/pikachu/default.nix` chooses `/inbox`, `/media`, and their backing paths.
|
||||||
Guest addresses and routes are host-level configuration because a guest module can be used on multiple hosts.
|
Guest addresses and routes are host-level configuration because a guest module can be used on multiple hosts.
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
let
|
let
|
||||||
duplicateUids =
|
duplicateUids =
|
||||||
entries:
|
entries:
|
||||||
filterAttrs (_uid: serviceNames: builtins.length serviceNames > 1) (serviceNamesByUid entries);
|
lib.filterAttrs (_uid: serviceNames: builtins.length serviceNames > 1) (serviceNamesByUid entries);
|
||||||
|
|
||||||
serviceNamesByUid =
|
serviceNamesByUid =
|
||||||
entries:
|
entries:
|
||||||
mapAttrs (_uid: uidEntries: unique (map (entry: entry.entry) uidEntries)) (
|
lib.mapAttrs (_uid: uidEntries: lib.unique (map (entry: entry.entry) uidEntries)) (
|
||||||
groupBy (entry: toString entry.value) entries
|
lib.groupBy (entry: toString entry.value) entries
|
||||||
);
|
);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user