feat: Export NixOS Module for usda-vision service config
This commit is contained in:
@@ -79,13 +79,6 @@ Secrets are managed by ragenix in the athenix flake:
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
|
||||
age.secrets.usda-vision-azure-env = {
|
||||
file = ./secrets/usda-vision/azure-env.age;
|
||||
mode = "0644";
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
@@ -108,6 +101,12 @@ Simply import the default.nix - it will access inputs and age secrets automatica
|
||||
file = ./secrets/usda-vision/env.age;
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
# Optional: Configure hostname replacement (defaults shown)
|
||||
services.usda-vision = {
|
||||
hostname = "192.168.1.156"; # Default: 192.168.1.156
|
||||
replaceHostnames = true; # Default: true - replaces exp-dash/localhost
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
@@ -126,9 +125,17 @@ in
|
||||
imports = [
|
||||
"${usda-dash-config}/default.nix"
|
||||
];
|
||||
|
||||
# Set a custom hostname for your deployment
|
||||
services.usda-vision.hostname = "my-custom-host.local";
|
||||
}
|
||||
```
|
||||
|
||||
### Module Options
|
||||
|
||||
- `services.usda-vision.hostname` (string, default: `"192.168.1.156"`) - Hostname or IP to replace exp-dash/localhost with
|
||||
- `services.usda-vision.replaceHostnames` (bool, default: `true`) - Whether to perform hostname replacement in docker-compose.yml
|
||||
|
||||
## Complete Example
|
||||
|
||||
Here's a complete example of how it all fits together:
|
||||
|
||||
Reference in New Issue
Block a user