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;
|
services.selfprivacy-api.enable = true;
|
||||||
|
|
||||||
|
@@ -97,6 +97,11 @@ with lib;
|
|||||||
description = "Server provider that was defined at the initial setup process.";
|
description = "Server provider that was defined at the initial setup process.";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
rootPartition = mkOption {
|
||||||
|
description = "Root partition to use.";
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
#########
|
#########
|
||||||
# SSH #
|
# SSH #
|
||||||
|
Reference in New Issue
Block a user