From 217573284e49be3f5e979ef4bc7b594da48a1f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 30 Jan 2023 10:39:29 +0100 Subject: [PATCH] update my emacs flake --- flake.lock | 55 +++++++------------------------------- flake.nix | 7 +---- modules/programs/emacs.nix | 17 +++--------- overlays/default.nix | 2 -- 4 files changed, 13 insertions(+), 68 deletions(-) diff --git a/flake.lock b/flake.lock index fa4658c..c96a0f8 100644 --- a/flake.lock +++ b/flake.lock @@ -60,11 +60,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1674900203, - "narHash": "sha256-oBEBvGPkHT31+VxxzHy6KOUrfv16D7dDReltJ7AXebg=", + "lastModified": 1675071250, + "narHash": "sha256-MrNYL8XGyKdcCaUHCVm2VTtHHZ/3MpwVYX514mw88SQ=", "ref": "main", - "rev": "9406d9d62b5f0781c68a006b0ec975f5bbb740a5", - "revCount": 64, + "rev": "2d2c401dc225dcbc9c13943062dbc2542059b050", + "revCount": 69, "type": "git", "url": "ssh://git@gitea.moritzboeh.me/moritz/emacs.git" }, @@ -93,27 +93,6 @@ "type": "github" } }, - "emacs-overlay_2": { - "inputs": { - "flake-utils": "flake-utils_3", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1673086123, - "narHash": "sha256-0gm7Zo/hR860E9MzTkSnr91gBg+GTpmE3EcNc9GFp3c=", - "owner": "nix-community", - "repo": "emacs-overlay", - "rev": "f5f51705d5d8886d2c9aba5e6a19484711175e3f", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "emacs-overlay", - "type": "github" - } - }, "flake-compat": { "flake": false, "locked": { @@ -161,21 +140,6 @@ } }, "flake-utils_3": { - "locked": { - "lastModified": 1667395993, - "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_4": { "locked": { "lastModified": 1659877975, "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", @@ -190,7 +154,7 @@ "type": "github" } }, - "flake-utils_5": { + "flake-utils_4": { "locked": { "lastModified": 1667395993, "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", @@ -205,7 +169,7 @@ "type": "github" } }, - "flake-utils_6": { + "flake-utils_5": { "locked": { "lastModified": 1644229661, "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", @@ -280,7 +244,7 @@ }, "howdy": { "inputs": { - "flake-utils": "flake-utils_4", + "flake-utils": "flake-utils_3", "nixpkgs": [ "nixpkgs" ], @@ -560,7 +524,7 @@ "pre-commit-hooks_2": { "inputs": { "flake-compat": "flake-compat", - "flake-utils": "flake-utils_5", + "flake-utils": "flake-utils_4", "gitignore": "gitignore", "nixpkgs": "nixpkgs_7", "nixpkgs-stable": "nixpkgs-stable" @@ -585,7 +549,6 @@ "arkenfox-userjs": "arkenfox-userjs", "asus-touchpad-numpad-driver": "asus-touchpad-numpad-driver", "emacs": "emacs", - "emacs-overlay": "emacs-overlay_2", "forgit-git": "forgit-git", "home-manager": "home-manager", "howdy": "howdy", @@ -632,7 +595,7 @@ }, "utils_2": { "inputs": { - "flake-utils": "flake-utils_6" + "flake-utils": "flake-utils_5" }, "locked": { "lastModified": 1657226504, diff --git a/flake.nix b/flake.nix index 5efa2d3..fb43cfe 100644 --- a/flake.nix +++ b/flake.nix @@ -19,11 +19,6 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - emacs-overlay = { - url = "github:nix-community/emacs-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -76,7 +71,7 @@ channels.nixpkgs.overlaysBuilder = channels: [ inputs.agenix.overlay - inputs.emacs-overlay.overlay + inputs.emacs.overlays.default inputs.howdy.overlays.default inputs.hypr-contrib.overlays.default inputs.hyprland.overlays.default diff --git a/modules/programs/emacs.nix b/modules/programs/emacs.nix index 6c51425..0d7128d 100644 --- a/modules/programs/emacs.nix +++ b/modules/programs/emacs.nix @@ -8,6 +8,7 @@ with lib; let cfg = config.my.programs.emacs; + myEmacs = pkgs.emacsPgtkWithPackages; in { options.my.programs.emacs.enable = mkEnableOption "emacs"; @@ -20,24 +21,12 @@ in emacs-all-the-icons-fonts (iosevka-bin.override { variant = "aile"; }) ]; - users.users.moritz.packages = with pkgs; [ - myEmacs - (ripgrep.override { withPCRE2 = true; }) - # flyspell - (hunspellWithDicts (with hunspellDicts; [ - en_GB-ize - en_US - de_DE - ])) - - # language servers - nil - ]; + users.users.moritz.packages = [ myEmacs ]; home-manager.users.moritz = { home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ]; services.emacs = { enable = true; - package = pkgs.myEmacs; + package = myEmacs; }; }; }; diff --git a/overlays/default.nix b/overlays/default.nix index f16924d..071a899 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,6 +1,4 @@ { inputs }: final: prev: { - myEmacs = inputs.emacs.packages.${prev.system}.default; - logseq-wayland = prev.symlinkJoin { name = "logseq-wayland"; paths = [ prev.logseq ];