nix-config/modules/home/nixpkgs/default.nix
Bruno BELANYI 468eaa9ed4
All checks were successful
ci/woodpecker/push/check Pipeline was successful
home: nixpkgs: use 'escapeShellArg'
2024-06-18 13:13:42 +00:00

21 lines
499 B
Nix

{ 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 ${lib.escapeShellArg config.age.secrets."github/token".path})'';
GITHUB_API_TOKEN = ''$(cat ${lib.escapeShellArg config.age.secrets."github/token".path})'';
};
};
}