nixcfg/nixosModules/desktop/greetd/default.nix
Aly Raffauf d86e4c5be1
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
desktop: add kde modules (#143)
* theme: don't set kde qt theme if kde is enabled

* home: add kde option

* nixos: add kde module

* hyprland: set kde theme variables

* desktop: set libadwaita headerbar buttons for kde

* greetd: tuigreet -> regreet
2024-10-25 15:05:48 -04:00

39 lines
824 B
Nix

{
config,
lib,
...
}: {
config = lib.mkIf config.ar.desktop.greetd.enable {
security.pam.services.greetd = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
programs.regreet = {
enable = true;
settings = {
background.fit =
if config.stylix.imageScalingMode == "fill"
then "Fill"
else "ScaleDown";
GTK.application_prefer_dark_theme =
if config.stylix.polarity == "dark"
then true
else false;
};
};
services.greetd = {
enable = true;
settings.initial_session = lib.mkIf (config.ar.desktop.greetd.autologin != null) {
command = config.ar.desktop.greetd.session;
user = config.ar.desktop.greetd.autologin;
};
};
};
}