mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
17 lines
415 B
Nix
17 lines
415 B
Nix
{ lib, config, nixosConfig ? config, ... }:
|
|
let
|
|
moduleName = "hexchat";
|
|
inherit (nixosConfig.repo.secrets.common.irc) irc_nick1;
|
|
in
|
|
{
|
|
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} and settings";
|
|
config = lib.mkIf config.swarselmodules.${moduleName} {
|
|
programs.${moduleName} = {
|
|
enable = true;
|
|
settings = {
|
|
inherit irc_nick1;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|