its stable
This commit is contained in:
parent
e9826fc958
commit
03eba9522d
1 changed files with 42 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
{pkgs, inputs, system, ...}: {
|
{pkgs, inputs, system, config, ...}:
|
||||||
|
let
|
||||||
|
my-emacs = pkgs.emacsNativeComp;
|
||||||
|
in{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -12,6 +15,13 @@
|
||||||
|
|
||||||
# work tool
|
# work tool
|
||||||
git
|
git
|
||||||
|
gnupg
|
||||||
|
(pass.withExtensions (exts: [exts.pass-otp]))
|
||||||
|
|
||||||
|
# emacs
|
||||||
|
my-emacs
|
||||||
|
fd
|
||||||
|
ripgrep
|
||||||
|
|
||||||
(writeShellScriptBin "drs" ''
|
(writeShellScriptBin "drs" ''
|
||||||
darwin-rebuild switch --flake ~/.config/nixos
|
darwin-rebuild switch --flake ~/.config/nixos
|
||||||
|
|
@ -25,12 +35,21 @@
|
||||||
cleanup = "zap";
|
cleanup = "zap";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
brews = [
|
||||||
|
# doom emacs
|
||||||
|
"fontconfig"
|
||||||
|
];
|
||||||
|
|
||||||
casks = [
|
casks = [
|
||||||
# internet
|
# internet
|
||||||
"spotify"
|
"spotify"
|
||||||
|
"brave-browser"
|
||||||
|
|
||||||
# work
|
# work
|
||||||
"slack"
|
"slack"
|
||||||
|
|
||||||
|
# doom emacs
|
||||||
|
"font-symbols-only-nerd-font"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -40,12 +59,18 @@
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
|
programs.gnupg.agent.enable = true;
|
||||||
|
|
||||||
services.yabai = {
|
services.yabai = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
services.skhd.enable = true;
|
services.skhd.enable = true;
|
||||||
|
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
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
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 4;
|
||||||
|
|
@ -63,6 +88,22 @@
|
||||||
Show24Hour = true;
|
Show24Hour = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
launchd.user.agents.remap-keys = {
|
||||||
|
serviceConfig = {
|
||||||
|
ProgramArguments = [
|
||||||
|
"/usr/bin/hidutil"
|
||||||
|
"property"
|
||||||
|
"--set"
|
||||||
|
''{
|
||||||
|
"UserKeyMapping":[
|
||||||
|
{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E7}
|
||||||
|
]
|
||||||
|
}''
|
||||||
|
];
|
||||||
|
RunAtLoad = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# The platform the configuration will be used on.
|
# The platform the configuration will be used on.
|
||||||
nixpkgs.hostPlatform = system;
|
nixpkgs.hostPlatform = system;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue