System/modules/linux/services/ipfs.nix

14 lines
342 B
Nix
Raw Normal View History

2022-11-22 22:16:10 -05:00
{ 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" ];
})
];
}