mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +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";
|
example = "Ping";
|
||||||
default = "Ping";
|
default = "Ping";
|
||||||
};
|
};
|
||||||
|
dashboard.method = lib.mkOption {
|
||||||
|
type = lib.types.enum [ "get" "head" ];
|
||||||
|
description = ''
|
||||||
|
method of request used
|
||||||
|
'';
|
||||||
|
example = "get";
|
||||||
|
default = "head";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -112,7 +120,7 @@
|
||||||
url = a.dashboard.link;
|
url = a.dashboard.link;
|
||||||
target = "_blank";
|
target = "_blank";
|
||||||
type = a.dashboard.type;
|
type = a.dashboard.type;
|
||||||
method = "head";
|
method = a.dashboard.method;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue