Compare commits

..

5 commits

11 changed files with 114 additions and 7 deletions

View file

@ -82,11 +82,7 @@ in
# https://wiki.hyprland.org/Configuring/Binds # https://wiki.hyprland.org/Configuring/Binds
bind = [ bind = [
# Programs # Programs
( "$mod, RETURN, exec, kitty"
if config.profile.programs.wezterm.enable
then "$mod, RETURN, exec, wezterm-gui"
else "$mod, RETURN, exec, kitty"
)
"$mod, E, exec, thunar" "$mod, E, exec, thunar"
"$mod, B, exec, microsoft-edge" "$mod, B, exec, microsoft-edge"
"$mod, D, exec, rofi -show drun -replace -i" "$mod, D, exec, rofi -show drun -replace -i"

View file

@ -11,6 +11,7 @@
./go.nix ./go.nix
./jellyfin.nix ./jellyfin.nix
./microsoft-edge.nix ./microsoft-edge.nix
./mongodb-compass.nix
./mpv.nix ./mpv.nix
./neovide.nix ./neovide.nix
./neovim.nix ./neovim.nix

View file

@ -0,0 +1,11 @@
{ config, lib, unstable, ... }:
let
cfg = config.profile.programs.mongodb-compass;
sopsFile = ../../secrets/bareksa.yaml;
in
{
config = lib.mkIf cfg.enable {
sops.secrets."bareksa/mongodb-compass" = { inherit sopsFile; };
home.packages = [ unstable.mongodb-compass ];
};
}

View file

@ -6,6 +6,9 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.zathura = { programs.zathura = {
enable = true; enable = true;
options = {
selection-clipboard = "clipboard";
};
}; };
}; };
} }

View file

@ -13,6 +13,7 @@ in
redmage-demo.enable = lib.mkEnableOption "redmage-demo podman"; redmage-demo.enable = lib.mkEnableOption "redmage-demo podman";
qbittorrent.enable = lib.mkEnableOption "qbittorrent podman"; qbittorrent.enable = lib.mkEnableOption "qbittorrent podman";
openobserve.enable = lib.mkEnableOption "openobserve podman"; openobserve.enable = lib.mkEnableOption "openobserve podman";
minecraft.enable = mkEnableOption "minecraft server podman";
servarr = { servarr = {
enable = mkEnableOption "servarr group"; enable = mkEnableOption "servarr group";

View file

@ -77,6 +77,7 @@
}; };
programs = { programs = {
mongodb-compass.enable = lib.mkEnableOption "mongodb-compass";
yazi.enable = lib.mkOption { yazi.enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = true; default = true;

View file

@ -66,5 +66,8 @@
programs.easyeffects.enable = true; programs.easyeffects.enable = true;
steam.enable = true; steam.enable = true;
programs.wezterm.enable = true; programs.wezterm.enable = true;
programs.mongodb-compass.enable = true;
podman.enable = true;
}; };
} }

View file

@ -37,6 +37,7 @@
servarr.real-debrid-manager.enable = false; servarr.real-debrid-manager.enable = false;
servarr.rdtclient.enable = true; servarr.rdtclient.enable = true;
openobserve.enable = true; openobserve.enable = true;
minecraft.enable = true;
}; };
docker = { docker = {

View file

@ -1,4 +1,5 @@
bareksa: bareksa:
mongodb-compass: ENC[AES256_GCM,data:l4zKnbAKQURlNzLS2CDQMCcZCCyZr8MdbJaHYjGtXnNde7zyS/wkPMKpUzvp39qhFZ87w54n85djdIjW9a3cyjx1Z8L800UFrEAZqiX2CNp1YLZSdyIuq+aD36+H9+3ceB35Z2eeHaLTDUUWK4g+WL07kglwx/IV5wBM0K7CO1uEd6iLcHFxUMUYt/N8l05LmXK95VwVXwMKDwsz5uxrPH5Eao8VG9J5Xh7B9tqY9SyLOhr06W8Y3iyvLHZmlpix0dectSoBTNPY4OM2Uv94Qxy96i8Qv0KMwrYQ8M2FcDXrzV+jXq+6dV/E+8xuqGEn5CDqNDZhaEWZ7VKkeY6Tq7INQqm2S020OfJviemlYXURe/j1a8thoeZGDZeMBTGL+0+fB5VVZoN4Yjmy3ezWMhE+zouvkpCX6nWdE6rTwLOoErtBMktjZTI/DcGBN8dprNYpAclXp16RWYYvSHJEeLOCxCjhi5oySqFgtychmJBDO6L0DW3BwRqe5qhK9wSOWpwZUEp4FcVrorgzKJCzfYJYox5ctrd37mXhikp7aB0ADVwFAV7i3/RTKM+C9H26nrIdl6fF1wyrytt2Ge5MPsHutaj1LB2xcyLGebFTis8fyycDchIpF8PYqulyiw+YIrXiF0MZo7N/G91G83rNT3SMuEQpeTHv4H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aChlfN49Hg3U7bcky/qMMfftbfObZV0HMtt+VtwMUxyfKwLOJOEMgJeABKzpkUt5TnrnEUvm54P9GYvNPHM/m1M8naKTgyep8a03rqgxBblOYdruyZO/japCO5GNqaP375NslbUs8IPJtNSmiyzEwd4yak+HW+3/fB94q0sL8jsT0JGhWS8u9QwEb9FKSRBsGKCZYsIif8nVcBiMFmHCI9L6uUNuh8M0zyZ29Mq8akYDOWYJdlFeJpu9Ha8cTUjcIVHQJwxy7XtWj+arTHckRV628OFz/KZuauDhF2bhZ55OzOJHt3q//zHy+wuHXQJYerJMoE9aNmmIr8Mwfphvf1q+PnC5MqRnHWLNsq8H6njdq3qqGiFBeAoclSl26LT7IeYzQJ7og==,iv:amxpN4aoRTwsRyhdwjtyGgq5d7AGhGmgl4Xb5SUYD24=,tag:T+dE4XtgSsjBrXIyu6Py4g==,type:str]
sops: sops:
kms: [] kms: []
@ -15,8 +16,8 @@ sops:
TlB6MjhXY1VPUkJQS05hdFVGbGlIdUEKhK2RFfuDZUXdDUL/ueJnRP65lAGFVPXg TlB6MjhXY1VPUkJQS05hdFVGbGlIdUEKhK2RFfuDZUXdDUL/ueJnRP65lAGFVPXg
zqZdgIU6/CKKRjguw4LC2aO75y2tISRrACvvzjjp0LED6rZQfZspWg== zqZdgIU6/CKKRjguw4LC2aO75y2tISRrACvvzjjp0LED6rZQfZspWg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2024-07-12T05:06:34Z" lastmodified: "2024-07-18T08:14:16Z"
mac: ENC[AES256_GCM,data:AgRjY8T0JLuI/YMeEtGmzu8RcJQCs9PJKzM+yNRbP23GNQGkNEo50WqFqxgphuohpYNLlkdCnA0UFZYxF1iEjJehPMVY99j7UnP41G5fMIzPqW7oXN88VJ+N9ZnyIBk9SOTEJMsYtz5lzI3wRufJpf8RtHLuIHGyMU7u6k3Wxok=,iv:+evH8GBEMJZJGUU5mP+1/8yYr/D1ZitCt4QJ0PHQCzs=,tag:WPQ7BWn+NkJYvOwmvqAIew==,type:str] mac: ENC[AES256_GCM,data:k68TRZf3l41fn2zWlS8snKL0vYtyIC/NL0F90wopco3X9flR0XvTshlLwHoSfgVbrwK5EAbnEXdO1H2GY9ZEOdjCwSugtx7ass895/6UhJLGM7hm+ybMN9LmHAwuCRWN+ezKE4a4vLOeZpGqEDZ9PfDB/afTpZYEEuGCpk8cp2I=,iv:lnth49LtTCB/9LXDhy32xFMVEgtd5f3LPgFczSU+8M0=,tag:XzRUfwIQPn1uEFJJmg1AQg==,type:str]
pgp: [] pgp: []
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.8.1 version: 3.8.1

View file

@ -41,6 +41,7 @@ in
# 10.88.0.6 -> Suwayomi Flaresolverr # 10.88.0.6 -> Suwayomi Flaresolverr
# 10.88.1.1 -> Pihole # 10.88.1.1 -> Pihole
imports = [ imports = [
./minecraft.nix
./openobserve.nix ./openobserve.nix
./pihole.nix ./pihole.nix
./qbittorrent.nix ./qbittorrent.nix

View file

@ -0,0 +1,88 @@
{ config, lib, ... }:
let
name = "minecraft";
podman = config.profile.podman;
inherit (lib) mkIf strings;
ip = "10.88.200.1";
# image = "docker.io/05jchambers/legendary-minecraft-purpur-geyser:latest";
image = "docker.io/itzg/minecraft-bedrock-server:latest";
rootVolume = "/nas/podman/minecraft/hutasuhut";
domain = "${name}.tigor.web.id";
user = config.profile.user;
uid = toString user.uid;
gid = toString user.gid;
users = [
{
username = "CrowFX7414";
xuid = "2533274941938385";
}
];
in
{
config = mkIf (podman.enable && podman.${name}.enable) {
services.caddy.virtualHosts.${domain}.extraConfig = /*html*/ ''
header Content-Type text/html
respond <<EOF
<!DOCTYPE html>
<html>
<head>
<title>Minecraft Server</title>
</head>
<body>
<h1>Congrats! The minecraft server should be up!</h1>
<h2>
This server is invitation only.
Please contact the server owner for more info.
</h2>
<p>Server Address: <b>${domain}</b></p>
<p>Server Port: <b>19132</b></p>
</body>
</html>
EOF 200
'';
system.activationScripts."podman-${name}" = ''
mkdir -p ${rootVolume}
chown ${uid}:${gid} ${rootVolume}
'';
virtualisation.oci-containers.containers.${name} = {
inherit image;
hostname = name;
autoStart = true;
user = "${uid}:${gid}";
environment = {
UID = uid;
GID = gid;
EULA = "TRUE";
TZ = "Asia/Jakarta";
SERVER_NAME = "Hutasuhut";
DEFAULT_PLAYER_PERMISSION_LEVEL = "operator";
LEVEL_NAME = "Hutasuhut";
MAX_THREADS = "0"; # Use as many as possible
ALLOW_LIST_USERS = strings.concatStringsSep "," (
map (user: "${user.username}:${user.xuid}") users
);
};
ports = [
# Java Edition Ports
# "25565:25565/udp"
# "25565:25565"
# Bedrock Edition Ports
"19132:19132/udp"
"19132:19132"
];
volumes = [
"${rootVolume}:/data"
];
extraOptions = [
"--network=podman"
"--ip=${ip}"
];
labels = {
"io.containers.autoupdate" = "registry";
};
};
};
}