mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: better quiet boot
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
};
|
||||
settings = {
|
||||
env = [
|
||||
"LIBVA_DRIVER_NAME,nvidia"
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"GBM_BACKEND,nvidia-drm"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
"NIXOS_OZONE_WL,1"
|
||||
# Gnome file manager fix
|
||||
"GIO_EXTRA_MODULES,${pkgs.gnome.gvfs}/lib/gio/modules"
|
||||
@@ -72,6 +68,8 @@
|
||||
misc = {
|
||||
layers_hog_keyboard_focus = false;
|
||||
disable_splash_rendering = true;
|
||||
disable_hyprland_logo = true;
|
||||
background_color = "0x000000";
|
||||
force_default_wallpaper = 0;
|
||||
vrr = 1;
|
||||
};
|
||||
|
||||
@@ -14,21 +14,24 @@ in {
|
||||
systemd-boot.consoleMode = "max";
|
||||
};
|
||||
|
||||
plymouth.enable = true;
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "text";
|
||||
};
|
||||
|
||||
kernelParams = [
|
||||
# Redirect all kernel messages to a console off screen
|
||||
#"fbcon=vc:2-6"
|
||||
#"console=tty1"
|
||||
"fbcon=vc:2-6"
|
||||
"console=tty1"
|
||||
|
||||
"splash"
|
||||
"quiet"
|
||||
|
||||
#"rd.udev.log_level=3"
|
||||
#"rd.systemd.show_status=false"
|
||||
#"udev.log_priority=3"
|
||||
#"boot.shell_on_fail"
|
||||
#"vt.global_cursor_default=0" # no cursor blinking
|
||||
"rd.udev.log_level=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"udev.log_priority=3"
|
||||
"boot.shell_on_fail"
|
||||
"vt.global_cursor_default=0" # no cursor blinking
|
||||
];
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
./hardware/audio.nix
|
||||
./hardware/gbmonctl.nix
|
||||
./hardware/nvidia.nix
|
||||
./hardware/nvidia-proprietary.nix
|
||||
./hardware/nvidia-nouveau.nix
|
||||
./hardware/cc1.nix
|
||||
./hardware/fv43u.nix
|
||||
./hardware/virtual-camera.nix
|
||||
|
||||
@@ -10,29 +10,56 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.getty.autologinUser = "${username}";
|
||||
services.getty.extraArgs = [ "--noclear" "--noissue" "--nonewline" ];
|
||||
services.getty.loginOptions = "-p -f -- \\u"; # preserve environment
|
||||
|
||||
services.dbus.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals =
|
||||
[ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-kde ];
|
||||
};
|
||||
|
||||
services.pcscd.enable = true;
|
||||
services = {
|
||||
getty.autologinUser = "${username}";
|
||||
getty.extraArgs = [ "--noclear" "--noissue" "--nonewline" ];
|
||||
getty.loginOptions = "-p -f -- \\u"; # preserve environment
|
||||
|
||||
# nautilus on non-gnome
|
||||
services.gvfs.enable = true;
|
||||
# fix pinentry on non-gnome
|
||||
services.dbus.packages = with pkgs; [ gcr ];
|
||||
services.gnome.gnome-online-accounts.enable = true;
|
||||
services.gnome.evolution-data-server.enable = true;
|
||||
dbus.enable = true;
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
pcscd.enable = true;
|
||||
|
||||
# nautilus on non-gnome
|
||||
gvfs.enable = true;
|
||||
# fix pinentry on non-gnome
|
||||
dbus.packages = with pkgs; [ gcr ];
|
||||
gnome.gnome-online-accounts.enable = true;
|
||||
gnome.evolution-data-server.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
kdeconnect.enable = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
/* systemd.services = {
|
||||
plymouth-quit-hyprland = mkIf config.boot.quiet.enable {
|
||||
description = "Pause plymouth animation";
|
||||
conflicts = [ "plymouth-quit.service" ];
|
||||
after = [
|
||||
"plymouth-quit.service"
|
||||
"rc-local.service"
|
||||
"plymouth-start.service"
|
||||
"systemd-user-sessions.service"
|
||||
];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStartPre = "${pkgs.plymouth}/bin/plymouth deactivate";
|
||||
ExecStartPost = [
|
||||
"${pkgs.coreutils}/bin/sleep 30"
|
||||
"${pkgs.plymouth}/bin/plymouth quit --retain-splash"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
||||
|
||||
31
modules/nixos/hardware/nvidia-nouveau.nix
Normal file
31
modules/nixos/hardware/nvidia-nouveau.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
|
||||
let cfg = config.hardware.nvidia.preset.nouveau;
|
||||
|
||||
in {
|
||||
options.hardware.nvidia.preset.nouveau = {
|
||||
enable = mkEnableOption
|
||||
"Enable the free Nouveau NVIDIA driver with some sane defaults";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelParams = [ "nouveau.modeset=1" ];
|
||||
kernelModules = [ "nouveau" ];
|
||||
initrd.kernelModules = [ "nouveau" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
glxinfo
|
||||
libva-utils
|
||||
vulkan-tools
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -19,7 +19,7 @@ in {
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ];
|
||||
boot.kernelParams = [ "fbdev=1" "nvidia_drm.fbdev=1" ];
|
||||
boot.kernelModules =
|
||||
[ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
|
||||
boot.initrd.kernelModules =
|
||||
@@ -39,6 +39,9 @@ in {
|
||||
variables = {
|
||||
VDPAU_DRIVER = "va_gl";
|
||||
LIBVA_DRIVER_NAME = "nvidia";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
glxinfo
|
||||
Reference in New Issue
Block a user