[test-debian-gnome] Add initial Debian config

This commit is contained in:
Dennis ten Hoove 2024-08-25 20:31:29 +02:00
parent ea84b34418
commit 965e1c874c
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1
13 changed files with 108 additions and 0 deletions

View file

@ -0,0 +1 @@
deb http://deb.debian.org/debian sid main contrib non-free-firmware

View file

@ -0,0 +1,27 @@
# Default values for useradd(8)
#
# The SHELL variable specifies the default login shell on your
# system.
SHELL=/bin/zsh
# The default group for users
GROUP=users
# The default home directory.
HOME=/home
# The number of days after a password expires until the account is permanently
# disabled
INACTIVE=-1
# The default expire date
EXPIRE=
# The SKEL variable specifies the directory containing "skeletal" user files;
# in other words, files such as a sample .profile that will be copied to the
# new user's home directory when it is created.
SKEL=/etc/skel
# Defines whether the mail spool should be created while
# creating the account
CREATE_MAIL_SPOOL=no

View file

@ -0,0 +1,2 @@
# Utilized to prioritize wrapper applications in PATH
PATH="/usr/abin:$PATH"

View file

@ -0,0 +1 @@
Defaults secure_path="/usr/abin:/usr/local/sbin:/usr/local/bin:/usr/bin"

View file

@ -0,0 +1 @@
%wheel ALL=(ALL:ALL) ALL

View file

@ -0,0 +1 @@
vm.max_map_count=1048576

View file

@ -0,0 +1,57 @@
#!/usr/bin/env bash
if [[ ! $1 ]]; then
cat <<-END
Usage: ${0##*/} enable|disable|status
Enable or disable read-only on currently booted Btrfs subvolume.
END
exit 0
fi
if [[ $EUID -ne 0 ]]; then
printf 'You have to be root to perform this action.\n'
exit 1
fi
if [[ $2 ]]; then
printf 'This script only takes a single argument.\n'
exit 1
fi
if [[ $1 == 'enable' ]]; then
if btrfs property get / 2> /dev/null | grep -q 'ro=true'; then
printf 'The root filesystem is already locked.\n'
exit 0
fi
printf 'Locking the root filesystem...\n'
btrfs property set / ro true
elif [[ $1 == 'disable' ]]; then
if btrfs property get / 2> /dev/null | grep -q 'ro=false'; then
printf 'The root filesystem is already unlocked.\n'
exit 0
fi
printf 'Unlocking the root filesystem...\n'
btrfs property set / ro false &&
printf 'The root filesystem has now been unlocked, note that any changes made to it will not be carried over to future OS image updates.\n'
elif [[ $1 == 'status' ]]; then
if btrfs property get / 2> /dev/null | grep -q 'ro=true'; then
printf 'enabled\n'
elif btrfs property get / 2> /dev/null | grep -q 'ro=false'; then
printf 'disabled\n'
else
printf 'unknown\n'
exit 1
fi
else
printf 'No valid argument provided.\n'
exit 1
fi

View file

@ -0,0 +1 @@
/usr/bin/nvim

View file

@ -0,0 +1 @@
/usr/bin/nvim

View file

@ -0,0 +1,13 @@
dracut
flatpak
gdm3
gnome-backgrounds
gnome-console
gnome-control-center
gnome-menus
gnome-shell
gnome-software
gnome-software-plugin-flatpak
gnome-system-monitor
linux-image-amd64
nautilus

View file

@ -0,0 +1 @@
http://deb.debian.org/debian

View file

@ -0,0 +1 @@
sid

View file

@ -0,0 +1 @@
debian