mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
treewide: format code
This commit is contained in:
parent
0d984e4415
commit
4ab4767d50
5 changed files with 9 additions and 11 deletions
|
|
@ -149,7 +149,7 @@ in
|
|||
|
||||
"nix/registry.json".text = builtins.toJSON {
|
||||
version = 2;
|
||||
flakes = mapAttrsToList (n: v: { inherit (v) from to exact; }) cfg.registry;
|
||||
flakes = mapAttrsToList (_n: v: { inherit (v) from to exact; }) cfg.registry;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
# Inspired by
|
||||
# https://github.com/rycee/home-manager/blob/master/modules/misc/nixpkgs.nix
|
||||
|
|
@ -15,7 +15,7 @@ with lib;
|
|||
config = {
|
||||
|
||||
_module.args.pkgs = import <nixpkgs> (
|
||||
filterAttrs (n: v: v != null) config.nixpkgs
|
||||
filterAttrs (_n: v: v != null) config.nixpkgs
|
||||
);
|
||||
|
||||
nixpkgs.overlays = import ../../overlays;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
# Inspired by
|
||||
# https://github.com/rycee/home-manager/blob/master/modules/misc/nixpkgs.nix
|
||||
|
|
@ -46,7 +46,7 @@ let
|
|||
else lib.traceSeqN 1 x false;
|
||||
in
|
||||
traceXIfNot isConfig;
|
||||
merge = args: fold (def: mergeConfig def.value) { };
|
||||
merge = _args: fold (def: mergeConfig def.value) { };
|
||||
};
|
||||
|
||||
overlayType = mkOptionType {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
# Inspired by
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/locale.nix
|
||||
|
|
@ -10,8 +10,6 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.time;
|
||||
|
||||
tzdir = "${pkgs.tzdata}/share/zoneinfo";
|
||||
nospace = str: filter (c: c == " ") (stringToCharacters str) == [ ];
|
||||
timezoneType = types.nullOr (types.addCheck types.str nospace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue