nix-config/home/nixpkgs/default.nix
Bruno BELANYI b80053d786
All checks were successful
ci/woodpecker/push/check Pipeline was successful
home: add nixpkgs
2023-05-22 15:53:59 +00:00

20 lines
384 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 "${config.age.secrets."github/token".path}")'';
};
};
}