Update common.nix
This commit is contained in:
parent
431815ea2d
commit
02908dc450
1 changed files with 19 additions and 10 deletions
17
common.nix
17
common.nix
|
|
@ -24,16 +24,25 @@ services.displayManager.gdm.enable = true;
|
|||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
# Apply GNOME settings on login
|
||||
environment.etc."profile.d/gnome-settings.sh".text = ''
|
||||
systemd.user.services.gnomeSettings = {
|
||||
description = "Apply GNOME custom settings";
|
||||
wantedBy = [ "default.target" ];
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = pkgs.writeShellScript "apply-gnome-settings" ''
|
||||
echo "Running GNOME settings script..." >> /home/fred/gnome-settings.log
|
||||
if [ "$XDG_SESSION_DESKTOP" = "gnome" ]; then
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
|
||||
|
||||
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']"
|
||||
fi
|
||||
'';
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.fred = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue