From dfe270a27b3492347982c3a0ca24c9cbbd2f294a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 18 Jul 2026 14:22:16 +0200 Subject: [PATCH] common workstation config for trixie --- debian-trixie-desktop.mk | 120 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 debian-trixie-desktop.mk diff --git a/debian-trixie-desktop.mk b/debian-trixie-desktop.mk new file mode 100644 index 0000000..dde1bc2 --- /dev/null +++ b/debian-trixie-desktop.mk @@ -0,0 +1,120 @@ + +subvol=/mnt/trixie +release=trixie + +mainuser=... +fsuid=... + +define SOURCES := +deb http://deb.debian.org/debian ${release} main +deb http://security.debian.org/debian-security/ ${release}-security main +endef + +## Comma separated list of config modules from modules/ directory +modules=xfce,gimp #,approx + +## Packages +packages = +packages += alsa-utils audacity +packages += blender brasero brasero-cdrkit +packages += chromium chromium-sandbox cifs-utils claws-mail claws-mail-pgpinline claws-mail-pgpmime claws-mail-vcalendar-plugin clementine cryptsetup cups cups-browsed +packages += dosfstools dvdauthor dvd+rw-tools +packages += eject exfat-fuse exfatprogs +packages += firefox-esr firefox-esr-l10n-de fonts-liberation fonts-liberation2 frei0r-plugins +packages += gdebi gimp git gnumeric gparted gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-x gwenview +packages += hplip hplip-gui hunspell hunspell-de-de hyphen-de +packages += inkscape inkscape-tutorials +packages += k3b k3b-i18n kate kbd kcalc kdenlive kde-spectacle kde-style-breeze krita krita-l10n +packages += libnss3-tools libblockdev-crypto3 libk3b-extracodecs libpam-mount libpam-script libreoffice libreoffice-gnome libreoffice-gtk3 libreoffice-l10n-de libreoffice-style-breeze live-boot live-boot-initramfs-tools locales lvm2 lightdm +packages += man-db marble mdadm mesa-utils mousepad mumble +packages += nbd-client netcat-openbsd network-manager-gnome nscd ntfs-3g ntpdate +packages += obs-studio okular os-prober +packages += p7zip-full pavucontrol pdfchain plymouth plymouth-themes +packages += recordmydesktop +packages += samba-common-bin squashfs-tools synaptic syslinux syslinux-common syslinux-efi systemd +packages += thunar-volman thunderbird thunderbird-l10n-de tmux +packages += unace unrar-free usermode +packages += va-driver-all vdpau-driver-all vlc +packages += x264 xdotool xfce4-goodies xfce4-power-manager-plugins xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-wacom xserver-xorg-video-all +packages += yt-dlp + +# Hardware Spcific +packages += linux-image-amd64 grub-pc xserver-xorg-video-intel + +# Games - Common +packages += extremetuxracer +packages += fillets-ng freeciv freeciv-client-sdl +packages += gnome-2048 gunroar +packages += hedgewars hex-a-hop +packages += kpat +packages += supertux supertuxkart +packages += torus-trooper +packages += wesnoth-1.16 wesnoth-1.16-httt wesnoth-music + +# Games - Minetest +packages += minetest minetest-server +packages += minetest-mod-3d-armor +packages += minetest-mod-craftguide minetest-mod-ethereal +packages += minetest-mod-mesecons minetest-mod-mobs-redo +packages += minetest-mod-pipeworks minetest-mod-protector +packages += minetest-mod-unified-inventory + +# Games - Teenage / Adult +# packages += 0ad flare-game openarena warzone2100 + +## Hostname for the generated machine +hostname=${mainuser}-debian + +## Root password will be salted and encrypted in image +# rootpass=topsecret +# rootpass=root + +## The corresponding .pub file for the given rootkey will be applied as +## SSH login file for the root user. +## If the pub file is not found, a new key pair will be generated +# rootkey=sshkey + +## Comma separated list of users to be set up. +## User logins will start out with an empty password +## If the live module is in use, users will also be added to the sudo group +# users=adam,steve +users=${mainuser} + +## Wifi configuration, if a Wifi password is given, WPA encryption will be used +## without the password, the system will try to connect to an open wifi +# wifi=MyWiFi +# wifipass=P4ssW0rD + +## Timezone as offered by Debians tzdata selection +timezone=Europe/Berlin + +## Comma separated list of locales, first one will become default locale +locales=de_DE.UTF-8,en_US.UTF-8 + +## Keyboard as used in debconfs keyboard-configuration/variant +## Use debconf-get-selections to find out the exact string +# keyboard=German +keyboard=de + +## If the approxmodule is enabled, then one (and only one) apt-source +## can be choosen to install packages from +## See modules/approx.mk if you need more flexibility +# approx=http://localhost:9000/debian + +CFGROOT = cfg_root/ + +.PHONY: _fstab _sudo +_target: _fstab _sudo + +_sudo: _config cfg_root + chroot cfg_root adduser ${mainuser} sudo + +_fstab: _config cfg_root + mkdir -p cfg_root/mnt/fsroot + printf '%s 0 0\n' \ + 'UUID=${fsuid} / btrfs auto,rw,subvol=trixie' \ + 'UUID=${fsuid} /home btrfs auto,rw,subvol=home' \ + 'UUID=${fsuid} /mnt/fsroot btrfs auto,rw,nofail' \ + 'LABEL=SYSTEM /boot/efi vfat auto,ro,nofail' \ + 'LABEL=SWAP swap swap sw,nofail' \ + >cfg_root/etc/fstab -- 2.47.3