Browse Source

Laptop things

master
Daniel Flanagan 1 month ago
parent
commit
2211b062c9
Signed by: lytedev GPG Key ID: 5B2020A0F9921EF4
4 changed files with 11 additions and 6 deletions
  1. +2
    -1
      env/arch-linux/provision.d/00-add-user.bash
  2. +3
    -3
      env/arch-linux/provision.d/10-install-yay.bash
  3. +3
    -2
      env/arch-linux/provision.d/20-install-packages.bash
  4. +3
    -0
      env/common/machines/laptop/sway/main

+ 2
- 1
env/arch-linux/provision.d/00-add-user.bash View File

@ -6,7 +6,8 @@ ud="/home/$u"
# user exists - we will assume setup has already run
if getent passwd "$u"; then exit 0; fi
pacman -S --needed sudo
pacman -S --needed sudo openssh
# TODO: enable admin group to sudo
groupadd admin 2>/dev/null
mkdir --parents "$ud/.home" "$ud/dl"
useradd --home-dir "$ud/.home" \


+ 3
- 3
env/arch-linux/provision.d/10-install-yay.bash View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash
REPOSITORY_PATH="/tmp/provisioning"
pacman -S --needed git base-devel
sudo pacman -S --needed git base-devel
mkdir -p "$REPOSITORY_PATH"
rm -rf "$REPOSITORY_PATH/yay"
git clone https://aur.archlinux.org/yay.git
cd yay
git clone https://aur.archlinux.org/yay.git "$REPOSITORY_PATH/yay"
cd "$REPOSITORY_PATH/yay"
makepkg -si
yay -S yay
rm -rf "$REPOSITORY_PATH/yay"

+ 3
- 2
env/arch-linux/provision.d/20-install-packages.bash View File

@ -26,7 +26,7 @@ yay -Sy \
accountsservice `# Mainly for User Avatars with Display Manager` \
gdm `# Display Manager of choice` \
deluge deluge-gtk cairo python-cairo `# GUI Torrent Client` \
elixir nodejs erlang \
elixir nodejs erlang rustup \
php `# PHP Language` \
nginx `# Web Server` \
postgresql pgcli `# RDBMS` \
@ -87,4 +87,5 @@ yay -Sy \
fortune-mod fortune-mod-archlinux `# Fortune` \
diff-so-fancy `# Fancy Diffs` \
oath-toolkit `# One-Time Passwords` \
sysstat `# System Statistics`
sysstat `# System Statistics` \
ripcord `# Discord and Slack Client`

+ 3
- 0
env/common/machines/laptop/sway/main View File

@ -5,3 +5,6 @@ bindswitch lid:toggle exec swaylock
input type:keyboard {
xkb_options ctrl:nocaps
}
input type:touchscreen {
events disabled
}

Loading…
Cancel
Save