fix(selfhost): now really use the boolean of the function
This commit is contained in:
parent
c212d0c671
commit
62d63e139b
4 changed files with 164 additions and 156 deletions
|
|
@ -4,6 +4,7 @@ let
|
|||
cfg = config.service.selfhost.monitor;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
services = {
|
||||
glances.enable = true;
|
||||
|
||||
|
|
@ -16,4 +17,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ let
|
|||
email = "raphael@enium.eu";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
package = pkgs.grafana;
|
||||
|
|
@ -165,4 +166,5 @@ groups:
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ let
|
|||
dataDir = "/mnt/data/nextcloud";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
php
|
||||
];
|
||||
|
|
@ -33,4 +34,5 @@ in
|
|||
fastcgi_pass unix:/run/phpfpm-nextcloud.sock;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ let
|
|||
cfg = config.service.selfhost.ollama;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
services = {
|
||||
ollama = {
|
||||
enable = true;
|
||||
|
|
@ -26,4 +27,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue