System/modules/linux/services/ipfs.nix

14 lines
342 B
Nix

{ config, lib, pkgs, ... }:
with lib; {
config = mkMerge [
(mkIf config.nathan.services.kubo.enable {
services.kubo = { enable = true; };
})
(mkIf
(config.nathan.services.kubo.enable && config.nathan.config.installUser) {
users.users."${config.nathan.config.user}".extraGroups = [ "ipfs" ];
})
];
}