# umount
rex-dwm ALL=(root) NOPASSWD: /usr/bin/umount
rex-dwm ALL=(root) NOPASSWD: /bin/umount

# hostname
rex-dwm ALL=(root) NOPASSWD: /usr/bin/hostname [a-zA-Z0-9]*
rex-dwm ALL=(root) NOPASSWD: /bin/hostname [a-zA-Z0-9]*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/hostnamectl set-hostname [a-zA-Z0-9]*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/dd of=/etc/hostname
rex-dwm ALL=(root) NOPASSWD: /bin/dd of=/etc/hostname
rex-dwm ALL=(root) NOPASSWD: /usr/bin/dd of=/etc/hosts
rex-dwm ALL=(root) NOPASSWD: /bin/dd of=/etc/hosts

# rexcore
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl [a-zA-Z]* rexcore
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl [a-zA-Z]* rexcore

# poweroff, reboot
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl poweroff
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl poweroff
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl reboot
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl reboot
rex-dwm ALL=(root) NOPASSWD: /sbin/poweroff
rex-dwm ALL=(root) NOPASSWD: /sbin/reboot

# timedate
rex-dwm ALL=(root) NOPASSWD: /usr/bin/timedatectl set-ntp true
rex-dwm ALL=(root) NOPASSWD: /usr/bin/timedatectl set-ntp false
rex-dwm ALL=(root) NOPASSWD: /usr/bin/timedatectl set-time *
rex-dwm ALL=(root) NOPASSWD: /usr/bin/timedatectl set-timezone *
rex-dwm ALL=(root) NOPASSWD: /usr/bin/timedatectl set-local-rtc *
rex-dwm ALL=(root) NOPASSWD: /usr/bin/dd of=/etc/systemd/timesyncd.conf
rex-dwm ALL=(root) NOPASSWD: /bin/dd of=/etc/systemd/timesyncd.conf

# networking
rex-dwm ALL=(root) NOPASSWD: /usr/bin/ip addr flush dev [a-zA-Z0-9]*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl restart systemd-networkd
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl restart systemd-networkd
rex-dwm ALL=(root) NOPASSWD: /usr/bin/dd of=/etc/systemd/network/*
rex-dwm ALL=(root) NOPASSWD: /bin/dd of=/etc/systemd/network/*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/rm /etc/systemd/network/*

# wifi config
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl enable wpa_supplicant*
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl enable wpa_supplicant*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl restart wpa_supplicant*
rex-dwm ALL=(root) NOPASSWD: /bin/systemctl restart wpa_supplicant*
rex-dwm ALL=(root) NOPASSWD: /usr/bin/dd of=/etc/wpa_supplicant/*
rex-dwm ALL=(root) NOPASSWD: /bin/dd of=/etc/wpa_supplicant/*

# archives
rex-dwm ALL=(root) NOPASSWD: /usr/bin/find /rex/arc/ *

# ArcView
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl status postgresql
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl restart rex-dwm-arcview-archives-backend
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl restart rex-dwm-arcview-postgresql-backend
rex-dwm ALL=(root) NOPASSWD: /usr/bin/python3 /usr/share/rex-dwm/arcview-server/src/manage_bootstrap.py *
rex-dwm ALL=(postgres) NOPASSWD: /usr/bin/python3 /usr/share/rex-dwm/arcview-server/src/manage_bootstrap.py *

# studio
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl is-active --quiet rex-dwm-studio
rex-dwm ALL=(root) NOPASSWD: /usr/bin/systemctl restart rex-dwm-studio