mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 05:29:42 +00:00
Compare commits
3 commits
8a4d6ba1cb
...
4660bc0046
Author | SHA1 | Date | |
---|---|---|---|
ItsDrike | 4660bc0046 | ||
ItsDrike | a39d39ec1e | ||
ItsDrike | 03d4c5e69a |
|
@ -1,8 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"${pkgs.systemd}/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
"${pkgs.systemd}/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP GTK_THEME QT_QPA_PLATFORMTHEME QT_STYLE_OVERRIDE"
|
||||||
"${pkgs.systemd}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP"
|
"${pkgs.systemd}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP GTK_THEME QT_QPA_PLATFORMTHEME QT_STYLE_OVERRIDE"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,20 @@
|
||||||
tuiGreetTheme = "'border=magenta;text=cyan;prompt=green;time=red;action=white;button=yellow;container=black;input=gray'";
|
tuiGreetTheme = "'border=magenta;text=cyan;prompt=green;time=red;action=white;button=yellow;container=black;input=gray'";
|
||||||
|
|
||||||
sessionData = config.services.displayManager.sessionData.desktops;
|
sessionData = config.services.displayManager.sessionData.desktops;
|
||||||
sessionPaths = concatStringsSep ":" [
|
|
||||||
"${sessionData}/share/xsessions"
|
# Run the session / application using the appropriate shell configured for this user.
|
||||||
"${sessionData}/share/wayland-sessions"
|
# This will make sure all of the environment variables are set before the WM session
|
||||||
];
|
# is started. This is very important, as without it, variables for things like qt theme
|
||||||
|
# will not be set, and applications executed by the WM will not be themed properly.
|
||||||
|
sessionWrapperScript = pkgs.writeShellScriptBin "tuigreet-session-wrapper" ''
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
script_name="$0"
|
||||||
|
shell="$(getent passwd itsdrike | awk -F: '{print $NF}')"
|
||||||
|
command=("$@")
|
||||||
|
|
||||||
|
exec "$shell" -c 'exec "$@"' "$script_name" "''${command[@]}"
|
||||||
|
'';
|
||||||
|
|
||||||
defaultSession = {
|
defaultSession = {
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
|
@ -29,8 +39,11 @@
|
||||||
"--remember-user-session"
|
"--remember-user-session"
|
||||||
"--asterisks"
|
"--asterisks"
|
||||||
"--greeting ${greetingMsg}"
|
"--greeting ${greetingMsg}"
|
||||||
"--sessions '${sessionPaths}'"
|
|
||||||
"--theme ${tuiGreetTheme}"
|
"--theme ${tuiGreetTheme}"
|
||||||
|
"--sessions '${sessionData}/share/wayland-sessions'"
|
||||||
|
"--xsessions '${sessionData}/share/xsessions'"
|
||||||
|
"--session-wrapper ${sessionWrapperScript}/bin/tuigreet-session-wrapper"
|
||||||
|
"--xsession-wrapper ${sessionWrapperScript}/bin/tuigreet-session-wrapper startx /usr/bin/env \"$@\""
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -52,7 +65,7 @@ in {
|
||||||
# See: https://github.com/apognu/tuigreet/issues/68#issuecomment-1586359960
|
# See: https://github.com/apognu/tuigreet/issues/68#issuecomment-1586359960
|
||||||
systemd.services.greetd.serviceConfig = {
|
systemd.services.greetd.serviceConfig = {
|
||||||
Type = "idle";
|
Type = "idle";
|
||||||
StandardInputs = "tty";
|
StandardInput = "tty";
|
||||||
StandardOutput = "tty";
|
StandardOutput = "tty";
|
||||||
StandardError = "journal";
|
StandardError = "journal";
|
||||||
TTYReset = true;
|
TTYReset = true;
|
||||||
|
|
Loading…
Reference in a new issue