mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
6457d1bbe3
since gnome3.22 gnome-terminal uses a systemd service for it's backend server.
44 lines
717 B
Nix
44 lines
717 B
Nix
# GNOME Documents daemon.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
gnome3 = config.environment.gnome3.packageSet;
|
|
in
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome3.gnome-terminal-server = {
|
|
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GNOME Terminal server service,
|
|
needed for gnome-terminal.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.gnome3.gnome-terminal-server.enable {
|
|
|
|
environment.systemPackages = [ gnome3.gnome_terminal ];
|
|
|
|
services.dbus.packages = [ gnome3.gnome_terminal ];
|
|
|
|
systemd.packages = [ gnome3.gnome_terminal ];
|
|
|
|
};
|
|
|
|
}
|