This commit is contained in:
caem 2025-01-25 00:03:28 +01:00
parent 67a34cb08d
commit e0880ff700
Signed by: caem
GPG key ID: 69A830D03203405F
3 changed files with 14 additions and 3 deletions

View file

@ -3,6 +3,7 @@
let
fs = import ./fs.nix { inherit lib; };
hosts = import ./hosts.nix { inherit lib; };
modules = import ./modules.nix { inherit lib; };
in
fs // hosts
fs // hosts // modules

10
lib/modules.nix Normal file
View file

@ -0,0 +1,10 @@
{ lib }:
rec {
makeOverridable =
f: origArgs:
let
origRes = f origArgs;
in
origRes // { override = newArgs: makeOverridable f (origArgs // newArgs); };
}