Restructured nixos code for better structure. Commented what each package is for.

This commit is contained in:
2025-12-18 14:20:16 +01:00
parent aed49644e9
commit feb65868cc
9 changed files with 199 additions and 232 deletions

View File

@ -3,7 +3,7 @@ let
# Define the custom background package with the correct relative path
background-package = pkgs.stdenvNoCC.mkDerivation {
name = "background-image";
src = ../other/wallpaper2.png; # Place wallpaper.jpg in the same directory as this config file
src = ../other/wallpaper4.png; # Place wallpaper.jpg in the same directory as this config file
dontUnpack = true;
installPhase = ''
cp $src $out
@ -56,47 +56,35 @@ in
wayland.enable = true;
};
};
# Enable the KDE Plasma Desktop Environment.
desktopManager.plasma6.enable = true;
};
virtualisation.waydroid.enable = true;
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
#services.xserver.enable = true;
# Configure keymap in X11
#services.xserver.xkb = {
# layout = "de";
# variant = "";
#};
system.activationScripts.script.text = ''
source /home/${username}/${project}/other/colors.sh
source /home/${username}/${project}/other/pfp.sh
'';
#services.displayManager.sddm = {
# enable = true;
# theme = "breeze";
# wayland.enable = true;
#};
environment = {
plasma6.excludePackages = with pkgs; [
kdePackages.elisa
];
# Enable the KDE Plasma Desktop Environment.
services.desktopManager.plasma6.enable = true;
systemPackages = with pkgs; [
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
[General]
background = "${background-package}"
'') #Custom SDDM theme with background image
kdePackages.plymouth-kcm
xdg-desktop-portal
kdePackages.xdg-desktop-portal-kde
kdePackages.plasma-workspace
kdePackages.kdialog
kdePackages.yakuake #Drop down Terminal
kdePackages.bluez-qt #Bluetooth management for KDE Plasma
];
};
environment.plasma6.excludePackages = with pkgs; [
# kdePackages.konsole #Using Kitty instead
kdePackages.elisa
];
environment.systemPackages = with pkgs; [
kdePackages.plymouth-kcm
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
[General]
background = "${background-package}"
'')
xdg-desktop-portal
kdePackages.xdg-desktop-portal-kde
pipewire
];
}