-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLXmain.fish
98 lines (87 loc) · 2.86 KB
/
LXmain.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/fish
function rqe
rpm-ostree -q --peer $argv
end
function listedexec
set -l contents $argv[1]
set -l command_template $argv[2]
for item in (echo "$contents" | string split "\n")
set -l command (string replace '$crntval' "$item" "$command_template")
eval "$command"
end
end
# System:
chmod -R 755 /etc/
cp -r LXroot/etc/* /etc/
chmod -R 755 /var/
cp -r LXroot/var/* /var/
systemctl daemon-reload
listedexec "systemd-rfkill
systemd-rfkill.socket
greetd" "systemctl mask \$crntval"
listedexec "tlp
rpm-ostreed-automatic.timer
boinc-client
fyn-zram
fyn-refyne.timer
systemd-bsod" "systemctl enable \$crntval"
plymouth-set-default-theme spinner
rqe kargs --append-if-missing="threadirqs \
rhgb \
sysrq_always_enabled=1 \
consoleblank=0 \
quiet \
loglevel=3 \
preempt=full"
rqe initramfs --disable
# Package management:-
# ROT cfg:
rqe install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm
# FPK cfg:
listedexec "flathub https://flathub.org/repo/flathub.flatpakrepo
flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
webkit-sdk https://software.igalia.com/flatpak-refs/webkit-sdk.flatpakrepo
fedora oci+https://registry.fedoraproject.org
fedora-testing oci+https://registry.fedoraproject.org/#testing
rhel https://flatpaks.redhat.io/rhel.flatpakrepo
eclipse-nightly https://download.eclipse.org/linuxtools/flatpak-I-builds/eclipse.flatpakrepo
elementaryos https://flatpak.elementary.io/repo.flatpakrepo
pureos https://store.puri.sm/repo/stable/pureos.flatpakrepo
kde-runtime-nightly https://cdn.kde.org/flatpak/kde-runtime-nightly/kde-runtime-nightly.flatpakrepo" "flatpak remote-add --if-not-exists --system \$crntval"
listedexec "flathub
flathub-beta
gnome-nightly
webkit-sdk
fedora
fedora-testing
rhel
eclipse-nightly
elementaryos
kde-runtime-nightly" "flatpak remote-modify --system --subset=floss \$crntval"
flatpak update --noninteractive --system
# ROT pkg+:
listedexec "tlp tlp-rdw
cosmic-desktop cosmic-session
kernel-modules-extra
ghostty
rustup rust
distcc
zen-browser torbrowser-launcher
boinc-client virtualbox
protontricks bottles
topgrade gnome-software flatseal flatpak-selinux flatpak-session-helper xdg-desktop-portal flatpak-libs libportal host-spawn
beep" "rqe install --allow-inactive --idempotent \$crntval"
# ROT pkg-:
listedexec "power-profiles-daemon
firefox
xwaylandvideobridge" "rqe uninstall --allow-inactive \$crntval"
# FPK pkg+:
listedexec "flathub com.gopeed.Gopeed
flathub io.github.flattool.Warehouse
flathub com.vscodium.codium-insiders
flathub org.cubocore.CoreStats
flathub org.octave.Octave" "flatpak install --system --noninteractive --or-update \$crntval"
rpm-ostree apply-live --allow-replacement
usermod -aG boinc root
systemctl unmask hybrid-sleep.target shutdown.target reboot.target poweroff.target sleep.target