nixos: have less fun
This commit is contained in:
parent
bd7f51b7b1
commit
f883c2526f
2 changed files with 0 additions and 25 deletions
|
@ -8,7 +8,6 @@
|
|||
imports =
|
||||
[
|
||||
./nix
|
||||
./fun.nix
|
||||
./hardening.nix
|
||||
./networking.nix
|
||||
]
|
||||
|
|
|
@ -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"}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue