Add tweaks for browser and printers

This commit is contained in:
Ariejan de Vroom 2024-06-11 11:22:20 +02:00
parent 426c49a197
commit 6d215d1cd3
Signed by: ariejan
GPG Key ID: AD739154F713697B
8 changed files with 33 additions and 5 deletions

1
.env.example Normal file
View File

@ -0,0 +1 @@
ANSIBLE_BECOME_PASS=your_password

1
.gitignore vendored
View File

@ -1 +1,2 @@
.vscode/
.env

View File

@ -8,4 +8,8 @@ Installs _my_ Arch Linux.
## Development
`git pull && ansible-playbook main.yml -e "ansible_become_password=XXXXX"`
`git pull && ansible-playbook main.yml -e "ansible_become_password=XXXXX"`
## Printers
The spawn of evil. For the HP LaserJet run `hp-setup` or HP Device Manager.

View File

@ -12,6 +12,12 @@ etc_hosts:
- 10.0.2.100 treebeard
- 10.0.2.55 mailcow
systemd_services:
- cups
- avahi-daemon
- NetworkManager
- reflector.timer
pacman:
parallel_downloads: 10
@ -20,6 +26,7 @@ aur_helper: yay
# Packages, installed from Arch repositories with pacman
packages:
- base-devel
- cups
- curl
- direnv
- docker
@ -31,6 +38,7 @@ packages:
- git
- github-cli
- gnupg
- hplip
- htop
- inetutils
- iotop
@ -46,6 +54,7 @@ packages:
- openvpn
- pipewire
- pipewire-pulse
- python-pyqt5
- rbw
- rsync
- screen

View File

@ -3,10 +3,9 @@
idle-delay=uint32 0
[org/gnome/settings-daemon/plugins/power]
# Power-off on power button
power-button-action='interactive'
# Disable sleep
sleep-display-ac-type='nothing'
sleep-inactive-ac-type='nothing'
[org/gnome/settings-daemon/plugins/color]
night-light-enabled=true

View File

@ -1,4 +1,12 @@
---
- name: Enabling systemd services
ansible.builtin.systemd:
name: "{{ item }}"
enabled: yes
state: started
with_items: "{{ systemd_services }}"
become: true
- name: Detecting lm_sensors
ansible.builtin.shell: sensors-detect --auto
ignore_errors: true
@ -30,4 +38,7 @@
ansible.builtin.lineinfile:
path: ~/.gnupg/gpg-agent.conf
line: "pinentry-program /usr/bin/pinentry-gnome3"
create: yes
create: yes
- name: Set GNOME default browser to firefox
ansible.builtin.shell: xdg-settings set default-web-browser firefox.desktop

3
run-arch.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env -S bash -i
ansible-playbook main.yml -e "ansible_become_pass=${ANSIBLE_BECOME_PASS}"

View File

@ -6,7 +6,7 @@ git clone gitea@git.devroom.io:ariejan/dotfiles.git
cd dotfiles
echo "--- Symlinking dotfiles"
stow git ruby sqlite tmux vim zsh haskell emacs ssh
stow git ruby sqlite tmux vim zsh haskell emacs ssh direnv
echo "--- Install Vim plugins"
vim -es -u ~/.vimrc +PluginInstall +qall