fix chroot, config and add configs

This commit is contained in:
JOLIMAITRE Matthieu 2024-03-07 20:37:08 +01:00
parent 519194c844
commit 90d7715560
8 changed files with 145 additions and 13 deletions

View file

@ -0,0 +1,4 @@
{
"security.workspace.trust.enabled": false,
"workbench.colorTheme": "Community Material Theme Darker High Contrast"
}

View file

@ -0,0 +1,13 @@
[Seat:*]
[LightDM]
run-directory=/run/lightdm
[Seat:*]
greeter-session=lightdm-slick-greeter
user-session=cinnamon
session-wrapper=/etc/lightdm/Xsession
autologin-user=user
[XDMCPServer]
[VNCServer]

View file

@ -0,0 +1,2 @@
timeout 0
#console-mode keep

View file

@ -4,6 +4,7 @@ alias log='echo [post_install.sh]'
ROOT=/mnt/archinstall
export HOME=/home/user
log "clearing caches"
@ -13,6 +14,8 @@ log "clearing caches"
log "altering linux confs"
cp content/sudoers "$ROOT/etc/sudoers"
cp content/pacman.conf "$ROOT/etc/pacman.conf"
cp content/lightdm.conf "$ROOT/etc/lightdm/lightdm.conf"
cp content/loader.conf "$ROOT/boot/loader/loader.conf"
log "configuring network"
@ -21,7 +24,7 @@ log "configuring network"
echo "
sudo systemctl enable systemd-networkd.service
sudo systemctl enable systemd-resolved.service
" | arch-chroot "$ROOT" su user
" | arch-chroot -u user "$ROOT"
log "installing paru"
@ -30,21 +33,29 @@ log "installing paru"
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
makepkg -si
" | arch-chroot "$ROOT" su user
" | arch-chroot -u user "$ROOT"
cp content/paru.conf "$ROOT/etc/paru.conf"
log "installing extra packages"
echo "
paru -Sy --noconfirm tealdeer nnn-nerd ttf-ms-fonts discord visual-studio-code-bin opam
" | arch-chroot "$ROOT" su user
paru -Sy --noconfirm tealdeer nnn-nerd ttf-ms-fonts discord visual-studio-code-bin opam ttf-firacode-nerd
" | arch-chroot -u user "$ROOT"
log "clearing caches"
rm -fr "$ROOT/home/user/.cache"
rm -fr "$ROOT/var/cache/"
log "configuring extra packages"
echo '
sudo systemctl enable lightdm.service
sudo groupadd autologin
sudo usermod --append --groups=autologin user
opam init --yes
' | arch-chroot "$ROOT" su user
opam install --yes ocaml-lsp-server dune
' | arch-chroot -u user "$ROOT"
log "configuring home"
@ -52,24 +63,22 @@ log "configuring home"
cd
sudo chsh --shell=/bin/zsh user
true | sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
' | arch-chroot "$ROOT" su user
' | arch-chroot -u user "$ROOT"
cp -r content/home/* content/home/.* "$ROOT/home/user/"
echo '
cd
cd /home/user/
sudo chown -R user:user .
' | arch-chroot "$ROOT" su user
' | arch-chroot -u user "$ROOT"
echo '
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
' | arch-chroot -u user "$ROOT" zsh
echo '
for ext in eamodio.gitlens Equinusocio.vsc-community-material-theme Equinusocio.vsc-material-theme equinusocio.vsc-material-theme-icons ms-dotnettools.csharp ms-python.isort ms-python.python ms-python.vscode-pylance ms-vscode.cpptools ocamllabs.ocaml-platform rust-lang.rust-analyzer usernamehw.errorlens VisualStudioExptTeam.intellicode-api-usage-examples VisualStudioExptTeam.vscodeintellicode
do code --install-extension $ext
done
' | arch-chroot "$ROOT" su user
' | arch-chroot -u user "$ROOT"

View file

@ -131,7 +131,13 @@
"virtualbox-guest-utils",
"lightdm-slick-greeter",
"cinnamon",
"gnome-terminal"
"gnome-terminal",
"zsh",
"wget",
"nano",
"less",
"bat",
"noto-fonts"
],
"parallel downloads": 0,
"profile_config": {