nixos: use bulk module import

Zynh Ludwig 2024-07-26 15:37:27 -07:00
parent 66c75433d3
commit 01e95de29b
1 changed files with 8 additions and 8 deletions

View File

@ -1,14 +1,14 @@
{ 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 = [
./dwm.nix
./i18n.nix
./audio.nix
./env.nix
./syncthing.nix
./plymouth.nix
];
imports = modulePaths;
snowhawk.i18n.enable = lib.mkDefault true;
snowhawk.audio.enable = lib.mkDefault true;