mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
5b2b3b8558
The can potentially mask evaluation errors due to laziness of variable access within.
42 lines
660 B
Nix
42 lines
660 B
Nix
# GNOME Disks.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = lib.teams.gnome.members;
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.gnome-disks = {
|
|
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GNOME Disks daemon, a program designed to
|
|
be a UDisks2 graphical front-end.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf config.programs.gnome-disks.enable {
|
|
|
|
environment.systemPackages = [ pkgs.gnome.gnome-disk-utility ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome.gnome-disk-utility ];
|
|
|
|
};
|
|
|
|
}
|