diff --git a/modules/nixos/boot.nix b/modules/nixos/boot.nix index 02ebad9..4d91e25 100644 --- a/modules/nixos/boot.nix +++ b/modules/nixos/boot.nix @@ -20,16 +20,14 @@ }; }; - mirrors = - lib.mkIf config.boot.bios.mirrors - != [] { - boot.loader.grub.mirroredBoots = [ - { - devices = config.boot.bios.mirrors; - path = "/boot"; - } - ]; - }; + mirrors = lib.mkIf (config.boot.bios.mirrors != []) { + boot.loader.grub.mirroredBoots = [ + { + devices = config.boot.bios.mirrors; + path = "/boot"; + } + ]; + }; cfg = lib.mkIf config.boot.bios.enable { boot.loader.grub.enable = true; @@ -59,7 +57,7 @@ in { type = lib.types.bool; default = false; description = "Enable UEFI boot."; - }; + }; }; }; diff --git a/modules/nixos/network.nix b/modules/nixos/network.nix index 93f5f09..5426e8e 100644 --- a/modules/nixos/network.nix +++ b/modules/nixos/network.nix @@ -6,7 +6,8 @@ }: let gateway = ip: let parts = lib.splitString "." ip; - in lib.concatStringsSep "." (lib.take 3 parts ++ ["1"]); + in + lib.concatStringsSep "." (lib.take 3 parts ++ ["1"]); ipv4 = lib.mkIf config.networking.ipv4.enable { networking = {