home: create 'modules/home' folder
Consolidating all modules under the same path, to clear out the top-level directory.
This commit is contained in:
parent
c856933803
commit
65a8f7c481
119 changed files with 2 additions and 2 deletions
20
modules/home/nixpkgs/default.nix
Normal file
20
modules/home/nixpkgs/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ 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}")'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue