mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Recursively import modules
This commit is contained in:
parent
8b69c15eae
commit
265ea35fb2
3 changed files with 2 additions and 9 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue