blob: 2419eaf65de2f8dbd8ab6851477b31e844119555 (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{ config, pkgs, lib, ... }:
{
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraPackages = with pkgs; [
brightnessctl
polkit_gnome
xsettingsd
swaylock
swayidle
wl-clipboard
];
extraSessionCommands = ''
export MOZ_ENABLE_WAYLAND=1
'';
};
services.xserver = {
enable = true;
layout = "us";
libinput = {
enable = true;
touchpad.naturalScrolling = true;
};
displayManager = {
gdm.enable = true;
gdm.wayland = true;
defaultSession = "sway";
};
};
services = {
dbus = {
enable = true;
packages = [
pkgs.gcr
pkgs.gnome3.dconf
pkgs.gnome3.gnome-keyring
];
};
udev.packages = [
pkgs.gnome3.gnome-settings-daemon
];
gnome.gnome-keyring.enable = true;
gvfs.enable = true;
gnome = {
# Sushi, a quick previewer for Nautilus
sushi.enable = true;
};
};
security = {
polkit.enable = true;
# enable gnome keyring unlock on login
pam.services.gdm.enableGnomeKeyring = true;
};
environment = {
pathsToLink = [ "/libexec" ];
homeBinInPath = true;
localBinInPath = true;
};
}
|