turned on auto login and cleaned up the file

This commit is contained in:
Ranomier 2025-01-23 04:45:19 +01:00
parent b70e3c9ce0
commit 4c77c7fa05

View file

@ -1,21 +1,30 @@
{pkgs, ...}: {
{ pkgs, ... }:
let
default_command = "Hyprland";
in
{
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
services.greetd = {
enable = true;
vt = 7;
settings = {
initial_session = {
command = default_command;
user = "ranomier";
};
default_session = {
command = '' ${pkgs.greetd.tuigreet}/bin/tuigreet \
--time \
--time-format '%Y-%m-%dT%H:%M:%S %A' \
--remember \
--user-menu \
--user-menu-min-uid 1000 \
--user-menu-max-uid 2000 \
--theme 'border=lightgreen;text=lightgreen;prompt=lightgreen;time=lightgreen;action=lightgreen;button=lightgreen;input=lightgreen' \
--cmd Hyprland'';
# removed elements from theme: container
command = ''
${pkgs.greetd.tuigreet}/bin/tuigreet \
--time \
--time-format '%Y-%m-%dT%H:%M:%S %A' \
--remember \
--user-menu \
--user-menu-min-uid 1000 \
--user-menu-max-uid 2000 \
--theme 'border=lightgreen;text=lightgreen;prompt=lightgreen;time=lightgreen;action=lightgreen;button=lightgreen;input=lightgreen' \
--cmd ${default_command}
'';
user = "greeter";
};
};