mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +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 { };
|
||||
buildFDSEnv =
|
||||
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)
|
||||
makeXDGMimeAssociationList makeXDGPortalConfiguration makeXDGDesktopEntry
|
||||
buildHugoSite buildFDSEnv;
|
||||
buildHugoSite buildFDSEnv buildDconfDb;
|
||||
inherit (self.trivial) countAttrs filterAttrs';
|
||||
inherit (self.data) importYAML renderTeraTemplate renderMustacheTemplate;
|
||||
inherit (self.fetchers) fetchInternetArchive fetchUgeeDriver;
|
||||
|
Loading…
Reference in New Issue
Block a user