2023-05-17 20:20:08 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.nixpkgs;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.home.nixpkgs = with lib; {
|
|
|
|
enable = mkEnableOption "nixpkgs configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
nixpkgs-review
|
|
|
|
];
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
GITHUB_TOKEN = ''$(cat "${config.age.secrets."github/token".path}")'';
|
2023-07-17 11:57:24 +02:00
|
|
|
GITHUB_API_TOKEN = ''$(cat "${config.age.secrets."github/token".path}")'';
|
2023-05-17 20:20:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|