kubo service configuration + npins update to have both nixpkgs-26.05 and nixpkgs-unstable

This commit is contained in:
boyreau 2026-08-30 18:19:33 +02:00
commit 031a556014
5 changed files with 56 additions and 6 deletions

View file

@ -18,6 +18,7 @@ in
/etc/nixos/modules/tailscale.nix /etc/nixos/modules/tailscale.nix
/etc/nixos/modules/backup /etc/nixos/modules/backup
/etc/nixos/modules/ssh.nix /etc/nixos/modules/ssh.nix
/etc/nixos/modules/ipfs.nix
# machine-specific config # machine-specific config
./bootloader.nix ./bootloader.nix

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, config, ... }:
let let
source = import /etc/nixos/npins; source = import /etc/nixos/npins;
home-manager = source.home-manager; home-manager = source.home-manager;
@ -18,6 +18,7 @@ in
"video" "video"
"network" "network"
"docker" "docker"
config.services.kubo.group
]; ];
packages = [ pkgs.home-manager ]; packages = [ pkgs.home-manager ];
shell = pkgs.bash; shell = pkgs.bash;

27
modules/ipfs.nix Normal file
View file

@ -0,0 +1,27 @@
let
npins = import /etc/nixos/npins/default.nix;
pkgs-unstable = import npins.nixpkgs-unstable { };
in
{
warnings = [
"Ensure you added your primary user to the ipfs group !!!"
];
services.kubo = {
autoMount = true;
package = pkgs-unstable.kubo;
enable = true;
settings = {
Addresses.API = "/ip4/127.0.0.1/tcp/5001";
Discovery.MDNS.Enabled = false;
Plugins.Plugins.telemetry.Config.Mode = "off";
Plugins.Plugins.telemetry.Disabled = "true";
Swarm.DisableBandwidthMetrics = "true";
Datastore.StorageMax = "10G";
};
};
# Firewall
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
4001
];
}

View file

@ -38,10 +38,31 @@
"url": "https://github.com/xddxdd/nix-cachyos-kernel/archive/c9a4fc582b213bfc8cc9068302c7ad72abc36c7c.tar.gz", "url": "https://github.com/xddxdd/nix-cachyos-kernel/archive/c9a4fc582b213bfc8cc9068302c7ad72abc36c7c.tar.gz",
"hash": "sha256-k6HoyMr33AtlCxdxEmq15uLbwosj1KNxN/H2DYlFrwg=" "hash": "sha256-k6HoyMr33AtlCxdxEmq15uLbwosj1KNxN/H2DYlFrwg="
}, },
"nixpkgs": { "nixpkgs-26.05": {
"type": "Tarball", "type": "Git",
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.2462.e8210c649915/nixexprs.tar.xz", "repository": {
"hash": "sha256-2khLdWQw7Z9psJUEORs8dKPwivbhLbiBTas81jEZtJs=" "type": "GitHub",
"owner": "nixos",
"repo": "nixpkgs"
},
"branch": "nixos-26.05",
"submodules": false,
"revision": "062346a6d85bc4b49dfaa61c986e9c5be21217d1",
"url": "https://github.com/nixos/nixpkgs/archive/062346a6d85bc4b49dfaa61c986e9c5be21217d1.tar.gz",
"hash": "sha256-BZWCi9ZRJiARTuKTbbtvFTj7t1TK4G3UEckT3HyNfRg="
},
"nixpkgs-unstable": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "nixos",
"repo": "nixpkgs"
},
"branch": "nixos-unstable",
"submodules": false,
"revision": "56c02bc00adcf003215cc4bd996d6efaf4cff188",
"url": "https://github.com/nixos/nixpkgs/archive/56c02bc00adcf003215cc4bd996d6efaf4cff188.tar.gz",
"hash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30="
}, },
"sops-nix": { "sops-nix": {
"type": "Git", "type": "Git",

View file

@ -14,7 +14,7 @@ let
]; ];
}; };
}; };
pkgs = import sources.nixpkgs { pkgs = import sources."nixpkgs-26.05" {
overlays = [ jailOverlay ]; overlays = [ jailOverlay ];
}; };
in in