mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
auto login using getty
This commit is contained in:
parent
0077d0a5ee
commit
839b7404cf
2 changed files with 18 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ in
|
|||
security.polkit.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
services.getty.autologinUser = "${userVars.username}";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pamixer
|
||||
brightnessctl
|
||||
|
|
|
|||
|
|
@ -28,6 +28,22 @@ in
|
|||
|
||||
dotDir = "/home/${userVars.username}/.config/zsh";
|
||||
|
||||
initContent = ''
|
||||
# -- GPG / SSH Configuration --
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
|
||||
# Import Wayland environment to systemd for GUI tools (like pinentry-gnome3)
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
systemctl --user import-environment WAYLAND_DISPLAY DISPLAY DBUS_SESSION_BUS_ADDRESS 2>/dev/null
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY DBUS_SESSION_BUS_ADDRESS 2>/dev/null
|
||||
fi
|
||||
|
||||
# Automatically start dwl on TTY 1
|
||||
if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec dwl
|
||||
fi
|
||||
'';
|
||||
|
||||
history = {
|
||||
size = 10000;
|
||||
save = 10000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue