add version nixos

motd
Lzebulon 2025-12-17 12:41:58 +01:00
parent 5853abd2ba
commit 8dc41773ae
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}