Chore/input validation#28
Open
nikitasmen wants to merge 6 commits into
Open
Conversation
b15ff09 to
11f5cf1
Compare
…e environment variable for home directory
…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.
2985f6b to
a951722
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.