3xui start ..

This commit is contained in:
2025-09-17 18:01:05 +03:00
parent 7edae13daa
commit e0e86d6b83
2 changed files with 10 additions and 8 deletions
+6 -4
View File
@@ -5,7 +5,9 @@
config,
...
}:
let
docker-source = "/home/oqyude/3x-ui";
in
{
# Runtime
virtualisation.podman = {
@@ -33,8 +35,8 @@
"XUI_ENABLE_FAIL2BAN" = "true";
};
volumes = [
"/home/oqyude/3x-ui/cert/:/root/cert:rw"
"/home/oqyude/3x-ui/db/:/etc/x-ui:rw"
"${docker-source}/cert/:/root/cert:rw"
"${docker-source}/db/:/etc/x-ui:rw"
];
log-driver = "journald";
extraOptions = [
@@ -64,7 +66,7 @@
TimeoutSec = 300;
};
script = ''
cd /home/oqyude/3x-ui
cd ${docker-source}
podman build -t compose2nix/3xui_app -f ./Dockerfile .
'';
};
+4 -4
View File
@@ -6,12 +6,12 @@
}:
{
imports = [
#./3x-ui.nix
./3x-ui.nix
];
virtualisation = {
docker.enable = true;
};
# virtualisation = {
# docker.enable = true;
# };
environment.systemPackages = [
inputs.compose2nix.packages.x86_64-linux.default