add greetd with tui greet
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
ebc1be5217
commit
eb910d2cd5
1 changed files with 26 additions and 24 deletions
|
|
@ -26,32 +26,34 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../nixos/gui/xdg.nix
|
../../nixos/gui/xdg.nix
|
||||||
];
|
];
|
||||||
services.greetd =
|
services.greetd = {
|
||||||
let
|
enable = true;
|
||||||
niri-config = pkgs.writeText "niri-config" ''
|
settings = {
|
||||||
hotkey-overlay {
|
default_session = {
|
||||||
skip-at-startup
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --container-padding 2 --no-xsession-wrapper --cmd niri-session";
|
||||||
}
|
user = "greeter";
|
||||||
environment {
|
|
||||||
GTK_USE_PORTAL "0"
|
|
||||||
GDK_DEBUG "no-portals"
|
|
||||||
}
|
|
||||||
|
|
||||||
// other settings
|
|
||||||
|
|
||||||
spawn-at-startup "sh" "-c" "${pkgs.greetd.regreet}/bin/regreet; pkill -f niri"
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
default_session = {
|
|
||||||
command = "niri -c ${niri-config}";
|
|
||||||
user = "greeter";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.regreet.enable = true;
|
};
|
||||||
|
|
||||||
|
# this is a life saver.
|
||||||
|
# literally no documentation about this anywhere.
|
||||||
|
# might be good to write about this...
|
||||||
|
# https://www.reddit.com/r/NixOS/comments/u0cdpi/tuigreet_with_xmonad_how/
|
||||||
|
|
||||||
|
# systemd = {
|
||||||
|
# # To prevent getting stuck at shutdown
|
||||||
|
# extraConfig = "DefaultTimeoutStopSec=10s";
|
||||||
|
# services.greetd.serviceConfig = {
|
||||||
|
# Type = "idle";
|
||||||
|
# StandardInput = "tty";
|
||||||
|
# StandardOutput = "tty";
|
||||||
|
# StandardError = "journal";
|
||||||
|
# TTYReset = true;
|
||||||
|
# TTYVHangup = true;
|
||||||
|
# TTYVTDisallocate = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
# services.displayManager.enable = false;
|
# services.displayManager.enable = false;
|
||||||
# services.displayManager = {
|
# services.displayManager = {
|
||||||
# sddm = {
|
# sddm = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue