fixed tuigreet sysd spam
This commit is contained in:
parent
4ae96c2a65
commit
84bde42545
4 changed files with 54 additions and 3 deletions
|
|
@ -63,7 +63,7 @@
|
||||||
./machines/katana.nix #machine specific configuration
|
./machines/katana.nix #machine specific configuration
|
||||||
"speccon18" #default user
|
"speccon18" #default user
|
||||||
[
|
[
|
||||||
# hyprland.nixosModules.default
|
./modules/system/desktop-environments/tuigreet.nix
|
||||||
./modules/system/desktop-environments/hyprland.nix
|
./modules/system/desktop-environments/hyprland.nix
|
||||||
./hosts/katana/default.nix
|
./hosts/katana/default.nix
|
||||||
./hosts/katana/networkd.nix
|
./hosts/katana/networkd.nix
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,11 @@
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
speccon18.desktop.hyprland.enable = true;
|
speccon18 = {
|
||||||
speccon18.desktop.gnome.enable = false;
|
desktop = {
|
||||||
|
hyprland.enable = true;
|
||||||
|
gnome.enable = false;
|
||||||
|
displayManager.tuigreet.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
exec-once=waybar
|
exec-once=waybar
|
||||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once=mako
|
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