home: add nixpkgs
ci/woodpecker/push/check Pipeline was successful Details

This commit is contained in:
Bruno BELANYI 2023-05-17 19:20:08 +01:00
parent b570cf227c
commit b80053d786
2 changed files with 20 additions and 0 deletions

View File

@ -25,6 +25,7 @@
./mpv
./nix
./nix-index
./nixpkgs
./nm-applet
./packages
./pager

19
home/nixpkgs/default.nix Normal file
View File

@ -0,0 +1,19 @@
{ 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}")'';
};
};
}