mirror of
https://github.com/astro/buzzrelay.git
synced 2024-12-04 01:26:29 +00:00
nixos-module: make package overridable
This commit is contained in:
parent
10948f745e
commit
7be441cb0f
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,10 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
options.services.buzzrelay = with lib; {
|
options.services.buzzrelay = with lib; {
|
||||||
enable = mkEnableOption "Enable Fedi.buzz relay";
|
enable = mkEnableOption "Enable Fedi.buzz relay";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = self.packages.${pkgs.system}.buzzrelay;
|
||||||
|
};
|
||||||
streams = mkOption {
|
streams = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [
|
default = [
|
||||||
|
@ -73,7 +77,7 @@
|
||||||
}
|
}
|
||||||
else null;
|
else null;
|
||||||
});
|
});
|
||||||
inherit (self.packages.${pkgs.system}) buzzrelay;
|
buzzrelay = cfg.package;
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
|
|
Loading…
Reference in a new issue