mirror of https://gitlab.crans.org/nounous/nixos
add version nixos
parent
5853abd2ba
commit
8dc41773ae
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
phrase = v: if v.cond then ''[0m> [38;5;82m${v.name}[0m a été déployé sur cette machine. \n'' else "";
|
phrase = v: if v.cond then ''[0m> [38;5;82m${v.name}[0m a été déployé sur cette machine. \n'' else "";
|
||||||
importantPackages = [
|
importantPackages = [
|
||||||
|
|
@ -29,5 +29,8 @@ let
|
||||||
];
|
];
|
||||||
in
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue