@@ -72,6 +72,8 @@ Use `services.pipewire.extraConfig` or `services.pipewire.configPackages` for Pi
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
-[ownCloud Infinite Scale Stack](https://owncloud.com/infinite-scale-4-0/), a modern and scalable rewrite of ownCloud.
-[Handheld Daemon](https://github.com/hhd-dev/hhd), support for gaming handhelds like the Legion Go, ROG Ally, and GPD Win. Available as [services.handheld-daemon](#opt-services.handheld-daemon.enable).
-[Guix](https://guix.gnu.org), a functional package manager inspired by Nix. Available as [services.guix](#opt-services.guix.enable).
Example config can be generated by `ocis init --config-path fileName --admin-password "adminPass"`.
Add `--insecure true` if SSL certificates are generated and managed externally (e.g. using oCIS behind reverse proxy).
Note: This directory must contain at least a `ocis.yaml`. Ensure
[user](#opt-services.ocis.user) has read/write access to it. In some
circumstances you may need to add additional oCIS configuration files (e.g.,
`proxy.yaml`) to this directory.
'';
};
environmentFile=lib.mkOption{
type=types.nullOrtypes.path;
default=null;
example="/run/keys/ocis.env";
description=lib.mdDoc''
An environment file as defined in {manpage}`systemd.exec(5)`.
Configuration provided in this file will override those from [configDir](#opt-services.ocis.configDir)/ocis.yaml.
'';
};
user=lib.mkOption{
type=types.str;
default=defaultUser;
example="yourUser";
description=lib.mdDoc''
The user to run oCIS as.
By default, a user named `${defaultUser}` will be created whose home
directory is [stateDir](#opt-services.ocis.stateDir).
'';
};
group=lib.mkOption{
type=types.str;
default=defaultGroup;
example="yourGroup";
description=lib.mdDoc''
The group to run oCIS under.
By default, a group named `${defaultGroup}` will be created.
'';
};
address=lib.mkOption{
type=types.str;
default="127.0.0.1";
description="Web interface address.";
};
port=lib.mkOption{
type=types.port;
default=9200;
description="Web interface port.";
};
url=lib.mkOption{
type=types.str;
default="https://localhost:9200";
example="https://some-hostname-or-ip:9200";
description="Web interface address.";
};
stateDir=lib.mkOption{
default="/var/lib/ocis";
type=types.str;
description="ownCloud data directory.";
};
environment=lib.mkOption{
type=types.attrsOftypes.str;
default={};
description=lib.mdDoc''
Extra config options.
See [the documentation](https://doc.owncloud.com/ocis/next/deployment/services/services.html) for available options.
See [notes for environment variables](https://doc.owncloud.com/ocis/next/deployment/services/env-var-note.html) for more information.
Note that all the attributes here will be copied to /nix/store/ and will be world readable. Options like *_PASSWORD or *_SECRET should be part of [environmentFile](#opt-services.ocis.environmentFile) instead, and are only provided here for illustrative purpose.
Configuration here will override those from [environmentFile](#opt-services.ocis.environmentFile) and will have highest precedence, at the cost of security. Do NOT put security sensitive stuff here.