dotfiles/modules/programs/hub.nix

28 lines
373 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.hub;
in
{
options.my.programs.hub = {
enable = mkOption {
default = true;
type = types.bool;
example = false;
};
};
config = mkIf cfg.enable {
age.secrets = {
github = {
file = ../../secrets/github.age;
owner = "1000";
};
};
};
}