Sops-Nix
This commit is contained in:
7
home-modules/programming/node.nix
Normal file
7
home-modules/programming/node.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, lib, host, ... }:
|
||||
lib.mkIf (host != "NxACE")
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
nodejs
|
||||
];
|
||||
}
|
||||
19
home-modules/programming/python.nix
Executable file
19
home-modules/programming/python.nix
Executable file
@@ -0,0 +1,19 @@
|
||||
{ config, pkgs, lib, user, ... }:
|
||||
let
|
||||
python-with-packages = pkgs.python3.withPackages (pp: with pp; [
|
||||
ipython
|
||||
pipdeptree
|
||||
requests
|
||||
google google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
||||
]);
|
||||
in
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
home.packages = [
|
||||
python-with-packages
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
PYTHONPATH = "${python-with-packages}/${python-with-packages.sitePackages}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user