Update common.nix
This commit is contained in:
parent
02908dc450
commit
9f0df291d7
1 changed files with 18 additions and 11 deletions
29
common.nix
29
common.nix
|
|
@ -27,21 +27,28 @@ services.desktopManager.gnome.enable = true;
|
||||||
systemd.user.services.gnomeSettings = {
|
systemd.user.services.gnomeSettings = {
|
||||||
description = "Apply GNOME custom settings";
|
description = "Apply GNOME custom settings";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" "dbus.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = pkgs.writeShellScript "apply-gnome-settings" ''
|
ExecStart = pkgs.writeShellScript "apply-gnome-settings" ''
|
||||||
echo "Running GNOME settings script..." >> /home/fred/gnome-settings.log
|
LOG=~/gnome-settings.log
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
|
echo "---- RUN $(date) ----" >> "$LOG"
|
||||||
|
|
||||||
|
# Debug info
|
||||||
|
echo "XDG_SESSION_TYPE=$XDG_SESSION_TYPE" >> "$LOG"
|
||||||
|
echo "XDG_SESSION_DESKTOP=$XDG_SESSION_DESKTOP" >> "$LOG"
|
||||||
|
echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> "$LOG"
|
||||||
|
echo "Runtime dir: $XDG_RUNTIME_DIR" >> "$LOG"
|
||||||
|
|
||||||
|
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
|
||||||
|
|
||||||
|
echo "Running settings..." >> "$LOG"
|
||||||
|
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' >> "$LOG" 2>&1
|
||||||
|
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' >> "$LOG" 2>&1
|
||||||
|
gsettings set org.gnome.desktop.wm.keybindings close "['<Super>q']" >> "$LOG" 2>&1
|
||||||
|
gsettings set org.gnome.settings-daemon.plugins.media-keys home "['<Super>e']" >> "$LOG" 2>&1
|
||||||
|
gsettings set org.gnome.settings-daemon.plugins.media-keys cont
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings close "['<Super>q']"
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys home "['<Super>e']"
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys control-center "['<Super>i']"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue