18 lines
499 B
Nix
18 lines
499 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
|
|
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
|
moduleNames = builtins.attrNames moduleEntries;
|
|
|
|
modulePaths = builtins.map (name: ./${name}) moduleNames;
|
|
in
|
|
{
|
|
imports = modulePaths;
|
|
|
|
snowhawk.i18n.enable = lib.mkDefault true;
|
|
snowhawk.audio.enable = lib.mkDefault true;
|
|
snowhawk.env.enable = lib.mkDefault true;
|
|
snowhawk.sops.enable = lib.mkDefault true;
|
|
}
|