mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/gvfs: add package option
This commit is contained in:
parent
67ad8a788f
commit
eb127d2005
1 changed files with 17 additions and 4 deletions
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.services.gvfs;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
# Added 2019-08-19
|
# Added 2019-08-19
|
||||||
|
@ -21,6 +27,13 @@ with lib;
|
||||||
|
|
||||||
enable = mkEnableOption "GVfs, a userspace virtual filesystem";
|
enable = mkEnableOption "GVfs, a userspace virtual filesystem";
|
||||||
|
|
||||||
|
# gvfs can be built with multiple configurations
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.gnome3.gvfs;
|
||||||
|
description = "Which GVfs package to use.";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -28,13 +41,13 @@ with lib;
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf config.services.gvfs.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.gnome3.gvfs ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
services.dbus.packages = [ pkgs.gnome3.gvfs ];
|
services.dbus.packages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.packages = [ pkgs.gnome3.gvfs ];
|
systemd.packages = [ cfg.package ];
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.libmtp.bin ];
|
services.udev.packages = [ pkgs.libmtp.bin ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue