fixed tuigreet sysd spam
This commit is contained in:
parent
4ae96c2a65
commit
84bde42545
4 changed files with 54 additions and 3 deletions
|
|
@ -10,6 +10,7 @@
|
|||
exec-once=waybar
|
||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once=mako
|
||||
monitor=,highres,auto,1
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
45
modules/system/desktop-environments/tuigreet.nix
Normal file
45
modules/system/desktop-environments/tuigreet.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{config,lib,pkgs,...}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption optionalString mkIf types;
|
||||
dmcfg = config.services.xserver.displayManager;
|
||||
cfg = config.speccon18.desktop.displayManager.tuigreet;
|
||||
gduser = config.services.greetd.settings.default_session.user;
|
||||
in {
|
||||
options.speccon18.desktop.displayManager.tuigreet = {
|
||||
enable = mkEnableOption "enables tuigreet";
|
||||
args = mkOption {
|
||||
default = "--time --asterisks --remember -s ${dmcfg.sessionData.desktops}/share/wayland-sessions:${dmcfg.sessionData.desktops}/share/xsessions";
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet ${cfg.args}";
|
||||
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;
|
||||
};
|
||||
tmpfiles.rules = [
|
||||
"d /var/cache/tuigreet/ 0755 greeter ${gduser} - -"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue