mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
lib/builders: prototype dconf builder function
This commit is contained in:
parent
292d3464f7
commit
2fbcf3d2e7
9
lib/builders/build-dconf-db.nix
Normal file
9
lib/builders/build-dconf-db.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# A standalone version of the dconf profile generation build step based from
|
||||||
|
# the nixpkgs' NixOS dconf module.
|
||||||
|
{ lib, runCommand, dconf }:
|
||||||
|
|
||||||
|
{ dir, name ? baseNameOf dir, keyfiles, profile }@args:
|
||||||
|
|
||||||
|
runCommand "dconf-${name}" {
|
||||||
|
nativeBuildInputs = [ (lib.getBin dconf) ];
|
||||||
|
} "dconf compile $out ${dir}"
|
@ -9,4 +9,5 @@
|
|||||||
buildHugoSite = pkgs.callPackage ./hugo-build-site { };
|
buildHugoSite = pkgs.callPackage ./hugo-build-site { };
|
||||||
buildFDSEnv =
|
buildFDSEnv =
|
||||||
pkgs.callPackage ./build-fds-env.nix { extendedStdenv = self.stdenv; };
|
pkgs.callPackage ./build-fds-env.nix { extendedStdenv = self.stdenv; };
|
||||||
|
buildDconfDb = pkgs.callPackage ./build-dconf-db.nix { };
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ in pkgs.lib.makeExtensible (self:
|
|||||||
|
|
||||||
inherit (self.builders)
|
inherit (self.builders)
|
||||||
makeXDGMimeAssociationList makeXDGPortalConfiguration makeXDGDesktopEntry
|
makeXDGMimeAssociationList makeXDGPortalConfiguration makeXDGDesktopEntry
|
||||||
buildHugoSite buildFDSEnv;
|
buildHugoSite buildFDSEnv buildDconfDb;
|
||||||
inherit (self.trivial) countAttrs filterAttrs';
|
inherit (self.trivial) countAttrs filterAttrs';
|
||||||
inherit (self.data) importYAML renderTeraTemplate renderMustacheTemplate;
|
inherit (self.data) importYAML renderTeraTemplate renderMustacheTemplate;
|
||||||
inherit (self.fetchers) fetchInternetArchive fetchUgeeDriver;
|
inherit (self.fetchers) fetchInternetArchive fetchUgeeDriver;
|
||||||
|
Loading…
Reference in New Issue
Block a user