Add emacs

This commit is contained in:
Sridhar Ratnakumar 2021-04-11 21:09:33 -04:00
parent bd14ee0a68
commit 7c9a7ba6c3
3 changed files with 24 additions and 0 deletions

6
features/emacs.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, inputs, ... }: {
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
environment.systemPackages = with pkgs; [
emacsUnstable
];
}

16
flake.lock generated
View file

@ -17,6 +17,21 @@
"type": "github"
}
},
"emacs-overlay": {
"locked": {
"lastModified": 1618166767,
"narHash": "sha256-GX9HpyX64eDkfuvGZgi3UZxUhqahEzyxwIlYLh3m1sM=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "e52579ab1b0fe093ea230116ac175be61488e7ed",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -168,6 +183,7 @@
},
"root": {
"inputs": {
"emacs-overlay": "emacs-overlay",
"himalaya": "himalaya",
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",

View file

@ -11,6 +11,7 @@
nixos-hardware.url = github:NixOS/nixos-hardware/master;
home-manager.url = "github:nix-community/home-manager";
himalaya.url = "github:srid/himalaya/nixify-crate2nix";
emacs-overlay.url = "github:nix-community/emacs-overlay";
};
outputs = inputs@{ self, home-manager, nixpkgs, ... }:
@ -29,6 +30,7 @@
./features/passwordstore.nix
./features/syncthing.nix
./features/email
./features/emacs.nix
./features/monitor-brightness.nix
# home-manager configuration