treewide: format with nixpkgs-fmt

This commit is contained in:
Timothy DeHerrera 2021-04-09 19:22:08 -06:00
parent 3daa990728
commit be4b612b23
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
9 changed files with 48 additions and 43 deletions

3
extern/default.nix vendored
View File

@ -25,6 +25,5 @@
];
# passed to all home-manager modules
userSpecialArgs = {
};
userSpecialArgs = { };
}

View File

@ -32,7 +32,8 @@
let
lib = import ./lib { inherit self nixos inputs; };
in
lib.mkFlake {
lib.mkFlake
{
inherit self;
hosts = ./hosts;
packages = import ./pkgs;

View File

@ -9,4 +9,4 @@ let
hmConfigs = mapAttrs mkHomes self.nixosConfigurations;
in
foldl recursiveUpdate {} (attrValues hmConfigs)
foldl recursiveUpdate { } (attrValues hmConfigs)

View File

@ -43,7 +43,8 @@ let
tests = nixos.lib.optionalAttrs (system == "x86_64-linux")
(import "${self}/tests" { inherit self pkgs; });
deployHosts = nixos.lib.filterAttrs
(n: _: self.nixosConfigurations.${n}.config.nixpkgs.system == system) self.deploy.nodes;
(n: _: self.nixosConfigurations.${n}.config.nixpkgs.system == system)
self.deploy.nodes;
deployChecks = deploy.lib.${system}.deployChecks { nodes = deployHosts; };
in
nixos.lib.recursiveUpdate tests deployChecks;
@ -56,5 +57,5 @@ let
};
});
in
outputs // systemOutputs
outputs // systemOutputs

View File

@ -10,7 +10,7 @@ let
inputAttrs = with types; functionTo attrs;
moduleType = with types; anything // {
inherit (submodule {}) check;
inherit (submodule { }) check;
description = "valid module";
};
in
@ -36,7 +36,7 @@ let
check = builtins.isFunction;
description = "Nixpkgs overlay";
};
default = (final: prev: {});
default = (final: prev: { });
defaultText = "(final: prev: {})";
description = ''
Overlay for custom packages that will be included in treewide 'pkgs'.
@ -47,7 +47,7 @@ let
};
modules = mkOption {
type = listOf moduleType;
default = [];
default = [ ];
apply = dev.pathsToImportedAttrs;
description = ''
list of modules to include in confgurations and export in 'nixosModules' output
@ -55,7 +55,7 @@ let
};
userModules = mkOption {
type = listOf moduleType;
default = [];
default = [ ];
apply = dev.pathsToImportedAttrs;
description = ''
list of modules to include in home-manager configurations and export in
@ -78,7 +78,7 @@ let
};
suites =
let
defaults = { user = {}; system = {}; };
defaults = { user = { }; system = { }; };
in
mkOption {
type = inputAttrs;
@ -107,8 +107,11 @@ let
extern =
let
defaults = {
modules = []; overlays = []; specialArgs = {};
userModules = []; userSpecialArgs = {};
modules = [ ];
overlays = [ ];
specialArgs = { };
userModules = [ ];
userSpecialArgs = { };
};
in
mkOption {
@ -138,7 +141,7 @@ let
};
overrides = mkOption rec {
type = attrs;
default = { modules = []; disabledModules = []; packages = _: _: _: {}; };
default = { modules = [ ]; disabledModules = [ ]; packages = _: _: _: { }; };
defaultText = "{ modules = []; disabledModules = []; packages = {}; }";
apply = x: default // x;
description = "attrset of packages and modules that will be pulled from nixpkgs master";
@ -146,6 +149,6 @@ let
};
};
in
nixos.lib.evalModules {
nixos.lib.evalModules {
modules = [ argOpts args ];
}
}

View File

@ -92,7 +92,7 @@ lib.runTests {
system = {
bar = [ profiles.foo.default ];
allProfiles = [ profiles.foo.default profiles.t.default ];
allUsers = [];
allUsers = [ ];
};
};
};

View File

@ -0,0 +1 @@

View File

@ -1 +1 @@
[]
[ ]