usage.md - sops: fix import

This commit is contained in:
Mrid22 2025-10-29 15:10:59 +01:00
parent 8978fe151e
commit a85666b653

View file

@ -35,7 +35,11 @@ Host Blocks:
If you use `sops-nix` for secrets, SHB provides an additional module, not If you use `sops-nix` for secrets, SHB provides an additional module, not
imported in the `default` module. It can be added by importing imported in the `default` module. It can be added by importing
`inputs.selfhostblocks.sops`.
```
inputs.sops-nix.nixosModules.default
inputs.selfhostblocks.nixosModules.sops
```
### SHB Lib {#usage-flake-lib} ### SHB Lib {#usage-flake-lib}
@ -529,7 +533,10 @@ One way to setup secrets management using `sops-nix`:
5. Use `sops-nix` module in nix: 5. Use `sops-nix` module in nix:
```bash ```bash
imports = [ imports = [
selfhostblocks.inputs.sops-nix.nixosModules.default
inputs.sops-nix.nixosModules.default
inputs.selfhostblocks.nixosModules.sops
]; ];
``` ```
6. Set default sops file: 6. Set default sops file: