Compare commits

..

2 Commits

Author SHA1 Message Date
9d6551cc1a configs: Update support for AYN Odin 2
Signed-off-by: Xilin Wu <strongtz@yeah.net>
2024-06-03 14:50:56 +08:00
ec92762418 configs: shell: add zsh and oh-my-zsh
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
2024-06-03 14:25:07 +08:00
6 changed files with 27 additions and 43 deletions

View File

@ -5,7 +5,6 @@ sysconf:
- name: alarm - name: alarm
password: alarm password: alarm
groups: wheel groups: wheel
shell: /bin/zsh
- name: root - name: root
uid: 0 uid: 0
password: root password: root

View File

@ -33,7 +33,6 @@ pacman:
- yay - yay
- btop - btop
- chromium - chromium
- oh-my-zsh-git
- box64-sd8g2-git - box64-sd8g2-git
- ayn-odin2-meta - ayn-odin2-meta
- base-devel - base-devel
@ -126,18 +125,6 @@ filesystem:
</logicalmonitor> </logicalmonitor>
</configuration> </configuration>
</monitors> </monitors>
- 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
sysconf: sysconf:
chassis: handset chassis: handset

View File

@ -21,20 +21,7 @@ locale:
filesystem: filesystem:
files: files:
# Windows NTP Server
# Wireless regulatory
# - path: /etc/conf.d/wireless-regdom
# content: |
# WIRELESS_REGDOM="CN"
# China accelerated DNS
# - path: /etc/systemd/resolved.conf.d/cn-dns.conf
# content: |
# [Resolve]
# DNS=114.114.114.114 119.29.29.29
# FallbackDNS=114.114.114.114 119.29.29.29
# China accelerated NTP Server
- path: /etc/systemd/timesyncd.conf.d/windows-ntp.conf - path: /etc/systemd/timesyncd.conf.d/windows-ntp.conf
content: | content: |
[Time] [Time]
@ -59,9 +46,5 @@ sysconf:
GTK_IM_MODULE: ibus GTK_IM_MODULE: ibus
QT_IM_MODULE: ibus QT_IM_MODULE: ibus
XMODIFIERS: '@im=ibus' XMODIFIERS: '@im=ibus'
# COUNTRY: CN TZ: Asia/Shanghai
# LANG: zh_CN.UTF-8
# LANGUAGE: zh_CN.UTF-8
# LC_ALL: zh_CN.UTF-8
# TZ: Asia/Shanghai
timezone: Asia/Shanghai timezone: Asia/Shanghai

View File

@ -1,9 +0,0 @@
pacman:
repo:
- name: renegade-project
priority: 200
server: https://mollytek.blob.core.windows.net/maoli/mirror/arch/$$arch
trust:
- renegade-project@classfun.cn
install:
- renegade-project/renegade-project-keyring

24
configs/shell/zsh.yaml Normal file
View 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

View File

@ -13,7 +13,7 @@ image:
sector: 512 sector: 512
partitions: partitions:
- type: filesystem - type: filesystem
ptype: microsoft-basic-data ptype: efi
pname: esp pname: esp
size: 512MiB size: 512MiB
fsname: ESP fsname: ESP