Skip to content

Commit 0d782ee

Browse files
committed
treewide: nix fmt
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
1 parent 451f663 commit 0d782ee

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

modules/files.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ in
8787
pathStr = toString path;
8888
name = lib.hm.strings.storeFileName (baseNameOf pathStr);
8989
in
90-
pkgs.runCommandLocal name { } ''ln -s ${lib.escapeShellArg pathStr} $out'';
90+
pkgs.runCommandLocal name { } "ln -s ${lib.escapeShellArg pathStr} $out";
9191

9292
# This verifies that the links we are about to create will not
9393
# overwrite an existing file.

modules/programs/firefox/mkFirefoxModule.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ in
278278
type = types.nullOr types.str;
279279
default = if platforms.darwin ? "defaultsId" then platforms.darwin.defaultsId else null;
280280
example = if default != null then default else "com.developer.app";
281-
description = ''The id for the darwin defaults in order to set policies'';
281+
description = "The id for the darwin defaults in order to set policies";
282282
};
283283

284284
darwinAppName = mkOption {

modules/programs/oh-my-posh.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ in
108108
if lib.versionAtLeast (lib.versions.major cfg.package.version) "26" then
109109
"${lib.getExe cfg.package} init nu ${configArgument}"
110110
else
111-
''source ${
111+
"source ${
112112
pkgs.runCommand "oh-my-posh-nushell-config.nu" { } ''
113113
${lib.getExe cfg.package} init nu ${configArgument} --print >> "$out"
114114
''
115-
}''
115+
}"
116116
}
117117
'';
118118
};

modules/programs/vdirsyncer/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ let
102102
else if (n == "itemTypes") then
103103
"item_types = ${listString (map wrap v)}"
104104
else if (n == "useVcard4") then
105-
''use_vcard_4 = ${v}''
105+
"use_vcard_4 = ${v}"
106106
else if (n == "userName") then
107107
''username = "${v}"''
108108
else if (n == "userNameCommand") then

modules/services/window-managers/hyprland.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ in
342342
warning = "You have enabled hyprland.systemd.enable or listed plugins in hyprland.plugins but do not have any configuration in hyprland.settings or hyprland.extraConfig. This is almost certainly a mistake.";
343343

344344
filterNonBinds =
345-
attrs:
346-
builtins.filter (n: builtins.match ''bind[[:lower:]]*'' n == null) (builtins.attrNames attrs);
345+
attrs: builtins.filter (n: builtins.match "bind[[:lower:]]*" n == null) (builtins.attrNames attrs);
347346

348347
# attrset of { <submap name> = <list of non bind* keys>; } for all submaps
349348
submapWarningsAttrset = builtins.mapAttrs (

tests/modules/services/mako/renamed-options.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
in
6565
map (
6666
option:
67-
''The option `services.mako.${option}' defined in ${
67+
"The option `services.mako.${option}' defined in ${
6868
lib.showFiles options.services.mako.${option}.files
69-
} has been renamed to `services.mako.settings.${lib.hm.strings.toKebabCase option}'.''
69+
} has been renamed to `services.mako.settings.${lib.hm.strings.toKebabCase option}'."
7070
) renamedOptions;
7171

7272
nmt.script = ''

0 commit comments

Comments
 (0)