Compare commits

..

No commits in common. "6ca0ea7b4160879577136784c8d0f156f3e1ab9f" and "e85dab951389f1ebafe28620b791aa6cd035deca" have entirely different histories.

13 changed files with 14 additions and 75 deletions

View file

@ -20,6 +20,9 @@ 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)$";
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot|footclient)$";
};
animations = {

View file

@ -1,12 +0,0 @@
{ 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,7 +2,6 @@
{
imports = [
./bitwarden.nix
./bruno.nix
./chromium.nix
./dbeaver.nix
./discord.nix

View file

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

View file

@ -59,11 +59,15 @@ 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,7 +15,6 @@ 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,7 +108,6 @@
};
};
foot.enable = lib.mkEnableOption "foot";
bruno.enable = lib.mkEnableOption "bruno";
};
programs = {

View file

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

View file

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

View file

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

View file

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

View file

@ -1,40 +0,0 @@
{ 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";
};
};
};
}