mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/homer: add method option
This commit is contained in:
parent
3d2575f82c
commit
d06f324fec
1 changed files with 9 additions and 1 deletions
|
@ -77,6 +77,14 @@
|
|||
example = "Ping";
|
||||
default = "Ping";
|
||||
};
|
||||
dashboard.method = lib.mkOption {
|
||||
type = lib.types.enum [ "get" "head" ];
|
||||
description = ''
|
||||
method of request used
|
||||
'';
|
||||
example = "get";
|
||||
default = "head";
|
||||
};
|
||||
};
|
||||
});
|
||||
description = ''
|
||||
|
@ -112,7 +120,7 @@
|
|||
url = a.dashboard.link;
|
||||
target = "_blank";
|
||||
type = a.dashboard.type;
|
||||
method = "head";
|
||||
method = a.dashboard.method;
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue