mirror of https://gitlab.crans.org/nounous/nixos
POC motd
parent
ab2c86c9c1
commit
5853abd2ba
|
|
@ -14,6 +14,7 @@ in
|
||||||
./ntp.nix
|
./ntp.nix
|
||||||
./restic_client.nix
|
./restic_client.nix
|
||||||
./monitoring.nix
|
./monitoring.nix
|
||||||
|
./motd.nix
|
||||||
./nullmailer.nix
|
./nullmailer.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
phrase = v: if v.cond then ''[0m> [38;5;82m${v.name}[0m a été déployé sur cette machine. \n'' else "";
|
||||||
|
importantPackages = [
|
||||||
|
{
|
||||||
|
name = "Collabora";
|
||||||
|
cond = config.services.collabora-online.enable;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Jitsi";
|
||||||
|
cond = config.services.jitsi-meet.enable;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NextCloud";
|
||||||
|
cond = config.services.nextcloud.enable;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NGINX";
|
||||||
|
cond = config.services.nginx.enable;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Restic (Client)";
|
||||||
|
cond = config.crans.resticClient.enable;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Restic (Server)";
|
||||||
|
cond = config.crans.services.resticServer.enable;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
users.motd = lib.concatStringsSep "\n" (map phrase importantPackages);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue