From 8d0753fd0a399f8a777cee1d27b92ba3a4086531 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 13 Sep 2025 11:15:07 +0200 Subject: [PATCH] Add thinkpad to syncthing peers --- hosts/nixos/thinkpad/home.nix | 1 + hosts/nixos/thinkpad/system.nix | 6 +++--- modules/plasma.nix | 31 ++++++++++++++++++++++++++++++- modules/syncthing.nix | 9 ++++++--- 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/hosts/nixos/thinkpad/home.nix b/hosts/nixos/thinkpad/home.nix index e0a7737..a778ed6 100644 --- a/hosts/nixos/thinkpad/home.nix +++ b/hosts/nixos/thinkpad/home.nix @@ -6,6 +6,7 @@ ../home-default.nix ../../../modules/firefox.nix ../../../modules/plasma.nix + ../../../modules/syncthing.nix plasma-manager.homeModules.plasma-manager ]; diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index 9a977ea..2719494 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -78,7 +78,7 @@ # Bluetooth support bluetooth = { enable = true; - powerOnBoot = false; # Save battery + powerOnBoot = true; settings = { General = { Enable = "Source,Sink,Media,Socket"; @@ -185,8 +185,8 @@ RUNTIME_PM_ON_AC = "on"; RUNTIME_PM_ON_BAT = "auto"; - # Disable Bluetooth on battery to save power - DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth"; + # Keep Bluetooth available on battery + # DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth"; }; }; diff --git a/modules/plasma.nix b/modules/plasma.nix index b80ac08..332241d 100644 --- a/modules/plasma.nix +++ b/modules/plasma.nix @@ -4,6 +4,10 @@ # Enable plasma configuration programs.plasma.enable = true; + # Set dark theme + programs.plasma.workspace.theme = "breeze-dark"; + programs.plasma.workspace.colorScheme = "BreezeDark"; + # Configure Konsole through plasma-manager programs.konsole = { enable = true; @@ -16,7 +20,7 @@ colorScheme = "Breeze"; extraConfig = { General.SilenceSeconds = 0; - "Scrolling".ScrollBarPosition = 0; + "Scrolling".ScrollBarPosition = 2; "Terminal Features" = { BlinkingTextEnabled = true; FlowControlEnabled = true; @@ -50,6 +54,31 @@ { location = "bottom"; hiding = "autohide"; + widgets = [ + "org.kde.plasma.kickoff" + { + iconTasks = { + launchers = [ + "applications:org.kde.dolphin.desktop" + "applications:firefox.desktop" + "applications:org.kde.konsole.desktop" + "applications:org.keepassxc.KeePassXC.desktop" + ]; + }; + } + "org.kde.plasma.marginsseparator" + { + systemTray.items = { + shown = [ + "org.kde.plasma.bluetooth" + "org.kde.plasma.battery" + "org.kde.plasma.networkmanagement" + "org.kde.plasma.volume" + ]; + }; + } + "org.kde.plasma.digitalclock" + ]; } ]; } diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 9195ceb..a9df73e 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -32,13 +32,16 @@ "hs" = { id = "GH5D3DJ-PAGKBL6-3VDZJRT-QG4ZMRD-GHCCA3Y-HM2H5CE-NAMJYRR-VHLOOQH"; }; + "thinkpad" = { + id = "OMZKASU-QPZDCQ2-7QRHRD4-3TPAXLM-AYRMWXB-A6E5OIZ-MGR422V-JYARQA6"; + }; }; # Define shared folders folders = { "Credentials" = { path = "~/Credentials"; - devices = [ "ipad" "mba" "iphone" "imac" "hs" ]; + devices = [ "ipad" "mba" "iphone" "imac" "hs" "thinkpad" ]; ignorePerms = true; versioning = { type = "staggered"; @@ -50,7 +53,7 @@ }; "Documents" = { path = "~/Documents"; - devices = [ "mba" "imac" "hs" ]; + devices = [ "mba" "imac" "hs" "thinkpad" ]; ignorePerms = true; versioning = { type = "staggered"; @@ -62,7 +65,7 @@ }; "Obsidian" = { path = "~/Obsidian"; - devices = [ "ipad" "mba" "iphone" "imac" "hs" ]; + devices = [ "ipad" "mba" "iphone" "imac" "hs" "thinkpad" ]; ignorePerms = true; versioning = { type = "staggered";