Skip to content

Chore/input validation#28

Open
nikitasmen wants to merge 6 commits into
mainfrom
chore/input-validation
Open

Chore/input validation#28
nikitasmen wants to merge 6 commits into
mainfrom
chore/input-validation

Conversation

@nikitasmen

Copy link
Copy Markdown
Owner

No description provided.

@nikitasmen nikitasmen force-pushed the chore/input-validation branch 2 times, most recently from b15ff09 to 11f5cf1 Compare March 13, 2026 09:35
…ling

- Introduced `validate_input` and `validate_directory` functions to ensure required parameters and directories are validated before proceeding with installations and syncs.
- Updated `install_all_configs`, `install_specific_config`, and `sync_specific_config` functions to utilize these validation checks, enhancing robustness and user feedback during execution.
- Introduced several validation functions: `validate_input`, `validate_directory`, `validate_file`, `validate_positive_integer`, `validate_boolean`, `validate_url`, and `validate_nixos_config` to ensure proper input and configuration checks.
- Updated the `create_module` function to utilize the new validation checks, enhancing robustness and user feedback.
- Added a new command `validate` to the script for validating NixOS configuration, improving usability and error management.
- Introduced `validate_input`, `validate_directory`, `validate_file`, and `validate_nixos_config` functions to ensure proper validation of inputs, directories, and NixOS configurations.
- Integrated validation checks into the `install_system`, `update_system`, and `test_config` functions to enhance robustness and user feedback during execution.
- Updated the `update_flake` function to validate the presence of the flake configuration file before proceeding with updates.
…tory root

- Updated the `add_flake_to_inputs` function to calculate the repository root directory dynamically, improving the script's flexibility and robustness.
- This change ensures that the path to the `flake.nix` file is correctly resolved regardless of the script's execution context.
…d navigate to nixmod-system directory

- Added logic to retrieve the repository root directory and change to the nixmod-system directory, improving the script's execution context and flexibility.
@nikitasmen nikitasmen force-pushed the chore/input-validation branch from 2985f6b to a951722 Compare March 17, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant