flocon/system/services/regreet.nix
Anthony Rodriguez d0466f96da
repo: add ags, a gtk shell
commit 75cf6a4d67
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Fri Oct 11 15:34:14 2024 +0200

    home/programs/niri: use gtk portals for most things, and gnome for screencast

commit 5ccb424079
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Thu Oct 10 21:19:33 2024 +0200

    home/programs/niri: add play/pause, add settings button on fn key f12

commit 8b7164739d
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Thu Oct 10 00:32:40 2024 +0200

    home/programs/niri: replace desktop-portal-gtk with gnome

commit fe40c6c72c
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Thu Oct 10 00:21:31 2024 +0200

    home/programs/niri: add xdg-desktop-portal-gtk

commit 74b7df1245
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Thu Oct 10 00:21:14 2024 +0200

    home/programs: add fractal

commit 3773095069
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Thu Oct 10 00:21:05 2024 +0200

    home/programs/gtk: use color-scheme for gtk4.0

commit 8fef768f4f
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Wed Oct 9 19:22:43 2024 +0200

    system/services/regreet: ensure that regreet starts dbus session

commit fcd88bfa8e
Author: Anthony Rodriguez <anthony@nezia.dev>
Date:   Wed Oct 9 19:22:20 2024 +0200

    repo: implement ags

    Implement ags, a wayland bar / GTK shell. Also added a few dependencies
    required for it to work properly.
2024-10-11 17:57:55 +02:00

50 lines
1.2 KiB
Nix

{
inputs,
lib,
pkgs,
config,
...
}: let
inherit (lib) mkDefault mkForce;
in {
environment.systemPackages = [
config.style.gtk.theme.package
config.style.gtk.iconTheme.package
config.style.cursorTheme.package
];
programs.regreet = {
enable = true;
package = pkgs.greetd.regreet;
settings = {
background = {
path = mkDefault config.style.wallpaper;
fit = "Cover";
};
GTK = let
isDark = inputs.basix.schemeData.base16.${config.style.scheme}.variant == "dark";
in {
application_prefer_dark_theme = isDark;
cursor_theme_name = mkForce config.style.cursorTheme.name;
icon_theme_name = mkForce config.style.gtk.iconTheme.name;
theme_name = mkForce config.style.gtk.theme.name;
font_name = mkForce "Inter 18";
};
};
};
services.greetd = {
enable = true;
settings = rec {
default_session = {
command = "${lib.getExe pkgs.cage} -s -d -- ${lib.getExe config.programs.regreet.package}";
user = "greeter";
};
initial_session = default_session;
};
};
security.pam.services.greetd = {
enableGnomeKeyring = true;
fprintAuth = false;
};
}