Add it to your flake.nix
inputs:
nix-utils = {
url = "github:frostplexx/nixkit";
# or for local development:
# url = "path:/Users/daniel/Developer/nix-utils";
};
Add the home manager module:
home-manager = {
sharedModules = [
inputs.nixkit.homeModules.default
];
};
Add the nix module:
On NixOS:
modules = [
inputs.nixkit.nixosModules.default
];
On macOS:
modules = [
inputs.nixkit.darwinModules.default
];
To set the default browser on macOS and Linux use the following:
# Enable and configure the default browser
programs.default-browser = {
enable = true;
browser = "firefox"; # Or any other browser name
};
{
programs.ndcli = {
enable = true;
username = "johndoe"; # Your Dim username
};
}
Source: https://github.com/ionos-cloud/dim/tree/master/ndcli
hyperkey
is a simple service that maps caps-lock to cmd+opt+ctrl or optionally cmd+opt+ctrl+shift.
Simply enable it using the following snippet inside your configuration.nix
:
services.hyperkey = {
enable = true;
normalQuickPress = true; # Quick press of Caps Lock to toggle it
includeShift = false; # Hyper key will be Cmd+Ctrl+Opt (without Shift)
};
On first start it will ask for accessibility permission. Afterward you may need to restart the service by running killall hyperkey
for the permissions to
take effect.
You can configure custom icons on macOS using the following snippet:
environment.customIcons = {
enable = true;
icons = [
{
path = "/Applications/Notion.app";
icon = ./icons/notion.icns;
}
];
};
Source: https://github.com/ryanccn/nix-darwin-custom-icons
SOPS but easy and with 1Password integration:
programs = {
opsops.enable = true;
};
Source: https://github.com/frostplexx/opsops
SOON
SOON