Skip to content

Instantly share code, notes, and snippets.

@jm-g
Created May 1, 2024 08:24
Show Gist options
  • Save jm-g/959156ad1628a37103676814152fb7b4 to your computer and use it in GitHub Desktop.
Save jm-g/959156ad1628a37103676814152fb7b4 to your computer and use it in GitHub Desktop.
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1708807242,
"narHash": "sha256-sRTRkhMD4delO/hPxxi+XwLqPn8BuUq6nnj4JqLwOu0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
{
description = "jmg's emacs setup";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let
pkgs = import nixpkgs { system = sys; };
in
{
packages.jmgCustomizedEmacs =
((pkgs.emacsPackagesFor pkgs.emacs29-gtk3).emacsWithPackages (epkgs: [
# sorted alphabetically by package name
epkgs.melpaPackages.chatgpt-shell
epkgs.nongnuPackages.cider
# epkgs.elpaPackages.consult
epkgs.elpaPackages.corfu # COmpletion in Region FUnction
epkgs.elpaPackages.diff-hl
epkgs.elpaPackages.diminish
epkgs.melpaStablePackages.elfeed
epkgs.melpaPackages.elfeed-org
epkgs.melpaPackages.emacsql
epkgs.melpaPackages.emacsql-sqlite-builtin
# epkgs.elpaPackages.embark
epkgs.elpaPackages.embark-consult
epkgs.melpaStablePackages.graphviz-dot-mode
epkgs.melpaStablePackages.goggles
epkgs.elpaPackages.hydra
epkgs.melpaStablePackages.ibuffer-project
epkgs.elpaPackages.jinx # requires libenchant2 or <nixos>.enchant
epkgs.melpaPackages.literate-calc-mode
epkgs.nongnuPackages.magit
epkgs.elpaPackages.marginalia
epkgs.nongnuPackages.markdown-mode
epkgs.elpaPackages.modus-themes
epkgs.mu4e
epkgs.nongnuPackages.nix-mode
epkgs.melpaStablePackages.nov # EPUB reader in emacs
epkgs.melpaPackages.ob-restclient
epkgs.elpaPackages.orderless
epkgs.elpaPackages.org
epkgs.nongnuPackages.org-contrib
epkgs.melpaStablePackages.org-roam
epkgs.org-attach-screenshot
epkgs.nongnuPackages.paredit
epkgs.elpaPackages.pulsar
epkgs.melpaPackages.restclient
epkgs.melpaPackages.restclient-jq
epkgs.nongnuPackages.scala-mode
epkgs.melpaStablePackages.sbt-mode
epkgs.elpaPackages.tmr
epkgs.elpaPackages.undo-tree
epkgs.elpaPackages.vertico
epkgs.elpaPackages.which-key
]));
packages.default = self.packages.${sys}.jmgCustomizedEmacs;
}
);
}
# Local Variables:
# compile-command: "nix shell --command emacs"
# End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment