commit eb1f481d0e26ad43af98b70699f34572f9ba7ace
parent 3a92835bad0968422dc85361895e0c38989dc189
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 19 Aug 2022 16:42:15 +0200
tools/emacs: link .config/emacs on setup
That way, I don't have to think about it :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/systems/modules/editors/emacs.nix b/systems/modules/editors/emacs.nix
@@ -8,6 +8,7 @@ in
enable = mkEnableOption "enable emacs editor";
};
config = mkIf cfg.enable {
+ # modules.editors.default = "emacs";
# FIXME add a default configuration
environment = {
systemPackages = [ pkgs.emacs ];
diff --git a/users/vincent/desktop/xorg.nix b/users/vincent/desktop/xorg.nix
@@ -0,0 +1,6 @@
+{ config, lib, pkgs, nixosConfig, ... }:
+
+{
+ # home.file.".Xmodmap".source = ./xorg/Xmodmap;
+ programs.autorandr.enable = nixosConfig.profiles.laptop.enable;
+}
diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix
@@ -1,4 +1,3 @@
-# Note: this file is autogenerated from an org-mode file.
{ config, lib, pkgs, ... }:
with lib;
@@ -138,6 +137,10 @@ let
];
in
{
+ home.file.".config/emacs" = {
+ source = config.lib.file.mkOutOfStoreSymlink "/home/vincent/src/home/tools/emacs";
+ # recursive = true;
+ };
home.file.".local/share/applications/org-protocol.desktop".source = ./emacs/org-protocol.desktop;
home.file.".local/share/applications/capture.desktop".source = ./emacs/capture.desktop;
home.packages = with pkgs; [
@@ -154,6 +157,7 @@ in
];
programs.emacs = {
enable = true;
+ # emacsPgtkNativeComp
package = (pkgs.emacsNativeComp.override { withGTK3 = true; withGTK2 = false; withX = true; withXwidgets = true; });
extraPackages = myExtraPackages;
};