started writing module
This commit is contained in:
parent
09a71fb1ac
commit
94cf4c2005
3 changed files with 55 additions and 0 deletions
33
modules/fedi/iceshrimp/option.nix
Normal file
33
modules/fedi/iceshrimp/option.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkOption
|
||||
mkPackageOption
|
||||
;
|
||||
inherit (lib.types) nonEmptyStr attrsOf str;
|
||||
in {
|
||||
options = {
|
||||
services.iceshrimp = {
|
||||
user = mkOption {
|
||||
type = nonEmptyStr;
|
||||
default = "iceshrimp";
|
||||
};
|
||||
|
||||
group = mkOption {
|
||||
type = nonEmptyStr;
|
||||
default = "iceshrimp";
|
||||
};
|
||||
|
||||
package = mkPackageOption pkgs "iceshrimp" {};
|
||||
|
||||
config = mkOption {
|
||||
type = attrsOf str;
|
||||
default = ./default_config.nix;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue