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

View file

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

View file

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

View file

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