Recursively import modules

This commit is contained in:
SebastianStork 2024-07-17 11:26:40 +02:00
parent 8b69c15eae
commit 265ea35fb2
3 changed files with 2 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{ self, ... }: { self, lib, ... }:
let let
modulesOf = dir: map (name: "${dir}/${name}") (builtins.attrNames (builtins.readDir dir)); modulesOf = dir: builtins.filter (lib.hasSuffix ".nix") (lib.filesystem.listFilesRecursive dir);
in in
{ {
flake = { flake = {

View file

@ -6,8 +6,6 @@
... ...
}@moduleArgs: }@moduleArgs:
{ {
imports = [ ./keybinds.nix ];
options.myConfig.de.hyprland.enable = lib.mkEnableOption "" // { options.myConfig.de.hyprland.enable = lib.mkEnableOption "" // {
default = moduleArgs.osConfig.myConfig.de.hyprland.enable or false; default = moduleArgs.osConfig.myConfig.de.hyprland.enable or false;
}; };

View file

@ -5,11 +5,6 @@
... ...
}: }:
{ {
imports = [
./p10k
./aliases.nix
];
options.myConfig.shell.zsh.enable = lib.mkEnableOption ""; options.myConfig.shell.zsh.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.shell.zsh.enable { config = lib.mkIf config.myConfig.shell.zsh.enable {