From 40f7484491a11030457e350ecd0ae41e88c35d32 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sun, 30 Jul 2023 10:11:02 +0200 Subject: [PATCH] hosts: steamdeck: change gdm settings and declare gnome dock --- modules/desktop/gnome/default.nix | 54 +------------------------------ modules/desktop/gnome/home.nix | 14 +++++--- 2 files changed, 11 insertions(+), 57 deletions(-) diff --git a/modules/desktop/gnome/default.nix b/modules/desktop/gnome/default.nix index 17efb8a..5dbeab6 100644 --- a/modules/desktop/gnome/default.nix +++ b/modules/desktop/gnome/default.nix @@ -30,11 +30,8 @@ displayManager = { gdm.wayland = true; gdm.enable = true; + gdm.autoLogin.delay = 5; gdm.settings = { - # daemon = { - # AutomaticLoginEnable=true; - # AutomaticLogin="kabbone"; - # }; security = { DisallowTCP=true; }; @@ -45,53 +42,4 @@ }; }; }; - -# systemd.services.gamescope-switcher = { -# wantedBy = [ "graphical.target" ]; -# serviceConfig = { -# User = 2000; -# PAMName = "login"; -# WorkingDirectory = "~"; -# -# TTYPath = "/dev/tty7"; -# TTYReset = "yes"; -# TTYVHangup = "yes"; -# TTYVTDisallocate = "yes"; -# -# StandardInput = "tty-fail"; -# StandardOutput = "journal"; -# StandardError = "journal"; -# -# UtmpIdentifier = "tty7"; -# UtmpMode = "user"; -# -# Restart = "always"; -# }; -# -# script = '' -# set-session () { -# mkdir -p ~/.local/state -# >~/.local/state/steamos-session-select echo "$1" -# } -# consume-session () { -# if [[ -e ~/.local/state/steamos-session-select ]]; then -# cat ~/.local/state/steamos-session-select -# rm ~/.local/state/steamos-session-select -# else -# echo "gamescope" -# fi -# } -# while :; do -# session=$(consume-session) -# case "$session" in -# plasma) -# dbus-run-session -- gnome-shell --display-server --wayland -# ;; -# gamescope) -# steam-session -# ;; -# esac -# done -# ''; -# }; } diff --git a/modules/desktop/gnome/home.nix b/modules/desktop/gnome/home.nix index de99f70..c81feca 100644 --- a/modules/desktop/gnome/home.nix +++ b/modules/desktop/gnome/home.nix @@ -19,10 +19,16 @@ screen-keyboard-enabled = true; }; "org/gnome/shell" = { -# enabled-extensions = [ -# "dash-to-dock@micxgx.gmail.com" -# ]; - favorite-apps = ["steam.desktop"]; + enabled-extensions = [ + "dash-to-dock@micxgx.gmail.com" + ]; + favorite-apps = [ + "firefox.desktop" + "thunderbird.desktop" + "element.desktop" + "keepassxc.desktop" + "yubioath-flutter" + ]; }; # Dash to Dock settings for a better touch screen experience "org/gnome/shell/extensions/dash-to-dock" = {