i3 workspace history fix

Changed files
+47 -25
home
+17
flake.lock
···
"type": "github"
}
},
+
"nixpkgs-stable": {
+
"locked": {
+
"lastModified": 1734323986,
+
"narHash": "sha256-m/lh6hYMIWDYHCAsn81CDAiXoT3gmxXI9J987W5tZrE=",
+
"owner": "NixOS",
+
"repo": "nixpkgs",
+
"rev": "394571358ce82dff7411395829aa6a3aad45b907",
+
"type": "github"
+
},
+
"original": {
+
"owner": "NixOS",
+
"ref": "nixos-24.11",
+
"repo": "nixpkgs",
+
"type": "github"
+
}
+
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1733940404,
···
"colour-guesser": "colour-guesser",
"deploy-rs": "deploy-rs",
"eilean": "eilean",
+
"emacs-overlay": "emacs-overlay",
"eon": "eon",
"fn06-website": "fn06-website",
"home-manager": "home-manager_2",
+2
flake.nix
···
hyperbib-eeg.url = "github:RyanGibb/hyperbib?ref=nixify";
nix-rpi5.url = "gitlab:vriska/nix-rpi5?ref=main";
nur.url = "github:nix-community/NUR/e9e77b7985ef9bdeca12a38523c63d47555cc89b";
+
emacs-overlay.url = "github:nix-community/emacs-overlay";
# deduplicate flake inputs
eilean.inputs.nixpkgs.follows = "nixpkgs";
···
hyperbib-eeg.inputs.nixpkgs.follows = "nixpkgs";
nix-rpi5.inputs.nixpkgs.follows = "nixpkgs";
nur.inputs.nixpkgs.follows = "nixpkgs";
+
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
+26 -23
home/emacs/default.nix
···
lib,
config,
...
-
}:
+
}@inputs:
let
cfg = config.custom.emacs;
+
emacs = (pkgs.emacsPackagesFor pkgs.emacs29-pgtk).emacsWithPackages (
+
epkgs: with epkgs; [
+
treesit-grammars.with-all-grammars
+
vterm
+
mu4e
+
]
+
);
in
{
options.custom.emacs.enable = lib.mkEnableOption "emacs";
config = lib.mkIf cfg.enable {
-
programs.emacs = {
-
enable = true;
-
package = pkgs.emacs29-pgtk;
-
extraPackages =
-
epkgs: with epkgs; [
-
evil
-
evil-leader
-
# https://github.com/emacs-evil/evil-collection/pull/812/commits/149eacce58354f0ee3a55d4c12059148ef4ff953
-
pkgs.overlay-unstable.emacsPackages.evil-collection
-
evil-ledger
-
evil-org
-
undo-tree
-
gruvbox-theme
-
helm
-
mu4e
-
ledger-mode
-
org
-
org-evil
-
];
-
};
+
nixpkgs.overlays = [
+
inputs.emacs-overlay.overlays.default
+
];
+
+
home.packages = with pkgs; [
+
binutils
+
emacs
+
gnutls
+
imagemagick
+
pinentry-emacs
+
# for undo-fu-session/undo-tree compression
+
zstd
+
];
+
+
home.sessionPath = [ "$XDG_CONFIG_HOME/emacs/bin" ];
+
+
# modules.shell.zsh.rcFiles = [ "${config.xdg.configHome}/emacs/aliases.zsh" ];
+
home.file = {
-
".emacs.d/init.el".source = ./init.el;
-
".emacs.d/config".source = ./config;
".mail.cap".text = ''
application/pdf; xdg-open %s
'';
+1 -1
home/gui/i3.nix
···
displays = "arandr";
bar = "i3bar";
notification_deamon = "dunst";
-
i3_workspace_history = "${i3-workspace-history}";
+
i3_workspace_history = "${i3-workspace-history}/bin/i3-workspace-history";
i3_workspace_history_args = "";
};
util = import ./util.nix { inherit pkgs lib; };
+1 -1
home/gui/sway.nix
···
displays = "wdisplays";
bar = "swaybar";
notification_deamon = "dunst";
-
i3_workspace_history = "${i3-workspace-history}";
+
i3_workspace_history = "${i3-workspace-history}/bin/i3-workspace-history";
i3_workspace_history_args = "-sway";
};
util = import ./util.nix { inherit pkgs lib; };