[WIP] Several things
- Doom emacs `tree-sitter` - CI for `beebox` - PGtk Emacs
This commit is contained in:
parent
b70881fad3
commit
a9d14ae3d2
10 changed files with 75 additions and 33 deletions
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
|
@ -65,6 +65,26 @@ jobs:
|
||||||
|
|
||||||
- run: nix --print-build-logs --verbose build --allow-import-from-derivation .#nixosConfigurations.hs.config.system.build.toplevel
|
- 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:
|
build-pbp:
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
needs: check
|
needs: check
|
||||||
|
|
|
@ -86,3 +86,8 @@
|
||||||
|
|
||||||
(setq +format-on-save-enabled-modes
|
(setq +format-on-save-enabled-modes
|
||||||
'(not latex-mode))
|
'(not latex-mode))
|
||||||
|
|
||||||
|
(setq org-roam-directory (file-truename "~/roam"))
|
||||||
|
(org-roam-db-autosync-mode)
|
||||||
|
|
||||||
|
(setq +tree-sitter-hl-enabled-modes t)
|
||||||
|
|
|
@ -152,9 +152,9 @@
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
markdown ; writing docs for people to ignore
|
markdown ; writing docs for people to ignore
|
||||||
;;nim ; python + lisp at the speed of c
|
;;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
|
;;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
|
;;php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
|
|
|
@ -51,3 +51,4 @@
|
||||||
|
|
||||||
|
|
||||||
(package! dirvish)
|
(package! dirvish)
|
||||||
|
(package! git-auto-commit-mode)
|
||||||
|
|
|
@ -1,13 +1,21 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
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 = {
|
programs.doom-emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs28NativeComp;
|
|
||||||
doomPrivateDir = ../../doom.d;
|
doomPrivateDir = ../../doom.d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
32
hmModules/nix-index/default.nix
Normal file
32
hmModules/nix-index/default.nix
Normal 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"];};
|
||||||
|
};
|
||||||
|
}
|
|
@ -80,32 +80,5 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nix-index = {
|
home.packages = with pkgs; [thefuck htop-vim dig.dnsutils];
|
||||||
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];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"xfce"
|
"xfce"
|
||||||
"battery"
|
"battery"
|
||||||
"printing"
|
"printing"
|
||||||
|
"tree-sitter-grammars"
|
||||||
];
|
];
|
||||||
|
|
||||||
ccr.enable = true;
|
ccr.enable = true;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
modules = lib.mkOption {
|
modules = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
default = ["shell" "git"];
|
default = ["shell" "git" "nix-index"];
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = lib.mkOption {
|
packages = lib.mkOption {
|
||||||
|
|
|
@ -16,11 +16,13 @@
|
||||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||||
"mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M="
|
"mlabs.cachix.org-1:gStKdEqNKcrlSQw5iMW6wFCj3+b+1ASpBVY2SYuNV2M="
|
||||||
"aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI="
|
"aciceri-fleet.cachix.org-1:e1AodrwmzRWy0eQi3lUY71M41fp9Sq+UpuKKv705xsI="
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.iog.io"
|
"https://cache.iog.io"
|
||||||
"https://mlabs.cachix.org"
|
"https://mlabs.cachix.org"
|
||||||
"https://aciceri-fleet.cachix.org"
|
"https://aciceri-fleet.cachix.org"
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue