Created
June 18, 2020 17:29
-
-
Save mi-skam/2e7e81ff023deae764484ce7a94c1f3b to your computer and use it in GitHub Desktop.
WSL2: Debian - home-manager configuration
This file contains hidden or 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
{ config, pkgs, ... }: | |
let | |
gitCredentialManager = pkgs.writeScriptBin "git-credential-manager" '' | |
#!${pkgs.stdenv.shell} | |
exec /windows/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe $@ | |
''; | |
in | |
{ | |
# Let Home Manager install and manage itself. | |
programs.home-manager.enable = true; | |
programs = { | |
bat.enable = true; | |
emacs = { | |
enable = true; | |
}; | |
firefox = { | |
enable = true; | |
}; | |
git = { | |
enable = true; | |
userName = "mi-skam"; | |
userEmail = "[email protected]"; | |
extraConfig = { | |
credential = { helper = "${gitCredentialManager}/bin/git-credential-manager"; }; | |
}; | |
}; | |
neovim = { | |
enable = true; | |
vimAlias = true; | |
plugins = with pkgs.vimPlugins; [ | |
vim-nix | |
]; | |
extraConfig = '' | |
set number | |
''; | |
}; | |
}; | |
home.packages = with pkgs; [ | |
cacert fd ripgrep tldr | |
]; | |
# Home Manager needs a bit of information about you and the | |
# paths it should manage. | |
home.username = "plumps"; | |
home.homeDirectory = "/home/plumps"; | |
# This value determines the Home Manager release that your | |
# configuration is compatible with. This helps avoid breakage | |
# when a new Home Manager release introduces backwards | |
# incompatible changes. | |
# | |
# You can update Home Manager without changing this value. See | |
# the Home Manager release notes for a list of state version | |
# changes in each release. | |
home.stateVersion = "20.09"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment