move condiditon to motd script

This commit is contained in:
2026-06-14 09:12:20 -05:00
parent 982d208b13
commit c1ae91491a
20 changed files with 20 additions and 80 deletions
+1 -4
View File
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
+1 -4
View File
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -49,10 +49,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -40,10 +40,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -39,10 +39,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
+1 -4
View File
@@ -30,10 +30,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
+1 -4
View File
@@ -45,10 +45,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
+1 -4
View File
@@ -59,10 +59,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
links = { links = {
services = lib.mkOption { services = lib.mkOption {
@@ -42,10 +42,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = "podman-hass";
if cfg.enable
then "podman-hass"
else null;
}; };
}; };
@@ -40,10 +40,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -40,10 +40,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
+1 -4
View File
@@ -40,10 +40,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -41,10 +41,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };
@@ -40,10 +40,7 @@ in {
}; };
motd = lib.mkOption { motd = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.str;
default = default = service;
if cfg.enable
then service
else null;
}; };
}; };