diff --git a/configuration.nix b/configuration.nix index 8f3675a..1d6f4f5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; diff --git a/selfprivacy-module.nix b/selfprivacy-module.nix index 33f37b5..0090e74 100644 --- a/selfprivacy-module.nix +++ b/selfprivacy-module.nix @@ -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 #