nixos: use bulk module import
This commit is contained in:
parent
f2af0dfd64
commit
e46de005fd
1 changed files with 8 additions and 8 deletions
|
@ -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 a new issue