read phone number from secrets

This commit is contained in:
Daniel Langbein 2024-10-15 11:41:39 +02:00
parent b7b74b47b3
commit cd0b6ecfc8
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -3,8 +3,9 @@
{ config, pkgs, lib, ... }:
let
contact_name = "Daniel Langbein";
# TODO: move phone number to secret file
contact_phone = "+49 xxx yyy";
# The file `phone-number` contains only one line with our phone number, e.g. +49 0173 ...
# Be aware that the phone number will be written to the nix store in plaintext!
contact_phone = (builtins.readFile ../secrets/phone-number);
contact_mail = "daniel@systemli.org";
# https://wiki.nixos.org/wiki/Shell_Scripts
@ -36,7 +37,10 @@ let
};
in
{
# Plymouth boot splash screen.
# We found no non-graphical solution to print the contact info with systemd initrd.
# Workaround: Run a dummy service that has the contact info as service name ...
#
# Alternative: Use Plymouth for a graphical boot splash screen.
# TODO: Only on graphical installations!
#
# To see the splash screen. https://wiki.archlinux.org/title/Plymouth#Installation