From 535b831bbf61e6432ff3e3272fd0c15b42c74913 Mon Sep 17 00:00:00 2001 From: Zephrynis Date: Sun, 26 Oct 2025 21:42:19 +0000 Subject: [PATCH] Update laptop config: hostname, user, and desktop Changed hostname to 'zeph-laptop' and updated user to 'zeph' with appropriate description. Switched display manager to SDDM and desktop environment to Plasma 6, removing GDM and Plasma 5. Clarified power management options, enabling TLP by default and providing comments for power-profiles-daemon. --- hosts/laptop/configuration.nix | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 63d3165..20a999a 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -3,12 +3,12 @@ { # Laptop specific configuration - networking.hostName = "laptop"; + networking.hostName = "zeph-laptop"; # Users configuration - users.users.yourusername = { # Change "yourusername" to your actual username + users.users.zeph = { isNormalUser = true; - description = "Your Name"; # Change this + description = "Zephrynis"; extraGroups = [ "networkmanager" "wheel" "video" "audio" ]; shell = pkgs.zsh; # or pkgs.bash }; @@ -17,19 +17,11 @@ programs.zsh.enable = true; # Display manager and desktop environment / window manager + services.displayManager.sddm.enable = true; + services.desktopManager.plasma6.enable = true; + services.xserver = { enable = true; - - # Display manager - displayManager.gdm.enable = true; - - # Desktop environment (choose one, or comment all for a standalone WM) - # desktopManager.gnome.enable = true; - # desktopManager.plasma5.enable = true; - - # Window manager (uncomment if you want a standalone WM) - # windowManager.i3.enable = true; - # windowManager.bspwm.enable = true; }; # Optional: Enable Wayland compositor @@ -39,6 +31,11 @@ # }; # Laptop-specific power management + # Choose either TLP or power-profiles-daemon (not both) + # TLP is more advanced, power-profiles-daemon is simpler and integrates better with KDE + + # Option 1: Use TLP (more features) + services.power-profiles-daemon.enable = false; # Disable to use TLP services.tlp = { enable = true; settings = { @@ -51,6 +48,10 @@ CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; }; }; + + # Option 2: Use power-profiles-daemon (uncomment to use instead of TLP) + # services.tlp.enable = false; + # services.power-profiles-daemon.enable = true; # Enable powertop for additional power savings powerManagement.powertop.enable = true;