mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #25562 from montag451/gnome-disks-dbus
gnome-disks: add D-Bus service
This commit is contained in:
commit
a1dc3fdf23
3 changed files with 44 additions and 0 deletions
|
@ -187,6 +187,7 @@
|
||||||
./services/desktops/geoclue2.nix
|
./services/desktops/geoclue2.nix
|
||||||
./services/desktops/gnome3/at-spi2-core.nix
|
./services/desktops/gnome3/at-spi2-core.nix
|
||||||
./services/desktops/gnome3/evolution-data-server.nix
|
./services/desktops/gnome3/evolution-data-server.nix
|
||||||
|
./services/desktops/gnome3/gnome-disks.nix
|
||||||
./services/desktops/gnome3/gnome-documents.nix
|
./services/desktops/gnome3/gnome-documents.nix
|
||||||
./services/desktops/gnome3/gnome-keyring.nix
|
./services/desktops/gnome3/gnome-keyring.nix
|
||||||
./services/desktops/gnome3/gnome-online-accounts.nix
|
./services/desktops/gnome3/gnome-online-accounts.nix
|
||||||
|
|
42
nixos/modules/services/desktops/gnome3/gnome-disks.nix
Normal file
42
nixos/modules/services/desktops/gnome3/gnome-disks.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# GNOME Disks daemon.
|
||||||
|
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
gnome3 = config.environment.gnome3.packageSet;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
###### interface
|
||||||
|
|
||||||
|
options = {
|
||||||
|
|
||||||
|
services.gnome3.gnome-disks = {
|
||||||
|
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable GNOME Disks daemon, a service designed to
|
||||||
|
be a UDisks2 graphical front-end.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
###### implementation
|
||||||
|
|
||||||
|
config = mkIf config.services.gnome3.gnome-disks.enable {
|
||||||
|
|
||||||
|
environment.systemPackages = [ gnome3.gnome-disk-utility ];
|
||||||
|
|
||||||
|
services.dbus.packages = [ gnome3.gnome-disk-utility ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -104,6 +104,7 @@ in {
|
||||||
services.geoclue2.enable = mkDefault true;
|
services.geoclue2.enable = mkDefault true;
|
||||||
services.gnome3.at-spi2-core.enable = true;
|
services.gnome3.at-spi2-core.enable = true;
|
||||||
services.gnome3.evolution-data-server.enable = true;
|
services.gnome3.evolution-data-server.enable = true;
|
||||||
|
services.gnome3.gnome-disks.enable = mkDefault true;
|
||||||
services.gnome3.gnome-documents.enable = mkDefault true;
|
services.gnome3.gnome-documents.enable = mkDefault true;
|
||||||
services.gnome3.gnome-keyring.enable = true;
|
services.gnome3.gnome-keyring.enable = true;
|
||||||
services.gnome3.gnome-online-accounts.enable = mkDefault true;
|
services.gnome3.gnome-online-accounts.enable = mkDefault true;
|
||||||
|
|
Loading…
Reference in a new issue