From dfe11dc1116b638ff50517a0cd2d0552b52e3967 Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Sun, 18 Aug 2024 09:11:03 +0100 Subject: [PATCH] fix: move excludes to gnome install --- scripts/_base/001-desktop-environment.sh | 76 +------------------ .../_silverblue/001-desktop-environment.sh | 41 +++++++++- 2 files changed, 41 insertions(+), 76 deletions(-) diff --git a/scripts/_base/001-desktop-environment.sh b/scripts/_base/001-desktop-environment.sh index 9852e8b..73c4c96 100644 --- a/scripts/_base/001-desktop-environment.sh +++ b/scripts/_base/001-desktop-environment.sh @@ -2,81 +2,7 @@ set -euox pipefail - # # Non-critical apps -> Flatpak - # - baobab - # - cheese - # - snapshot - # - evince - # - evince-djvu - # - evince-nautilus - # - file-roller - # - file-roller-nautilus - # - gnome-boxes - # - gnome-calculator - # - gnome-calendar - # - gnome-characters - # - gnome-clocks - # - gnome-connections - # - gnome-contacts - # - gnome-documents - # - gnome-font-viewer - # - gnome-logs - # - gnome-maps - # - gnome-photos - # - gnome-screenshot - # - gnome-text-editor - # - gnome-weather - # - jwhois - # - loupe - # - rdist - # - sane-backends-drivers-scanners - # - simple-scan - # - sushi - # - symlinks - # - tcpdump - # - telnet - # - totem - # - totem-nautilus - # - traceroute - - -excludes=( - "baobab" - "cheese" - "evince" - "evince-djvu" - "evince-nautilus" - "file-roller" - "file-roller-nautilus" - "gnome-boxes" - "gnome-calculator" - "gnome-calendar" - "gnome-characters" - "gnome-clocks" - "gnome-connections" - "gnome-contacts" - "gnome-documents" - "gnome-font-viewer" - "gnome-logs" - "gnome-maps" - "gnome-photos" - "gnome-screenshot" - "gnome-text-editor" - "gnome-weather" - "jwhois" - "loupe" - "rdist" - "sane-backends-drivers-scanners" - "simple-scan" - "snapshot" - "sushi" - "symlinks" - "tcpdump" - "telnet" - "totem" - "totem-nautilus" - "traceroute" -) +excludes=() # Make excludes a comma-separated string excludes=$(IFS=, ; echo "${excludes[*]}") diff --git a/scripts/_silverblue/001-desktop-environment.sh b/scripts/_silverblue/001-desktop-environment.sh index 4e157a9..4555511 100644 --- a/scripts/_silverblue/001-desktop-environment.sh +++ b/scripts/_silverblue/001-desktop-environment.sh @@ -3,5 +3,44 @@ set -euox pipefail # Install the desktop environment -dnf install -y @gnome-desktop +excludes=( + + "baobab" + "cheese" + "evince" + "evince-djvu" + "evince-nautilus" + "file-roller" + "file-roller-nautilus" + "gnome-boxes" + "gnome-calculator" + "gnome-calendar" + "gnome-characters" + "gnome-clocks" + "gnome-connections" + "gnome-contacts" + "gnome-documents" + "gnome-font-viewer" + "gnome-logs" + "gnome-maps" + "gnome-photos" + "gnome-screenshot" + "gnome-text-editor" + "gnome-weather" + "jwhois" + "loupe" + "rdist" + "sane-backends-drivers-scanners" + "simple-scan" + "snapshot" + "sushi" + "symlinks" + "tcpdump" + "telnet" + "totem" + "totem-nautilus" + "traceroute" +) + +dnf install -y @gnome-desktop --exclude "${excludes[*]}" systemctl enable gdm.service