mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
treewide: apply nixpkgs-fmt
This commit is contained in:
parent
241632822a
commit
7d1ed0fbaa
23 changed files with 64 additions and 61 deletions
|
|
@ -14,9 +14,9 @@ let
|
|||
defaultConfigFile = "${builtins.getEnv "HOME"}/.config/nixpkgs/nix-on-droid.nix";
|
||||
|
||||
configModule =
|
||||
if config != null then config
|
||||
if config != null then config
|
||||
else if builtins.pathExists defaultConfigFile then defaultConfigFile
|
||||
else if pkgs.config ? nix-on-droid then pkgs.config.nix-on-droid
|
||||
else if pkgs.config ? nix-on-droid then pkgs.config.nix-on-droid
|
||||
else throw "No config file found! Create one in ~/.config/nixpkgs/nix-on-droid.nix";
|
||||
|
||||
rawModule = evalModules {
|
||||
|
|
@ -38,7 +38,7 @@ let
|
|||
failedAssertions = map (x: x.message) (filter (x: !x.assertion) rawModule.config.assertions);
|
||||
|
||||
module =
|
||||
if failedAssertions != []
|
||||
if failedAssertions != [ ]
|
||||
then throw "\nFailed assertions:\n${concatMapStringsSep "\n" (x: "- ${x}") failedAssertions}"
|
||||
else showWarnings rawModule.config.warnings rawModule;
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue