Compare commits

...

2 Commits

Author SHA1 Message Date
1b97c15215 Changed plasma manager to configure all of KDE Plasma 6.
Removed old Konsave files as they are no longer needed with plasma manager.
2026-02-15 12:13:01 +01:00
2b29515874 Changed ZSH completion and added package to allow Gparted to format to NTFS 2026-02-15 12:09:27 +01:00
8 changed files with 88 additions and 98 deletions

View File

@ -7,6 +7,7 @@
jetbrains.idea-community #The IntelliJ IDE to edit Java code jetbrains.idea-community #The IntelliJ IDE to edit Java code
jetbrains.clion #The CLion IDE to edit and compile c/c++ code jetbrains.clion #The CLion IDE to edit and compile c/c++ code
jetbrains.datagrip #The DataGrip IDE to manage Databases jetbrains.datagrip #The DataGrip IDE to manage Databases
#jetbrains-toolbox
#racket #The racket Programming language, with DrRacket IDE, for University (*Not* because it's my favourite) #racket #The racket Programming language, with DrRacket IDE, for University (*Not* because it's my favourite)
rustup #Rust Programming Toolchain rustup #Rust Programming Toolchain
#go #Go Programming Language #go #Go Programming Language

View File

@ -43,5 +43,6 @@
cifs-utils cifs-utils
samba samba
kdePackages.ksshaskpass kdePackages.ksshaskpass
ntfs3g
]; ];
} }

View File

@ -1,7 +1,7 @@
{ config, pkgs, username, project, ... }: { { config, pkgs, username, project, ... }: {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = false;
autosuggestions = { autosuggestions = {
enable = true; enable = true;
highlightStyle = "fg=242"; # Lighter gray shadow (0-255 scale) highlightStyle = "fg=242"; # Lighter gray shadow (0-255 scale)
@ -19,6 +19,7 @@
#To reset powerlevel10k, write 'p10k configure' in shell! #To reset powerlevel10k, write 'p10k configure' in shell!
promptInit = '' promptInit = ''
source ${pkgs.zsh-autocomplete}/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
''; '';
}; };

Binary file not shown.

View File

@ -3,20 +3,6 @@
#To show logs of services run: journalctl --user-unit={service-name} --user #To show logs of services run: journalctl --user-unit={service-name} --user
systemd.user.services.set-wallpaper = {
enable = true;
description = "Set KDE Plasma wallpaper";
#after = [ "plasma-desktop.service" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /home/${username}/${project}/other/wallpaper3.png" ];
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
};
};
systemd.user.services.autostart-yakuake = { systemd.user.services.autostart-yakuake = {
enable = true; enable = true;
description = "Automatically start Yakuake"; description = "Automatically start Yakuake";
@ -32,23 +18,6 @@
}; };
}; };
systemd.user.services.theme-set-reminder = {
enable = true;
description = "Remind the user to apply the custom Plasma Theme shipped with this install";
after = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
# ExecStart = [ "${pkgs.kdePackages.kdialog}/bin/kdialog --passivepopup \"Dont forget to apply custom system theme! (run kde-theme-apply in terminal)\"" ];
ExecStart = [ "/etc/nixos/plasma/theme-popup.sh" ];
Type = "oneshot";
Restart = "on-failure";
RestartSec = "5s";
# Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin";
# Environment = "DISPLAY=:0";
};
};
systemd.user.services.autostart-trayscale = { systemd.user.services.autostart-trayscale = {
enable = true; enable = true;
description = "Automatically start Trayscale"; description = "Automatically start Trayscale";

View File

@ -1,4 +1,4 @@
{pkgs, inputs, username, ...}: {pkgs, inputs, username, project, ...}:
{ {
imports = [ imports = [
@ -6,7 +6,7 @@
programs = { programs = {
plasma = { plasma = {
enable = false; enable = true;
overrideConfig = true; overrideConfig = true;
panels = [ panels = [
@ -19,10 +19,76 @@
widgets = [ widgets = [
"org.kde.plasma.kickoff" "org.kde.plasma.kickoff"
"org.kde.plasma.pager" "org.kde.plasma.pager"
"org.kde.plasma.marginsseparator"
"org.kde.windowtitle"
"org.kde.plasma.panelspacer" "org.kde.plasma.panelspacer"
"org.kde.plasma.systemmonitor.cpu" {
"org.kde.plasma.systemtray" name = "org.kde.olib.thermalmonitor";
"org.kde.plasma.digitalclock" config = {
General = {
sensors = "[{\"name\":\"Average CPU Temperature\",\"sensorId\":\"cpu/all/averageTemperature\"}]";
};
#ConfigDialog = {
# DialogHeight = 540;
# DialogWidth = 720;
#};
};
}
{
name = "org.kde.plasma.systemmonitor.cpu";
config = {
Appearance = {
chartFace = "org.kde.ksysguard.linechart";
title = "Total CPU Use";
};
SensorColors = {
"cpu/all/usage" = "43,82,120";
};
Sensors = {
highPrioritySensorIds = "[\"cpu/all/usage\"]";
lowPrioritySensorIds = "[\"cpu/all/cpuCount\",\"cpu/all/coreCount\"]";
totalSensors = "[\"cpu/all/usage\"]";
};
General = {
CurrentPreset = "org.kde.plasma.systemmonitor";
};
};
}
"zayron.simple.separator"
{
systemTray.items = {
# Explicitly shown icons (always visible)
shown = [
"Trayscale"
"org.kde.plasma.battery"
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
# Explicitly hidden icons (in the popup menu)
hidden = [
"org.kde.plasma.brightness"
"toolbox"
"Yakuake"
"org.kde.plasma.notifications"
"Xwayland Video Bridge_pipewireToXProxy"
"zero-trust-client"
"org.kde.plasma.clipboard"
"org.kde.plasma.bluetooth"
"org.kde.plasma.clipboard"
"org.kde.plasma.printmanager"
"org.kde.plasma.weather"
];
};
}
{
name = "org.kde.plasma.digitalclock";
config = {
Appearance = {
fontWeight = 400;
use24hFormat = 2;
};
};
}
]; ];
} }
{ {
@ -34,15 +100,16 @@
opacity = "translucent"; opacity = "translucent";
hiding = "dodgewindows"; hiding = "dodgewindows";
widgets = [ widgets = [
"org.kde.plasma.kickerdash"
{ {
name = "org.kde.plasma.icontasks"; name = "org.kde.plasma.icontasks";
config = { config = {
General = { General = {
launchers = [ launchers = [
# optional pinned apps # optional pinned apps
"kitty.desktop" "applications:org.kde.dolphin.desktop"
"firefox.desktop" "applications:systemsettings.desktop""applications:kitty.desktop"
"org.kde.dolphin.desktop" "applications:firefox.desktop"
]; ];
}; };
}; };
@ -55,7 +122,7 @@
powerdevil = { powerdevil = {
# On AC power (plugged in): Minimal power saving # On AC power (plugged in): Minimal power saving
AC = { AC = {
powerProfile = "performance"; powerProfile = "powerSaving";
#turnOffDisplay.idleTimeout = 900; # 15 min idle #turnOffDisplay.idleTimeout = 900; # 15 min idle
autoSuspend = { autoSuspend = {
action = "nothing"; action = "nothing";
@ -66,7 +133,7 @@
# Normal battery: Balanced saving # Normal battery: Balanced saving
battery = { battery = {
powerProfile = "balanced"; powerProfile = "powerSaving";
#turnOffDisplay.idleTimeout = 300; # 5 min #turnOffDisplay.idleTimeout = 300; # 5 min
autoSuspend = { autoSuspend = {
action = "nothing"; action = "nothing";
@ -83,7 +150,7 @@
action = "sleep"; action = "sleep";
idleTimeout = 300; # 5 min idle idleTimeout = 300; # 5 min idle
}; };
whenLaptopLidClosed = "shutDown"; whenLaptopLidClosed = "sleep";
dimDisplay = { dimDisplay = {
idleTimeout = 60; idleTimeout = 60;
}; };
@ -106,7 +173,7 @@
theme = "Breeze_Light"; theme = "Breeze_Light";
size = 24; size = 24;
}; };
wallpaper = /home/${username}/NixOS/other/wallpaper2.png; wallpaper = /home/${username}/${project}/other/wallpaper3.png;
soundTheme = "freedesktop"; soundTheme = "freedesktop";
iconTheme = "Breeze-LaCapitaine-apps"; iconTheme = "Breeze-LaCapitaine-apps";
splashScreen = { splashScreen = {
@ -449,7 +516,7 @@
kscreenlockerrc.Daemon.Timeout = 0; kscreenlockerrc.Daemon.Timeout = 0;
# kscreenlockerrc."Greeter/Wallpaper/org.kde.image/General".Image = "/usr/share/wallpapers/ScarletTree/"; # kscreenlockerrc."Greeter/Wallpaper/org.kde.image/General".Image = "/usr/share/wallpapers/ScarletTree/";
# kscreenlockerrc."Greeter/Wallpaper/org.kde.image/General".PreviewImage = "/usr/share/wallpapers/ScarletTree/"; # kscreenlockerrc."Greeter/Wallpaper/org.kde.image/General".PreviewImage = "/usr/share/wallpapers/ScarletTree/";
# ksmserverrc.General.loginMode = "emptySession"; ksmserverrc.General.loginMode = "emptySession";
# ksplashrc.KSplash.Theme = "a2n.kuro"; # ksplashrc.KSplash.Theme = "a2n.kuro";
# kwalletrc.Wallet."First Use" = false; # kwalletrc.Wallet."First Use" = false;
# kwinrc."Activities/LastVirtualDesktop"."0f8d8349-5b1b-4b77-bfa5-22829bfaf459" = "4a2f44cc-dfe7-45dc-8439-fe34a6866d37"; # kwinrc."Activities/LastVirtualDesktop"."0f8d8349-5b1b-4b77-bfa5-22829bfaf459" = "4a2f44cc-dfe7-45dc-8439-fe34a6866d37";
@ -477,8 +544,8 @@
# kwinrc."Tiling/f18ce12b-2106-508f-9542-e4e6c6fbf75f".tiles = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}"; # kwinrc."Tiling/f18ce12b-2106-508f-9542-e4e6c6fbf75f".tiles = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}";
# kwinrc.Xwayland.Scale = 2; # kwinrc.Xwayland.Scale = 2;
kwinrc."org.kde.kdecoration2".BorderSize = "Tiny"; kwinrc."org.kde.kdecoration2".BorderSize = "Tiny";
# kwinrc."org.kde.kdecoration2".BorderSizeAuto = false; kwinrc."org.kde.kdecoration2".BorderSizeAuto = false;
# kwinrc."org.kde.kdecoration2".ButtonsOnLeft = ""; kwinrc."org.kde.kdecoration2".ButtonsOnLeft = "";
# kwinrc."org.kde.kdecoration2".theme = "__aurorae__svg__Nordic"; # kwinrc."org.kde.kdecoration2".theme = "__aurorae__svg__Nordic";
# plasma-localerc.Formats.LANG = "en_US.UTF-8"; # plasma-localerc.Formats.LANG = "en_US.UTF-8";
#plasmanotifyrc."Applications/dev.deedles.Trayscale".Seen = true; #plasmanotifyrc."Applications/dev.deedles.Trayscale".Seen = true;

View File

@ -1,38 +0,0 @@
source /home/cookiez/NixOS/other/colors.sh
FLAG_FILE="/home/cookiez/.flags/theme-flag"
/run/current-system/sw/bin/konsave -i /home/cookiez/NixOS/plasma/NixOS-1.0.1.knsv
/run/current-system/sw/bin/konsave -i /home/cookiez/NixOS/plasma/NixOS-1.0.1.knsv
/run/current-system/sw/bin/konsave -a NixOS-1.0.1
progress_bar() {
local duration=$1
local interval=0.25
local total_intervals=$((duration / interval))
local progress=""
local bar_length=10
for ((i=0; i<total_intervals; i++)); do
progress="${progress}-"
printf "\rApplying: [%-${bar_length}s]" "$progress"
sleep $interval
done
echo -ne "\r[${progress}] Done!\n"
}
mkdir -p "$(dirname "$FLAG_FILE")"
touch "$FLAG_FILE"
echo "Flag for knowing weather the Default theme packaged with this NixOS install was actually applied! (If this exists than it should be applied already)" > "$FLAG_FILE"
echo -e "Use ${RED}'sudo reboot -h 0'${NOCOLOR} to successfully apply the theme, if logging out manually ${YELLOW}doesn't${NOCOLOR} work!"
progress_bar 2.5
echo ""
echo -n "Do you want to reboot now? (Y/n): "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo "Rebooting! ..."
sudo shutdown -r now
else
echo "Make sure to log out/reboot later!"
fi

View File

@ -1,11 +0,0 @@
#!/bin/sh
sleep 15
FLAG_FILE="/home/cookiez/.flags/theme-flag"
if [ ! -f "$FLAG_FILE" ]; then
/run/current-system/sw/bin/kdialog --passivepopup "Dont forget to apply custom system theme! (run kde-theme-apply in terminal)" 60
fi
echo "Finished Popup Script!"