mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
parent
142e140601
commit
3a056b3ff9
@ -33,17 +33,18 @@ in
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
|
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
|
||||||
runCommand "nixos-gsettings-desktop-schemas" { }
|
runCommand "nixos-gsettings-desktop-schemas" { preferLocalBuild = true; }
|
||||||
''
|
''
|
||||||
schema_dir=$out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
|
data_dir="$out/share/gsettings-schemas/nixos-gsettings-overrides"
|
||||||
|
schema_dir="$data_dir/glib-2.0/schemas"
|
||||||
|
|
||||||
mkdir -p $schema_dir
|
mkdir -p $schema_dir
|
||||||
|
|
||||||
${concatMapStrings (pkg: "cp -rvf ${glib.getSchemaPath pkg}/* $schema_dir\n") gsettingsOverridePackages}
|
${concatMapStringsSep "\n" (pkg: "cp -rf \"${glib.getSchemaPath pkg}\"/*.xml \"$schema_dir\"") gsettingsOverridePackages}
|
||||||
|
|
||||||
chmod -R a+w $out/share/gsettings-schemas/nixos-gsettings-overrides
|
chmod -R a+w "$data_dir"
|
||||||
|
|
||||||
cat - > $schema_dir/nixos-defaults.gschema.override <<- EOF
|
cat - > "$schema_dir/nixos-defaults.gschema.override" <<- EOF
|
||||||
${extraGSettingsOverrides}
|
${extraGSettingsOverrides}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user