[WIP] Several things

- Doom emacs `tree-sitter`
- CI for `beebox`
- PGtk Emacs
This commit is contained in:
Andrea Ciceri 2022-10-18 15:52:13 +02:00
parent b70881fad3
commit a9d14ae3d2
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
10 changed files with 75 additions and 33 deletions

View file

@ -65,6 +65,26 @@ jobs:
- run: nix --print-build-logs --verbose build --allow-import-from-derivation .#nixosConfigurations.hs.config.system.build.toplevel
build-beebox:
if: ${{ always() }}
needs: check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
max-jobs = 10
- uses: cachix/cachix-action@v10
with:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --print-build-logs --verbose build --allow-import-from-derivation .#nixosConfigurations.beebox.config.system.build.toplevel
build-pbp:
if: ${{ always() }}
needs: check

View file

@ -86,3 +86,8 @@
(setq +format-on-save-enabled-modes
'(not latex-mode))
(setq org-roam-directory (file-truename "~/roam"))
(org-roam-db-autosync-mode)
(setq +tree-sitter-hl-enabled-modes t)

View file

@ -152,9 +152,9 @@
;;lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c
nix ; I hereby declare "nix geht mehr!"
(nix +tree-sitter) ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
org ; organize your plain life in plain text
(org +roam2) ; organize your plain life in plain text
;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional

View file

@ -51,3 +51,4 @@
(package! dirvish)
(package! git-auto-commit-mode)

View file

@ -1,13 +1,21 @@
{
pkgs,
config,
lib,
...
}: {
programs.emacs.enable = true;
programs.emacs = {
enable = true;
package = lib.mkForce (pkgs.emacs28NativeComp.override {
# FIXME `mkForce` shouldn't be needed
nativeComp = true;
withSQLite3 = true;
withGTK3 = true;
});
};
programs.doom-emacs = {
enable = true;
package = pkgs.emacs28NativeComp;
doomPrivateDir = ../../doom.d;
};

View file

@ -0,0 +1,32 @@
{
config,
pkgs,
...
}: {
programs.nix-index = {
enable = true;
enableZshIntegration = true;
};
systemd.user.services.nix-index-update = {
Unit = {Description = "Update nix-index";};
Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${pkgs.nix-index}/bin/nix-index --path ${config.programs.password-store.settings.PASSWORD_STORE_DIR}";
};
};
systemd.user.timers.nix-index-update = {
Unit = {Description = "Update nix-index";};
Timer = {
Unit = "nix-index-update.service";
OnCalendar = "OnCalendar=monday *-*-* 10:00:00";
Persistent = true;
};
Install = {WantedBy = ["timers.target"];};
};
}

View file

@ -80,32 +80,5 @@
'';
};
programs.nix-index = {
enable = true;
enableZshIntegration = true;
};
systemd.user.services.nix-index-update = {
Unit = {Description = "Update nix-index";};
Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${pkgs.nix-index}/bin/nix-index --path ${config.programs.password-store.settings.PASSWORD_STORE_DIR}";
};
};
systemd.user.timers.nix-index-update = {
Unit = {Description = "Update nix-index";};
Timer = {
Unit = "nix-index-update.service";
OnCalendar = "OnCalendar=monday *-*-* 10:00:00";
Persistent = true;
};
Install = {WantedBy = ["timers.target"];};
};
home.packages = with pkgs; [thefuck];
home.packages = with pkgs; [thefuck htop-vim dig.dnsutils];
}

View file

@ -16,6 +16,7 @@
"xfce"
"battery"
"printing"
"tree-sitter-grammars"
];
ccr.enable = true;

View file

@ -13,7 +13,7 @@
modules = lib.mkOption {
type = with lib.types; listOf str;
default = ["shell" "git"];
default = ["shell" "git" "nix-index"];
};
packages = lib.mkOption {

View file

@ -16,11 +16,13 @@
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M="
"aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
substituters = [
"https://cache.iog.io"
"https://mlabs.cachix.org"
"https://aciceri-fleet.cachix.org"
"https://nix-community.cachix.org"
];
};