nixos: have less fun

This commit is contained in:
Guanran Wang 2024-07-10 07:14:09 +08:00
parent bd7f51b7b1
commit f883c2526f
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 0 additions and 25 deletions

View file

@ -8,7 +8,6 @@
imports =
[
./nix
./fun.nix
./hardening.nix
./networking.nix
]

View file

@ -1,24 +0,0 @@
{
lib,
config,
...
}: {
options = {
system.nixos.codeName = lib.mkOption {readOnly = false;};
};
config = {
# https://github.com/NixOS/nixpkgs/issues/315574
system.nixos.codeName = "";
services.getty.greetingLine = let
inherit (config.system) nixos;
in ''
NixOS ${nixos.label} ${nixos.codeName} (\m) - \l
${lib.strings.optionalString (builtins.elem "nvidia" config.services.xserver.videoDrivers)
"--my-next-gpu-wont-be-nvidia"}
${lib.strings.optionalString (builtins.elem "amdgpu" config.boot.initrd.kernelModules)
"[ 5.996722] amdgpu 0000:67:00.0: Fatal error during GPU init"}
'';
};
}