feat: added per service enable options for impermanence configs
This commit is contained in:
parent
a8af8930fa
commit
89793fca6a
15 changed files with 120 additions and 15 deletions
|
|
@ -5,7 +5,14 @@
|
|||
}: let
|
||||
qbittorent_profile_directory = "/var/lib/qBittorrent/";
|
||||
in {
|
||||
config = lib.mkIf (config.services.qbittorrent.enable && config.host.impermanence.enable) {
|
||||
options.services.qbittorrent = {
|
||||
impermanence.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.services.qbittorrent.enable && config.host.impermanence.enable;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.qbittorrent.impermanence.enable {
|
||||
fileSystems."/persist/system/qbittorrent".neededForBoot = true;
|
||||
|
||||
host.storage.pool.extraDatasets = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue