Commit 9b2e2e80 authored by Martin Puppe's avatar Martin Puppe
Browse files

nixos/yggdrasil: nixpkgs-fmt

parent dde4603b
Loading
Loading
Loading
Loading
+78 −75
Original line number Diff line number Diff line
@@ -8,7 +8,8 @@ let
  configFileProvided = cfg.configFile != null;

  format = pkgs.formats.json { };
in {
in
{
  imports = [
    (mkRenamedOptionModule
      [ "services" "yggdrasil" "config" ]
@@ -118,7 +119,8 @@ in {
    };
  };

  config = mkIf cfg.enable (let binYggdrasil = cfg.package + "/bin/yggdrasil";
  config = mkIf cfg.enable (
    let binYggdrasil = cfg.package + "/bin/yggdrasil";
    in {
      assertions = [{
        assertion = config.networking.enableIPv6;
@@ -191,7 +193,8 @@ in {

      # Make yggdrasilctl available on the command line.
      environment.systemPackages = [ cfg.package ];
  });
    }
  );
  meta = {
    doc = ./yggdrasil.md;
    maintainers = with lib.maintainers; [ gazally ehmry ];