mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add wireguard
This commit is contained in:
parent
4dc3200d68
commit
86e4bf1c4e
10 changed files with 156 additions and 41 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
{ pkgs, lib, config, ... }: {
|
||||
imports = [
|
||||
./media.nix
|
||||
];
|
||||
|
||||
options.mods.docker.media = {
|
||||
options.mods.docker = {
|
||||
enable = lib.mkEnableOption {
|
||||
default = false;
|
||||
description = "enables docker containers for media server";
|
||||
description = "enables docker containers";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.docker.media.enable {
|
||||
config = lib.mkIf config.mods.docker.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.arion
|
||||
|
||||
|
|
@ -27,6 +27,6 @@
|
|||
virtualisation.podman.defaultNetwork.dnsname.enable = true;
|
||||
|
||||
# Use your username instead of `myuser`
|
||||
users.extraUsers.${mods.user.name}.extraGroups = ["podman"];
|
||||
users.extraUsers.${config.mods.user.name}.extraGroups = ["podman"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,24 +7,24 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.mods.docker.media.enable {
|
||||
virtualisation.arion = {
|
||||
backend = "docker";
|
||||
projects = {
|
||||
"hyperpipe".settings.services = {
|
||||
"hyperpipe-frontend".service = {
|
||||
image = "codeberg.org/hyperpipe/hyperpipe:latest";
|
||||
container-name = "hyperpipe-frontend";
|
||||
restart = "unless-stopped";
|
||||
ports = ["8080:80"];
|
||||
};
|
||||
"hyperpipe-backend".service = {
|
||||
image = "codeberg.org/hyperpipe/hyperpipe:latest";
|
||||
container_name = "hyperpipe-backend";
|
||||
restart = "unless-stopped";
|
||||
ports = ["3000:3000"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
# virtualisation.arion = {
|
||||
# backend = "docker";
|
||||
# projects = {
|
||||
# "hyperpipe".settings.services = {
|
||||
# "hyperpipe-frontend".service = {
|
||||
# image = "codeberg.org/hyperpipe/hyperpipe:latest";
|
||||
# container-name = "hyperpipe-frontend";
|
||||
# restart = "unless-stopped";
|
||||
# ports = ["8080:80"];
|
||||
# };
|
||||
# "hyperpipe-backend".service = {
|
||||
# image = "codeberg.org/hyperpipe/hyperpipe:latest";
|
||||
# container_name = "hyperpipe-backend";
|
||||
# restart = "unless-stopped";
|
||||
# ports = ["3000:3000"];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue