nixos/ipfs: remove unused auto migrate feature
This commit is contained in:
parent
c8a2e63242
commit
74ff433320
|
@ -7,7 +7,6 @@ let
|
||||||
|
|
||||||
ipfsFlags = toString ([
|
ipfsFlags = toString ([
|
||||||
(optionalString cfg.autoMount "--mount")
|
(optionalString cfg.autoMount "--mount")
|
||||||
#(optionalString cfg.autoMigrate "--migrate")
|
|
||||||
(optionalString cfg.enableGC "--enable-gc")
|
(optionalString cfg.enableGC "--enable-gc")
|
||||||
(optionalString (cfg.serviceFdlimit != null) "--manage-fdlimit=false")
|
(optionalString (cfg.serviceFdlimit != null) "--manage-fdlimit=false")
|
||||||
(optionalString (cfg.defaultMode == "offline") "--offline")
|
(optionalString (cfg.defaultMode == "offline") "--offline")
|
||||||
|
@ -36,7 +35,6 @@ let
|
||||||
|
|
||||||
baseService = recursiveUpdate commonEnv {
|
baseService = recursiveUpdate commonEnv {
|
||||||
wants = [ "ipfs-init.service" ];
|
wants = [ "ipfs-init.service" ];
|
||||||
# NB: migration must be performed prior to pre-start, else we get the failure message!
|
|
||||||
preStart = optionalString cfg.autoMount ''
|
preStart = optionalString cfg.autoMount ''
|
||||||
ipfs --local config Mounts.FuseAllowOther --json true
|
ipfs --local config Mounts.FuseAllowOther --json true
|
||||||
ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir}
|
ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir}
|
||||||
|
@ -98,18 +96,6 @@ in {
|
||||||
description = "systemd service that is enabled by default";
|
description = "systemd service that is enabled by default";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
autoMigrate = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether IPFS should try to migrate the file system automatically.
|
|
||||||
|
|
||||||
The daemon will need to be able to download a binary from https://ipfs.io to perform the migration.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
autoMount = mkOption {
|
autoMount = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
Loading…
Reference in New Issue