Skip to content

Commit 3140baa

Browse files
committed
lib: rename scan functions to parse for clarity
- Rename scanSystems to parseSystemConfigurations in lib/file - Rename scanHomes to parseHomeConfigurations in lib/file - Update all references across flake configuration files
1 parent 5ddef24 commit 3140baa

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

flake/configs.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
...
66
}:
77
let
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;
1212
in
1313
{
1414
flake = {

flake/home.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
...
66
}:
77
let
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:

lib/file/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ in
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);
@@ -91,8 +91,8 @@ in
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);

lib/system/common.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ in
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

0 commit comments

Comments
 (0)