Skip to content

Commit f8f52fb

Browse files
brianmcgeemergify[bot]
authored andcommitted
chore: fmt
1 parent 15b6531 commit f8f52fb

File tree

6 files changed

+27
-19
lines changed

6 files changed

+27
-19
lines changed

docs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pkgs.mkShellNoCC {
6767

6868
facterMarkdown = mkMarkdown "facter" eval.options.facter.detected;
6969
otherMarkdown = lib.mapAttrsToList mkMarkdown (
70-
lib.filterAttrs (n: v: n != "detected") eval.options.facter
70+
lib.filterAttrs (n: _v: n != "detected") eval.options.facter
7171
);
7272

7373
optionsMarkdown = pkgs.symlinkJoin {

modules/nixos/bluetooth.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{ lib, config, ... }:
22
{
3-
options.facter.detected.bluetooth.enable = lib.mkEnableOption "Enable the Facter bluetooth module" // {
4-
default = builtins.length (config.facter.report.hardware.bluetooth or []) > 0;
5-
};
3+
options.facter.detected.bluetooth.enable =
4+
lib.mkEnableOption "Enable the Facter bluetooth module"
5+
// {
6+
default = builtins.length (config.facter.report.hardware.bluetooth or [ ]) > 0;
7+
};
68

7-
config.hardware.bluetooth.enable = lib.mkIf config.facter.detected.bluetooth.enable (lib.mkDefault true);
9+
config.hardware.bluetooth.enable = lib.mkIf config.facter.detected.bluetooth.enable (
10+
lib.mkDefault true
11+
);
812
}

modules/nixos/disk.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ in
88
options.facter.detected.boot.disk.kernelModules = lib.mkOption {
99
type = lib.types.listOf lib.types.str;
1010
default = facterLib.stringSet (
11-
facterLib.collectDrivers (
12-
# A disk might be attached.
13-
(report.hardware.firewire_controller or [ ])
14-
# definitely important
15-
++ (report.hardware.disk or [ ])
16-
++ (report.hardware.storage_controller or [ ])
17-
)
18-
);
11+
facterLib.collectDrivers (
12+
# A disk might be attached.
13+
(report.hardware.firewire_controller or [ ])
14+
# definitely important
15+
++ (report.hardware.disk or [ ])
16+
++ (report.hardware.storage_controller or [ ])
17+
)
18+
);
1919
description = ''
2020
List of kernel modules that are needed to access the disk.
2121
'';

modules/nixos/facter.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
options.facter = with lib; {
1919
report = mkOption {
2020
type = types.raw;
21-
default = if config.facter.reportPath == null then {} else builtins.fromJSON (builtins.readFile config.facter.reportPath);
21+
default =
22+
if config.facter.reportPath == null then
23+
{ }
24+
else
25+
builtins.fromJSON (builtins.readFile config.facter.reportPath);
2226
description = "An import for the reportPath.";
2327
};
2428

modules/nixos/system.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
}:
77
{
88
nixpkgs = lib.mkIf (!options.nixpkgs.pkgs.isDefined) {
9-
hostPlatform = lib.mkIf (config.facter.report.system or null != null) (lib.mkDefault config.facter.report.system);
9+
hostPlatform = lib.mkIf (config.facter.report.system or null != null) (
10+
lib.mkDefault config.facter.report.system
11+
);
1012
};
1113
}

renovate.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
]
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"]
64
}

0 commit comments

Comments
 (0)