mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +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
|
|
@ -7,10 +7,8 @@ let
|
|||
cfg = config.services.unison;
|
||||
|
||||
pairOf = t:
|
||||
let
|
||||
list = types.addCheck (types.listOf t) (l: length l == 2);
|
||||
in
|
||||
list // { description = list.description + " of length 2"; };
|
||||
let list = types.addCheck (types.listOf t) (l: length l == 2);
|
||||
in list // { description = list.description + " of length 2"; };
|
||||
|
||||
pairOptions = {
|
||||
options = {
|
||||
|
|
@ -64,17 +62,14 @@ let
|
|||
|
||||
serialiseArg = key: val: "-${key}=${escapeShellArg val}";
|
||||
|
||||
serialiseArgs = args:
|
||||
concatStringsSep " " (mapAttrsToList serialiseArg args);
|
||||
serialiseArgs = args: concatStringsSep " " (mapAttrsToList serialiseArg args);
|
||||
|
||||
makeDefs = gen:
|
||||
mapAttrs'
|
||||
(name: pairCfg: nameValuePair "unison-pair-${name}" (gen name pairCfg))
|
||||
cfg.pairs;
|
||||
(name: pairCfg: nameValuePair "unison-pair-${name}" (gen name pairCfg))
|
||||
cfg.pairs;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ pacien ];
|
||||
|
||||
options.services.unison = {
|
||||
|
|
@ -120,9 +115,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Install = { WantedBy = [ "default.target" ]; };
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue