From dd1bb31da86917b5aa8c5bf66420d155240b986b Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 24 Jul 2024 18:49:18 +0900 Subject: [PATCH] Update KDE --- .../common/desktops/plasma6/default.nix | 18 ++++++++++++++++-- nixos/common/desktops/plasma6/default.nix | 8 ++++---- nixos/users/albert/desktop.nix | 6 +++--- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/home-manager/common/desktops/plasma6/default.nix b/home-manager/common/desktops/plasma6/default.nix index 6ddb6ae8..f493688e 100644 --- a/home-manager/common/desktops/plasma6/default.nix +++ b/home-manager/common/desktops/plasma6/default.nix @@ -10,12 +10,26 @@ }; programs.fish.shellInit = '' set DISABLE_TMUX "true" - set GKT_THEME "Breeze" + set GTK_THEME "Breeze" ''; - # GTK_THEME = "Gruvbox-Dark-BL"; # Add the Firefox integrations programs.firefox.profiles.default.extensions = with pkgs.nur.repos.rycee.firefox-addons; [ plasma-integration ]; + + services.darkman = { + enable = true; + darkModeScripts = '' + /run/current-system/sw/bin/plasma-apply-colorscheme ArcDark + ''; + lightModeScripts = '' + /run/current-system/sw/bin/plasma-apply-colorscheme Arc + ''; + settings = { + # lat = 10; + # log = 10; + usegeoclue = true; + }; + }; } diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index 7c4de41c..f8cc3f1c 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -29,7 +29,7 @@ systemd.user.services = { "get-theme-times" = { - enable = true; + enable = false; path = [ pkgs.curl pkgs.fx ]; script = '' echo "Activating get-theme-times systemd service" @@ -43,7 +43,7 @@ onSuccess = [ "set-theme.service" ]; }; set-theme = { - enable = true; + enable = false; script = '' #!/bin/env bash echo "set-theme.service - Checking for theme settings" @@ -72,7 +72,7 @@ systemd.user.timers = { "get-theme-times" = { - enable = true; + enable = false; wantedBy = [ "default.target" ]; timerConfig = { Unit = "get-theme-times.service"; @@ -81,7 +81,7 @@ }; }; "set-theme" = { - enable = true; + enable = false; wantedBy = [ "default.target" ]; timerConfig = { Unit = "set-theme.service"; diff --git a/nixos/users/albert/desktop.nix b/nixos/users/albert/desktop.nix index 86c3fb30..24dd1608 100644 --- a/nixos/users/albert/desktop.nix +++ b/nixos/users/albert/desktop.nix @@ -6,14 +6,14 @@ pkgs.lutris pkgs.vlc pkgs.remmina - pkgs.tor-browser + # pkgs.tor-browser # Gaming pkgs-unstable.vintagestory # YubiKey GUI's - pkgs.yubikey-personalization - pkgs.yubikey-personalization-gui + # pkgs.yubikey-personalization + # pkgs.yubikey-personalization-gui # Image editing software pkgs.darktable