Updating install script
This commit is contained in:
8
.local/bin/install/nixos-todo/setupbacklight
Executable file
8
.local/bin/install/nixos-todo/setupbacklight
Executable file
@@ -0,0 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
doas tee /etc/udev/rules/90-backlight.rules <<HRD
|
||||
SUBSYSTEM=="backlight", ACTION=="add" \
|
||||
RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \
|
||||
RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
|
||||
HRD
|
||||
|
||||
14
.local/bin/install/nixos-todo/setupprinter
Executable file
14
.local/bin/install/nixos-todo/setupprinter
Executable file
@@ -0,0 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
sudo pacman --noconfirm --needed -S python-pyqt5 hplip nss-mdns
|
||||
|
||||
sudo sed -i 's/hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns/hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns/' /etc/nsswitch.conf
|
||||
|
||||
sudo systemctl enable --now avahi-daemon
|
||||
|
||||
hp-setup -i 192.168.2.77
|
||||
|
||||
lpoptions -d DeskJet_3700
|
||||
|
||||
lpoptions -o PageSize=A4
|
||||
|
||||
18
.local/bin/install/nixos-todo/setupwifi
Executable file
18
.local/bin/install/nixos-todo/setupwifi
Executable file
@@ -0,0 +1,18 @@
|
||||
#! /bin/bash
|
||||
|
||||
doas tee /etc/NetworkManager/conf.d <<HRD
|
||||
[main]
|
||||
dhcpd=dhclient
|
||||
HRD
|
||||
|
||||
doas tee /etc/iwd/main.conf <<HRD
|
||||
[Network]
|
||||
EnableNetworkConfiguration=True
|
||||
EnableIPv6=True
|
||||
HRD
|
||||
|
||||
doas systemctl enable --now iwd
|
||||
doas systemctl enable --now NetworkManager
|
||||
|
||||
nmtui
|
||||
|
||||
Reference in New Issue
Block a user