This commit is contained in:
parent
b570cf227c
commit
b80053d786
|
@ -25,6 +25,7 @@
|
|||
./mpv
|
||||
./nix
|
||||
./nix-index
|
||||
./nixpkgs
|
||||
./nm-applet
|
||||
./packages
|
||||
./pager
|
||||
|
|
19
home/nixpkgs/default.nix
Normal file
19
home/nixpkgs/default.nix
Normal 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}")'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue