Don't use Emacs service on laptops or server, only desktops
This commit is contained in:
parent
2e7f160196
commit
92b6e0e325
|
@ -19,6 +19,7 @@
|
||||||
};
|
};
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
imports = [ ./home/emacs/default.nix ];
|
imports = [ ./home/emacs/default.nix ];
|
||||||
|
services.emacs.enable = false;
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../shell/default.nix
|
../shell/default.nix
|
||||||
|
@ -14,7 +19,7 @@
|
||||||
base16-theme-highlight-mode-line 'contrast)
|
base16-theme-highlight-mode-line 'contrast)
|
||||||
'';
|
'';
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = lib.mkDefault true;
|
||||||
package = config.programs.emacs.finalPackage;
|
package = config.programs.emacs.finalPackage;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
|
@ -22,7 +27,6 @@
|
||||||
startWithUserSession = "graphical";
|
startWithUserSession = "graphical";
|
||||||
};
|
};
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs29.override {
|
package = pkgs.emacs29.override {
|
||||||
withImageMagick = true;
|
withImageMagick = true;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
environment.systemPackages = [ pkgs.acpi ];
|
environment.systemPackages = [ pkgs.acpi ];
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
networking.networkmanager.wifi.powersave = true;
|
networking.networkmanager.wifi.powersave = true;
|
||||||
|
services.emacs.enable = false;
|
||||||
services.auto-cpufreq = {
|
services.auto-cpufreq = {
|
||||||
enable = false; # TEMP, conflict with power-profiles-daemon
|
enable = false; # TEMP, conflict with power-profiles-daemon
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue