mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Redo and restructure the entire config
Thanks @KaitlynEthylia :)
This commit is contained in:
parent
19b92cd8fd
commit
2daf5f1b05
13 changed files with 378 additions and 302 deletions
15
nix/lib/importAll.nix
Normal file
15
nix/lib/importAll.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
exclude: cwd: with builtins; with pkgs.lib; filter
|
||||
(e: !elem e exclude)
|
||||
(map
|
||||
(p: path.append cwd p)
|
||||
(attrNames (attrsets.filterAttrs
|
||||
(p: t:
|
||||
let
|
||||
d = t == "directory";
|
||||
b = baseNameOf p;
|
||||
in
|
||||
d && pathExists (path.append cwd (p + "/default.nix")) ||
|
||||
!d && match ''.*\.nix'' b != null && b != "default.nix")
|
||||
(readDir cwd))))
|
Loading…
Add table
Add a link
Reference in a new issue