diff --git a/flake.nix b/flake.nix index 9cd3b0e8..c4972c29 100644 --- a/flake.nix +++ b/flake.nix @@ -147,6 +147,8 @@ }; polarity = "dark"; opacity = { + applications = 0.8; + desktop = 0.8; popups = 0.5; terminal = 0.8; }; diff --git a/home/emacs/default.nix b/home/emacs/default.nix index 19ef4118..d648acc4 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -7,7 +7,17 @@ # Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git enable = true; package = pkgs.emacs29-pgtk; - extraConfig = ''(org-babel-load-file "~/.emacs/README.org")''; + extraConfig = with builtins; + with config; let + font = "${stylix.fonts.monospace.name}-${toString stylix.fonts.sizes.applications}"; + alpha = "${toString (floor (mul stylix.opacity.applications 100))}"; + in '' + (org-babel-load-file "~/.emacs/README.org") + (add-to-list 'initial-frame-alist '(font . "${font}")) + (add-to-list 'default-frame-alist '(font . "${font}")) + (add-to-list 'initial-frame-alist '(alpha-background . ${alpha})) + (add-to-list 'default-frame-alist '(alpha-background . ${alpha})) + ''; extraPackages = epkgs: with epkgs; [ # theme