mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
3xui start ..
This commit is contained in:
@@ -5,7 +5,9 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
docker-source = "/home/oqyude/3x-ui";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Runtime
|
# Runtime
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
@@ -33,8 +35,8 @@
|
|||||||
"XUI_ENABLE_FAIL2BAN" = "true";
|
"XUI_ENABLE_FAIL2BAN" = "true";
|
||||||
};
|
};
|
||||||
volumes = [
|
volumes = [
|
||||||
"/home/oqyude/3x-ui/cert/:/root/cert:rw"
|
"${docker-source}/cert/:/root/cert:rw"
|
||||||
"/home/oqyude/3x-ui/db/:/etc/x-ui:rw"
|
"${docker-source}/db/:/etc/x-ui:rw"
|
||||||
];
|
];
|
||||||
log-driver = "journald";
|
log-driver = "journald";
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
@@ -64,7 +66,7 @@
|
|||||||
TimeoutSec = 300;
|
TimeoutSec = 300;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
cd /home/oqyude/3x-ui
|
cd ${docker-source}
|
||||||
podman build -t compose2nix/3xui_app -f ./Dockerfile .
|
podman build -t compose2nix/3xui_app -f ./Dockerfile .
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#./3x-ui.nix
|
./3x-ui.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation = {
|
# virtualisation = {
|
||||||
docker.enable = true;
|
# docker.enable = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
inputs.compose2nix.packages.x86_64-linux.default
|
inputs.compose2nix.packages.x86_64-linux.default
|
||||||
|
|||||||
Reference in New Issue
Block a user