up
This commit is contained in:
@@ -36,22 +36,9 @@ let user = "cschmatzler"; in
|
||||
|
||||
# Load configuration that is shared across systems
|
||||
environment.systemPackages = with pkgs; [
|
||||
emacs-unstable
|
||||
agenix.packages."${pkgs.system}".default
|
||||
] ++ (import ../../modules/shared/packages.nix { inherit pkgs; });
|
||||
|
||||
launchd.user.agents.emacs.path = [ config.environment.systemPath ];
|
||||
launchd.user.agents.emacs.serviceConfig = {
|
||||
KeepAlive = true;
|
||||
ProgramArguments = [
|
||||
"/bin/sh"
|
||||
"-c"
|
||||
"/bin/wait4path ${pkgs.emacs}/bin/emacs && exec ${pkgs.emacs}/bin/emacs --fg-daemon"
|
||||
];
|
||||
StandardErrorPath = "/tmp/emacs.err.log";
|
||||
StandardOutPath = "/tmp/emacs.out.log";
|
||||
};
|
||||
|
||||
system = {
|
||||
checks.verifyNixPath = false;
|
||||
primaryUser = user;
|
||||
|
||||
@@ -219,16 +219,6 @@ let user = "cschmatzler";
|
||||
gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
tumbler.enable = true; # Thumbnail support for images
|
||||
|
||||
# Emacs runs as a daemon
|
||||
#emacs = {
|
||||
# enable = true;
|
||||
# package = pkgs.emacs-unstable;
|
||||
#};
|
||||
};
|
||||
|
||||
# When emacs builds from no cache, it exceeds the 90s timeout default
|
||||
systemd.user.services.emacs = {
|
||||
serviceConfig.TimeoutStartSec = "7min";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents
|
||||
|
||||
Reference in New Issue
Block a user