2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
2024-07-22 23:51:50 -04:00
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.desktop.gnome.enable {
|
2024-07-07 14:48:46 -04:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
# GNOME 46: triple-buffering-v4-46
|
|
|
|
(final: prev: {
|
|
|
|
gnome = prev.gnome.overrideScope (gnomeFinal: gnomePrev: {
|
|
|
|
mutter = gnomePrev.mutter.overrideAttrs (old: {
|
|
|
|
src = pkgs.fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "vanvugt";
|
|
|
|
repo = "mutter";
|
|
|
|
rev = "triple-buffering-v4-46";
|
|
|
|
hash = "sha256-fkPjB/5DPBX06t7yj0Rb3UEuu5b9mu3aS+jhH18+lpI=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-07-07 19:46:57 -04:00
|
|
|
security.pam.services = {
|
|
|
|
login.fprintAuth = false;
|
|
|
|
|
|
|
|
gdm = {
|
|
|
|
enableGnomeKeyring = true;
|
|
|
|
gnupg.enable = true;
|
|
|
|
kwallet.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) {
|
|
|
|
text = ''
|
|
|
|
auth required pam_shells.so
|
|
|
|
auth requisite pam_nologin.so
|
|
|
|
auth requisite pam_faillock.so preauth
|
|
|
|
auth required ${pkgs.fprintd}/lib/security/pam_fprintd.so
|
|
|
|
auth optional pam_permit.so
|
|
|
|
auth required pam_env.so
|
|
|
|
auth [success=ok default=1] ${pkgs.gnome.gdm}/lib/security/pam_gdm.so
|
|
|
|
auth optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so
|
|
|
|
|
|
|
|
account include login
|
|
|
|
|
|
|
|
password required pam_deny.so
|
|
|
|
|
|
|
|
session include login
|
|
|
|
session optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
|
|
|
|
'';
|
|
|
|
};
|
2024-06-22 15:29:41 -04:00
|
|
|
};
|
2024-03-28 16:13:46 -04:00
|
|
|
|
|
|
|
# Enable GNOME and GDM.
|
|
|
|
services = {
|
|
|
|
gnome.tracker-miners.enable = true;
|
2024-04-07 22:16:33 -04:00
|
|
|
udev.packages = with pkgs; [gnome.gnome-settings-daemon];
|
2024-07-07 19:46:57 -04:00
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
xserver = {
|
|
|
|
desktopManager.gnome.enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 16:40:23 -04:00
|
|
|
}
|