Flake: Rename findFiles to ls.
This commit is contained in:
parent
5162143ca7
commit
9326dea538
16
flake.nix
16
flake.nix
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
__findFile = _: p: ./${p};
|
__findFile = _: p: ./${p};
|
||||||
|
|
||||||
findFiles = path: map (f: "${path}/${f}") (
|
ls = path: map (f: "${path}/${f}") (
|
||||||
builtins.filter (i: builtins.readFileType "${path}/${i}" == "regular") (
|
builtins.filter (i: builtins.readFileType "${path}/${i}" == "regular") (
|
||||||
builtins.attrNames (builtins.readDir path)
|
builtins.attrNames (builtins.readDir path)
|
||||||
)
|
)
|
||||||
|
@ -104,12 +104,12 @@
|
||||||
# HM config.
|
# HM config.
|
||||||
./home/NixOs.nix
|
./home/NixOs.nix
|
||||||
]
|
]
|
||||||
++ (self.findFiles ./container)
|
++ (self.ls ./container)
|
||||||
++ (self.findFiles ./host/${system}/${hostname})
|
++ (self.ls ./host/${system}/${hostname})
|
||||||
++ (self.findFiles ./option)
|
++ (self.ls ./option)
|
||||||
++ (self.findFiles ./config)
|
++ (self.ls ./config)
|
||||||
++ (self.findFiles ./overlay)
|
++ (self.ls ./overlay)
|
||||||
++ (self.findFiles ./system)
|
++ (self.ls ./system)
|
||||||
;
|
;
|
||||||
specialArgs = let
|
specialArgs = let
|
||||||
pkgs = nixpkgs.legacyPackages.${system}.pkgs;
|
pkgs = nixpkgs.legacyPackages.${system}.pkgs;
|
||||||
|
@ -148,7 +148,7 @@
|
||||||
{ home-manager.config.stylix.autoEnable = lib.mkForce false; }
|
{ home-manager.config.stylix.autoEnable = lib.mkForce false; }
|
||||||
./home/Android.nix
|
./home/Android.nix
|
||||||
]
|
]
|
||||||
++ (self.findFiles ./option)
|
++ (self.ls ./option)
|
||||||
;
|
;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs self pkgsMaster pkgsUnstable;
|
inherit inputs self pkgsMaster pkgsUnstable;
|
||||||
|
|
Loading…
Reference in a new issue