Something went wrong. Try again.
NixOS / Nix-darwin / Home Manager dotfiles for my devices
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ inputs, self, ...}:{ flake.modules.homeManager.emacs = { config, lib, pkgs, ... }: { imports = [ "${inputs.home-manager}/modules/programs/emacs.nix" "${inputs.home-manager}/modules/services/emacs.nix" ];
services.emacs = { enable = true; package = pkgs.custom-emacs;
client.enable = true; client.arguments = [ "-c" ]; };
launchd.agents.emacs.config.EnvironmentVariables = { TERMINFO = "${pkgs.ghostty-bin.terminfo}/share/terminfo/"; };
fonts.fontconfig.enable = true; targets.darwin.defaults."org.gnu.Emacs".AppleFontSmoothing = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin 0;
programs.emacs = { enable = true; package = config.services.emacs.package; };
sops.secrets."emacs-radio-channels.el" = { format = "binary"; sopsFile = "${self}/secrets/emacs-radio-channels.el"; path = "%r/emacs-radio-channels.el"; };
home = { shellAliases = { vim = config.home.sessionVariables.EDITOR; vi = config.home.sessionVariables.EDITOR; gvim = config.home.sessionVariables.VISUAL; gvi = config.home.sessionVariables.VISUAL; };
sessionVariables.EDITOR = "emacsclient -nw"; sessionVariables.VISUAL = "emacsclient -c"; };
xdg.configFile."emacs/snippets".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/modules/emacs/snippets";
xdg.configFile."home-manager/packages".text = config.home.packages |> map (pkg: pkg.pname or pkg.name) |> builtins.toJSON;
nixpkgs.allowUnfreeList = [ "copilot-language-server" ]; };}