nix-config/modules/home/nixpkgs/default.nix

21 lines
499 B
Nix
Raw Normal View History

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 = {
2024-06-18 15:13:42 +02:00
GITHUB_TOKEN = ''$(cat ${lib.escapeShellArg config.age.secrets."github/token".path})'';
GITHUB_API_TOKEN = ''$(cat ${lib.escapeShellArg config.age.secrets."github/token".path})'';
2023-05-17 20:20:08 +02:00
};
};
}