From de5f6ca3cd008b7d3b119d56805e7345f10781ae Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Sun, 24 Nov 2024 16:53:57 -0700 Subject: [PATCH] Work on plasma config --- home-manager/modules/packages.nix | 20 +++++------ home-manager/modules/plasma.nix | 51 +++++++++++++++++++++++++++-- hosts/laptop/modules/desktop.nix | 1 + hosts/laptop/modules/users.nix | 3 ++ packages/magna-splash-6/default.nix | 2 +- 5 files changed, 62 insertions(+), 15 deletions(-) diff --git a/home-manager/modules/packages.nix b/home-manager/modules/packages.nix index 7dc0888..5b59b09 100755 --- a/home-manager/modules/packages.nix +++ b/home-manager/modules/packages.nix @@ -15,11 +15,6 @@ # Tailscale tailscale - # KDE Packages - kdePackages.kate - kdePackages.elisa - kdePackages.kdeconnect-kde - # KDE Themes vimix-cursors (pkgs.callPackage ../../packages/beautyline {}) @@ -31,7 +26,7 @@ # :3 fastfetch - # Tools + # CLI Tools ripgrep # Text searching and manipulation jq # JSON filtering eza # Directory lister @@ -40,15 +35,18 @@ nmap # Network scanning glow # Markdown rendering tealdeer # TLDR + usbutils # `lsusb` # Process tools btop # Process monitor nvtopPackages.full # GPU monitor - - # Basic linux tools - usbutils # `lsusb` - ]) ++ [ + ]) ++ ([ # Firefox nightly inputs.firefox-nightly.packages.${system}.firefox-nightly-bin - ]; + ]) ++ (with pkgs.kdePackages; [ + kate + elisa + kdeconnect-kde + polkit-kde-agent-1 + ]); } \ No newline at end of file diff --git a/home-manager/modules/plasma.nix b/home-manager/modules/plasma.nix index 7410a15..584cb08 100755 --- a/home-manager/modules/plasma.nix +++ b/home-manager/modules/plasma.nix @@ -4,8 +4,12 @@ enable = true; workspace = { - # Enable Breeze Dark theme - lookAndFeel = "org.kde.breezedark.desktop"; + # Enable Breeze Dark theme for color and window style + colorScheme = "BreezeDark"; + windowDecorations ={ + library = "org.kde.breeze"; + theme = "Breeze"; + }; # Set cursor theme cursor = { theme = "Vimix-cursors"; @@ -16,9 +20,50 @@ # Set wallpaper to Shell wallpaper = "${pkgs.kdePackages.plasma-workspace-wallpapers}/share/wallpapers/Shell/contents/images/5120x2880.jpg"; # Set colorful splash screen while plasma is loading - splashScreen.theme = "Magna-Splash-6"; + splashScreen.theme = "magna-splash-6"; }; + panels = [ + { + alignment = "center"; + floating = true; + height = 44; + hiding = "dodgewindows"; + lengthMode = "fill"; + location = "bottom"; + screen = "all"; + widgets = [ + { + name = "org.kde.plasma.kickoff"; + config = { + General = { + icon = "nixos"; + }; + }; + } + "org.kde.plasma.pager" + { + name = "org.kde.plasma.icontasks"; + config = { + General = { + launchers = [ + "applications:systemsettings.desktop" # KDE System Settings + "applications:org.kde.dolphin.desktop" # KDE File Manager + "applications:firefox-nightly.desktop" # Firefox + "applications:org.kde.konsole.desktop" # KDE Terminal App + "applications:codium.desktop" # VSCodium + ]; + }; + }; + } + "org.kde.plasma.marginsseparator" + "org.kde.plasma.systemtray" + "org.kde.plasma.digitalclock" + "org.kde.plasma.showdesktop" + ]; + } + ]; + # TODO Powerdevil kwin = { diff --git a/hosts/laptop/modules/desktop.nix b/hosts/laptop/modules/desktop.nix index 1be3906..4728ccb 100644 --- a/hosts/laptop/modules/desktop.nix +++ b/hosts/laptop/modules/desktop.nix @@ -2,4 +2,5 @@ { # Enable KDE Plasma 6 services.desktopManager.plasma6.enable = true; + programs.partition-manager.enable = true; } \ No newline at end of file diff --git a/hosts/laptop/modules/users.nix b/hosts/laptop/modules/users.nix index 4eab7e1..34deb1b 100644 --- a/hosts/laptop/modules/users.nix +++ b/hosts/laptop/modules/users.nix @@ -19,4 +19,7 @@ hashedPassword = "$y$j9T$XCQtsX/NObNFzrYu7JcJe/$HHgvh4Re6UjKvxMz.XuHw7dwNecnMP8je.4AHUjHnsB"; }; }; + + # Enable polkit user authentication + security.polkit.enable = true; } \ No newline at end of file diff --git a/packages/magna-splash-6/default.nix b/packages/magna-splash-6/default.nix index 0578367..1b1b8a0 100644 --- a/packages/magna-splash-6/default.nix +++ b/packages/magna-splash-6/default.nix @@ -1,7 +1,7 @@ { stdenv, lib, ... }: stdenv.mkDerivation rec { - pname = "quarks-splash-dark"; + pname = "magna-splash-6"; version = "0.1"; src = lib.fileset.toSource {