From 15aab147594e221461a74a9212c7dbed8c89315c Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 2 Mar 2023 11:01:40 +0300 Subject: [PATCH] machines: add local discovery option --- machines/asus-gl553vd/default.nix | 7 ++++++- machines/home/default.nix | 7 ++++++- machines/modules/ipfs.nix | 7 ------- 3 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 machines/modules/ipfs.nix diff --git a/machines/asus-gl553vd/default.nix b/machines/asus-gl553vd/default.nix index ed492f1..f0f3e8d 100644 --- a/machines/asus-gl553vd/default.nix +++ b/machines/asus-gl553vd/default.nix @@ -10,7 +10,6 @@ ../modules/fonts.nix ../modules/gnupg.nix ../modules/nix.nix - ../modules/ipfs.nix ../modules/garbage-collector.nix ../modules/networking.secret.nix ]; @@ -60,5 +59,11 @@ # Enable the Docker virtualisation.docker.enable = true; + # Enable ipfs + services.kubo = { + enable = true; + localDiscovery = true; + }; + local.nix.enableMyRegistry = true; } diff --git a/machines/home/default.nix b/machines/home/default.nix index 880e8d0..3f5d42a 100644 --- a/machines/home/default.nix +++ b/machines/home/default.nix @@ -10,7 +10,6 @@ ../modules/fonts.nix ../modules/gnupg.nix ../modules/nix.nix - ../modules/ipfs.nix ../modules/garbage-collector.nix ../modules/networking.secret.nix ]; @@ -79,5 +78,11 @@ # Enable the Docker virtualisation.docker.enable = true; + # Enable ipfs + services.kubo = { + enable = true; + localDiscovery = true; + }; + local.nix.enableMyRegistry = true; } diff --git a/machines/modules/ipfs.nix b/machines/modules/ipfs.nix deleted file mode 100644 index d610684..0000000 --- a/machines/modules/ipfs.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ ... }: - -{ - services.kubo = { - enable = true; - }; -}