Bruno BELANYI
6529bea6bb
All checks were successful
ci/woodpecker/push/check Pipeline was successful
I don't know what I was thinking exactly when I wrote this, but I
clearly hadn't tested it. We can't use `escapeShellArg` as we need to
expand the `$XDG_RUNTIME_DIR` variable used in those paths...
This reverts commit 468eaa9ed4
.
21 lines
465 B
Nix
21 lines
465 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}")'';
|
|
GITHUB_API_TOKEN = ''$(cat "${config.age.secrets."github/token".path}")'';
|
|
};
|
|
};
|
|
}
|