mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Restore emacs
This commit is contained in:
parent
419227a8cb
commit
2778f07f79
3 changed files with 29 additions and 9 deletions
20
features/emacs.nix
Normal file
20
features/emacs.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
let emacs = pkgs.emacsUnstable;
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
|
||||
environment.systemPackages = [
|
||||
emacs
|
||||
|
||||
(pkgs.writeScriptBin "em"
|
||||
''
|
||||
#!${pkgs.runtimeShell}
|
||||
set -xe
|
||||
TERM=xterm-direct exec ${emacs}/bin/emacs -nw $*
|
||||
'')
|
||||
];
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
emacs-all-the-icons-fonts
|
||||
];
|
||||
}
|
||||
14
flake.lock
generated
14
flake.lock
generated
|
|
@ -19,11 +19,11 @@
|
|||
},
|
||||
"emacs-overlay": {
|
||||
"locked": {
|
||||
"lastModified": 1618166767,
|
||||
"narHash": "sha256-GX9HpyX64eDkfuvGZgi3UZxUhqahEzyxwIlYLh3m1sM=",
|
||||
"lastModified": 1619002356,
|
||||
"narHash": "sha256-JdSw9nftFDMOnSjVFK2XEWrrCGCp69e2/97+CXbUvNk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "e52579ab1b0fe093ea230116ac175be61488e7ed",
|
||||
"rev": "ce747c92f3cba7ce6cba29046b766fb2fd3b6c98",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -166,17 +166,17 @@
|
|||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1618447066,
|
||||
"narHash": "sha256-2f9ydxgdW2igSIe1vmV8buTEpAVQPVhV+OxvlFRTA+Y=",
|
||||
"lastModified": 1618975354,
|
||||
"narHash": "sha256-U0WdVfyBCgjqj/ukkEiaLjR8aHxrkWAN1BHETRUuPmA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dcdf30a78a523296b5f9d44fb67afac485b64737",
|
||||
"rev": "04bb7dc19bc7b382f76b186e9674397a4f371f4a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dcdf30a78a523296b5f9d44fb67afac485b64737",
|
||||
"rev": "04bb7dc19bc7b382f76b186e9674397a4f371f4a",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
# https://status.nixos.org/
|
||||
#
|
||||
# This ensures that we always use the official # cache.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/dcdf30a78a523296b5f9d44fb67afac485b64737";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/04bb7dc19bc7b382f76b186e9674397a4f371f4a";
|
||||
|
||||
nixos-hardware.url = github:NixOS/nixos-hardware/master;
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
./features/protonvpn.nix
|
||||
./features/docker.nix
|
||||
./features/email
|
||||
#./features/emacs.nix
|
||||
./features/emacs.nix
|
||||
./features/monitor-brightness.nix
|
||||
|
||||
# home-manager configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue