move condiditon to motd script
This commit is contained in:
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user