diff options
Diffstat (limited to 'modules/nixos/plymouth')
| -rw-r--r-- | modules/nixos/plymouth/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/nixos/plymouth/default.nix b/modules/nixos/plymouth/default.nix new file mode 100644 index 0000000..f89777e --- /dev/null +++ b/modules/nixos/plymouth/default.nix @@ -0,0 +1,36 @@ +{ + config, + lib, + pkgs, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + cfg = config.nx.plymouth; +in +{ + options.nx.plymouth.enable = mkEnableOption "Plymouth"; + + config = mkIf cfg.enable { + boot = { + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; + consoleLogLevel = 3; + loader.systemd-boot.consoleMode = "max"; + plymouth = { + enable = true; + theme = "lone"; + themePackages = with pkgs; [ + (adi1090x-plymouth-themes.override { + selected_themes = [ "lone" ]; + }) + ]; + }; + }; + }; +} |
