fix (home/helix): default to light, no systemd service

This commit is contained in:
Henri Saudubray 2026-01-11 14:32:14 +01:00
parent a218f6d345
commit 27bd8bc532

View file

@ -77,7 +77,7 @@
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
settings = { settings = {
theme = "adwaita-dark"; theme = "adwaita-light";
editor = { editor = {
lsp.display-messages = true; lsp.display-messages = true;
inline-diagnostics.cursor-line = "info"; inline-diagnostics.cursor-line = "info";
@ -160,6 +160,42 @@
videos = "${config.home.homeDirectory}/vid"; videos = "${config.home.homeDirectory}/vid";
}; };
# systemd.user.services.helix-theme = {
# Unit = {
# Description = "Helix System Colour Scheme Synchronisation Service";
# Documentation = "https://github.com/helix-editor/helix/issues/2158";
# After = "gnome-session.target";
# };
# Install.WantedBy = [ "gnome-session.target" ];
# Service = {
# Type = "simple";
# RestartSec = 5;
# Restart = "always";
# ExecStart =
# let
# update-script = pkgs.writeShellScript "helix-theme-update" ''
# #!/bin/sh
# set -eu -o pipefail
# if [ "$1" = "default" ]; then
# sed -i 's/theme = ".*"/theme = "adwaita-light"/' \
# $HOME/.config/helix/config.toml
# else
# sed -i 's/theme = ".*"/theme = "adwaita-dark"/' \
# $HOME/.config/helix/config.toml
# fi
# killall -s SIGUSR1 hx
# '';
# in
# "${pkgs.writeShellScript "helix-theme-monitor" ''
# #!/bin/sh
# gsettings monitor org.gnome.desktop.interface color-scheme \
# | xargs -L1 bash -c "source ${update-script}"
# ''}";
# };
# };
dconf.settings = { dconf.settings = {
"org/gnome/TextEditor" = { "org/gnome/TextEditor" = {
keybindings = "vim"; keybindings = "vim";