From 9ecd4a4467d2b4862a91bdd20430cb30d734d69c Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 2 Jan 2024 23:20:11 +0900 Subject: [PATCH] test --- nixos/common/desktops/plasma6/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index 0e873e38..f2a26a12 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -41,7 +41,7 @@ path = [ pkgs.curl ]; script = "curl wttr.in?format=j1 > /tmp/wttr.in"; after = [ "networking-online.target" ]; - serviceConfig.Type = "simple"; + serviceConfig.Type = "oneshot"; onSuccess = [ "light-theme.service" "dark-theme.service" @@ -51,19 +51,17 @@ enable = true; path = [ pkgs.at pkgs.fx pkgs.nodejs ]; script = '' - source ~/.bashrc - echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen Arc" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise` + echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen Arc" | ${pkgs.at}/bin/at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise` ''; - serviceConfig.Type = "simple"; + serviceConfig.Type = "oneshot"; }; dark-theme = { enable = true; path = [ pkgs.at pkgs.fx pkgs.nodejs ]; script = '' - source ~/.bashrc - echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen ArcDark" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset` + echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen ArcDark" | ${pkgs.at}/bin/at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset` ''; - serviceConfig.Type = "simple"; + serviceConfig.Type = "oneshot"; }; };