feat: add rootPartition option to userdata

This commit is contained in:
nhnn
2025-07-23 18:16:16 +03:00
parent 0449f6baeb
commit c218df50cb
2 changed files with 9 additions and 1 deletions

View File

@@ -59,7 +59,10 @@ in
'';
};
fileSystems."/".options = [ "noatime" ];
fileSystems."/" = {
device = lib.mkIf (config.selfprivacy.server.rootPartition != null) (lib.mkForce config.selfprivacy.server.rootPartition);
options = [ "noatime" ];
};
services.selfprivacy-api.enable = true;

View File

@@ -97,6 +97,11 @@ with lib;
description = "Server provider that was defined at the initial setup process.";
type = types.str;
};
rootPartition = mkOption {
description = "Root partition to use.";
type = types.nullOr types.str;
default = null;
};
};
#########
# SSH #