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.enable = true;
services.emacs.package = pkgs.emacsNativeComp;
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.emacsNativeComp;
init = { init = {
enable = true; enable = true;

View File

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

View File

@ -38,6 +38,21 @@
"type": "github" "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-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -318,6 +333,7 @@
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"emacs-overlay": "emacs-overlay",
"home-manager": "home-manager", "home-manager": "home-manager",
"mara": "mara", "mara": "mara",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",

View File

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