From 51ac5d673e3de02326de991e673d01d84cfb5505 Mon Sep 17 00:00:00 2001 From: lucasew Date: Tue, 15 Apr 2025 11:54:12 -0300 Subject: [PATCH] cockpit: format Signed-off-by: lucasew --- nixos/modules/services/monitoring/cockpit.nix | 5 +++-- nixos/tests/cockpit.nix | 2 +- pkgs/by-name/co/cockpit/package.nix | 10 ++++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/monitoring/cockpit.nix b/nixos/modules/services/monitoring/cockpit.nix index fe98c7be2f33..7f2f5a6ced1b 100644 --- a/nixos/modules/services/monitoring/cockpit.nix +++ b/nixos/modules/services/monitoring/cockpit.nix @@ -28,7 +28,7 @@ in allowed-origins = lib.mkOption { type = types.listOf types.str; - default = []; + default = [ ]; description = '' List of allowed origins. @@ -98,7 +98,8 @@ in "https://localhost:${toString config.services.cockpit.port}" ]; - services.cockpit.settings.WebService.Origins = builtins.concatStringsSep " " config.services.cockpit.allowed-origins; + services.cockpit.settings.WebService.Origins = + builtins.concatStringsSep " " config.services.cockpit.allowed-origins; }; meta.maintainers = pkgs.cockpit.meta.maintainers; diff --git a/nixos/tests/cockpit.nix b/nixos/tests/cockpit.nix index cc7cd783452f..29692f10aad2 100644 --- a/nixos/tests/cockpit.nix +++ b/nixos/tests/cockpit.nix @@ -125,7 +125,7 @@ import ./make-test-python.nix ( if 'admin' in button.text: button.click() driver.switch_to.default_content() - + log("Checking that /nonexistent is not a thing") assert '/nonexistent' not in driver.page_source assert len(driver.find_elements(By.CSS_SELECTOR, '#machine-reconnect')) == 0 diff --git a/pkgs/by-name/co/cockpit/package.nix b/pkgs/by-name/co/cockpit/package.nix index 356e7d99243b..0f0fc1a79759 100644 --- a/pkgs/by-name/co/cockpit/package.nix +++ b/pkgs/by-name/co/cockpit/package.nix @@ -180,10 +180,12 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs $out/share/cockpit/issue/update-issue wrapProgram $out/share/cockpit/issue/update-issue \ - --prefix PATH : ${lib.makeBinPath [ - iproute2 - gnused - ]} + --prefix PATH : ${ + lib.makeBinPath [ + iproute2 + gnused + ] + } substituteInPlace $out/${python3Packages.python.sitePackages}/cockpit/_vendor/systemd_ctypes/libsystemd.py \