This commit is contained in:
Charles Sirois 2025-04-11 11:55:19 -04:00
parent 0afd1fe82d
commit 8108ea8197

View file

@ -1,7 +1,12 @@
{pkgs, inputs, system, config, ...}: {
let pkgs,
inputs,
system,
config,
...
}: let
my-emacs = pkgs.emacsNativeComp; my-emacs = pkgs.emacsNativeComp;
in{ in {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -14,6 +19,8 @@ in{
nix-output-monitor nix-output-monitor
# work tool # work tool
doppler
docker
git git
gnupg gnupg
(pass.withExtensions (exts: [exts.pass-otp])) (pass.withExtensions (exts: [exts.pass-otp]))
@ -66,10 +73,10 @@ in{
}; };
services.skhd.enable = true; services.skhd.enable = true;
services.emacs = { services.emacs = {
enable = true; enable = true;
package = my-emacs; package = my-emacs;
}; };
# Used for backwards compatibility, please read the changelog before changing. # Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog # $ darwin-rebuild changelog
@ -94,7 +101,7 @@ services.emacs = {
"/usr/bin/hidutil" "/usr/bin/hidutil"
"property" "property"
"--set" "--set"
''{ '' {
"UserKeyMapping":[ "UserKeyMapping":[
{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E7} {"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E7}
] ]