host: use unstable ipfs

move ipfs to shared config
This commit is contained in:
Dmitriy Pleshevskiy 2023-03-31 17:39:02 +03:00
parent c6deb6543b
commit 517094a3f8
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
3 changed files with 16 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = [
@ -11,6 +11,7 @@
../../shared/gnupg.nix ../../shared/gnupg.nix
../../shared/garbage-collector.nix ../../shared/garbage-collector.nix
../../shared/networking.secret.nix ../../shared/networking.secret.nix
../../shared/ipfs.nix
]; ];
# Use latest kernel # Use latest kernel
@ -58,13 +59,6 @@
# Enable the Docker # Enable the Docker
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
# Enable ipfs
services.kubo = {
enable = true;
localDiscovery = true;
enableGC = true;
};
# Additional nix configs # Additional nix configs
local.nix.enableMyRegistry = true; local.nix.enableMyRegistry = true;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = [
@ -11,6 +11,7 @@
../../shared/gnupg.nix ../../shared/gnupg.nix
../../shared/garbage-collector.nix ../../shared/garbage-collector.nix
../../shared/networking.secret.nix ../../shared/networking.secret.nix
../../shared/ipfs.nix
]; ];
# Configure kernel # Configure kernel
@ -83,13 +84,6 @@
# Enable the Docker # Enable the Docker
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
# Enable ipfs
services.kubo = {
enable = true;
localDiscovery = true;
enableGC = true;
};
# Additional nix configs # Additional nix configs
local.nix.enableMyRegistry = true; local.nix.enableMyRegistry = true;

12
nixos/shared/ipfs.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
# Enable ipfs
services.kubo = {
enable = true;
localDiscovery = true;
enableGC = true;
# it doesn't work in stable
package = pkgs.unstable.kubo;
};
}