Added login-manager and tweaked a few things
This commit is contained in:
parent
c43006bacb
commit
e7e35390ed
3 changed files with 31 additions and 3 deletions
|
@ -4,7 +4,7 @@ Although bluetooth is not the most secure wireless protocol it is definitly prac
|
|||
|
||||
```
|
||||
# apk add bluez
|
||||
# rc-update add bluetooth
|
||||
# rc-update add bluetooth default
|
||||
```
|
||||
|
||||
After that managing bluetooth connections can be done with `blueman-*` applications which have been installed through `home-manager`.
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
# Login manager
|
||||
|
||||
A login manager is necessary for quickly entering a graphical enviroment. `greetd` and `greetd-tuigreet` make for a simple and secure login enviroment. Install them through:
|
||||
|
||||
```
|
||||
# apk add greetd greetd-tuigreet
|
||||
# rc-update add greetd default
|
||||
```
|
||||
|
||||
`greetd` will not work right away because it doesn't know which "greeter" to launch. Configure it in `/etc/greetd/config.toml`:
|
||||
|
||||
```
|
||||
[terminal]
|
||||
vt = 7
|
||||
|
||||
[default_session]
|
||||
command = "tuigreet --cmd 'dbus-run-session nixGL wayfire 2>&1 >/dev/null' -t --user-menu --power-shutdown 'doas /sbin/poweroff' --power-reboot 'doas /sbin/reboot'"
|
||||
|
||||
user = "greetd"
|
||||
```
|
||||
|
||||
Now the login manager will automatically start a Wayfire session upon login.
|
||||
|
||||
To also enable power management on the login screen add the `greetd` user to the `_power` group:
|
||||
|
||||
```
|
||||
# addgroup greetd _power
|
||||
```
|
|
@ -14,8 +14,8 @@ Also configure `doas` through `/etc/doas.d/main.conf`:
|
|||
|
||||
```
|
||||
permit persist :wheel as root
|
||||
permit nopasss :_power cmd poweroff
|
||||
permit nopasss :_power cmd reboot
|
||||
permit nopasss :_power cmd /sbin/poweroff
|
||||
permit nopasss :_power cmd /sbin/reboot
|
||||
```
|
||||
|
||||
And create a `_power` group for user's to be able to poweroff the system without root:
|
||||
|
|
Loading…
Reference in a new issue