-
Notifications
You must be signed in to change notification settings - Fork 0
/
pantheon.nix
57 lines (52 loc) · 1.53 KB
/
pantheon.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
47
48
49
50
51
52
53
54
55
56
57
# NOTE: This is the minimum Pantheon, included in the live .iso image
# For actuall installs pantheon-apps.nix is also included
{ pkgs, ... }: {
imports = [
./qt-style.nix
../services/networkmanager.nix
../services/xdg-portal.nix
];
# Exclude the elementary apps I don't use
environment = {
pantheon.excludePackages = with pkgs.pantheon; [
elementary-music
elementary-photos
elementary-videos
epiphany
];
# App indicator
# - https://discourse.nixos.org/t/anyone-with-pantheon-de/28422
# - https://github.com/NixOS/nixpkgs/issues/144045#issuecomment-992487775
pathsToLink = [ "/libexec" ];
};
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true;
xserver = {
enable = true;
displayManager = {
lightdm.enable = true;
lightdm.greeters.pantheon.enable = true;
};
desktopManager = {
pantheon = {
enable = true;
extraWingpanelIndicators = with pkgs; [
monitor
wingpanel-indicator-ayatana
];
};
};
};
};
# App indicator
# - https://github.com/NixOS/nixpkgs/issues/144045#issuecomment-992487775
systemd.user.services.indicator-application-service = {
description = "indicator-application-service";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs.indicator-application-gtk3}/libexec/indicator-application/indicator-application-service";
};
};
}