Codroipo
This commit is contained in:
parent
3a60ed192d
commit
394208f8e7
6 changed files with 90 additions and 19 deletions
|
@ -1,21 +1,38 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
];
|
||||
perSystem = {
|
||||
config,
|
||||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
final,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
inherit (inputs.emacs-overlay.overlays.default pkgs pkgs) emacsPackagesFor;
|
||||
in {
|
||||
packages = {
|
||||
ccrEmacs =
|
||||
ccrEmacsWithoutPackages =
|
||||
(inputs'.emacs-overlay.packages.emacsPgtk.override {
|
||||
treeSitterPlugins = builtins.attrValues (builtins.removeAttrs pkgs.tree-sitter-grammars ["recurseForDerivations"]);
|
||||
treeSitterPlugins =
|
||||
builtins.attrValues
|
||||
(builtins.removeAttrs pkgs.tree-sitter-grammars ["recurseForDerivations"]);
|
||||
})
|
||||
.overrideAttrs (_: {
|
||||
name = "ccr-emacs-${inputs.emacs-src.rev}";
|
||||
src = inputs.emacs-src.outPath;
|
||||
version = inputs.emacs-src.rev;
|
||||
});
|
||||
ccrEmacs =
|
||||
(emacsPackagesFor self'.packages.ccrEmacsWithoutPackages).emacsWithPackages
|
||||
(import ./packages.nix pkgs);
|
||||
default = self'.packages.ccrEmacs;
|
||||
};
|
||||
|
||||
apps = {
|
||||
ccrEmacs.program = "${self'.packages.ccrEmacs}/bin/emacs";
|
||||
default = self'.apps.ccrEmacs;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
46
packages/packages.nix
Normal file
46
packages/packages.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
pkgs: epkgs:
|
||||
with epkgs; [
|
||||
meow
|
||||
ef-themes
|
||||
delight
|
||||
vertico
|
||||
marginalia
|
||||
all-the-icons
|
||||
all-the-icons-completion
|
||||
consult
|
||||
orderless
|
||||
embark
|
||||
embark-consult
|
||||
fira-code-mode
|
||||
vterm
|
||||
setup
|
||||
magit
|
||||
magit-delta
|
||||
diff-hl
|
||||
corfu
|
||||
corfu-terminal
|
||||
corfu-doc
|
||||
kind-icon
|
||||
cape
|
||||
which-key
|
||||
nix-mode
|
||||
envrc
|
||||
flycheck
|
||||
flycheck-posframe
|
||||
flycheck-inline
|
||||
consult-flycheck
|
||||
popper
|
||||
paredit
|
||||
tree-sitter
|
||||
tree-sitter-langs
|
||||
yaml-mode
|
||||
hl-todo
|
||||
markdown-mode
|
||||
haskell-mode
|
||||
terraform-mode
|
||||
org-roam-ui
|
||||
org-roam
|
||||
dirvish
|
||||
diredfl
|
||||
pdf-tools
|
||||
]
|
Reference in a new issue