nixos-configs/scripts/postinstall.sh

50 lines
2.5 KiB
Bash
Raw Normal View History

2023-02-15 18:12:27 -05:00
#!/bin/sh
SSID="$1"
2023-02-16 23:01:31 -05:00
systemctl enable --now iwd systemd-networkd systemd-resolved systemd-timesyncd
2023-02-15 18:12:27 -05:00
echo "check if powered on"
iwctl device list
sleep 5
iwctl station wlan0 scan
iwctl station wlan0 get-networks
iwctl station wlan0 connect "$SSID"
cat << EOF >> /etc/iwd/main.conf
[General]
EnableNetworkConfiguration=true
EOF
2023-02-15 23:05:22 -05:00
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
2023-02-21 12:55:56 -05:00
sed -i 's/#DNS=.*/DNS=100.64.0.1/' /etc/systemd/resolved.conf
2023-02-21 12:56:42 -05:00
sed -i 's/#FallbackDNS=.*/FallbackDNS=1.1.1.1/' /etc/systemd/resolved.conf
2023-02-15 23:05:22 -05:00
2023-02-21 12:58:50 -05:00
# TODO : Add school wifi settings and https://man.archlinux.org/man/reflector.1#EXAMPLES (update README)
2023-02-21 12:57:29 -05:00
2023-02-15 18:12:27 -05:00
useradd -m matt -G wheel
passwd matt
pacman -Syu
2023-02-15 23:05:22 -05:00
pacman -Sy htop pkgfile plocate rsync tailscale tmux usbutils wget git curl devtools xorg xf86-video-amdgpu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau bash-completion fzf
2023-02-15 18:12:27 -05:00
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
2023-02-15 23:05:22 -05:00
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
2023-02-16 23:01:31 -05:00
yay -Sy networkmanager-iwd
2023-02-16 23:02:31 -05:00
sudo systemctl enable NetworkManager
2023-02-15 18:12:27 -05:00
su matt
yay -Sy alsa-utils alsa-firmware sof-firmware alsa-ucm-conf
amixer sset Master unmute
yay -Sy pipewire-audio pipewire-alsa pipewire-pulse
yay -R pulseaudio-alsa
sudo systemctl stop pulseaudio.service
2023-02-15 23:05:22 -05:00
systemctl --user enable --now pipewire-pulse.service
yay -Sy bluedevil breeze breeze-gtk discover drkonqi kactivitymanagerd kde-cli-tools kde-gtk-config kdecoration kdeplasma-addons kgamma5 khotkeys kinfocenter kmenuedit kpipewire kscreen kscreenlocker ksshaskpass ksystemstats kwallet-pam kwayland-integration kwin ayer-shell-qt libkscreen libksysguard milou oxygen-sounds plasma-browser-integration plasma-desktop plasma-disks plasma-integration plasma-nm plasma-pa plasma-sdk plasma-systemmonitor plasma-thunderbolt plasma-vault plasma-workspace plasma-workspace-wallpapers polkit-kde-agent powerdevil sddm-kcm systemsettings xdg-desktop-portal-kde
yay -R sddm
yay -Sy sddm-git plasma-wayland-session akonadi-calendar-tools ark colord-kde dolphin dolphin-plugins ffmpegthumbs filelight grantlee-editor gwenview kalendar kamera kamoso kapptemplate kcalc kcolorchooser kcron kdebugsettings kdeconnect kdegraphics-thumbnailers kdenetwork-filesharing kdenlive kdepim-addons kdesdk-thumbnailers kdf kdialog kfind kget kgpg kmag kompare konsole korganizer krdc krfb kruler ksystemlog kwalletmanager markdownpart okular gparted pim-data-exporter print-manager signon-kwallet-extension spectacle svgpart maliit-keyboard
sudo systemctl enable --now sddm