427 current 2025-06-10 01:09:14 25.05.20250424.f771eb4 6.12.24 *

This commit is contained in:
2025-06-10 01:09:35 -04:00
parent 1140744966
commit 034af03888
3 changed files with 168 additions and 9 deletions

38
flake.lock generated
View File

@@ -43,6 +43,27 @@
"type": "github" "type": "github"
} }
}, },
"emacs-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1749521434,
"narHash": "sha256-iYuO2A6EeCk3yt7i+u5BbKpYUKBWZrWwEvyMzx7JL8o=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "a1fc4a1252cf8f730d39a6570d36b9b95b478cd5",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -100,6 +121,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": {
"locked": {
"lastModified": 1749173751,
"narHash": "sha256-ENY3y3v6S9ZmLDDLI3LUT8MXmfXg/fSt2eA4GCnMVCE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ed29f002b6d6e5e7e32590deb065c34a31dc3e91",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1745526057, "lastModified": 1745526057,
@@ -119,6 +156,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }

View File

@@ -8,6 +8,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@@ -15,13 +20,16 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
agenix, agenix,
emacs-overlay,
} @ inputs: let } @ inputs: let
baseModule = { baseModule = {
# imports = [ # imports = [
# home-manager.nixosModules.default # home-manager.nixosModules.default
# ]; # ];
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
nixpkgs.overlays = []; nixpkgs.overlays = [
inputs.emacs-overlay.overlay
];
}; };
in { in {
nixosConfigurations.thonkpad = nixpkgs.lib.nixosSystem { nixosConfigurations.thonkpad = nixpkgs.lib.nixosSystem {

View File

@@ -1,15 +1,128 @@
{ {
config,
pkgs, pkgs,
callPackage, lib,
config,
... ...
}: { }: {
nixpkgs.overlays = [ programs.emacs = {
(import (builtins.fetchTarball { enable = true;
url = "https://github.com/nix-community/emacs-overlay/archive/master.tar.gz"; # package = pkgs.emacs-gtk;
})) # package = pkgs.emacs-unstable;
extraPackages = epkgs: [
epkgs.vterm
epkgs.irony
epkgs.irony-eldoc
epkgs.git-commit
];
};
services.emacs = {
enable = true;
package = pkgs.emacs-gtk;
startWithUserSession = "graphical";
socketActivation.enable = true;
# defaultEditor = true;
client = {
enable = true;
};
};
home.packages = with pkgs; [
(writeShellApplication {
name = "ec";
runtimeInputs = [emacs];
text = ''
emacsclient -c
'';
})
wordnet
w3m
## Emacs itself
binutils
coreutils
# 28.2 + native-comp
#((emacsPackagesFor pkgs.emacs-gtk).emacsWithPackages
#(epkgs: [ epkgs.vterm ]))
# necessary for vterm
cmake
gnumake
gcc
libtool
# emacsPackages.agda-input
emacsPackages.agda2-mode
emacsPackages.agda-editor-tactics
## Doom dependencies
(ripgrep.override {withPCRE2 = true;})
gnutls
# Performance booster
emacs-lsp-booster
## Treemacs
python3
## Optional dependencies
imagemagick
zstd
sqlite
# gcc # moved to environment.systemPackages
## Module dependencies
# :checkers spell
(aspellWithDicts (ds: with ds; [en en-computers en-science]))
# :tools editorconfig
editorconfig-core-c
# :tools lookup & :lang org +roam
sqlite
# :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium
# :app everywhere
xclip
xdotool
xorg.xwininfo
xorg.xprop
# :lang cc
# clang # moved to environment.systemPackages
# clang-tools
# github copilot
## Fonts
# dejavu_fonts
# source-serif-pro
# fira-code
# fira-code-symbols
# noto-fonts
# font-awesome
# iosevka
# iosevka-bin
# iosevka-comfy.comfy-wide
# iosevka-comfy.comfy-wide-duo
# iosevka-comfy.comfy-wide-fixed
# iosevka-comfy.comfy-wide-motion
# iosevka-comfy.comfy-wide-motion-duo
# iosevka-comfy.comfy-wide-motion-fixed
# modeline
nerd-font-patcher
# eaf
wmctrl
fd
aria
]; ];
services.emacs.package = pkgs.emacs-unstable; # fonts.fontconfig.enable = true;
services.emacs.enable = true; # Install doom emacs
# home.activation = {
# installDoomEmacs = lib.hm.dag.entryAfter ["installPhase"] ''
# if [ ! -d "${config.xdg.configHome}/emacs" ]; then
# ${pkgs.git}/bin/git clone --depth=1 --single-branch "https://github.com/doomemacs/doomemacs" "${config.xdg.configHome}/emacs"
# GIT_SSH_COMMAND = ${pkgs.openssh}/bin/ssh ${pkgs.git}/bin/git clone "git@github.com:Cajunvooodoo/Doom-Emacs-Config.git" "${config.xdg.configHome}/doom"
# fi
# '';
# };
} }