base: Finally, some emacs on darwin (and some other stuff I guess)
This commit is contained in:
parent
5467282626
commit
15586a8f7c
81 changed files with 469 additions and 417 deletions
|
@ -5,6 +5,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./emacs
|
||||
./nix
|
||||
];
|
||||
|
||||
|
|
21
modules/darwin/base/emacs/default.nix
Normal file
21
modules/darwin/base/emacs/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
username = config.chvp.username;
|
||||
in
|
||||
{
|
||||
chvp.base.emacs.basePackage = pkgs.emacs;
|
||||
services.emacs = {
|
||||
enable = true;
|
||||
package = config.chvp.base.emacs.package;
|
||||
};
|
||||
home-manager.users.${username} = {
|
||||
home.packages = [
|
||||
(pkgs.writeShellScriptBin "restart-emacs" ''
|
||||
launchctl unload ~/Library/LaunchAgents/org.nixos.emacs.plist
|
||||
launchctl load ~/Library/LaunchAgents/org.nixos.emacs.plist
|
||||
launchctl start ~/Library/LaunchAgents/org.nixos.emacs.plist
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue