A layer on top of the NixOS module system to make some tasks simpler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 420B

12345678910111213141516171819202122232425262728
  1. { config, lib, pkgs, ...}:
  2. with lib;
  3. let
  4. libFiles = [
  5. ../lib/keys.nix
  6. ../lib/shell.nix
  7. ];
  8. loadLib = path: import path { inherit lib pkgs; };
  9. libs = foldr (a: b: recursiveUpdate (loadLib a) b) {} libFiles;
  10. in
  11. {
  12. imports = [
  13. ./backup
  14. ./security
  15. ./services
  16. ];
  17. options.phoebe.lib = mkOption {
  18. type = types.attrs;
  19. default = libs;
  20. internal = true;
  21. readOnly = true;
  22. };
  23. }