added greetd
This commit is contained in:
parent
2980664d92
commit
a585939d9b
2 changed files with 37 additions and 0 deletions
36
system/common/opt/greetd.nix
Normal file
36
system/common/opt/greetd.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
|
||||
in
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${tuigreet} --time --remember --cmd Hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# 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.services.greetd.serviceConfig = {
|
||||
Type = "idle";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
StandardError = "journal"; # Without this errors will spam on screen
|
||||
# Without these bootlogs will spam on screen
|
||||
TTYReset = true;
|
||||
TTYVHangup = true;
|
||||
TTYVTDisallocate = true;
|
||||
};
|
||||
|
||||
#environment.etc."greetd/environments".text = ''
|
||||
# Hyprland
|
||||
# fish
|
||||
# bash
|
||||
#'';
|
||||
}
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
../common/global
|
||||
../common/opt/bluetooth.nix
|
||||
../common/opt/vm.nix
|
||||
../common/opt/greetd.nix
|
||||
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue