emacs native comp

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-04-16 10:03:59 -04:00
parent d035d19bb2
commit 800a5c19dd
4 changed files with 25 additions and 1 deletions

View File

@ -17,8 +17,10 @@ in {
};
services.emacs.enable = true;
services.emacs.package = pkgs.emacsNativeComp;
programs.emacs = {
enable = true;
package = pkgs.emacsNativeComp;
init = {
enable = true;

View File

@ -19,7 +19,9 @@ in
home.packages = with pkgs; [ anonymousPro e ];
programs.emacs.enable = true;
programs.emacs.package = pkgs.emacsNativeComp;
services.emacs.enable = true;
services.emacs.package = pkgs.emacsNativeComp;
home.file.".spacemacs".source = ./spacemacs;

View File

@ -38,6 +38,21 @@
"type": "github"
}
},
"emacs-overlay": {
"locked": {
"lastModified": 1650104515,
"narHash": "sha256-fuvcZH6wVqRGo/yeJkHh3jmKmTZhYTxTc3xTe+fSkt4=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "ba54077d5eb8fedfede088ce174a6a0aa5e4dc8b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -318,6 +333,7 @@
"inputs": {
"agenix": "agenix",
"deploy-rs": "deploy-rs",
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager",
"mara": "mara",
"nixpkgs": "nixpkgs_4",

View File

@ -7,6 +7,7 @@
home-manager.url = "github:nix-community/home-manager";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
emacs-overlay.url = "github:nix-community/emacs-overlay";
# my apps
printerfacts = {
@ -31,7 +32,7 @@
};
outputs = { self, nixpkgs, deploy-rs, home-manager, agenix, printerfacts, mara
, rhea, waifud, ... }:
, rhea, waifud, emacs-overlay, ... }:
let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
mkSystem = extraModules:
@ -49,6 +50,9 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
})
({ config, ... }: {
nixpkgs.overlays = [ emacs-overlay.overlay ];
})
./common
printerfacts.nixosModules.${system}.printerfacts