Compare commits

..

8 commits

13 changed files with 75 additions and 14 deletions

View file

@ -20,9 +20,6 @@ in
username = user.name;
homeDirectory = "/home/${user.name}";
stateVersion = stateVersion;
packages = with pkgs; [
gopls
];
};
programs.home-manager.enable = true;
systemd.user.sessionVariables = {

View file

@ -186,7 +186,7 @@ in
disable_splash_rendering = true;
focus_on_activate = true;
enable_swallow = true;
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot|footclient)$";
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot)$";
};
animations = {

12
home/programs/bruno.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, config, lib, ... }:
let
cfg = config.profile.home.programs.bruno;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
bruno
];
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./bitwarden.nix
./bruno.nix
./chromium.nix
./dbeaver.nix
./discord.nix

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.profile.go;
in
@ -10,5 +10,13 @@ in
"gitlab.bareksa.com"
];
};
home.packages = with pkgs; [
gotools
###### Golang development tools ######
gomodifytags
gotests
iferr
];
};
}

View file

@ -59,15 +59,11 @@ in
home.packages = with pkgs; [
stylua
lua-language-server
docker-compose-language-service
emmet-ls
silicon # For code screenshots
lua-language-server
###### Golang development tools ######
gomodifytags
gotests
iferr
curl
cargo
nixpkgs-fmt

View file

@ -15,6 +15,7 @@ in
openobserve.enable = lib.mkEnableOption "openobserve podman";
minecraft.enable = mkEnableOption "minecraft server podman";
memos.enable = mkEnableOption "memos podman";
morphos.enable = mkEnableOption "morphos podman";
servarr = {
enable = mkEnableOption "servarr group";

View file

@ -108,6 +108,7 @@
};
};
foot.enable = lib.mkEnableOption "foot";
bruno.enable = lib.mkEnableOption "bruno";
};
programs = {

View file

@ -70,9 +70,11 @@
podman.enable = true;
home.programs.foot.enable = true;
home.programs.zellij.enable = true;
home.programs = {
foot.enable = true;
zellij.enable = true;
bruno.enable = true;
};
games.minecraft.enable = true;
};

View file

@ -39,6 +39,7 @@
openobserve.enable = true;
minecraft.enable = true;
memos.enable = true;
morphos.enable = true;
};
docker = {

View file

@ -12,9 +12,10 @@ in
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
UseDns = true;
UseDns = false;
X11Forwarding = false;
PermitRootLogin = "no";
GSSAPIAuthentication = false;
};
};
services.fail2ban = {

View file

@ -43,6 +43,7 @@ in
imports = [
./memos.nix
./minecraft.nix
./morphos.nix
./openobserve.nix
./pihole.nix
./qbittorrent.nix

40
system/podman/morphos.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, lib, ... }:
let
name = "morphos";
podman = config.profile.podman;
inherit (lib) mkIf;
ip = "10.88.88.2";
image = "ghcr.io/danvergara/morphos-server:latest";
domain = "${name}.tigor.web.id";
user = config.profile.user;
uid = toString user.uid;
gid = toString user.gid;
in
{
config = mkIf (podman.enable && podman.${name}.enable) {
services.caddy.virtualHosts.${domain}.extraConfig = ''
reverse_proxy ${ip}:8080
'';
virtualisation.oci-containers.containers.${name} = {
inherit image;
hostname = name;
autoStart = true;
user = "${uid}:${gid}";
environment = {
TZ = "Asia/Jakarta";
};
volumes = [
"/tmp:/tmp"
];
extraOptions = [
"--network=podman"
"--ip=${ip}"
];
labels = {
"io.containers.autoupdate" = "registry";
};
};
};
}