diff --git a/boot-splash.nix b/boot-splash.nix new file mode 100644 index 0000000..fe81641 --- /dev/null +++ b/boot-splash.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: +{ +boot = { + loader.timeout = 0; + # silence first boot output + consoleLogLevel = 3; + initrd.verbose = false; + initrd.systemd.enable = true; + kernelParams = [ + "quiet" + "splash" + "intremap=on" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; + + # plymouth, showing after LUKS unlock + plymouth.enable = true; + plymouth.font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf"; + plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png"; +}; +} diff --git a/flake.nix b/flake.nix index 43c4301..b1311ca 100755 --- a/flake.nix +++ b/flake.nix @@ -41,6 +41,7 @@ modules = [ ./configuration.nix ./firefox.nix + ./boot-splash.nix ./zsh.nix ./neovim.nix ./packages.nix diff --git a/home.nix b/home.nix index b41db40..51b41b8 100755 --- a/home.nix +++ b/home.nix @@ -24,16 +24,86 @@ # changes in each release. home.stateVersion = version; -xdg = { - desktopEntries.youtube = { - name = "YouTube"; - exec = "chromium --app=https://www.youtube.com"; - terminal = false; - type = "Application"; - icon = "applications-multimedia"; - categories = [ "AudioVideo" "Player" "Network" ]; + xdg = { + desktopEntries.youtube = { + name = "YouTube"; + exec = "chromium --app=https://www.youtube.com"; + terminal = false; + type = "Application"; + icon = "applications-multimedia"; + categories = [ "AudioVideo" "Player" "Network" ]; + }; + + desktopEntries."org.kde.konsole" = { + name = "Konsole"; + noDisplay = true; + }; + + desktopEntries."org.kde.kinfocenter" = { + name = "Info Center"; + noDisplay = true; + }; + + desktopEntries."org.kde.khelpcenter" = { + name = "Help Center"; + noDisplay = true; + }; + + desktopEntries."org.kde.kmenuedit" = { + name = "Menu Editor"; + noDisplay = true; + }; + + desktopEntries."micro" = { + name = "Micro"; + noDisplay = true; + }; + + desktopEntries."nvim" = { + name = "Neovim"; + noDisplay = true; + }; + + desktopEntries."btop" = { + name = "btop++"; + noDisplay = true; + }; + + desktopEntries."chromium-desktop" = { + name = "Chromium"; + noDisplay = true; + }; + + desktopEntries."nixos-manual" = { + name = "NixOS Manual"; + noDisplay = true; + }; + + desktopEntries."org.freedesktop.IBus.Setup" = { + name = "IBus Preferences"; + noDisplay = true; + }; + + desktopEntries."org.kde.drkonqi" = { + name = "Crashed Processes Viewer"; + noDisplay = true; + }; + desktopEntries."com.cloudflare.WarpTaskbar" = { + name = "Cloudflare Zero Trust"; + noDisplay = true; + }; + + desktopEntries."org.kde.kwrite" = { + name = "KWrite"; + noDisplay = true; + }; + + desktopEntries."org.kde.discover" = { + name = "Discover"; + noDisplay = true; + }; + }; -}; # Let Home Manager install and manage itself. programs = { @@ -43,7 +113,9 @@ xdg = { kitty = { enable = true; settings = { - background_opacity = "0.7"; #The higher the value, the darker the console + background_opacity = "0.2"; #The higher the value, the darker the console + + background_blur = 10; }; }; diff --git a/packages.nix b/packages.nix index 5908047..f273a37 100755 --- a/packages.nix +++ b/packages.nix @@ -31,6 +31,7 @@ multipath-tools docker docker-compose + plymouth #Programming #jetbrains.pycharm-community #The PyCharm IDE to edit Python code @@ -68,7 +69,9 @@ chromium #For Youtube app to work kdePackages.bluez-qt #latte-dock + moonlight-qt kitty + tdrop #CLI tools yt-dlp @@ -87,22 +90,21 @@ "dotnet-runtime-6.0.36" ]; -services.flatpak = { - enable = true; - - remotes = [ - { - name = "flathub"; - location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; - } - ]; - packages = [ - { - appId = "org.vinegarhq.Sober"; - origin = "flathub"; - commit = "e28fd81675b0871614ccdc8fc66c6da6761dd11333a65900a0451edf07ef0ea6"; - } - ]; -}; + services.flatpak = { + enable = true; + remotes = [ + { + name = "flathub"; + location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; + } + ]; + packages = [ + { + appId = "org.vinegarhq.Sober"; + origin = "flathub"; + commit = "e28fd81675b0871614ccdc8fc66c6da6761dd11333a65900a0451edf07ef0ea6"; + } + ]; + }; } diff --git a/plasma/kde-plasma.nix b/plasma/kde-plasma.nix index a372eae..83ffb73 100755 --- a/plasma/kde-plasma.nix +++ b/plasma/kde-plasma.nix @@ -53,6 +53,7 @@ in ]; environment.systemPackages = with pkgs; [ + kdePackages.plymouth-kcm # (pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" '' # [General] # background = "${background-package}" diff --git a/plasma/konsave.sh b/plasma/konsave.sh index 2f44327..65551f8 100755 --- a/plasma/konsave.sh +++ b/plasma/konsave.sh @@ -3,7 +3,7 @@ FLAG_FILE="/home/cookiez/.flags/theme-flag" /run/current-system/sw/bin/konsave -i /etc/nixos/plasma/NixOS-1.0.0.knsv /run/current-system/sw/bin/konsave -i /etc/nixos/plasma/NixOS-1.0.0.knsv -/run/current-system/sw/bin/konsave -a theme +/run/current-system/sw/bin/konsave -a NixOS-1.0.0 progress_bar() { local duration=$1