mirror of
https://github.com/BigfootACA/arch-image-builder.git
synced 2024-11-11 06:37:54 +08:00
Compare commits
2 Commits
81fda024bd
...
9d6551cc1a
Author | SHA1 | Date | |
---|---|---|---|
9d6551cc1a | |||
ec92762418 |
@ -1,4 +1,5 @@
|
|||||||
# Default user for ArchLinux ARM
|
# Default user for ArchLinux ARM
|
||||||
|
|
||||||
sysconf:
|
sysconf:
|
||||||
user:
|
user:
|
||||||
- name: alarm
|
- name: alarm
|
||||||
|
@ -15,7 +15,7 @@ pacman:
|
|||||||
- linux-firmware-ayn-odin2
|
- linux-firmware-ayn-odin2
|
||||||
|
|
||||||
# Mainline kernel for AYN Odin2
|
# Mainline kernel for AYN Odin2
|
||||||
- linux-ayn-odin2-edge
|
- linux-ayn-odin2-stable
|
||||||
|
|
||||||
# Adreno 740 GPU
|
# Adreno 740 GPU
|
||||||
- mesa-qcom-git
|
- mesa-qcom-git
|
||||||
@ -28,6 +28,15 @@ pacman:
|
|||||||
|
|
||||||
# AYN Odin2 RGB LED Tuner
|
# AYN Odin2 RGB LED Tuner
|
||||||
- rgb-led
|
- rgb-led
|
||||||
|
|
||||||
|
# picked by sakuramist
|
||||||
|
- yay
|
||||||
|
- btop
|
||||||
|
- chromium
|
||||||
|
- box64-sd8g2-git
|
||||||
|
- ayn-odin2-meta
|
||||||
|
- base-devel
|
||||||
|
|
||||||
systemd:
|
systemd:
|
||||||
disable:
|
disable:
|
||||||
# No modem in this device
|
# No modem in this device
|
||||||
@ -35,35 +44,88 @@ systemd:
|
|||||||
enable:
|
enable:
|
||||||
- bt-update-mac.service
|
- bt-update-mac.service
|
||||||
- net-update-mac@wlp1s0.service
|
- net-update-mac@wlp1s0.service
|
||||||
|
- systemd-timesyncd.service
|
||||||
filesystem:
|
filesystem:
|
||||||
files:
|
files:
|
||||||
# GamePAD workaround
|
|
||||||
- path: /etc/udev/rules.d/99-${device}.rules
|
|
||||||
content: |
|
|
||||||
SUBSYSTEM=="input", ATTRS{name}=="Ayn Odin2 Gamepad", MODE="0666", ENV{ID_INPUT_MOUSE}="0", ENV{ID_INPUT_JOYSTICK}="1"
|
|
||||||
- path: /etc/systemd/logind.conf.d/power-key-lock.conf
|
|
||||||
content: |
|
|
||||||
[Login]
|
|
||||||
HandlePowerKey=lock
|
|
||||||
- path: /etc/systemd/system.conf.d/show-status.conf
|
- path: /etc/systemd/system.conf.d/show-status.conf
|
||||||
content: |
|
content: |
|
||||||
[Manager]
|
[Manager]
|
||||||
ShowStatus=yes
|
ShowStatus=yes
|
||||||
- path: /etc/systemd/sleep.conf.d/no-suspend.conf
|
|
||||||
content: |
|
|
||||||
[Sleep]
|
|
||||||
AllowSuspend=no
|
|
||||||
AllowHibernation=no
|
|
||||||
AllowSuspendThenHibernate=no
|
|
||||||
- path: /etc/systemd/resolved.conf.d/no-mdns.conf
|
- path: /etc/systemd/resolved.conf.d/no-mdns.conf
|
||||||
content: |
|
content: |
|
||||||
[Resolve]
|
[Resolve]
|
||||||
MulticastDNS=no
|
MulticastDNS=no
|
||||||
LLMNR=no
|
LLMNR=no
|
||||||
- path: /etc/NetworkManager/conf.d/80-no-wifi-powersave.conf
|
- path: /etc/dconf/profile/user
|
||||||
content: |
|
content: |
|
||||||
[connection]
|
user-db:user
|
||||||
wifi.powersave = 2
|
system-db:local
|
||||||
|
- path: /etc/dconf/profile/gdm
|
||||||
|
content: |
|
||||||
|
user-db:user
|
||||||
|
system-db:local
|
||||||
|
- path: /etc/dconf/db/local.d/00-hidpi
|
||||||
|
content: |
|
||||||
|
[org/gnome/mutter]
|
||||||
|
experimental-features=['scale-monitor-framebuffer']
|
||||||
|
- path: /etc/dconf/db/locks/hidpi
|
||||||
|
content: |
|
||||||
|
/org/gnome/mutter/experimental-features
|
||||||
|
- path: /etc/chromium-flags.conf
|
||||||
|
content: |
|
||||||
|
--ozone-platform-hint=auto
|
||||||
|
- path: /var/lib/gdm/.config/monitors.xml
|
||||||
|
content: |
|
||||||
|
<monitors version="2">
|
||||||
|
<configuration>
|
||||||
|
<logicalmonitor>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<scale>1.5</scale>
|
||||||
|
<primary>yes</primary>
|
||||||
|
<monitor>
|
||||||
|
<monitorspec>
|
||||||
|
<connector>DSI-1</connector>
|
||||||
|
<vendor>unknown</vendor>
|
||||||
|
<product>unknown</product>
|
||||||
|
<serial>unknown</serial>
|
||||||
|
</monitorspec>
|
||||||
|
<mode>
|
||||||
|
<width>1920</width>
|
||||||
|
<height>1080</height>
|
||||||
|
<rate>60.000</rate>
|
||||||
|
</mode>
|
||||||
|
</monitor>
|
||||||
|
</logicalmonitor>
|
||||||
|
</configuration>
|
||||||
|
</monitors>
|
||||||
|
- path: /etc/skel/.config/monitors.xml
|
||||||
|
stage: pre-user
|
||||||
|
content: |
|
||||||
|
<monitors version="2">
|
||||||
|
<configuration>
|
||||||
|
<logicalmonitor>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<scale>1.5</scale>
|
||||||
|
<primary>yes</primary>
|
||||||
|
<monitor>
|
||||||
|
<monitorspec>
|
||||||
|
<connector>DSI-1</connector>
|
||||||
|
<vendor>unknown</vendor>
|
||||||
|
<product>unknown</product>
|
||||||
|
<serial>unknown</serial>
|
||||||
|
</monitorspec>
|
||||||
|
<mode>
|
||||||
|
<width>1920</width>
|
||||||
|
<height>1080</height>
|
||||||
|
<rate>60.000</rate>
|
||||||
|
</mode>
|
||||||
|
</monitor>
|
||||||
|
</logicalmonitor>
|
||||||
|
</configuration>
|
||||||
|
</monitors>
|
||||||
|
|
||||||
sysconf:
|
sysconf:
|
||||||
chassis: handset
|
chassis: handset
|
||||||
environments:
|
environments:
|
||||||
@ -71,6 +133,7 @@ sysconf:
|
|||||||
__GLX_VENDOR_LIBRARY_NAME: mesa
|
__GLX_VENDOR_LIBRARY_NAME: mesa
|
||||||
MESA_LOADER_DRIVER_OVERRIDE: zink
|
MESA_LOADER_DRIVER_OVERRIDE: zink
|
||||||
GALLIUM_DRIVER: zink
|
GALLIUM_DRIVER: zink
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT: auto
|
||||||
kernel:
|
kernel:
|
||||||
cmdline:
|
cmdline:
|
||||||
- clk_ignore_unused
|
- clk_ignore_unused
|
||||||
@ -129,3 +192,5 @@ mkinitcpio:
|
|||||||
|
|
||||||
# Root without password
|
# Root without password
|
||||||
- common/wheel-nopasswd
|
- common/wheel-nopasswd
|
||||||
|
|
||||||
|
- common/dconf-update
|
||||||
|
50
configs/locale/multi.yaml
Normal file
50
configs/locale/multi.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# I18N for multiple languages
|
||||||
|
locale:
|
||||||
|
enable:
|
||||||
|
- "zh_CN.UTF-8 UTF-8"
|
||||||
|
- "en_US.UTF-8 UTF-8"
|
||||||
|
- "en_GB.UTF-8 UTF-8"
|
||||||
|
- "zh_TW.UTF-8 UTF-8"
|
||||||
|
- "es_ES.UTF-8 UTF-8"
|
||||||
|
- "es_MX.UTF-8 UTF-8"
|
||||||
|
- "hi_IN.UTF-8 UTF-8"
|
||||||
|
- "ar_SA.UTF-8 UTF-8"
|
||||||
|
- "ar_EG.UTF-8 UTF-8"
|
||||||
|
- "fr_FR.UTF-8 UTF-8"
|
||||||
|
- "fr_CA.UTF-8 UTF-8"
|
||||||
|
- "ru_RU.UTF-8 UTF-8"
|
||||||
|
- "pt_PT.UTF-8 UTF-8"
|
||||||
|
- "pt_BR.UTF-8 UTF-8"
|
||||||
|
- "de_DE.UTF-8 UTF-8"
|
||||||
|
- "ja_JP.UTF-8 UTF-8"
|
||||||
|
default: en_US.UTF-8
|
||||||
|
|
||||||
|
filesystem:
|
||||||
|
files:
|
||||||
|
# Windows NTP Server
|
||||||
|
- path: /etc/systemd/timesyncd.conf.d/windows-ntp.conf
|
||||||
|
content: |
|
||||||
|
[Time]
|
||||||
|
NTP=time.windows.com
|
||||||
|
|
||||||
|
pacman:
|
||||||
|
install:
|
||||||
|
- noto-fonts
|
||||||
|
# Fonts for CJK language
|
||||||
|
- noto-fonts-cjk
|
||||||
|
- wqy-bitmapfont
|
||||||
|
- wqy-microhei
|
||||||
|
- wqy-microhei-lite
|
||||||
|
- wqy-zenhei
|
||||||
|
|
||||||
|
# Input method for Chinese
|
||||||
|
- ibus
|
||||||
|
- ibus-libpinyin
|
||||||
|
|
||||||
|
sysconf:
|
||||||
|
environments:
|
||||||
|
GTK_IM_MODULE: ibus
|
||||||
|
QT_IM_MODULE: ibus
|
||||||
|
XMODIFIERS: '@im=ibus'
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
timezone: Asia/Shanghai
|
@ -5,5 +5,6 @@ pacman:
|
|||||||
server: https://repo.archlinuxcn.org/$$arch
|
server: https://repo.archlinuxcn.org/$$arch
|
||||||
trust:
|
trust:
|
||||||
- farseerfc@archlinux.org
|
- farseerfc@archlinux.org
|
||||||
|
- lilac@build.archlinuxcn.org
|
||||||
install:
|
install:
|
||||||
- archlinuxcn/archlinuxcn-keyring
|
- archlinuxcn/archlinuxcn-keyring
|
||||||
|
24
configs/shell/zsh.yaml
Normal file
24
configs/shell/zsh.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
pacman:
|
||||||
|
install:
|
||||||
|
- zsh
|
||||||
|
- oh-my-zsh-git
|
||||||
|
filesystem:
|
||||||
|
files:
|
||||||
|
- path: /etc/skel/.bashrc
|
||||||
|
stage: pre-user
|
||||||
|
content: |
|
||||||
|
if [ -n "$$BASH" ] && [[ "$$-" = *i* ]]; then
|
||||||
|
exec zsh
|
||||||
|
fi
|
||||||
|
- path: /etc/skel/.zshrc
|
||||||
|
stage: pre-user
|
||||||
|
content: |
|
||||||
|
ZSH=/usr/share/oh-my-zsh/
|
||||||
|
ZSH_THEME="ys"
|
||||||
|
plugins=(git)
|
||||||
|
ZSH_CACHE_DIR=$$HOME/.cache/oh-my-zsh
|
||||||
|
if [[ ! -d $$ZSH_CACHE_DIR ]]; then
|
||||||
|
mkdir $$ZSH_CACHE_DIR
|
||||||
|
fi
|
||||||
|
source $$ZSH/oh-my-zsh.sh
|
||||||
|
setopt nonomatch
|
Loading…
Reference in New Issue
Block a user