Splitted packages to fix issue with emacs on android
This commit is contained in:
parent
e1a5aa5a41
commit
6e8277b6be
3 changed files with 69 additions and 53 deletions
|
|
@ -4,20 +4,25 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/emacs
|
|
||||||
];
|
];
|
||||||
environment.packages = with pkgs; [
|
environment.packages = with pkgs;
|
||||||
neovim
|
[
|
||||||
git
|
neovim
|
||||||
fastfetch
|
git
|
||||||
asciiquarium
|
fastfetch
|
||||||
cmatrix
|
asciiquarium
|
||||||
inputs.neovim.packages.aarch64-linux.default
|
cmatrix
|
||||||
|
inputs.neovim.packages.aarch64-linux.default
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "droid-switch" ''
|
(pkgs.writeShellScriptBin "droid-switch" ''
|
||||||
nix-on-droid switch --flake /data/data/com.termux.nix/files/home/nixos-config
|
nix-on-droid switch --flake /data/data/com.termux.nix/files/home/nixos-config
|
||||||
'')
|
'')
|
||||||
];
|
]
|
||||||
|
++ (import ../../modules/emacs/packages.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
emacs = pkgs.emacs;
|
||||||
|
})
|
||||||
|
.packages;
|
||||||
home-manager = {
|
home-manager = {
|
||||||
config = ./home.nix;
|
config = ./home.nix;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
|
||||||
|
|
@ -5,53 +5,19 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
emacs = pkgs.emacs;#pkgs.emacs-pgtk;
|
emacs = pkgs.emacs; #pkgs.emacs-pgtk;
|
||||||
in {
|
in {
|
||||||
services.emacs.enable = true;
|
services.emacs.enable = true;
|
||||||
services.emacs.startWithGraphical = true;
|
services.emacs.startWithGraphical = true;
|
||||||
services.emacs.install = true;
|
services.emacs.install = true;
|
||||||
services.emacs.package = emacs; #pkgs.emacs-unstable
|
services.emacs.package = emacs; #pkgs.emacs-unstable
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages =
|
||||||
git
|
(import ./packages.nix {
|
||||||
libvterm
|
inherit pkgs;
|
||||||
libtool
|
inherit emacs;
|
||||||
emacs
|
})
|
||||||
ripgrep
|
.packages;
|
||||||
fd
|
|
||||||
coreutils
|
|
||||||
clang
|
|
||||||
cmake
|
|
||||||
nixfmt-rfc-style
|
|
||||||
markdownlint-cli
|
|
||||||
pandoc
|
|
||||||
gnumake
|
|
||||||
python3
|
|
||||||
isort
|
|
||||||
pipenv
|
|
||||||
python313Packages.nose2
|
|
||||||
python313Packages.pytest
|
|
||||||
graphviz
|
|
||||||
shellcheck
|
|
||||||
nodejs_23
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "doom-install" ''
|
|
||||||
${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
|
|
||||||
${pkgs.git}/bin/git clone https://github.com/KyleKrein/doomemacs.git ~/.doom.d
|
|
||||||
~/.emacs.d/bin/doom install
|
|
||||||
~/.emacs.d/bin/doom sync
|
|
||||||
pidof emacs || ${emacs}/bin/emacs --daemon &
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "doom-sync" ''
|
|
||||||
~/.emacs.d/bin/doom sync --aot --force
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "doom-upgrade" ''
|
|
||||||
~/.emacs.d/bin/doom upgrade
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "doom" ''
|
|
||||||
${emacs}/bin/emacsclient -c -a "${emacs}/bin/emacs"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.emacs-overlay.overlays.default
|
inputs.emacs-overlay.overlays.default
|
||||||
];
|
];
|
||||||
|
|
|
||||||
45
nixos/modules/emacs/packages.nix
Normal file
45
nixos/modules/emacs/packages.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
emacs,
|
||||||
|
}: {
|
||||||
|
packages = with pkgs; [
|
||||||
|
git
|
||||||
|
libvterm
|
||||||
|
libtool
|
||||||
|
emacs
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
coreutils
|
||||||
|
clang
|
||||||
|
cmake
|
||||||
|
nixfmt-rfc-style
|
||||||
|
markdownlint-cli
|
||||||
|
pandoc
|
||||||
|
gnumake
|
||||||
|
python3
|
||||||
|
isort
|
||||||
|
pipenv
|
||||||
|
python313Packages.nose2
|
||||||
|
python313Packages.pytest
|
||||||
|
graphviz
|
||||||
|
shellcheck
|
||||||
|
nodejs_23
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "doom-install" ''
|
||||||
|
${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
|
||||||
|
${pkgs.git}/bin/git clone https://github.com/KyleKrein/doomemacs.git ~/.doom.d
|
||||||
|
~/.emacs.d/bin/doom install
|
||||||
|
~/.emacs.d/bin/doom sync
|
||||||
|
pidof emacs || ${emacs}/bin/emacs --daemon &
|
||||||
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "doom-sync" ''
|
||||||
|
~/.emacs.d/bin/doom sync --aot --force
|
||||||
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "doom-upgrade" ''
|
||||||
|
~/.emacs.d/bin/doom upgrade
|
||||||
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "doom" ''
|
||||||
|
${emacs}/bin/emacsclient -c -a "${emacs}/bin/emacs"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue