feat: add plymouth to bbsteamie
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-07-10 20:38:03 -04:00
parent dc1b120c50
commit b05864573d
4 changed files with 30 additions and 8 deletions

View file

@ -1,6 +1,7 @@
{
config,
jovian,
self,
...
}: let
inherit (config.vars) mainUser hostName;
@ -13,6 +14,8 @@ in {
./hardware-configuration.nix
./modules/desktop.nix
self.nixosModules.plymouth
];
vars = {
@ -21,6 +24,11 @@ in {
promptMainColor = "pink";
};
boot.plymouth = {
enable = true;
theme = "steamos";
};
users.users.${mainUser} = {
isNormalUser = true;
extraGroups = [

View file

@ -12,13 +12,13 @@ in {
../../modules/ags
../../modules/audio.nix
../../modules/kmscon.nix
../../modules/plymouth.nix
../../modules/printer.nix
../../modules/tailscale.nix
./modules/security.nix
self.nixosModules.desktop
self.nixosModules.plymouth
];
vars = {
@ -37,6 +37,11 @@ in {
fontSize = 12.5;
};
boot.plymouth = {
enable = true;
theme = "dracula";
};
users.users.${mainUser} = {
isNormalUser = true;
extraGroups = [

View file

@ -58,6 +58,7 @@
nixosModules = {
desktop = import ./modules/desktop;
nvidia = import ./modules/nvidia.nix;
plymouth = import ./modules/plymouth.nix;
};
nixosConfigurations = {

View file

@ -1,9 +1,15 @@
{
config,
lib,
pkgs,
self,
...
}: {
boot = {
}: let
inherit (lib) hasAttr mkIf optionals;
cfg = config.boot.plymouth;
in {
boot = mkIf cfg.enable {
initrd = {
verbose = false;
systemd.enable = true;
@ -22,10 +28,12 @@
"udev.log_priority=3"
];
plymouth = {
enable = true;
themePackages = [self.legacyPackages.${pkgs.system}.dracula.plymouth];
theme = "dracula";
};
plymouth.themePackages =
[
self.legacyPackages.${pkgs.system}.dracula.plymouth
]
++ optionals (hasAttr "steamdeck-hw-theme" pkgs) [
pkgs.steamdeck-hw-theme
];
};
}