From 902147aedd3fae89d443ce115179fd41ecae40cc Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Mon, 18 Aug 2025 21:12:45 +0200 Subject: [PATCH] update KDE --- README.md | 5 +++-- os/flake.nix | 15 ++++++++++++++- os/system/desktop/plasma.nix | 33 ++++++++++++++++++++++++++++----- 3 files changed, 45 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 11f4499..9248ea6 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ This repo contains my personal NixOS configuration with multiple desktop environ ## Quick Start ### Available Configurations -- **`nixos`** - GNOME desktop environment -- **`hyprland`** - Hyprland window manager +- **`gnome`** - GNOME desktop environment +- **`kde`** - KDE Plasma desktop environment +- **`hyprland`** - Hyprland window manager ### Quick Commands ```bash diff --git a/os/flake.nix b/os/flake.nix index 7ba0eb4..dcef9d4 100644 --- a/os/flake.nix +++ b/os/flake.nix @@ -9,7 +9,7 @@ outputs = { self, nixpkgs, home-manager }: { nixosConfigurations = { - nixos = nixpkgs.lib.nixosSystem { + gnome = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ home-manager.nixosModules.home-manager @@ -22,6 +22,19 @@ ./users/master.nix ]; }; + kde = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + home-manager.nixosModules.home-manager + ./configuration.nix + ./hardware/lenovo-thinkpad-e14.nix + ./system/base.nix + ./system/packages.nix + ./system/desktop/plasma.nix + ./users/demo.nix + ./users/master.nix + ]; + }; hyprland = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ diff --git a/os/system/desktop/plasma.nix b/os/system/desktop/plasma.nix index b155101..add1b3c 100644 --- a/os/system/desktop/plasma.nix +++ b/os/system/desktop/plasma.nix @@ -1,9 +1,32 @@ { pkgs, ... }: { - services.xserver = { - enable = true; - layout = "ch"; - xkbVariant = ""; + #services.xserver = { + # enable = true; + # layout = "ch"; + # xkbVariant = ""; + # displayManager.sddm.enable = true; + # desktopManager.plasma6.enable = true; + #}; + services = { + desktopManager.plasma6.enable = true; displayManager.sddm.enable = true; - desktopManager.plasma5.enable = true; + displayManager.sddm.wayland.enable = true; }; + + environment.systemPackages = with pkgs; + [ + kdePackages.discover # Optional: Install if you use Flatpak or fwupd firmware update sevice + kdePackages.kcalc # Calculator + kdePackages.kcharselect # Tool to select and copy special characters from all installed fonts + kdePackages.kcolorchooser # A small utility to select a color + kdePackages.kolourpaint # Easy-to-use paint program + kdePackages.ksystemlog # KDE SystemLog Application + kdePackages.sddm-kcm # Configuration module for SDDM + kdiff3 # Compares and merges 2 or 3 files or directories + kdePackages.isoimagewriter # Optional: Program to write hybrid ISO files onto USB disks + kdePackages.partitionmanager # Optional Manage the disk devices, partitions and file systems on your computer + hardinfo2 # System information and benchmarks for Linux systems + haruna # Open source video player built with Qt/QML and libmpv + wayland-utils # Wayland utilities + wl-clipboard # Command-line copy/paste utilities for Wayland + ]; }