aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-01-22 17:51:04 +0100
committerTharre <tharre3@gmail.com>2018-01-22 17:51:16 +0100
commit4a8378a672a327af2467b492ea7b80fec706e036 (patch)
treeb114108556f925a253430ab681c09ce5f8961b0e
parent24cca40e62b6753017920acbd0e63ec678368f36 (diff)
downloadpkgbuilds-4a8378a672a327af2467b492ea7b80fec706e036.tar.gz
pkgbuilds-4a8378a672a327af2467b492ea7b80fec706e036.tar.xz
pkgbuilds-4a8378a672a327af2467b492ea7b80fec706e036.zip
arch-system: initial commit
-rw-r--r--arch-system/PKGBUILD49
-rw-r--r--arch-system/base-system.install10
-rw-r--r--arch-system/etc-locale.conf3
-rw-r--r--arch-system/etc-locale.gen26
-rw-r--r--arch-system/etc-nsswitch.conf18
-rw-r--r--arch-system/etc-pacman.conf100
-rw-r--r--arch-system/etc-vconsole.conf1
-rw-r--r--arch-system/mirrorupgrade.hook10
-rw-r--r--arch-system/sudoers-wheel4
-rw-r--r--arch-system/xps13-i915.conf1
10 files changed, 222 insertions, 0 deletions
diff --git a/arch-system/PKGBUILD b/arch-system/PKGBUILD
new file mode 100644
index 0000000..a07b56d
--- /dev/null
+++ b/arch-system/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Tharre <tharre3@gmail.com>
+
+pkgbase=arch-system
+pkgname=('base-system' 'xps13')
+pkgver=1
+pkgrel=1
+pkgdesc="Arch Linux system configuration"
+arch=("any")
+url=""
+license=('custom')
+source=('base-system.install' 'etc-pacman.conf' 'etc-locale.conf'
+ 'etc-locale.gen' 'etc-vconsole.conf' 'mirrorupgrade.hook'
+ 'sudoers-wheel' 'etc-nsswitch.conf'
+
+ 'xps13-i915.conf')
+sha256sums=('bb00c42f2802c12536c46700b948d41a43153d97a6986827b7c61203880e1ad1'
+ 'b3b540ac0dd68831d813e34dd8465cd00e8ba6a56fa6e5a162dc5ef469ec584c'
+ '70b74b741f3b1b58eeb97d8d5b9e6148a35ff8dced47cf4a231c1d0420aff5eb'
+ '61359bca48f246bc90d90204ad894bfc22665d789b130fc838e9926dc47ab3a3'
+ '978271534da06356159eb24c0cee32b0024029d41df836ab76a964dfd7d36447'
+ '79ba5fdf0c69686ea0f2770c9b49b58ca26ebcce15e346d5bd56a442e684896e'
+ '62c1a085f7a9d1c5d57b40516fea5d7e8dfb3593d5c0a713cd571c8e5bae2584'
+ '9c1648e1e9219efbe1e4098952f7595f1ebb0eca629d2c8957079186c56d1822'
+ '4e30b6dc062849a8217f419ca4752f062a8dafbbfb1f6f24ba894eb8dc78c736')
+
+package_base-system() {
+ depends=('gvim' 'zsh' 'tmux' 'htop' 'git' 'reflector' 'sudo' 'avahi'
+ 'nss-mdns' 'ttf-dejavu' 'chromium' 'ttf-liberation')
+
+ install -Dm0644 etc-pacman.conf "$pkgdir"/etc/pacman.conf
+ install -Dm0644 etc-locale.conf "$pkgdir"/etc/locale.conf
+ install -Dm0644 etc-locale.gen "$pkgdir"/etc/locale.gen
+ install -Dm0644 etc-vconsole.conf "$pkgdir"/etc/vconsole.conf
+ install -Dm0644 mirrorupgrade.hook -t "$pkgdir"/etc/pacman.d/hooks
+ install -dm0750 "$pkgdir"/etc/sudoers.d/
+ install -Dm0644 sudoers-wheel "$pkgdir"/etc/sudoers.d/wheel
+ install -Dm0644 etc-nsswitch.conf "$pkgdir"/etc/nsswitch.conf
+
+ ln -s /usr/share/zoneinfo/Europe/Berlin "$pkgdir"/etc/localtime
+}
+
+package_xps13() {
+ depends=('mesa' 'lib32-mesa' 'vulkan-intel' 'libva-intel-driver'
+ 'lib32-libva-intel-driver' 'libvdpau-va-gl')
+
+ install -Dm0644 xps13-i915.conf "$pkgdir"/etc/modprobe.d/i915.conf
+}
+
+# TODO: docker, vagrant, devtools
diff --git a/arch-system/base-system.install b/arch-system/base-system.install
new file mode 100644
index 0000000..b428aac
--- /dev/null
+++ b/arch-system/base-system.install
@@ -0,0 +1,10 @@
+post_install() {
+ # in case it wasn't already run by glibc
+ locale-gen
+
+ systemctl --global enable avahi-daemon.service
+}
+
+pre_remove() {
+ systemctl --global disable avahi-daemon.service
+}
diff --git a/arch-system/etc-locale.conf b/arch-system/etc-locale.conf
new file mode 100644
index 0000000..cf0936a
--- /dev/null
+++ b/arch-system/etc-locale.conf
@@ -0,0 +1,3 @@
+LANG=en_GB.UTF-8
+LC_TIME=de_DE.UTF-8
+LC_COLLATE="C"
diff --git a/arch-system/etc-locale.gen b/arch-system/etc-locale.gen
new file mode 100644
index 0000000..d352b46
--- /dev/null
+++ b/arch-system/etc-locale.gen
@@ -0,0 +1,26 @@
+# Configuration file for locale-gen
+#
+# lists of locales that are to be generated by the locale-gen command.
+#
+# Each line is of the form:
+#
+# <locale> <charset>
+#
+# where <locale> is one of the locales given in /usr/share/i18n/locales
+# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
+#
+# Examples:
+# en_US ISO-8859-1
+# en_US.UTF-8 UTF-8
+# de_DE ISO-8859-1
+# de_DE@euro ISO-8859-15
+#
+# The locale-gen command will generate all the locales,
+# placing them in /usr/lib/locale.
+#
+# A list of supported locales is included in this file.
+# Uncomment the ones you need.
+#
+en_US.UTF-8 UTF-8
+en_GB.UTF-8 UTF-8
+de_DE.UTF-8 UTF-8
diff --git a/arch-system/etc-nsswitch.conf b/arch-system/etc-nsswitch.conf
new file mode 100644
index 0000000..007d207
--- /dev/null
+++ b/arch-system/etc-nsswitch.conf
@@ -0,0 +1,18 @@
+# Name Service Switch configuration file.
+# See nsswitch.conf(5) for details.
+
+passwd: files mymachines systemd
+group: files mymachines systemd
+shadow: files
+
+publickey: files
+
+hosts: files mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns myhostname
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+netgroup: files
diff --git a/arch-system/etc-pacman.conf b/arch-system/etc-pacman.conf
new file mode 100644
index 0000000..2975abc
--- /dev/null
+++ b/arch-system/etc-pacman.conf
@@ -0,0 +1,100 @@
+#
+# /etc/pacman.conf
+#
+# See the pacman.conf(5) manpage for option and repository directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+# The following paths are commented out with their default values listed.
+# If you wish to use different paths, uncomment and update the paths.
+#RootDir = /
+#DBPath = /var/lib/pacman/
+#CacheDir = /var/cache/pacman/pkg/
+#LogFile = /var/log/pacman.log
+#GPGDir = /etc/pacman.d/gnupg/
+#HookDir = /etc/pacman.d/hooks/
+HoldPkg = pacman glibc
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#CleanMethod = KeepInstalled
+#UseDelta = 0.7
+Architecture = auto
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options
+#UseSyslog
+Color
+TotalDownload
+CheckSpace
+#VerbosePkgLists
+
+# By default, pacman accepts packages signed by keys that its local keyring
+# trusts (see pacman-key and its man page), as well as unsigned packages.
+SigLevel = Required DatabaseOptional
+LocalFileSigLevel = Optional
+#RemoteFileSigLevel = Required
+
+# NOTE: You must run `pacman-key --init` before first using pacman; the local
+# keyring can then be populated with the keys of all official Arch Linux
+# packagers with `pacman-key --populate archlinux`.
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here
+# - local/custom mirrors can be added here or in separate files
+# - repositories listed first will take precedence when packages
+# have identical names, regardless of version number
+# - URLs will have $repo replaced by the name of the current repo
+# - URLs will have $arch replaced by the name of the architecture
+#
+# Repository entries are of the format:
+# [repo-name]
+# Server = ServerName
+# Include = IncludePath
+#
+# The header [repo-name] is crucial - it must be present and
+# uncommented to enable the repo.
+#
+
+# The testing repositories are disabled by default. To enable, uncomment the
+# repo name header and Include lines. You can add preferred servers immediately
+# after the header, and they will be used before the default mirrors.
+
+#[testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[core]
+Include = /etc/pacman.d/mirrorlist
+
+[extra]
+Include = /etc/pacman.d/mirrorlist
+
+#[community-testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[community]
+Include = /etc/pacman.d/mirrorlist
+
+# If you want to run 32 bit applications on your x86_64 system,
+# enable the multilib repositories as required here.
+
+#[multilib-testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[multilib]
+Include = /etc/pacman.d/mirrorlist
+
+# An example of a custom package repository. See the pacman manpage for
+# tips on creating your own repositories.
+#[custom]
+#SigLevel = Optional TrustAll
+#Server = file:///home/custompkgs
diff --git a/arch-system/etc-vconsole.conf b/arch-system/etc-vconsole.conf
new file mode 100644
index 0000000..c1e444e
--- /dev/null
+++ b/arch-system/etc-vconsole.conf
@@ -0,0 +1 @@
+KEYMAP=de-latin1
diff --git a/arch-system/mirrorupgrade.hook b/arch-system/mirrorupgrade.hook
new file mode 100644
index 0000000..7adfe8d
--- /dev/null
+++ b/arch-system/mirrorupgrade.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = pacman-mirrorlist
+
+[Action]
+Description = Updating pacman-mirrorlist with reflector and removing pacnew...
+When = PostTransaction
+Depends = reflector
+Exec = /usr/bin/reflector -p https -l 30 -f 10 -a 24 --score 100 --save /etc/pacman.d/mirrorlist
diff --git a/arch-system/sudoers-wheel b/arch-system/sudoers-wheel
new file mode 100644
index 0000000..8912b8c
--- /dev/null
+++ b/arch-system/sudoers-wheel
@@ -0,0 +1,4 @@
+# /etc/sudoers.d/wheel
+
+# Allow members of group wheel to execute any command
+%wheel ALL=(ALL) ALL
diff --git a/arch-system/xps13-i915.conf b/arch-system/xps13-i915.conf
new file mode 100644
index 0000000..d563780
--- /dev/null
+++ b/arch-system/xps13-i915.conf
@@ -0,0 +1 @@
+options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=2