mirror of
https://github.com/astro/buzzrelay.git
synced 2024-12-03 17:16:28 +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, ... }: {
|
||||
options.services.buzzrelay = with lib; {
|
||||
enable = mkEnableOption "Enable Fedi.buzz relay";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = self.packages.${pkgs.system}.buzzrelay;
|
||||
};
|
||||
streams = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [
|
||||
|
@ -73,7 +77,7 @@
|
|||
}
|
||||
else null;
|
||||
});
|
||||
inherit (self.packages.${pkgs.system}) buzzrelay;
|
||||
buzzrelay = cfg.package;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
users.users.${cfg.user} = {
|
||||
|
|
Loading…
Reference in a new issue