Created
December 11, 2019 22:03
-
-
Save yuanwang-wf/12ea35a99a7190fd0ab3fd1b2c3d205a to your computer and use it in GitHub Desktop.
nix home
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
let home_directory = builtins.getEnv "HOME"; | |
log_directory = "${home_directory}/Library/Logs"; | |
tmp_directory = "/tmp"; | |
ca-bundle_crt = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; | |
lib = pkgs.stdenv.lib; | |
in rec { | |
nixpkgs = { | |
config = { | |
allowUnfree = true; | |
allowBroken = false; | |
allowUnsupportedSystem = false; | |
}; | |
}; | |
# Let Home Manager install and manage itself. | |
home.packages = [ | |
pkgs.ispell | |
pkgs.ffmpeg | |
pkgs.gifsicle | |
pkgs.htop | |
pkgs.nix-prefetch-git | |
pkgs.sass | |
pkgs.silver-searcher | |
pkgs.texlive.combined.scheme-full | |
pkgs.tree | |
pkgs.unzip | |
pkgs.lorri | |
]; | |
programs = { | |
home-manager = { | |
enable = true; | |
}; | |
direnv = { | |
enable = true; | |
}; | |
jq = { | |
enable = true; | |
}; | |
git = { | |
enable = true; | |
userName = "Yuan Wang"; | |
userEmail = "yuan.wang@workiva.com"; | |
aliases = { | |
co = "checkout"; | |
w = "status -sb"; | |
l = "log --graph --pretty=format:'%Cred%h%Creset" | |
+ " —%Cblue%d%Creset %s %Cgreen(%cr)%Creset'" | |
+ " --abbrev-commit --date=relative --show-notes=*"; | |
}; | |
extraConfig = { | |
branch.autosetupmerge = true; | |
commit.gpgsign = true; | |
github.user = "yuanwang-wf"; | |
credential.helper = "osxkeychain"; | |
"url \"git@github.com:\"".insteadOf = "https://github.com/"; | |
}; | |
}; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self: super: { | |
lorri = | |
let src = super.fetchFromGitHub { | |
owner = "target"; | |
repo = "lorri"; | |
# rev = "refs/heads/rolling-release"; | |
rev = "38eae3d487526ece9d1b8c9bb0d27fb45cf60816"; | |
sha256 = "11k9lxg9cv6dlxj4haydvw4dhcfyszwvx7jx9p24jadqsy9jmbj4"; | |
# date = 2019-08-20T10:44:02-04:00; | |
fetchSubmodules = true; | |
}; in | |
import src { inherit src; pkgs = self; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment