nixos: use bulk module import
parent
66c75433d3
commit
01e95de29b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue