root: fixup config
This commit is contained in:
parent
c4cf066a18
commit
4ca932b759
|
@ -0,0 +1 @@
|
||||||
|
hardware.yaml
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
BTRFS_ROOT="{{@@ filesystem.partitions['/'] @@}}"
|
|
||||||
|
|
||||||
if ! mountpoint "$BTRFS_ROOT"
|
|
||||||
then
|
|
||||||
mkdir -p "$BTRFS_ROOT"
|
|
||||||
mount "$BTRFS_ROOT"
|
|
||||||
fi
|
|
||||||
cd "$BTRFS_ROOT"
|
|
||||||
|
|
||||||
|
|
||||||
{%@@ set new_partitions = filesystem.partitions.update({root_subvol: '/'}) @@%}
|
|
||||||
{%@@ for name, path in filesystem.partitions.items() @@%}
|
|
||||||
test -e "./{{@@ name @@}}" ||
|
|
||||||
btrfs subvolume create "./{{@@ name @@}}"
|
|
||||||
test -d "{{@@ path @@}}" ||
|
|
||||||
mkdir -p "{{@@ path @@}}"
|
|
||||||
mountpoint "{{@@ path @@}}" ||
|
|
||||||
mount "{{@@ path @@}}"
|
|
||||||
{%@@ endfor @@%}
|
|
125
root/config.yaml
125
root/config.yaml
|
@ -21,31 +21,8 @@ config:
|
||||||
- "../funcs.py"
|
- "../funcs.py"
|
||||||
# import_configs:
|
# import_configs:
|
||||||
# - "../config.yaml"
|
# - "../config.yaml"
|
||||||
|
import_variables:
|
||||||
|
- "hardware.yaml"
|
||||||
# ###############################################################
|
|
||||||
# variables:
|
|
||||||
# ###############################################################
|
|
||||||
|
|
||||||
# plymouth: true
|
|
||||||
# zram: false
|
|
||||||
# filesystem:
|
|
||||||
# partitions:
|
|
||||||
# "/": /mnt/btrfs-root
|
|
||||||
# "/@home": /home
|
|
||||||
# "/@sql": /var/lib/mysql
|
|
||||||
# "/@swap": /swap
|
|
||||||
|
|
||||||
###############################################################
|
|
||||||
dynvariables:
|
|
||||||
###############################################################
|
|
||||||
|
|
||||||
# phisical_uuid: sudo blkid /dev/sda2 -s UUID -o value
|
|
||||||
# decrypted_uuid: sudo blkid /dev/mapper/main -s UUID -o value
|
|
||||||
# boot_uuid: sudo blkid /dev/sda1 -s UUID -o value
|
|
||||||
# root_subvol: echo "/@$(lsb_release -i | cut -f 2)-root"
|
|
||||||
nproc: nproc
|
|
||||||
# memory_size: env LC_ALL=C free -b | awk '/^Mem:/ {print $2}'
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
actions:
|
actions:
|
||||||
|
@ -61,43 +38,38 @@ actions:
|
||||||
sv restart "{{@@ '_dotfile_key' @@}}" ||
|
sv restart "{{@@ '_dotfile_key' @@}}" ||
|
||||||
rc-service "{{@@ '_dotfile_key' @@}}" restart
|
rc-service "{{@@ '_dotfile_key' @@}}" restart
|
||||||
|
|
||||||
create_subvolumes: _create-subvolumes
|
|
||||||
create_swapfile: _create-swapfile
|
create_swapfile: _create-swapfile
|
||||||
mount_partitions: mount -a
|
mount_partitions: mount -a
|
||||||
dbus_uuidgen: dbus-uuidgen --ensure
|
dbus_uuidgen: dbus-uuidgen --ensure
|
||||||
sysctl_apply: sysctl -a
|
sysctl_apply: sysctl -a
|
||||||
mkinitcpio: mkinitcpio -P
|
# mkinitcpio: mkinitcpio -P
|
||||||
start_services: >
|
# start_services: >
|
||||||
_runit_config "{{@@ _dotfile_abs_dst @@}}"
|
# _runit_config "{{@@ _dotfile_abs_dst @@}}"
|
||||||
apache
|
# apache
|
||||||
cronie
|
# cronie
|
||||||
dbus
|
# dbus
|
||||||
dhcpcd
|
# dhcpcd
|
||||||
docker
|
# docker
|
||||||
earlyoom
|
# earlyoom
|
||||||
elogind
|
# elogind
|
||||||
greetd
|
# greetd
|
||||||
iwd
|
# iwd
|
||||||
bluetoothd
|
# bluetoothd
|
||||||
mariadb
|
# mariadb
|
||||||
preload
|
# preload
|
||||||
syslog-ng
|
# syslog-ng
|
||||||
tlp
|
# tlp
|
||||||
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
dotfiles:
|
dotfiles:
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
runit_sv:
|
# greetd:
|
||||||
src: runit_sv
|
# src: greetd
|
||||||
dst: /etc/runit/sv
|
# dst: /etc/greetd
|
||||||
|
# actions:
|
||||||
greetd:
|
# - greetd_install
|
||||||
src: greetd
|
|
||||||
dst: /etc/greetd
|
|
||||||
actions:
|
|
||||||
- greetd_install
|
|
||||||
|
|
||||||
elogind:
|
elogind:
|
||||||
src: elogind.conf
|
src: elogind.conf
|
||||||
|
@ -105,11 +77,11 @@ dotfiles:
|
||||||
actions:
|
actions:
|
||||||
- dbus_uuidgen
|
- dbus_uuidgen
|
||||||
|
|
||||||
# grub:
|
grub:
|
||||||
# src: grub
|
src: grub
|
||||||
# dst: /etc/default/grub
|
dst: /etc/default/grub
|
||||||
# actions:
|
actions:
|
||||||
# - grub_install
|
- grub_install
|
||||||
|
|
||||||
# mkinitcpio:
|
# mkinitcpio:
|
||||||
# src: mkinitcpio.conf
|
# src: mkinitcpio.conf
|
||||||
|
@ -117,11 +89,11 @@ dotfiles:
|
||||||
# actions:
|
# actions:
|
||||||
# - mkinitcpio
|
# - mkinitcpio
|
||||||
|
|
||||||
pacman:
|
# pacman:
|
||||||
src: pacman.conf
|
# src: pacman.conf
|
||||||
dst: /etc/pacman.conf
|
# dst: /etc/pacman.conf
|
||||||
actions:
|
# actions:
|
||||||
- pacman_install
|
# - pacman_install
|
||||||
|
|
||||||
bluez:
|
bluez:
|
||||||
src: bluetooth.conf
|
src: bluetooth.conf
|
||||||
|
@ -133,13 +105,12 @@ dotfiles:
|
||||||
actions:
|
actions:
|
||||||
- locale_install
|
- locale_install
|
||||||
|
|
||||||
# fstab:
|
fstab:
|
||||||
# src: fstab
|
src: fstab
|
||||||
# dst: /etc/fstab
|
dst: /etc/fstab
|
||||||
# actions:
|
actions:
|
||||||
# - create_subvolumes
|
- create_swapfile
|
||||||
# - create_swapfile
|
- mount_partitions
|
||||||
# - mount_partitions
|
|
||||||
|
|
||||||
sysctl:
|
sysctl:
|
||||||
src: sysctl
|
src: sysctl
|
||||||
|
@ -147,19 +118,19 @@ dotfiles:
|
||||||
actions:
|
actions:
|
||||||
- sysctl_apply
|
- sysctl_apply
|
||||||
|
|
||||||
# zram:
|
zram:
|
||||||
# src: zram
|
src: zram
|
||||||
# dst: /etc/
|
dst: /etc/
|
||||||
|
|
||||||
# earlyoom:
|
# earlyoom:
|
||||||
# src: earlyoom
|
# src: earlyoom
|
||||||
# dst: /etc/default/earlyoom
|
# dst: /etc/default/earlyoom
|
||||||
|
|
||||||
services:
|
# services:
|
||||||
src: runit_sv
|
# src: runit_sv
|
||||||
dst: /etc/runit/sv
|
# dst: /etc/runit/sv
|
||||||
actions:
|
# actions:
|
||||||
- start_services
|
# - start_services
|
||||||
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
21
root/fstab
21
root/fstab
|
@ -1,17 +1,26 @@
|
||||||
{{@@ non_templated(_dotfile_abs_dst) @@}}
|
{{@@ non_templated(_dotfile_abs_dst) @@}}
|
||||||
##### Dotdrop-start #####
|
##### Dotdrop-start #####
|
||||||
|
|
||||||
{#@@<filesystem> <dir> <type> <options> <dump> <pass> @@#}
|
# <filesystem> <dir> <type> <options> <dump> <pass>
|
||||||
|
|
||||||
{%@@ set btrfs_opt_t = "rw,noatime,compress=zstd:3,subvol={}" @@%}
|
{%@@ set btrfs_opt_t = "rw,noatime,compress=zstd:3,subvol={}" @@%}
|
||||||
{%@@ set entry_t = "UUID={uuid} {path} {fs} {opts} {dump} {pass}" @@%}
|
{%@@ set entry_t = "UUID={uuid} {path} {fs} {opts} {dump} {pass}" @@%}
|
||||||
|
|
||||||
UUID={{@@ boot_uuid @@}} /boot vfat rw,errors=remount-ro 0 2
|
{%@@ for partition in filesystem.partition @@%}
|
||||||
|
|
||||||
{%@@ set new_partitions = filesystem.partitions.update({root_subvol: '/'}) @@%}
|
|
||||||
{%@@ for name, path in filesystem.partitions.items() @@%}
|
|
||||||
{{@@ entry_t.format(
|
{{@@ entry_t.format(
|
||||||
uuid= decrypted_uuid ,
|
uuid= partition.uuid ,
|
||||||
|
path= partition.path ,
|
||||||
|
fs= partition.type,
|
||||||
|
opts= partition.options,
|
||||||
|
dump= "0",
|
||||||
|
pass= "0",
|
||||||
|
) @@}}
|
||||||
|
{%@@ endfor @@%}
|
||||||
|
|
||||||
|
{%@@ set new_partitions = filesystem.btrfs_subvolumes.update({root_subvol: '/'}) @@%}
|
||||||
|
{%@@ for name, path in filesystem.btrfs_subvolumes.items() @@%}
|
||||||
|
{{@@ entry_t.format(
|
||||||
|
uuid= root_uuid ,
|
||||||
path= path ,
|
path= path ,
|
||||||
fs= "btrfs",
|
fs= "btrfs",
|
||||||
opts= btrfs_opt_t.format(name),
|
opts= btrfs_opt_t.format(name),
|
||||||
|
|
11
root/grub
11
root/grub
|
@ -10,8 +10,15 @@ GRUB_RECORDFAIL_TIMEOUT=$GRUB_HIDDEN_TIMEOUT
|
||||||
GRUB_DISTRIBUTOR="Artix"
|
GRUB_DISTRIBUTOR="Artix"
|
||||||
|
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT=""
|
GRUB_CMDLINE_LINUX_DEFAULT=""
|
||||||
GRUB_CMDLINE_LINUX=" cryptdevice=/dev/disk/by-uuid/{{@@ phisical_uuid @@}}:main "
|
GRUB_CMDLINE_LINUX=" \
|
||||||
GRUB_CMDLINE_LINUX+=" root=/dev/mapper/main rootflags=rw,noatime,compress=zstd,subvol=/{{@@ root_subvol @@}} "
|
{%@@ if phisical_uuid @@%}
|
||||||
|
rd.luks.uuid={{@@ phisical_uuid @@}} \
|
||||||
|
root=UUID={{@@ root_uuid @@}} \
|
||||||
|
{%@@ endif @@%}
|
||||||
|
{%@@ if root_subvol @@%}
|
||||||
|
rootflags=rw,noatime,compress=zstd,subvol=/{{@@ root_subvol @@}} \
|
||||||
|
{%@@ endif @@%}
|
||||||
|
"
|
||||||
|
|
||||||
{%@@ if plymouth @@%}
|
{%@@ if plymouth @@%}
|
||||||
GRUB_CMDLINE_LINUX+=" fbcon=nodefer splash quiet loglevel=3 vt.global_cursor_default=0 rd.udev.log_level=3 "
|
GRUB_CMDLINE_LINUX+=" fbcon=nodefer splash quiet loglevel=3 vt.global_cursor_default=0 rd.udev.log_level=3 "
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
variables:
|
||||||
|
plymouth: false
|
||||||
|
zram: false
|
||||||
|
|
||||||
|
# set to false if root_uuid == phisical_uuid
|
||||||
|
phisical_uuid: ####RUN#### sudo blkid /dev/sda2 -s UUID -o value
|
||||||
|
root_uuid: ####RUN#### sudo blkid /dev/mapper/main -s UUID -o value
|
||||||
|
boot_uuid: ####RUN#### sudo blkid /dev/sda1 -s UUID -o value
|
||||||
|
# set to false if not using btrfs
|
||||||
|
root_subvol: ####RUN#### echo "/@$(lsb_release -i | cut -f 2)-root"
|
||||||
|
nproc: ####RUN#### nproc
|
||||||
|
memory_size: ####RUN#### env LC_ALL=C free -b | awk '/^Mem:/ {print $2}'
|
||||||
|
|
||||||
|
filesystem:
|
||||||
|
partition:
|
||||||
|
- type: vfat
|
||||||
|
uuid: ####RUN#### sudo blkid /dev/sda1 -s UUID -o value
|
||||||
|
path: /boot
|
||||||
|
options: rw
|
||||||
|
btrfs_subvolumes:
|
||||||
|
"/": /mnt/btrfs-root
|
||||||
|
"/@home": /home
|
||||||
|
"/@mysql": /var/lib/mysql
|
||||||
|
"/@swap": /swap
|
|
@ -1 +0,0 @@
|
||||||
/etc/default/earlyoom
|
|
|
@ -0,0 +1 @@
|
||||||
|
kernel.task_delayacct=1
|
34
void.freeze
34
void.freeze
|
@ -2,7 +2,7 @@ ImageMagick-7.1.0.19_1
|
||||||
MangoHud-0.6.5_1
|
MangoHud-0.6.5_1
|
||||||
Thunar-4.16.10_1
|
Thunar-4.16.10_1
|
||||||
Waybar-0.9.9_1
|
Waybar-0.9.9_1
|
||||||
alacritty-0.9.0_2
|
alacritty-0.10.0_1
|
||||||
apache-2.4.52_1
|
apache-2.4.52_1
|
||||||
atool-0.39.0_6
|
atool-0.39.0_6
|
||||||
bamf-devel-0.5.5_1
|
bamf-devel-0.5.5_1
|
||||||
|
@ -17,7 +17,7 @@ breeze-cursors-1.0_3
|
||||||
breeze-obsidian-cursor-theme-1.0_3
|
breeze-obsidian-cursor-theme-1.0_3
|
||||||
caffeine-ng-3.5.1_2
|
caffeine-ng-3.5.1_2
|
||||||
cargo-edit-0.8.0_1
|
cargo-edit-0.8.0_1
|
||||||
chromium-97.0.4692.99_1
|
chromium-98.0.4758.80_1
|
||||||
clyrics-0.13_1
|
clyrics-0.13_1
|
||||||
cmake-3.22.1_1
|
cmake-3.22.1_1
|
||||||
cmatrix-2.0_1
|
cmatrix-2.0_1
|
||||||
|
@ -28,8 +28,8 @@ curl-7.81.0_2
|
||||||
dconf-0.40.0_1
|
dconf-0.40.0_1
|
||||||
diffr-0.1.4_1
|
diffr-0.1.4_1
|
||||||
direnv-2.30.3_1
|
direnv-2.30.3_1
|
||||||
docker-20.10.10_1
|
docker-20.10.12_1
|
||||||
docker-compose-1.29.2_2
|
docker-compose-2.2.3_1
|
||||||
dust-0.7.5_1
|
dust-0.7.5_1
|
||||||
efibootmgr-17_6
|
efibootmgr-17_6
|
||||||
elogind-246.9.2_3
|
elogind-246.9.2_3
|
||||||
|
@ -39,7 +39,7 @@ entr-5.1_1
|
||||||
exa-0.10.1_1
|
exa-0.10.1_1
|
||||||
fail2ban-0.11.2_3
|
fail2ban-0.11.2_3
|
||||||
fd-8.3.2_1
|
fd-8.3.2_1
|
||||||
firefox-96.0.2_1
|
firefox-97.0_1
|
||||||
fish-shell-3.3.1_1
|
fish-shell-3.3.1_1
|
||||||
flatpak-1.12.4_1
|
flatpak-1.12.4_1
|
||||||
font-hack-ttf-3.003_2
|
font-hack-ttf-3.003_2
|
||||||
|
@ -50,7 +50,7 @@ gcc-10.2.1pre1_3
|
||||||
gdb-11.1_2
|
gdb-11.1_2
|
||||||
gettext-0.21_4
|
gettext-0.21_4
|
||||||
gimp-2.10.30_1
|
gimp-2.10.30_1
|
||||||
git-2.35.0_1
|
git-2.35.1_1
|
||||||
glib-devel-2.70.2_1
|
glib-devel-2.70.2_1
|
||||||
grim-1.3.2_1
|
grim-1.3.2_1
|
||||||
grub-2.06_2
|
grub-2.06_2
|
||||||
|
@ -74,7 +74,7 @@ iwd-1.23_1
|
||||||
j4-dmenu-desktop-2.18_3
|
j4-dmenu-desktop-2.18_3
|
||||||
jnettop-0.13.0_2
|
jnettop-0.13.0_2
|
||||||
jq-1.6_1
|
jq-1.6_1
|
||||||
kak-lsp-11.1.0_1
|
kak-lsp-12.0.1_1
|
||||||
kakoune-2021.11.08_1
|
kakoune-2021.11.08_1
|
||||||
kanshi-1.2.0_1
|
kanshi-1.2.0_1
|
||||||
kdeconnect-21.12.2_1
|
kdeconnect-21.12.2_1
|
||||||
|
@ -100,13 +100,13 @@ mako-1.6_2
|
||||||
man-db-2.9.4_1
|
man-db-2.9.4_1
|
||||||
mariadb-10.5.10_2
|
mariadb-10.5.10_2
|
||||||
mariadb-client-10.5.10_2
|
mariadb-client-10.5.10_2
|
||||||
mesa-21.3.3_2
|
mesa-21.3.5_1
|
||||||
mesa-32bit-21.3.3_2
|
mesa-32bit-21.3.5_1
|
||||||
mesa-dri-21.3.3_2
|
mesa-dri-21.3.5_1
|
||||||
mesa-dri-32bit-21.3.3_2
|
mesa-dri-32bit-21.3.5_1
|
||||||
mesa-intel-dri-32bit-21.3.3_2
|
mesa-intel-dri-32bit-21.3.5_1
|
||||||
mesa-vulkan-intel-21.3.3_2
|
mesa-vulkan-intel-21.3.5_1
|
||||||
mesa-vulkan-intel-32bit-21.3.3_2
|
mesa-vulkan-intel-32bit-21.3.5_1
|
||||||
meson-0.60.3_1
|
meson-0.60.3_1
|
||||||
micro-2.0.10_1
|
micro-2.0.10_1
|
||||||
miniupnpc-2.2.2_1
|
miniupnpc-2.2.2_1
|
||||||
|
@ -116,7 +116,7 @@ mpd-0.23.5_2
|
||||||
mpv-0.34.1_1
|
mpv-0.34.1_1
|
||||||
msmtp-1.8.18_1
|
msmtp-1.8.18_1
|
||||||
mtr-0.95_1
|
mtr-0.95_1
|
||||||
nano-6.0_1
|
nano-6.1_1
|
||||||
ncmpcpp-0.9.2_4
|
ncmpcpp-0.9.2_4
|
||||||
neofetch-7.1.0_2
|
neofetch-7.1.0_2
|
||||||
neomutt-20211029_1
|
neomutt-20211029_1
|
||||||
|
@ -124,7 +124,6 @@ neovim-0.6.1_1
|
||||||
nerd-fonts-2.1.0_3
|
nerd-fonts-2.1.0_3
|
||||||
net-tools-1.60.20181103git_1
|
net-tools-1.60.20181103git_1
|
||||||
netcat-0.7.1_7
|
netcat-0.7.1_7
|
||||||
nix-2.3.12_1
|
|
||||||
nmap-7.80_6
|
nmap-7.80_6
|
||||||
nodejs-16.13.2_2
|
nodejs-16.13.2_2
|
||||||
notify-send.sh-1.2_1
|
notify-send.sh-1.2_1
|
||||||
|
@ -158,7 +157,7 @@ pulsemixer-1.5.1_2
|
||||||
pup-0.4.0_12
|
pup-0.4.0_12
|
||||||
python3-ipython-7.31.0_1
|
python3-ipython-7.31.0_1
|
||||||
python3-neovim-0.4.3_2
|
python3-neovim-0.4.3_2
|
||||||
python3-pip-22.0.2_1
|
python3-pip-22.0.3_1
|
||||||
python3-wheel-0.37.0_2
|
python3-wheel-0.37.0_2
|
||||||
qemu-6.1.0_3
|
qemu-6.1.0_3
|
||||||
qt5-5.15.3+20211001_2
|
qt5-5.15.3+20211001_2
|
||||||
|
@ -182,6 +181,7 @@ socklog-2.1.0_5
|
||||||
socklog-void-20200115_2
|
socklog-void-20200115_2
|
||||||
source-sans-pro-3.028_1
|
source-sans-pro-3.028_1
|
||||||
speedtest-cli-2.1.3_2
|
speedtest-cli-2.1.3_2
|
||||||
|
sqlite-devel-3.37.2_1
|
||||||
starship-1.2.1_1
|
starship-1.2.1_1
|
||||||
swappy-1.3.1_1
|
swappy-1.3.1_1
|
||||||
sway-1.6.1_1
|
sway-1.6.1_1
|
||||||
|
|
Reference in New Issue