diff options
Diffstat (limited to 'nixos/modules/programs/gnome-disks.nix')
-rw-r--r-- | nixos/modules/programs/gnome-disks.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nixos/modules/programs/gnome-disks.nix b/nixos/modules/programs/gnome-disks.nix new file mode 100644 index 0000000000000..1cf839a6ddb0d --- /dev/null +++ b/nixos/modules/programs/gnome-disks.nix @@ -0,0 +1,46 @@ +# GNOME Disks. + +{ config, pkgs, lib, ... }: + +with lib; + +{ + + # 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.gnome3.gnome-disk-utility ]; + + services.dbus.packages = [ pkgs.gnome3.gnome-disk-utility ]; + + }; + +} |