Things
- `git-auto-commit-mode` for Emacs - different ZSH prompt for Emacs TRAMP mode - CI test
This commit is contained in:
parent
d99fd6a3e6
commit
0db5318ffe
3 changed files with 10 additions and 1 deletions
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
|
@ -10,6 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
- run: |
|
||||||
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
|
||||||
- uses: cachix/install-nix-action@v17
|
- uses: cachix/install-nix-action@v17
|
||||||
with:
|
with:
|
||||||
extra_nix_config: >
|
extra_nix_config: >
|
||||||
|
@ -37,5 +40,6 @@ jobs:
|
||||||
- run: echo "hello" # nix -Lv flake check
|
- run: echo "hello" # nix -Lv flake check
|
||||||
- run: cat flake.nix
|
- run: cat flake.nix
|
||||||
- run: nix -Lv build ".#nixosConfigurations.pc.config.system.build.toplevel"
|
- run: nix -Lv build ".#nixosConfigurations.pc.config.system.build.toplevel"
|
||||||
|
- run: nix -Lv build ".#nixosConfigurations.pbp.config.system.build.toplevel" --option system aarch64-linux
|
||||||
- run: nix -Lv build ".#nixosConfigurations.hs.config.system.build.toplevel"
|
- run: nix -Lv build ".#nixosConfigurations.hs.config.system.build.toplevel"
|
||||||
- run: nix -Lv develop -c echo OK
|
- run: nix -Lv develop -c echo OK
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
myEmacs = pkgs.emacsPgtkNativeComp;
|
# TODO: when `emcasPgtkNativeComp` will build on aarch64 re-use it
|
||||||
|
myEmacs = with pkgs; if stdenv.hostPlatform.isAarch64 then emacs else emacsPgtkNativeComp;
|
||||||
emacsWithPackages = (pkgs.emacsPackagesFor myEmacs).emacsWithPackages;
|
emacsWithPackages = (pkgs.emacsPackagesFor myEmacs).emacsWithPackages;
|
||||||
in
|
in
|
||||||
emacsWithPackages (
|
emacsWithPackages (
|
||||||
|
@ -23,6 +24,7 @@ emacsWithPackages (
|
||||||
evil-collection
|
evil-collection
|
||||||
evil-tree-edit
|
evil-tree-edit
|
||||||
fira-code-mode
|
fira-code-mode
|
||||||
|
git-auto-commit-mode
|
||||||
go-translate
|
go-translate
|
||||||
good-scroll
|
good-scroll
|
||||||
haskell-mode
|
haskell-mode
|
||||||
|
|
|
@ -60,6 +60,9 @@
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin
|
if pkgs.stdenv.hostPlatform.isDarwin
|
||||||
then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi"
|
then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi"
|
||||||
else "";
|
else "";
|
||||||
|
envExtra = ''
|
||||||
|
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' # for Emacs TRAMP mode
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.command-not-found.enable = true;
|
programs.command-not-found.enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue