chore: snake_case to camelCase

This commit is contained in:
DashieTM 2025-05-11 13:13:10 +02:00
parent 2b704cc5e7
commit f4e47cbf97
5 changed files with 14 additions and 14 deletions

View file

@ -1,7 +1,7 @@
# with friendly help by stylix: https://github.com/danth/stylix/blob/master/docs/default.nix
{
pkgs,
build_systems,
buildSystems,
lib,
...
}: let
@ -13,7 +13,7 @@
summaryAppend = name: ''
echo "- [${name}](${name}.md)" >> src/SUMMARY.md
'';
system = (build_systems {root = ../example/.;})."example".options;
system = (buildSystems {root = ../example/.;})."example".options;
makeOptionsDocPrograms = names: pkgs.nixosOptionsDoc {options = lib.attrByPath (lib.splitString "." names) null system.mods;};
conf = makeOptionsDoc system.conf;
basePath = ../modules/programs;
@ -39,7 +39,7 @@
filteredNames = builtins.filter (names: !(lib.strings.hasInfix "default" names)) (
map (name: lib.strings.removeSuffix ".nix" name) (lib.lists.flatten (pathToStrings basePath ""))
);
deduplicatedNames = map (name: lib.strings.splitString "." name |> lib.lists.unique |> lib.strings.concatStringsSep "." ) filteredNames;
deduplicatedNames = map (name: lib.strings.splitString "." name |> lib.lists.unique |> lib.strings.concatStringsSep ".") filteredNames;
mods = map makeOptionsDocPrograms deduplicatedNames;
docs = lib.strings.concatLines (map generateDocs (lib.lists.zipLists deduplicatedNames mods));
summary = lib.strings.concatStringsSep " " (map summaryAppend deduplicatedNames);

View file

@ -26,7 +26,7 @@ dashNix = {
You can then configure your systems in your flake outputs with a provided library command:
```nix
nixosConfigurations = inputs.dashNix.dashNixLib.build_systems { root = ./.; };
nixosConfigurations = inputs.dashNix.dashNixLib.buildSystems { root = ./.; };
```
This command will build each system that is placed within the hosts/ directory.
@ -132,7 +132,7 @@ After logging in the first time, your password will be set to "firstlogin", plea
## Nixos and Home-manager Modules
You can add additional modules or remove all of them by overriding parameters to the build_systems command:
You can add additional modules or remove all of them by overriding parameters to the buildSystems command:
```nix
nixosConfigurations =
@ -150,7 +150,7 @@ nixosConfigurations =
home = [];
}
in
inputs.dashNix.dashNixLib.build_systems { root = ./.; inherit mods additionalMods; };
inputs.dashNix.dashNixLib.buildSystems { root = ./.; inherit mods additionalMods; };
```
## Additional Inputs
@ -164,7 +164,7 @@ nixosConfigurations =
something.url = "yoururl"
}
in
inputs.dashNix.dashNixLib.build_systems { root = ./.; inherit additionalInputs; };
inputs.dashNix.dashNixLib.buildSystems { root = ./.; inherit additionalInputs; };
```
## Stable/Unstable
@ -174,12 +174,12 @@ This can be done with the overridePkgs flag for the lib function:
```nix
nixosConfigurations =
inputs.dashNix.dashNixLib.build_systems {
inputs.dashNix.dashNixLib.buildSystems {
root = ./stable;
inherit additionalInputs;
overridePkgs = true;
}
// inputs.dashNix.dashNixLib.build_systems {
// inputs.dashNix.dashNixLib.buildSystems {
root = ./unstable;
inherit additionalInputs;
};