remove desktop env from thinkpad
This commit is contained in:
parent
cddf7af3b5
commit
779ab5dbec
3 changed files with 5 additions and 66 deletions
|
|
@ -93,7 +93,7 @@
|
||||||
"yanlin@thinkpad" = home-manager.lib.homeManagerConfiguration {
|
"yanlin@thinkpad" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
modules = [ ./hosts/nixos/thinkpad/home.nix ];
|
modules = [ ./hosts/nixos/thinkpad/home.nix ];
|
||||||
extraSpecialArgs = { inherit claude-code nixvim firefox-addons plasma-manager; };
|
extraSpecialArgs = { inherit claude-code nixvim; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, firefox-addons, plasma-manager, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Allow unfree packages in home-manager
|
# Allow unfree packages in home-manager
|
||||||
|
|
@ -7,20 +7,11 @@
|
||||||
# Import the common NixOS home configuration
|
# Import the common NixOS home configuration
|
||||||
imports = [
|
imports = [
|
||||||
../home-default.nix
|
../home-default.nix
|
||||||
../../../modules/firefox.nix
|
|
||||||
../../../modules/plasma.nix
|
|
||||||
../../../modules/syncthing.nix
|
../../../modules/syncthing.nix
|
||||||
../../../modules/ghostty.nix
|
../../../modules/ghostty.nix
|
||||||
../../../modules/tex.nix
|
../../../modules/tex.nix
|
||||||
plasma-manager.homeModules.plasma-manager
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Firefox with NixOS-specific package
|
|
||||||
programs.firefox-custom = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.firefox;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable Ghostty terminal with NixOS package
|
# Enable Ghostty terminal with NixOS package
|
||||||
programs.ghostty-custom = {
|
programs.ghostty-custom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -31,9 +22,4 @@
|
||||||
|
|
||||||
# Any ThinkPad-specific home configurations can be added here
|
# Any ThinkPad-specific home configurations can be added here
|
||||||
# For example, laptop-specific aliases or scripts
|
# For example, laptop-specific aliases or scripts
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
keepassxc
|
|
||||||
obsidian
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,35 +115,6 @@
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# KDE Plasma Desktop Environment
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# Video drivers
|
|
||||||
videoDrivers = [ "modesetting" "nvidia" ];
|
|
||||||
|
|
||||||
# Keyboard layout
|
|
||||||
xkb = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Display manager
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Auto-login
|
|
||||||
services.displayManager.autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "yanlin";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Desktop environment
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
# Touchpad configuration
|
# Touchpad configuration
|
||||||
services.libinput = {
|
services.libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -206,13 +177,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Disable screen blanking and DPMS
|
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
|
||||||
xset s off # Disable screen saver
|
|
||||||
xset -dpms # Disable DPMS (Display Power Management Signaling)
|
|
||||||
xset s noblank # Disable screen blanking
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Thermal management
|
# Thermal management
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
|
||||||
|
|
@ -250,10 +214,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable KDE Wallet auto-unlock via PAM
|
|
||||||
security.pam.services.sddm.enableKwallet = true;
|
|
||||||
|
|
||||||
# Host-specific packages
|
# Host-specific packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Additional system monitoring
|
# Additional system monitoring
|
||||||
|
|
@ -261,13 +221,6 @@
|
||||||
neofetch
|
neofetch
|
||||||
unzip
|
unzip
|
||||||
|
|
||||||
# KDE/Plasma utilities
|
|
||||||
kdePackages.kate
|
|
||||||
kdePackages.konsole
|
|
||||||
kdePackages.spectacle
|
|
||||||
kdePackages.filelight
|
|
||||||
kdePackages.ark
|
|
||||||
|
|
||||||
# System utilities
|
# System utilities
|
||||||
pciutils
|
pciutils
|
||||||
usbutils
|
usbutils
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue