Is there a way to create iscsi targets declaratively ?
The only way I found so far is not very elegant: I create the targets with targetcli and then I copy the saveconfig.json in an environment.etc entry in configuration.nix.
There must be a better way.
Thanks