use overlays in colmena
Alan Pearce alan@alanpearce.eu
Sat, 29 Mar 2025 15:47:54 +0100
1 files changed, 15 insertions(+), 1 deletions(-)
jump to
M hive.nix → hive.nix
@@ -1,6 +1,20 @@+let + path = ./overlays; + content = builtins.readDir path; + overlays = map (n: import (path + ("/" + n))) + (builtins.filter + (n: + (builtins.match ".*\\.nix" n != null && + # ignore Emacs lock files (.#foo.nix) + builtins.match "\\.#.*" n == null) || + builtins.pathExists (path + ("/" + n + "/default.nix"))) + (builtins.attrNames content)); +in { meta = { - nixpkgs = <nixpkgs>; + nixpkgs = import <nixpkgs> { + inherit overlays; + }; specialArgs = { srvos = import <srvos>; };