Guest User

Untitled

a guest
Feb 6th, 2020
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { config, pkgs, home, ... }:
  2.  
  3. with import <nixpkgs> {};
  4. with lib;
  5.  
  6. let
  7. all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
  8. ca-bundle_crt = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
  9. # currently unused
  10. # homeNixDir = builtins.toPath (builtins.getEnv "HOME") + (".config/nixpkgs/");
  11. # myNixEnv = builtins.getEnv "MY_NIX_ENV";
  12. # environmentSpecificNixFileName = if (myNixEnv == "WORK") then "work.nix" else throw "only WORK environment currently supported" ;
  13. # environmentSpecificNixFile = homeNixDir + ("work.nix");
  14. # coreNixPrograms = import ./core.nix;
  15. # currentEnvironment = import environmentSpecificNixFile;
  16. in
  17. {
  18. imports = [ ./core.nix ];
  19. nixpkgs.config = {
  20. allowUnfree = true;
  21. allowBroken = true;
  22. };
  23.  
  24. programs = {
  25. # Let Home Manager install and manage itself.
  26. home-manager.enable = true;
  27. # move to core.nix
  28. git = {
  29. enable = true;
  30. userName = "first last";
  31. userEmail = "email@email.com"; # TODO make this environment specific and based on fullName/etc stuff
  32. extraConfig = {
  33. http = {
  34. sslCAinfo = "${ca-bundle_crt}";
  35. sslverify = true;
  36. };
  37. };
  38. };
  39. };
  40. # // currentEnvironment.programs; # not needed because import will merge them?
  41. }
RAW Paste Data