Skip to content

Commit 51ac5d6

Browse files
committed
cockpit: format
Signed-off-by: lucasew <[email protected]>
1 parent 45088ac commit 51ac5d6

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

nixos/modules/services/monitoring/cockpit.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ in
2828
allowed-origins = lib.mkOption {
2929
type = types.listOf types.str;
3030

31-
default = [];
31+
default = [ ];
3232

3333
description = ''
3434
List of allowed origins.
@@ -98,7 +98,8 @@ in
9898
"https://localhost:${toString config.services.cockpit.port}"
9999
];
100100

101-
services.cockpit.settings.WebService.Origins = builtins.concatStringsSep " " config.services.cockpit.allowed-origins;
101+
services.cockpit.settings.WebService.Origins =
102+
builtins.concatStringsSep " " config.services.cockpit.allowed-origins;
102103
};
103104

104105
meta.maintainers = pkgs.cockpit.meta.maintainers;

nixos/tests/cockpit.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ import ./make-test-python.nix (
125125
if 'admin' in button.text:
126126
button.click()
127127
driver.switch_to.default_content()
128-
128+
129129
log("Checking that /nonexistent is not a thing")
130130
assert '/nonexistent' not in driver.page_source
131131
assert len(driver.find_elements(By.CSS_SELECTOR, '#machine-reconnect')) == 0

pkgs/by-name/co/cockpit/package.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ stdenv.mkDerivation (finalAttrs: {
180180
181181
patchShebangs $out/share/cockpit/issue/update-issue
182182
wrapProgram $out/share/cockpit/issue/update-issue \
183-
--prefix PATH : ${lib.makeBinPath [
184-
iproute2
185-
gnused
186-
]}
183+
--prefix PATH : ${
184+
lib.makeBinPath [
185+
iproute2
186+
gnused
187+
]
188+
}
187189
188190
189191
substituteInPlace $out/${python3Packages.python.sitePackages}/cockpit/_vendor/systemd_ctypes/libsystemd.py \

0 commit comments

Comments
 (0)