From cf4ef255c6f31f6e274e6cf436651e9b1743b871 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 2 Sep 2019 10:09:44 +0200 Subject: [PATCH] MOTD --- hosts/pulsebert/configuration.nix | 12 +++--------- lib/motd | 6 ++++++ lib/mpd.nix | 2 ++ lib/users.nix | 2 ++ 4 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 lib/motd diff --git a/hosts/pulsebert/configuration.nix b/hosts/pulsebert/configuration.nix index 2b6f3a1d..1ba732f0 100644 --- a/hosts/pulsebert/configuration.nix +++ b/hosts/pulsebert/configuration.nix @@ -12,9 +12,9 @@ in { [ # Include the results of the hardware scan. ./hardware-configuration.nix ../../lib/admins.nix - ../../common.nix - ../../users.nix - ../../mpd.nix + ../../lib/common/common.nix + ../../lib/users.nix + ../../lib/mpd.nix ]; # Use the systemd-boot EFI boot loader. @@ -192,12 +192,6 @@ in { type "pulse" name "/proc" } - - audio_output { - type "pulse" - name "SDK" - server "dacbert.hq.c3d2.de" - } ''; services.caddy = { diff --git a/lib/motd b/lib/motd new file mode 100644 index 00000000..8d861030 --- /dev/null +++ b/lib/motd @@ -0,0 +1,6 @@ + ______ ______ + / / / / / /\ \ \ +/ / / / / / \ \ \ +\ \ \ \ / / / / / + \_\_\_\/_/ /_/_/ + diff --git a/lib/mpd.nix b/lib/mpd.nix index 17e54bd5..3b22aa51 100644 --- a/lib/mpd.nix +++ b/lib/mpd.nix @@ -9,12 +9,14 @@ let { dbFile = null; musicDirectory = "/mnt/storage/Music"; +/* extraConfig = '' database { plugin "proxy" host "storage-ng.hq.c3d2.de" } ''; + */ }; in { diff --git a/lib/users.nix b/lib/users.nix index 818432e5..55e485e7 100644 --- a/lib/users.nix +++ b/lib/users.nix @@ -1,6 +1,8 @@ { pkgs, ... }: { + users.motd = builtins.readFile ./motd; + users.users.k-ot = { packages = with pkgs; [ screen tmux ];