Compare commits

...

3 Commits

5 changed files with 70 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ compile = true
"npm:@mermaid-js/mermaid-cli" = "latest"
"npm:@openai/codex" = "latest"
"npm:@prettier/plugin-php" = "latest"
"npm:claude-plugins" = "latest"
"npm:dockerfile-language-server-nodejs" = "latest"
"npm:eslint" = "latest"
"npm:eslint-config-prettier" = "latest"

4
default.nix Normal file
View File

@@ -0,0 +1,4 @@
let
flake = builtins.getFlake "git+file://${builtins.toString ./.}";
in
flake.packages.${builtins.currentSystem}.default

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1768302833,
"narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "61db79b0c6b838d9894923920b612048e1201926",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
description = "Global packages for dotfiles";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-darwin"
"aarch64-darwin"
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
{
packages = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.buildEnv {
name = "dotfiles-packages";
paths = [
pkgs.nil
pkgs.nixfmt
];
};
}
);
};
}

View File

@@ -11,7 +11,7 @@ local function init_hotkeys()
hs.hotkey.bind({ 'cmd', 'alt', 'ctrl' }, 'S', apptoggle.showAppInfo)
apptoggle:bind({ 'cmd', 'alt', 'ctrl' }, 'A', { 'Activity Monitor' })
apptoggle:bind({ 'cmd', 'ctrl' }, '4', { 'Claude' })
apptoggle:bind({ 'cmd', 'ctrl' }, '2', { 'Claude' })
apptoggle:bind({ 'cmd', 'ctrl' }, 'A', { 'Messages' })
apptoggle:bind({ 'cmd', 'ctrl' }, 'B', { 'TablePlus' }, { 'Sequel Pro' }, { 'Lens' })
apptoggle:bind({ 'cmd', 'ctrl' }, 'D', { 'Mail+ for Gmail' }, { 'Mimestream' })
@@ -22,7 +22,7 @@ local function init_hotkeys()
apptoggle:bind({ 'cmd', 'ctrl' }, 'X', { 'Notion' }, { 'Obsidian' })
apptoggle:bind({ 'cmd', 'ctrl' }, 'Z', { 'WhatsApp' })
apptoggle:bind({ 'cmd', 'ctrl' }, '2',
apptoggle:bind({ 'cmd', 'ctrl' }, '4',
{ 'ChatGPT' },
{ 'ChatGPT Atlas' }
)