diff --git a/modules/crans/motd.nix b/modules/crans/motd.nix index cc6cdcd..68245ae 100644 --- a/modules/crans/motd.nix +++ b/modules/crans/motd.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let phrase = v: if v.cond then ''[0m> [38;5;82m${v.name}[0m a été déployé sur cette machine. \n'' else ""; importantPackages = [ @@ -29,5 +29,8 @@ let ]; in { - users.motd = lib.concatStringsSep "\n" (map phrase importantPackages); + users.motd = '' + ${config.networking.hostName} utilise NixOS ${lib.version} \n + '' + ++ lib.concatStringsSep "\n" (map phrase importantPackages); }