feat: add rootPartition option to userdata
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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 #
|
||||
|
Reference in New Issue
Block a user