nixos,profiles,core: fancy getty greeting message

This commit is contained in:
Guanran Wang 2023-11-18 10:57:07 +08:00
parent 164edd02cc
commit eb0d88872b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,4 +1,8 @@
{config, ...}: { {
config,
lib,
...
}: {
# Imported by default, check out ./desktop.nix or ./server.nix # Imported by default, check out ./desktop.nix or ./server.nix
imports = [ imports = [
../../modules # idk where should i import it ../../modules # idk where should i import it
@ -25,10 +29,15 @@
# Services # Services
services = { services = {
getty.greetingLine = '' getty.greetingLine = lib.strings.concatLines [
NixOS ${config.system.nixos.label} ${config.system.nixos.codeName} (\m) - \l ''NixOS ${config.system.nixos.label} ${config.system.nixos.codeName} (\m) - \l''
--my-next-gpu-wont-be-nvidia
''; (lib.strings.optionalString config.myFlake.nixos.hardware.gpu.nvidia.enable
"--my-next-gpu-wont-be-nvidia")
(lib.strings.optionalString config.myFlake.nixos.hardware.gpu.amd.enable
"[ 5.996722] amdgpu 0000:67:00.0: Fatal error during GPU init--my-next-gpu-wont-be-nvidia")
];
openssh = { openssh = {
enable = true; enable = true;