forked from FaustXVI/nixos-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
desktop-gnome.nix
47 lines (38 loc) · 1.61 KB
/
desktop-gnome.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ config, pkgs, lib, ... }:
{
imports = [ ./desktop-base.nix ];
environment.systemPackages = with pkgs; [
gnome-boxes
gimp
shotwell
calibre
libreoffice
];
services.xserver = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = true;
};
# from https://github.com/NixOS/nixpkgs/issues/171136#issuecomment-1690517722
security.pam.services.login.fprintAuth = false;
# similarly to how other distributions handle the fingerprinting login
security.pam.services.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.gdm}/lib/security/pam_gdm.so
auth optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so
account include login
password required pam_deny.so
session include login
session optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
'';
};
# Gnome Shell extensions install from Firefox
services.gnome.gnome-browser-connector.enable = true;
# Plotinus
programs.plotinus.enable = true;
}