mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: add missing package options (#7575)
Add options to support more flexible module configurations. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
25deca8939
commit
03fdb31290
34 changed files with 147 additions and 70 deletions
|
|
@ -139,6 +139,8 @@ in
|
|||
meta.maintainers = with lib.maintainers; [ euxane ];
|
||||
|
||||
options.services.muchsync = {
|
||||
package = lib.mkPackageOption pkgs "muchsync" { };
|
||||
|
||||
remotes = mkOption {
|
||||
type = with types; attrsOf (submodule syncOptions);
|
||||
default = { };
|
||||
|
|
@ -190,7 +192,7 @@ in
|
|||
''"NMBGIT=${config.home.sessionVariables.NMBGIT}"''
|
||||
];
|
||||
ExecStart = lib.concatStringsSep " " (
|
||||
[ "${pkgs.muchsync}/bin/muchsync" ]
|
||||
[ (lib.getExe cfg.package) ]
|
||||
++ [ "-s ${escapeShellArg remoteCfg.sshCommand}" ]
|
||||
++ optional (!remoteCfg.upload) "--noup"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue