first working build of rewrite
This commit is contained in:
commit
44a3f420c6
29 changed files with 1261 additions and 0 deletions
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.tuigreet;
|
||||
gduser = config.services.greetd.settings.default_session.user;
|
||||
in {
|
||||
options.speccon18.desktop.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