home: add nixpkgs
All checks were successful
ci/woodpecker/push/check Pipeline was successful

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 ./mpv
./nix ./nix
./nix-index ./nix-index
./nixpkgs
./nm-applet ./nm-applet
./packages ./packages
./pager ./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}")'';
};
};
}