Don't use Emacs service on laptops or server, only desktops

This commit is contained in:
Evie Litherland-Smith 2024-12-10 14:57:32 +00:00
parent 2e7f160196
commit 92b6e0e325
3 changed files with 9 additions and 3 deletions

View file

@ -19,6 +19,7 @@
};
home-manager.users.${username} = {
imports = [ ./home/emacs/default.nix ];
services.emacs.enable = false;
home.stateVersion = "23.05";
};
system.stateVersion = "23.05";

View file

@ -1,4 +1,9 @@
{ config, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
../shell/default.nix
@ -14,7 +19,7 @@
base16-theme-highlight-mode-line 'contrast)
'';
services.emacs = {
enable = true;
enable = lib.mkDefault true;
package = config.programs.emacs.finalPackage;
defaultEditor = true;
client.enable = true;
@ -22,7 +27,6 @@
startWithUserSession = "graphical";
};
programs.emacs = {
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
enable = true;
package = pkgs.emacs29.override {
withImageMagick = true;

View file

@ -4,6 +4,7 @@
environment.systemPackages = [ pkgs.acpi ];
powerManagement.enable = true;
networking.networkmanager.wifi.powersave = true;
services.emacs.enable = false;
services.auto-cpufreq = {
enable = false; # TEMP, conflict with power-profiles-daemon
settings = {