2024-04-24 12:43:17 +00:00
|
|
|
{
|
|
|
|
description = "My emacs";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils, emacs-overlay }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2024-05-25 23:38:25 +00:00
|
|
|
overlays =
|
|
|
|
[ emacs-overlay.overlays.emacs emacs-overlay.overlays.package ];
|
2024-04-24 12:43:17 +00:00
|
|
|
};
|
2024-05-25 23:38:25 +00:00
|
|
|
|
2024-04-24 12:43:17 +00:00
|
|
|
in {
|
|
|
|
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
|
|
|
config = ./init.org;
|
|
|
|
defaultInitFile = true;
|
|
|
|
alwaysEnsure = true;
|
|
|
|
alwaysTangle = true;
|
2024-05-25 23:38:25 +00:00
|
|
|
extraEmacsPackages = epkgs:
|
|
|
|
[ epkgs.treesit-grammars.with-all-grammars ];
|
2024-04-24 12:43:17 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|