Fixes for emacs on android
This commit is contained in:
parent
6e8277b6be
commit
240a2585fa
4 changed files with 32 additions and 12 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
{username, ...}: {
|
{username, ...}: {
|
||||||
programs.git = {
|
imports = [
|
||||||
enable = true;
|
./git.nix
|
||||||
userName = "Aleksandr Lebedev";
|
];
|
||||||
userEmail = "alex.lebedev2003@icloud.com";
|
|
||||||
extraConfig = {
|
|
||||||
credential.helper = "manager"; #"${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret";
|
|
||||||
credential."https://github.com".username = "KyleKrein";
|
|
||||||
credential.credentialStore = "plaintext";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
nixos/homes/kylekrein/git.nix
Normal file
14
nixos/homes/kylekrein/git.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Aleksandr Lebedev";
|
||||||
|
userEmail = "alex.lebedev2003@icloud.com";
|
||||||
|
extraConfig = {
|
||||||
|
credential.helper = "manager"; #"${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret";
|
||||||
|
# credential."https://github.com".username = "KyleKrein";
|
||||||
|
# credential.credentialStore = "plaintext";
|
||||||
|
#
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,17 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#../../modules/nixvim
|
#../../modules/nixvim
|
||||||
|
../../homes/kylekrein/git.nix
|
||||||
];
|
];
|
||||||
|
home.activation = {
|
||||||
|
copyFont = let
|
||||||
|
font_src = "${pkgs.nerd-fonts.fira-code}/share/fonts/truetype/NerdFonts/FiraCode/FiraCodeNerdFont-Regular.ttf";
|
||||||
|
font_dst = "${config.home.homeDirectory}/.termux/font.ttf";
|
||||||
|
in lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
( test ! -e "${font_dst}" || test $(sha1sum "${font_src}"|cut -d' ' -f1 ) != $(sha1sum "${font_dst}" |cut -d' ' -f1)) && $DRY_RUN_CMD install $VERBOSE_ARG -D "${font_src}" "${font_dst}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
}: {
|
}: {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
git
|
git
|
||||||
|
gzip
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
gnutar
|
||||||
libvterm
|
libvterm
|
||||||
libtool
|
libtool
|
||||||
emacs
|
emacs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue