File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 ...
66} :
77let
8- inherit ( self . lib . file ) scanSystems filterNixOSSystems filterDarwinSystems ;
8+ inherit ( self . lib . file ) parseSystemConfigurations filterNixOSSystems filterDarwinSystems ;
99
1010 systemsPath = ../systems ;
11- allSystems = scanSystems systemsPath ;
11+ allSystems = parseSystemConfigurations systemsPath ;
1212in
1313{
1414 flake = {
Original file line number Diff line number Diff line change 55 ...
66} :
77let
8- inherit ( self . lib . file ) scanHomes ;
8+ inherit ( self . lib . file ) parseHomeConfigurations ;
99
1010 homesPath = ../homes ;
11- allHomes = scanHomes homesPath ;
11+ allHomes = parseHomeConfigurations homesPath ;
1212
1313 generateHomeConfiguration =
1414 name :
Original file line number Diff line number Diff line change 5858 in
5959 walkDir path ;
6060
61- # Recursively scan systems directory structure
62- scanSystems =
61+ # Recursively parse systems directory structure
62+ parseSystemConfigurations =
6363 systemsPath :
6464 let
6565 systemArchs = builtins . attrNames ( builtins . readDir systemsPath ) ;
9191 _name : { system , ... } : hasPrefix "aarch64-darwin" system || hasPrefix "x86_64-darwin" system
9292 ) systems ;
9393
94- # Scan homes directory structure for home configurations
95- scanHomes =
94+ # Parse homes directory structure for home configurations
95+ parseHomeConfigurations =
9696 homesPath :
9797 let
9898 systemArchs = builtins . attrNames ( builtins . readDir homesPath ) ;
Original file line number Diff line number Diff line change 3333 hostname ,
3434 } :
3535 let
36- inherit ( flake . lib . file ) scanHomes ;
36+ inherit ( flake . lib . file ) parseHomeConfigurations ;
3737 homesPath = ../../homes ;
38- allHomes = scanHomes homesPath ;
38+ allHomes = parseHomeConfigurations homesPath ;
3939 in
4040 filterAttrs (
4141 _name : homeConfig : homeConfig . system == system && homeConfig . hostname == hostname
You can’t perform that action at this time.
0 commit comments