From 8dc41773ae113ada5dfaeecb181190583b4a8a12 Mon Sep 17 00:00:00 2001 From: Lzebulon Date: Wed, 17 Dec 2025 12:41:58 +0100 Subject: [PATCH] add version nixos --- modules/crans/motd.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); }