From 74ecb9cb38fc8f6465abc71bd2efc9110537eaea Mon Sep 17 00:00:00 2001 From: rotterdam Date: Tue, 21 Mar 2023 12:42:26 -0300 Subject: [PATCH] virtualisation.nix and containerised.nix clash --- hosts/servers/alexandria/default.nix | 1 - hosts/servers/alexandria/virtualisation.nix | 72 --------------------- 2 files changed, 73 deletions(-) delete mode 100644 hosts/servers/alexandria/virtualisation.nix diff --git a/hosts/servers/alexandria/default.nix b/hosts/servers/alexandria/default.nix index e05f59c..a23b263 100644 --- a/hosts/servers/alexandria/default.nix +++ b/hosts/servers/alexandria/default.nix @@ -3,7 +3,6 @@ { imports = [ ./hardware-configuration.nix - ./virtualisation.nix ./containerised.nix ./variables.nix ./services.nix diff --git a/hosts/servers/alexandria/virtualisation.nix b/hosts/servers/alexandria/virtualisation.nix deleted file mode 100644 index c5a62d3..0000000 --- a/hosts/servers/alexandria/virtualisation.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ specialArgs, inputs, config, pkgs, lib, ... }: - -{ - virtualisation = { - docker.enable = true; - oci-containers = { - backend = "docker"; - containers = { - "cinny" = { - image = "ghcr.io/cinnyapp/cinny:latest"; - ports = [ - "${config.ports.cinny}:80" - ]; - extraOptions = [ - "--pull=always" - ]; - }; - "librespeed" = { - image = "lscr.io/linuxserver/librespeed:latest"; - environment = { - TZ = "America/Bahia"; - }; - ports = [ - "${config.ports.librespeed}:80" - ]; - extraOptions = [ - "--pull=always" - ]; - }; - "syncthing" = { - image = "lscr.io/linuxserver/syncthing:1.20.4"; - environment = { - PUID = "1000"; - PGID = "100"; - TZ = "America/Bahia"; - }; - volumes = [ - "/data/syncthing/config:/config" - "/data/syncthing/data1:/data1" - "/data/syncthing/data2:/data2" - "/data/syncthing/notes:/sync/notes" - ]; - ports = [ - "${config.ports.syncthing}:8384" - "22000:22000" - "21027:21027/udp" - ]; - extraOptions = [ - "--pull=always" - ]; - }; - "whoogle" = { - image = "benbusby/whoogle-search:latest"; - environment = { - HTTPS_ONLY = "1"; - WHOOGLE_CONFIG_DISABLE = "1"; - WHOOGLE_CONFIG_LANGUAGE = "lang_en"; - WHOOGLE_CONFIG_THEME = "system"; - WHOOGLE_CONFIG_VIEW_IMAGE = "1"; - WHOOGLE_CONFIG_GET_ONLY = "1"; - }; - ports = [ - "${config.ports.whoogle}:5000" - ]; - extraOptions = [ - "--pull=always" - ]; - }; - }; - }; - }; -}