mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-16 12:04:11 -05:00
test openhab podman
This commit is contained in:
parent
13f9c89661
commit
be8660d372
1 changed files with 32 additions and 0 deletions
32
modules/users/overseer/services/openhab.nix
Normal file
32
modules/users/overseer/services/openhab.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
let
|
||||
volumePath = "/overseer/services";
|
||||
in
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
lib.mkIf config.user.overseer.enable {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${volumePath}/openhab"
|
||||
"d ${volumePath}/openhab/conf"
|
||||
"d ${volumePath}/openhab/userdata"
|
||||
"d ${volumePath}/openhab/addons"
|
||||
];
|
||||
###########
|
||||
# Service #
|
||||
###########
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers."openhab" = {
|
||||
image = "openhab/openhab:5.0.0.M1";
|
||||
user = "openhab:openhab";
|
||||
volumes = [
|
||||
"${volumePath}/openhab/conf:/openhab/conf"
|
||||
"${volumePath}/openhab/userdata:/openhab/userdata"
|
||||
"${volumePath}/openhab/addons:/openhab/addons"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue