Skip to content

Commit

Permalink
refactor: Do not repeat enable option
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Jul 5, 2024
1 parent c4d1fa9 commit 9ccceca
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 33 deletions.
2 changes: 0 additions & 2 deletions nix/apache-kafka.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ in
with lib;
{
options = {
enable = mkEnableOption (lib.mdDoc "Apache Kafka event streaming broker");

port = mkOption {
description = lib.mdDoc "Port number the broker should listen on.";
default = 9092;
Expand Down
2 changes: 0 additions & 2 deletions nix/cassandra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "cassandra" { };

listenAddress = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/clickhouse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkOption {
type = types.package;
description = "Which package of clickhouse to use";
Expand Down
2 changes: 0 additions & 2 deletions nix/elasticsearch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ in
};
}
'';
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "elasticsearch7" { };

listenAddress = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/grafana.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ in
description = ''
Configure grafana.
'';
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "grafana" { };

http_port = lib.mkOption {
Expand Down
1 change: 1 addition & 0 deletions nix/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
];
serviceModule = { config, name, ... }: {
options = {
enable = lib.mkEnableOption "Enable the ${service}.<name> service";
dataDir = lib.mkOption {
type = lib.types.str;
default = "./data/${name}";
Expand Down
2 changes: 0 additions & 2 deletions nix/mysql/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ with lib.types; let
in
{
options = {
enable = lib.mkEnableOption "MySQL process and expose utilities";

package = lib.mkOption {
type = types.package;
description = "Which package of MySQL to use";
Expand Down
2 changes: 0 additions & 2 deletions nix/nginx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ in

{
options = {
enable = lib.mkEnableOption "nginx";

package = lib.mkOption {
type = lib.types.package;
default = pkgs.nginx;
Expand Down
1 change: 0 additions & 1 deletion nix/ollama.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ let
in
{
options = {
enable = lib.mkEnableOption "Enable the Ollama service";
package = lib.mkOption {
type = types.package;
default = ollamaPackage;
Expand Down
1 change: 0 additions & 1 deletion nix/open-webui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ let
in
{
options = {
enable = lib.mkEnableOption "Open-WebUI server";
package = lib.mkPackageOption pkgs "open-webui" { };

host = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/pgadmin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "pgadmin4" { };

host = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/postgres/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ with lib.types; let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkOption {
type = types.package;
description = "Which package of postgresql to use";
Expand Down
2 changes: 0 additions & 2 deletions nix/prometheus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "prometheus" { };

port = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/redis-cluster.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "redis" { };

nodes = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/redis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "redis" { };

bind = lib.mkOption {
Expand Down
1 change: 0 additions & 1 deletion nix/searxng.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;
package = lib.mkPackageOption pkgs "searxng" { };

host = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/tempo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ in
description = ''
Configure tempo.
'';
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "tempo" { };

httpAddress = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/weaviate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ let
in
{
options = {
enable = lib.mkEnableOption name;

package = lib.mkPackageOption pkgs "weaviate" { };

host = lib.mkOption {
Expand Down
2 changes: 0 additions & 2 deletions nix/zookeeper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
with lib;
{
options = {
enable = mkEnableOption (lib.mdDoc "Zookeeper");

port = mkOption {
description = lib.mdDoc "Zookeeper Client port.";
default = 2181;
Expand Down

0 comments on commit 9ccceca

Please sign in to comment.