This commit is contained in:
Zynh Ludwig 2024-07-01 13:20:21 -07:00
parent 1b4943b566
commit 8c888b693a
3 changed files with 54 additions and 0 deletions

View file

@ -20,6 +20,7 @@
snowhawk = { snowhawk = {
dwm.enable = true; dwm.enable = true;
syncthing.enable = true; syncthing.enable = true;
plymouth.enable = true;
}; };
# Configure keymap in X11 # Configure keymap in X11

View file

@ -7,6 +7,7 @@
./audio.nix ./audio.nix
./env.nix ./env.nix
./syncthing.nix ./syncthing.nix
./plymouth.nix
]; ];
snowhawk.i18n.enable = lib.mkDefault true; snowhawk.i18n.enable = lib.mkDefault true;

52
modules/plymouth.nix Normal file
View file

@ -0,0 +1,52 @@
# Yoinky Sploinky https://git.nullcube.net/nullcube/nixos/src/commit/d732b27507e70ed6f37e51ea2e5f8b7d7b3582dc/nixosModules/plymouth.nix
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.snowhawk.plymouth;
in
{
options.snowhawk.plymouth = {
enable = mkEnableOption "plymouth module";
theme = mkOption {
default = "spinner_alt";
example = "circle";
description = ''
The plymouth theme to download and activate
'';
};
loaderTimeout = mkOption {
default = 5;
example = 0;
description = ''
The timeout for the bootloader select screen
'';
};
};
config = mkIf cfg.enable {
boot = {
plymouth = {
enable = true;
theme = cfg.theme;
themePackages = mkDefault [
(pkgs.adi1090x-plymouth-themes.override {
selected_themes = [ cfg.theme ];
})
];
};
consoleLogLevel = 0;
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
loader.timeout = cfg.loaderTimeout;
};
};
}