mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
468cb5980b
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
51 lines
821 B
Nix
51 lines
821 B
Nix
# GNOME Disks.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
|
|
# Added 2019-08-09
|
|
imports = [
|
|
(mkRenamedOptionModule
|
|
[ "services" "gnome3" "gnome-disks" "enable" ]
|
|
[ "programs" "gnome-disks" "enable" ])
|
|
];
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.gnome-disks = {
|
|
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GNOME Disks daemon, a program designed to
|
|
be a UDisks2 graphical front-end.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.programs.gnome-disks.enable {
|
|
|
|
environment.systemPackages = [ pkgs.gnome.gnome-disk-utility ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome.gnome-disk-utility ];
|
|
|
|
};
|
|
|
|
}
|