From f62f90c915924c73d6b80cb9103694b65b3c322e Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 1 Apr 2024 12:03:43 +0100 Subject: [PATCH] Use a motd file --- common.nix | 9 ++++----- files/motd | 5 +++++ 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 files/motd diff --git a/common.nix b/common.nix index 19abade..c883337 100644 --- a/common.nix +++ b/common.nix @@ -5,11 +5,10 @@ ./users.nix ]; - users.motd = "^[[1;49;95m __ ___ __ - ___/ /__ ___ / _/__ ___ / /_ -/ _ / _ \/ _ \/ _/ _ \/ -_) __/ -\_,_/\___/\___/_//_//_/\__/\__/ -^[[0m"; + users.motdFile = builtins.path { + path = ./files/motd; + name = "motd"; + }; system.copySystemConfiguration = true; diff --git a/files/motd b/files/motd new file mode 100644 index 0000000..971746a --- /dev/null +++ b/files/motd @@ -0,0 +1,5 @@ + __ ___ __ + ___/ /__ ___ / _/__ ___ / /_ +/ _ / _ \/ _ \/ _/ _ \/ -_) __/ +\_,_/\___/\___/_//_//_/\__/\__/ +