mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
Apply nixfmt on many files
This commit is contained in:
parent
9799d3de2d
commit
45abf3d38a
177 changed files with 2850 additions and 3565 deletions
|
|
@ -6,23 +6,16 @@ let
|
|||
|
||||
cfg = config.services.hound;
|
||||
|
||||
configFile = pkgs.writeText "hound-config.json" (
|
||||
builtins.toJSON {
|
||||
max-concurrent-indexers = cfg.maxConcurrentIndexers;
|
||||
dbpath = cfg.databasePath;
|
||||
repos = cfg.repositories;
|
||||
health-check-url = "/healthz";
|
||||
}
|
||||
);
|
||||
configFile = pkgs.writeText "hound-config.json" (builtins.toJSON {
|
||||
max-concurrent-indexers = cfg.maxConcurrentIndexers;
|
||||
dbpath = cfg.databasePath;
|
||||
repos = cfg.repositories;
|
||||
health-check-url = "/healthz";
|
||||
});
|
||||
|
||||
houndOptions = [
|
||||
"--addr ${cfg.listenAddress}"
|
||||
"--conf ${configFile}"
|
||||
];
|
||||
houndOptions = [ "--addr ${cfg.listenAddress}" "--conf ${configFile}" ];
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
meta.maintainers = [ maintainers.adisbladis ];
|
||||
|
||||
options.services.hound = {
|
||||
|
|
@ -37,7 +30,7 @@ in
|
|||
databasePath = mkOption {
|
||||
type = types.path;
|
||||
default = "${config.xdg.dataHome}/hound";
|
||||
defaultText = "\$XDG_DATA_HOME/hound";
|
||||
defaultText = "$XDG_DATA_HOME/hound";
|
||||
description = "The Hound database path.";
|
||||
};
|
||||
|
||||
|
|
@ -49,7 +42,7 @@ in
|
|||
|
||||
repositories = mkOption {
|
||||
type = types.attrsOf (types.uniq types.attrs);
|
||||
default = {};
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
{
|
||||
SomeGitRepo = {
|
||||
|
|
@ -67,17 +60,14 @@ in
|
|||
home.packages = [ pkgs.hound ];
|
||||
|
||||
systemd.user.services.hound = {
|
||||
Unit = {
|
||||
Description = "Hound source code search engine";
|
||||
};
|
||||
Unit = { Description = "Hound source code search engine"; };
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Install = { WantedBy = [ "default.target" ]; };
|
||||
|
||||
Service = {
|
||||
Environment = "PATH=${makeBinPath [ pkgs.mercurial pkgs.git ]}";
|
||||
ExecStart = "${pkgs.hound}/bin/houndd ${concatStringsSep " " houndOptions}";
|
||||
ExecStart =
|
||||
"${pkgs.hound}/bin/houndd ${concatStringsSep " " houndOptions}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue