mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
b9851a975e
* bemenu: init at 2017-02-14 * velox: 2015-11-03 -> 2017-07-04 * orbment, velox: don't expose subprojects the development of orbment and velox got stuck their subprojects (bemenu, dmenu-wayland, st-wayland) don't work correctly outside of parent projects so hide them to not confuse people swc and wld libraries are unpopular and unlike wlc are not used by anything except velox * pythonPackages.pydbus: init at 0.6.0 * way-cooler: 0.5.2 -> 0.6.2 * nixos/way-cooler: add module * dconf module: use for wayland non-invasive approach for #31293 see discussion at #32210 * sway: embed LD_LIBRARY_PATH for #32755 * way-cooler: switch from buildRustPackage to buildRustCrate #31150
43 lines
992 B
Nix
43 lines
992 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.dconf;
|
|
|
|
mkDconfProfile = name: path:
|
|
{ source = path; target = "dconf/profile/${name}"; };
|
|
|
|
in
|
|
{
|
|
###### interface
|
|
|
|
options = {
|
|
programs.dconf = {
|
|
enable = mkEnableOption "dconf";
|
|
|
|
profiles = mkOption {
|
|
type = types.attrsOf types.path;
|
|
default = {};
|
|
description = "Set of dconf profile files.";
|
|
internal = true;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf (cfg.profiles != {} || cfg.enable) {
|
|
environment.etc = optionals (cfg.profiles != {})
|
|
(mapAttrsToList mkDconfProfile cfg.profiles);
|
|
|
|
environment.variables.GIO_EXTRA_MODULES = optional cfg.enable
|
|
"${pkgs.gnome3.dconf.lib}/lib/gio/modules";
|
|
# https://github.com/NixOS/nixpkgs/pull/31891
|
|
#environment.variables.XDG_DATA_DIRS = optional cfg.enable
|
|
# "$(echo ${pkgs.gnome3.gsettings_desktop_schemas}/share/gsettings-schemas/gsettings-desktop-schemas-*)";
|
|
};
|
|
|
|
}
|