From 393efdc189031f9a709b7e3c14244211be36741c Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Wed, 19 Oct 2022 20:12:36 +0200 Subject: [PATCH] ADD docker directory ADD whoogle service and add service to atlanticaweb server FIX i3 config : launch guake and remove alacritty --- docker/whoogle.nix | 20 ++++++++++++++++++++ hosts/dell-5590/nixos/configuration.nix | 1 + hosts/dell-5590/nixpkgs/configs/i3config | 1 - hosts/web/webserver.nix | 3 +++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 docker/whoogle.nix diff --git a/docker/whoogle.nix b/docker/whoogle.nix new file mode 100644 index 0000000..f00e9b4 --- /dev/null +++ b/docker/whoogle.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: +let + host = "atlanticaweb.fr"; +in +{ + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + }; + whoogle = { + backend = "podman"; + containers.whoogle-search = { + image = "benbusby/whoogle-search"; + autoStart = true; + ports = [ "5000:5000" ]; #server locahost : docker localhost + }; + }; + }; +} diff --git a/hosts/dell-5590/nixos/configuration.nix b/hosts/dell-5590/nixos/configuration.nix index 6cae867..6a9d020 100644 --- a/hosts/dell-5590/nixos/configuration.nix +++ b/hosts/dell-5590/nixos/configuration.nix @@ -12,6 +12,7 @@ ./services.nix ./packages.nix ../modules/prometheus-node.nix + ./appsmith.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/hosts/dell-5590/nixpkgs/configs/i3config b/hosts/dell-5590/nixpkgs/configs/i3config index c8083bc..c65ca73 100644 --- a/hosts/dell-5590/nixpkgs/configs/i3config +++ b/hosts/dell-5590/nixpkgs/configs/i3config @@ -147,7 +147,6 @@ exec --no-startup-id sublime-music exec --no-startup-id guake exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;' #exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;' -exec --no-startup-id i3-msg 'workspace $ws1; exec alacritty;' exec --no-startup-id i3-msg 'workspace $ws1; exec ferdi;' exec --no-startup-id i3-msg 'workspace $ws2; exec thunderbird;' exec --no-startup-id i3-msg 'workspace $ws3; exec firefox;' diff --git a/hosts/web/webserver.nix b/hosts/web/webserver.nix index f1f6a49..28f0fec 100644 --- a/hosts/web/webserver.nix +++ b/hosts/web/webserver.nix @@ -16,6 +16,9 @@ in encode gzip reverse_proxy http://localhost:3001 } + https://search.atlanticaweb.fr { + reverse_proxy http://localhost:5000 + } atlanticaweb.fr { root * /srv/www/atlanticaweb.fr encode gzip zstd