Compare commits
44 Commits
1817044337
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
9ca01f3477
|
|||
|
49a4ed1005
|
|||
|
a96190bce0
|
|||
|
ddf02dcc73
|
|||
|
975fc9f07f
|
|||
| c5c4eb2f1e | |||
|
3810d4a0fc
|
|||
|
2b81c5749c
|
|||
|
a0f7c1be69
|
|||
|
71e62552e5
|
|||
|
542cba92cb
|
|||
|
f5991b9df0
|
|||
|
9278c2d467
|
|||
|
5cf01c8df1
|
|||
|
58b3893a03
|
|||
|
09e02f623f
|
|||
|
a042d0ef59
|
|||
|
|
87cd667cf0 | ||
|
|
332347bfa1 | ||
|
33c802a405
|
|||
|
472b93053f
|
|||
|
fb9bcb44fe
|
|||
|
f9ced40155
|
|||
|
fefdcfaa5c
|
|||
|
9e022de692
|
|||
|
a5aaa2cf5b
|
|||
|
d3ed949ebf
|
|||
|
|
82a0a086b5 | ||
|
1b2a8eee6d
|
|||
|
bb1c79b444
|
|||
|
|
d397e883e7 | ||
|
fb08430277
|
|||
|
a67d5981ec
|
|||
|
502ae1a4a3
|
|||
|
|
45eff004ad | ||
|
|
6b49b8439d | ||
| af5c535997 | |||
|
|
2a08d7b814 | ||
|
61226eed36
|
|||
|
|
2d734ed8d2 | ||
|
7887873a5d
|
|||
|
9882538e46
|
|||
|
|
b4797be130 | ||
|
|
47f262e1d5 |
@@ -15,23 +15,6 @@ jobs:
|
|||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install SSH keys
|
|
||||||
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_GITEA_SSH_KEY }}
|
|
||||||
name: gitea_action
|
|
||||||
known_hosts: ${{ secrets.SSH_GITEA_KNOWN_HOSTS }}
|
|
||||||
- name: Agent SSH keys
|
|
||||||
uses: webfactory/ssh-agent@v0.9.0
|
|
||||||
with:
|
|
||||||
ssh-private-key: ${{ secrets.SSH_GITEA_SSH_KEY }}
|
|
||||||
# name: gitea_action
|
|
||||||
# known_hosts: ${{ secrets.SSH_GITEA_KNOWN_HOSTS }}
|
|
||||||
#- name: Fix SSH key
|
|
||||||
# run: sed -i 's/\r$//g' /root/.ssh/gitea_action
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
# installing nix not necessary for nix-runner but doesn't take much time
|
# installing nix not necessary for nix-runner but doesn't take much time
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
|
|||||||
138
flake.lock
generated
138
flake.lock
generated
@@ -1,18 +1,18 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"NixOS-WSL-2411": {
|
"NixOS-WSL-stable": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-24-11"
|
"nixpkgs-stable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744290088,
|
"lastModified": 1758123407,
|
||||||
"narHash": "sha256-/X9XVEl0EiyisNbF5srrxXRSVoRqdwExuqyspYqqEjQ=",
|
"narHash": "sha256-4qwMlR0Q4Zr2rjUFauYIldfjzffYt3G5tZ1uPFPPYGU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "60b4904a1390ac4c89e93d95f6ed928975e525ed",
|
"rev": "ba2b3b6c0bc42442559a3b090f032bc8d501f5e3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -65,11 +65,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733328505,
|
"lastModified": 1747046372,
|
||||||
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
|
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -78,23 +78,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"homeManager-24-11": {
|
"homeManager-stable": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-24-11"
|
"nixpkgs-stable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744743431,
|
"lastModified": 1757808926,
|
||||||
"narHash": "sha256-iyn/WBYDc7OtjSawbegINDe/gIkok888kQxk3aVnkgg=",
|
"narHash": "sha256-K6PEI5PYY94TVMH0mX3MbZNYFme7oNRKml/85BpRRAo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c61bfe3ae692f42ce688b5865fac9e0de58e1387",
|
"rev": "f21d9167782c086a33ad53e2311854a8f13c281e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.11",
|
"ref": "release-25.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -132,29 +132,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-24-11": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744440957,
|
"lastModified": 1758216857,
|
||||||
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
|
"narHash": "sha256-h1BW2y7CY4LI9w61R02wPaOYfmYo82FyRqHIwukQ6SY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
|
"rev": "d2ed99647a4b195f0bcc440f76edfa10aeb3b743",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-25.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744463964,
|
"lastModified": 1758198701,
|
||||||
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
|
"narHash": "sha256-7To75JlpekfUmdkUZewnT6MoBANS0XVypW6kjUOXQwc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
|
"rev": "0147c2f1d54b30b5dd6d4a8c8542e8d7edf93b5d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -164,38 +164,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744502386,
|
|
||||||
"narHash": "sha256-QAd1L37eU7ktL2WeLLLTmI6P9moz9+a/ONO8qNBYJgM=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "f6db44a8daa59c40ae41ba6e5823ec77fe0d2124",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1735554305,
|
|
||||||
"narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nomodoro": {
|
"nomodoro": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -216,11 +184,11 @@
|
|||||||
"nvim-web-devicons": {
|
"nvim-web-devicons": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744341136,
|
"lastModified": 1756936794,
|
||||||
"narHash": "sha256-TKP6wH/fPEBgHjq0knAYDfq4uFQ1LscSYTc7xYRrgUQ=",
|
"narHash": "sha256-2Q6ZZQj5HFXTw1YwX3ibdGOTwfbfPUBbcPOsuBUpSjc=",
|
||||||
"owner": "nvim-tree",
|
"owner": "nvim-tree",
|
||||||
"repo": "nvim-web-devicons",
|
"repo": "nvim-web-devicons",
|
||||||
"rev": "c90dee4e930ab9f49fa6d77f289bff335b49e972",
|
"rev": "6e51ca170563330e063720449c21f43e27ca0bc1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -230,23 +198,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"parrot-nvim": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744666744,
|
|
||||||
"narHash": "sha256-Pkp4R+vSQ2GAXw3JJqW/fuQ4WQJuvkYtB0jMt42i59M=",
|
|
||||||
"owner": "frankroeder",
|
|
||||||
"repo": "parrot.nvim",
|
|
||||||
"rev": "01a6e1f1297a5434dacbcd1e59e063d93b006c9d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "frankroeder",
|
|
||||||
"ref": "main",
|
|
||||||
"repo": "parrot.nvim",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pyproject-build-systems": {
|
"pyproject-build-systems": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -299,16 +250,15 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"NixOS-WSL-2411": "NixOS-WSL-2411",
|
"NixOS-WSL-stable": "NixOS-WSL-stable",
|
||||||
"claude-mcp-bundle": "claude-mcp-bundle",
|
"claude-mcp-bundle": "claude-mcp-bundle",
|
||||||
"cmp-vimtex": "cmp-vimtex",
|
"cmp-vimtex": "cmp-vimtex",
|
||||||
"homeManager-24-11": "homeManager-24-11",
|
"homeManager-stable": "homeManager-stable",
|
||||||
"mdt": "mdt",
|
"mdt": "mdt",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-24-11": "nixpkgs-24-11",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nomodoro": "nomodoro",
|
"nomodoro": "nomodoro",
|
||||||
"nvim-web-devicons": "nvim-web-devicons",
|
"nvim-web-devicons": "nvim-web-devicons",
|
||||||
"parrot-nvim": "parrot-nvim",
|
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"spaceport-nvim": "spaceport-nvim",
|
"spaceport-nvim": "spaceport-nvim",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
@@ -318,14 +268,16 @@
|
|||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": [
|
||||||
|
"nixpkgs-stable"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744669848,
|
"lastModified": 1758007585,
|
||||||
"narHash": "sha256-pXyanHLUzLNd3MX9vsWG+6Z2hTU8niyphWstYEP3/GU=",
|
"narHash": "sha256-HYnwlbY6RE5xVd5rh0bYw77pnD8lOgbT4mlrfjgNZ0c=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "61154300d945f0b147b30d24ddcafa159148026a",
|
"rev": "f77d4cfa075c3de66fc9976b80e0c4fc69e2c139",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -337,11 +289,11 @@
|
|||||||
"spaceport-nvim": {
|
"spaceport-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744944317,
|
"lastModified": 1755221272,
|
||||||
"narHash": "sha256-1PdpUcQZQ3pgrBqTF6xOSkS+VnTjX1D/KV8deYzkNoY=",
|
"narHash": "sha256-5YUAzZL9Em6HnX2rS29X62S5ExUFyoTmT+RZpuL4Y18=",
|
||||||
"owner": "CWood-sdf",
|
"owner": "CWood-sdf",
|
||||||
"repo": "spaceport.nvim",
|
"repo": "spaceport.nvim",
|
||||||
"rev": "419a8fd9b6df1650125f33fc3bc5faa6ab20cf39",
|
"rev": "ac6404759d6f757494a75f259884ec1e8b0b7dcf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -385,14 +337,16 @@
|
|||||||
},
|
},
|
||||||
"treefmt-nix_2": {
|
"treefmt-nix_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": [
|
||||||
|
"nixpkgs-stable"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744707583,
|
"lastModified": 1758206697,
|
||||||
"narHash": "sha256-IPFcShGro/UUp8BmwMBkq+6KscPlWQevZi9qqIwVUWg=",
|
"narHash": "sha256-/DbPkh6PZOgfueCbs3uzlk4ASU2nPPsiVWhpMCNkAd0=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "49d05555ccdd2592300099d6a657cc33571f4fe0",
|
"rev": "128222dc911b8e2e18939537bed1762b7f3a04aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -429,11 +383,11 @@
|
|||||||
"zsh-completions": {
|
"zsh-completions": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744348258,
|
"lastModified": 1757826833,
|
||||||
"narHash": "sha256-cowscXUIpm6OviEPc4m4Nizl8Tv57Y8DQ2wohY5FWgE=",
|
"narHash": "sha256-1ZlYYJrTrstdHWfM73ZpSnGaMwsFCbdRRkI4fMh0R8s=",
|
||||||
"owner": "zsh-users",
|
"owner": "zsh-users",
|
||||||
"repo": "zsh-completions",
|
"repo": "zsh-completions",
|
||||||
"rev": "e5507e0d0c8879f960f4b8e7c6ddb813608d95ab",
|
"rev": "d08cee09cecdc2d95bf501183597411a7632be7c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
37
flake.nix
37
flake.nix
@@ -3,19 +3,26 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix = {
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
url = "github:numtide/treefmt-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
NixOS-WSL-2411 = {
|
|
||||||
url = "github:nix-community/NixOS-WSL";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-24-11";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManager-24-11 = {
|
sops-nix = {
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-24-11";
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
};
|
||||||
|
|
||||||
|
NixOS-WSL-stable = {
|
||||||
|
url = "github:nix-community/NixOS-WSL";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManager-stable = {
|
||||||
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Custom Vim Plugins
|
# Custom Vim Plugins
|
||||||
@@ -28,10 +35,10 @@
|
|||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
parrot-nvim = {
|
# parrot-nvim = {
|
||||||
url = "github:frankroeder/parrot.nvim/main";
|
# url = "github:frankroeder/parrot.nvim/main";
|
||||||
flake = false;
|
# flake = false;
|
||||||
};
|
# };
|
||||||
|
|
||||||
nomodoro = {
|
nomodoro = {
|
||||||
url = "github:dbinagi/nomodoro/main";
|
url = "github:dbinagi/nomodoro/main";
|
||||||
@@ -77,7 +84,7 @@
|
|||||||
inherit spaceport-nvim;
|
inherit spaceport-nvim;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
inherit nomodoro;
|
inherit nomodoro;
|
||||||
parrot-nvim = inputs.parrot-nvim;
|
# parrot-nvim = inputs.parrot-nvim;
|
||||||
}).overlay;
|
}).overlay;
|
||||||
# Small tool to iterate over each systems
|
# Small tool to iterate over each systems
|
||||||
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
||||||
|
|||||||
9
home/deepak/config/uair/scripts/break.sh
Executable file
9
home/deepak/config/uair/scripts/break.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Notify with tmux?
|
||||||
|
|
||||||
|
message="Break done"
|
||||||
|
|
||||||
|
echo "sth"
|
||||||
|
echo "$message"
|
||||||
|
|
||||||
|
tmux display-popup -T "uair" "echo -e \"$message\""
|
||||||
13
home/deepak/config/uair/scripts/notify.sh
Executable file
13
home/deepak/config/uair/scripts/notify.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Notify with tmux?
|
||||||
|
|
||||||
|
message="
|
||||||
|
$1
|
||||||
|
|
||||||
|
exit with ctrl-C, resume next with uairctl
|
||||||
|
"
|
||||||
|
|
||||||
|
echo "sth"
|
||||||
|
echo "$message"
|
||||||
|
|
||||||
|
tmux display-popup -T "uair" "echo -e \"$message\""
|
||||||
19
home/deepak/config/uair/uair.toml
Normal file
19
home/deepak/config/uair/uair.toml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
loop_on_end = true
|
||||||
|
|
||||||
|
[defaults]
|
||||||
|
format = "🍅 {name} {state}: {time}\n"
|
||||||
|
paused_state_text = "paused"
|
||||||
|
resumed_state_text = "playing"
|
||||||
|
|
||||||
|
[[sessions]]
|
||||||
|
id = "work"
|
||||||
|
name = "Work"
|
||||||
|
duration = "10m"
|
||||||
|
command = '~/.config/uair/scripts/notify.sh "Work Done!"'
|
||||||
|
|
||||||
|
[[sessions]]
|
||||||
|
id = "rest"
|
||||||
|
name = "Rest"
|
||||||
|
duration = "2m"
|
||||||
|
command = "~/.config/uair/scripts/break.sh"
|
||||||
|
|
||||||
@@ -11,62 +11,65 @@ in
|
|||||||
# default_python = pkgs-unstable.python313;
|
# default_python = pkgs-unstable.python313;
|
||||||
{
|
{
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home.packages =
|
home.packages = [
|
||||||
[
|
pkgs.hello
|
||||||
pkgs.hello
|
# (pkgs.writeScriptBin "nixFlakes" ''
|
||||||
# (pkgs.writeScriptBin "nixFlakes" ''
|
# exec ${pkgs.nixVersions.git}/bin/nix --experimental-features "nix-command flakes" "$@"
|
||||||
# exec ${pkgs.nixVersions.git}/bin/nix --experimental-features "nix-command flakes" "$@"
|
# '')
|
||||||
# '')
|
pkgs.nix-search-cli
|
||||||
pkgs.cachix
|
pkgs.cachix
|
||||||
pkgs.attic-client
|
pkgs.attic-client
|
||||||
pkgs.kubectl
|
pkgs.kubectl
|
||||||
pkgs.bat
|
pkgs.bat
|
||||||
pkgs.eza
|
pkgs.eza
|
||||||
pkgs.fd
|
pkgs.fd
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.just
|
pkgs.just
|
||||||
pkgs.chafa
|
pkgs.chafa
|
||||||
pkgs.fontpreview
|
pkgs.fontpreview
|
||||||
pkgs.poppler_utils
|
pkgs.poppler_utils
|
||||||
pkgs.tdf
|
pkgs.tdf
|
||||||
pkgs.viu
|
pkgs.viu
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
|
|
||||||
pkgs.wego
|
pkgs-unstable.tea
|
||||||
# cli markdown tool
|
|
||||||
pkgs.glow
|
|
||||||
|
|
||||||
# lsps
|
pkgs.wego
|
||||||
# pkgs.nil
|
# cli markdown tool
|
||||||
pkgs.nixd
|
pkgs.glow
|
||||||
# pkgs.nodePackages.pyright
|
|
||||||
pkgs.pyright
|
|
||||||
|
|
||||||
pkgs.thefuck
|
# lsps
|
||||||
pkgs.fzf
|
# pkgs.nil
|
||||||
pkgs.sops
|
pkgs.nixd
|
||||||
pkgs.age
|
pkgs.pyright
|
||||||
pkgs.ydiff
|
pkgs.terraform-ls
|
||||||
pkgs.xsel
|
|
||||||
pkgs.delta
|
|
||||||
|
|
||||||
pkgs-unstable.claude-code
|
pkgs.thefuck
|
||||||
# default_python
|
pkgs.fzf
|
||||||
# pkgs-unstable.uv
|
pkgs.sops
|
||||||
# pkgs-unstable.nodejs
|
pkgs.age
|
||||||
|
pkgs.ydiff
|
||||||
|
pkgs.xsel
|
||||||
|
pkgs.delta
|
||||||
|
pkgs.uair
|
||||||
|
|
||||||
# From our claude bundle
|
pkgs-unstable.claude-code
|
||||||
pkgs.custom-servers.arxiv-mcp-server
|
# default_python
|
||||||
pkgs.custom-servers.basic-memory-server
|
# pkgs-unstable.uv
|
||||||
pkgs.custom-servers.mcp-text-editor
|
# pkgs-unstable.nodejs
|
||||||
]
|
|
||||||
++ pkgs.lib.optionals specialArgs.withGUI [
|
# From our claude bundle
|
||||||
pkgs.discord
|
pkgs.custom-servers.arxiv-mcp-server
|
||||||
pkgs.obsidian
|
pkgs.custom-servers.basic-memory-server
|
||||||
pkgs.audacity
|
pkgs.custom-servers.mcp-text-editor
|
||||||
pkgs.nextcloud-client
|
]
|
||||||
pkgs.libreoffice-qt6-fresh
|
++ pkgs.lib.optionals specialArgs.withGUI [
|
||||||
];
|
pkgs.discord
|
||||||
|
pkgs.obsidian
|
||||||
|
pkgs.audacity
|
||||||
|
pkgs.nextcloud-client
|
||||||
|
pkgs.libreoffice-qt6-fresh
|
||||||
|
];
|
||||||
|
|
||||||
home.homeDirectory = "/home/deepak";
|
home.homeDirectory = "/home/deepak";
|
||||||
home.username = "deepak";
|
home.username = "deepak";
|
||||||
@@ -100,6 +103,7 @@ in
|
|||||||
programs.direnv.nix-direnv.enable = true;
|
programs.direnv.nix-direnv.enable = true;
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
xdg.configFile."uair".source = ./config/uair;
|
||||||
|
|
||||||
services.nextcloud-client = pkgs.lib.mkIf specialArgs.withGUI {
|
services.nextcloud-client = pkgs.lib.mkIf specialArgs.withGUI {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -133,7 +137,7 @@ in
|
|||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs-unstable.vimPlugins; [
|
||||||
{
|
{
|
||||||
plugin = vimtex;
|
plugin = vimtex;
|
||||||
config = "let g:nix_recommended_style = 0";
|
config = "let g:nix_recommended_style = 0";
|
||||||
@@ -147,15 +151,18 @@ in
|
|||||||
telescope-file-browser-nvim
|
telescope-file-browser-nvim
|
||||||
telescope-media-files-nvim
|
telescope-media-files-nvim
|
||||||
telescope-symbols-nvim
|
telescope-symbols-nvim
|
||||||
# need fzf for parrot
|
|
||||||
fzf-lua
|
fzf-lua
|
||||||
ctrlp-vim
|
# ctrlp-vim
|
||||||
|
|
||||||
# lsp stuff
|
# lsp stuff
|
||||||
lsp-zero-nvim
|
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
cmp-nvim-lsp
|
cmp-nvim-lsp
|
||||||
cmp_luasnip
|
cmp_luasnip
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
|
friendly-snippets
|
||||||
|
luasnip
|
||||||
|
|
||||||
guess-indent-nvim
|
guess-indent-nvim
|
||||||
|
|
||||||
@@ -172,8 +179,6 @@ in
|
|||||||
vim-fugitive
|
vim-fugitive
|
||||||
flash-nvim
|
flash-nvim
|
||||||
gitsigns-nvim
|
gitsigns-nvim
|
||||||
friendly-snippets
|
|
||||||
luasnip
|
|
||||||
which-key-nvim
|
which-key-nvim
|
||||||
|
|
||||||
overseer-nvim
|
overseer-nvim
|
||||||
@@ -195,7 +200,7 @@ in
|
|||||||
pkgs.customVimPlugins.cmp-vimtex
|
pkgs.customVimPlugins.cmp-vimtex
|
||||||
# pkgs.customVimPlugins.spaceport-nvim
|
# pkgs.customVimPlugins.spaceport-nvim
|
||||||
pkgs.customVimPlugins.nomodoro
|
pkgs.customVimPlugins.nomodoro
|
||||||
pkgs.customVimPlugins.parrot-nvim
|
# pkgs.customVimPlugins.parrot-nvim
|
||||||
pkgs.customVimPlugins.nvim-web-devicons
|
pkgs.customVimPlugins.nvim-web-devicons
|
||||||
|
|
||||||
# syntax highlighting
|
# syntax highlighting
|
||||||
@@ -206,6 +211,11 @@ in
|
|||||||
|
|
||||||
programs.thefuck.enable = true;
|
programs.thefuck.enable = true;
|
||||||
|
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@@ -249,68 +259,15 @@ in
|
|||||||
}
|
}
|
||||||
pkgs.customZshPlugins.zsh-completions
|
pkgs.customZshPlugins.zsh-completions
|
||||||
];
|
];
|
||||||
initExtra = ''
|
initContent = ''
|
||||||
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
|
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = import ./tmux/tmux.nix {
|
||||||
enable = true;
|
inherit config;
|
||||||
package = pkgs-unstable.tmux;
|
inherit pkgs;
|
||||||
historyLimit = 100000;
|
inherit pkgs-unstable;
|
||||||
clock24 = true;
|
|
||||||
keyMode = "vi";
|
|
||||||
mouse = true;
|
|
||||||
prefix = "M-,";
|
|
||||||
plugins = [
|
|
||||||
pkgs.tmuxPlugins.vim-tmux-navigator
|
|
||||||
pkgs.tmuxPlugins.better-mouse-mode
|
|
||||||
pkgs.tmuxPlugins.sensible
|
|
||||||
# pkgs.tmuxPlugins.tmux-powerline
|
|
||||||
# {
|
|
||||||
# plugin = pkgs.tmuxPlugins.dracula;
|
|
||||||
# extraConfig = ''
|
|
||||||
# set -g @dracula-show-battery true
|
|
||||||
# set -g @dracula-show-powerline true
|
|
||||||
# set -g @dracula-refresh-rate 10
|
|
||||||
# set -g @dracula-colors "
|
|
||||||
# # simple catppuccin Color Pallette
|
|
||||||
# pink='#cba6f7'
|
|
||||||
# orange='#fab387'
|
|
||||||
# yellow='#f9e2af'
|
|
||||||
# green='#a6e3a1'
|
|
||||||
# cyan='#89dceb'
|
|
||||||
# light_purple='#b4befe'
|
|
||||||
# white='#cdd6f4'
|
|
||||||
# dark_gray='#313244'
|
|
||||||
# red='#f38ba8'
|
|
||||||
# gray='#45475a'
|
|
||||||
# dark_purple='#6c7086'
|
|
||||||
# "
|
|
||||||
# '';
|
|
||||||
# }
|
|
||||||
pkgs.tmuxPlugins.power-theme
|
|
||||||
];
|
|
||||||
extraConfig = ''
|
|
||||||
set-option -g status-position top
|
|
||||||
unbind '"'
|
|
||||||
unbind %
|
|
||||||
set -s copy-command 'xsel -bi'
|
|
||||||
bind -N "Change layout" -T prefix % next-layout
|
|
||||||
bind -N "Horizontal split" -T prefix | split-window -h -c '#{pane_current_path}'
|
|
||||||
bind -N "Horizontal split" -T prefix \\ split-window -h -c '#{pane_current_path}'
|
|
||||||
bind -N "Vertical split" -T prefix - split-window -v -c '#{pane_current_path}'
|
|
||||||
bind -N "Create a new window" -T prefix c new-window -c '#{pane_current_path}'
|
|
||||||
bind -N "Quick pane for obsidian todos" -T prefix . split-window -c $DPK_OBSIDIAN_DIR -h "vim todos.md"
|
|
||||||
bind -N "Enter copy mode" -T prefix Space copy-mode
|
|
||||||
bind -N "Load buffer from xsel and paste" -T prefix C-p run "xsel -ob | tmux load-buffer - ; tmux paste-buffer"
|
|
||||||
set -g escape-time 1
|
|
||||||
bind -N "Leave copy mode" -T copy-mode-vi Escape send-keys -X cancel
|
|
||||||
bind -N "Leave copy mode" -T copy-mode-vi y send -X copy-pipe
|
|
||||||
bind -N "Selection toggle" -T copy-mode-vi Space if -F "#{selection_present}" { send -X clear-selection } { send -X begin-selection }
|
|
||||||
bind -N "Copy and leave copy-mode" -T copy-mode-vi Enter send -X copy-pipe-and-cancel
|
|
||||||
set-option -g status-right "#[fg=#ffb86c]#[fg=#262626,bg=#ffb86c]#(cat ${config.xdg.cacheHome}/weather/short-weather.txt) #[fg=#3a3a3a,bg=#ffb86c]#[fg=#ffb86c,bg=#3a3a3a] %T #[fg=#ffb86c,bg=#3a3a3a]#[fg=#262626,bg=#ffb86c] %F "
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.newsboat = {
|
programs.newsboat = {
|
||||||
@@ -391,8 +348,6 @@ in
|
|||||||
ExecStart = pkgs.writeShellScript "cache-weather-script" ''
|
ExecStart = pkgs.writeShellScript "cache-weather-script" ''
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
# PATH=$PATH:${lib.makeBinPath [ pkgs.wego ]}
|
# PATH=$PATH:${lib.makeBinPath [ pkgs.wego ]}
|
||||||
echo "`date`"
|
|
||||||
echo "that's the date"
|
|
||||||
${pkgs.wego}/bin/wego --help
|
${pkgs.wego}/bin/wego --help
|
||||||
${pkgs.wego}/bin/wego -f json > ${config.xdg.cacheHome}/weather/weather-cache.json
|
${pkgs.wego}/bin/wego -f json > ${config.xdg.cacheHome}/weather/weather-cache.json
|
||||||
${pkgs.jq}/bin/jq -r '. | {location: .Location, current_tempc: .Current.TempC, current_tempf: ((1.8 * .Current.TempC + 32) |round), desc: .Current.Desc} | "\(.location): \(.current_tempf) F \(.desc)"' ~/.cache/weather/weather-cache.json > ${config.xdg.cacheHome}/weather/short-weather.txt
|
${pkgs.jq}/bin/jq -r '. | {location: .Location, current_tempc: .Current.TempC, current_tempf: ((1.8 * .Current.TempC + 32) |round), desc: .Current.Desc} | "\(.location): \(.current_tempf) F \(.desc)"' ~/.cache/weather/weather-cache.json > ${config.xdg.cacheHome}/weather/short-weather.txt
|
||||||
@@ -414,4 +369,20 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services = {
|
||||||
|
uair = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Uair pomodoro timer";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.uair}/bin/uair -q";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ config }:
|
{ ... }:
|
||||||
|
# ^ passing in config for things as needed but we don't use it currently
|
||||||
''
|
''
|
||||||
inoremap jj <Esc>
|
inoremap jj <Esc>
|
||||||
inoremap kk <Esc>
|
inoremap kk <Esc>
|
||||||
@@ -27,10 +28,6 @@
|
|||||||
|
|
||||||
vim.keymap.set("n", "<leader>N", "R<Enter><Esc>")
|
vim.keymap.set("n", "<leader>N", "R<Enter><Esc>")
|
||||||
vim.g.python_recommended_style = 0
|
vim.g.python_recommended_style = 0
|
||||||
-- ctrlp setup
|
|
||||||
vim.g.ctrlp_custom_ignore = {
|
|
||||||
file = '\\v\\.(aux|bbl|blg|bcf|fdb_latexmk|fls|run.xml|tdo|toc|log|pdf)$'
|
|
||||||
}
|
|
||||||
|
|
||||||
require('gitsigns').setup()
|
require('gitsigns').setup()
|
||||||
require("oil").setup({
|
require("oil").setup({
|
||||||
@@ -72,10 +69,18 @@
|
|||||||
require("nightfox").setup({})
|
require("nightfox").setup({})
|
||||||
vim.cmd("colorscheme kanagawa-dragon")
|
vim.cmd("colorscheme kanagawa-dragon")
|
||||||
|
|
||||||
|
vim.keymap.set('n', "<leader>z", '<Nop>', { noremap = true, desc = "Toggles"})
|
||||||
vim.keymap.set('n', "<leader>zm", '<cmd>ZenMode<CR>', { noremap = true, desc = "Toggle zen-mode" })
|
vim.keymap.set('n', "<leader>zm", '<cmd>ZenMode<CR>', { noremap = true, desc = "Toggle zen-mode" })
|
||||||
|
|
||||||
require('flash').setup()
|
require('flash').setup()
|
||||||
vim.keymap.set('n', "<leader>ft", function() require("flash").toggle() end, {desc = "Toggle flash.nvim search", noremap = true})
|
vim.keymap.set('n', "<leader>zf", function() require("flash").toggle() end, {desc = "Toggle flash.nvim search", noremap = true})
|
||||||
|
|
||||||
|
vim.keymap.set('n', "<leader>f", '<Nop>', { noremap = true, desc = "FzfLua"})
|
||||||
|
vim.keymap.set('n', "<leader>fl", '<cmd>FzfLua<CR>', {desc = "FzfLua", noremap = true})
|
||||||
|
vim.keymap.set('n', "<leader>ff", function() require("fzf-lua").files() end, {desc = "FzfLua file search", noremap = true})
|
||||||
|
-- set ctrlp for muscle memory
|
||||||
|
vim.keymap.set('n', "<C-p>", function() require("fzf-lua").files() end, {desc = "FzfLua file search", noremap = true})
|
||||||
|
|
||||||
require('guess-indent').setup {}
|
require('guess-indent').setup {}
|
||||||
require('which-key').setup({})
|
require('which-key').setup({})
|
||||||
${builtins.readFile ./lsp.lua}
|
${builtins.readFile ./lsp.lua}
|
||||||
@@ -92,170 +97,6 @@
|
|||||||
vim.g.vimtex_fold_enabled = true
|
vim.g.vimtex_fold_enabled = true
|
||||||
|
|
||||||
${builtins.readFile ./overseer.lua}
|
${builtins.readFile ./overseer.lua}
|
||||||
require("parrot").setup({
|
|
||||||
providers = {
|
|
||||||
anthropic = {
|
|
||||||
api_key = { "cat", "${config.sops.secrets.anthropic_api_key.path}" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
hooks = {
|
|
||||||
Complete = function(prt, params)
|
|
||||||
local template = [[
|
|
||||||
I have the following code from {{filename}}:
|
|
||||||
|
|
||||||
```{{filetype}}
|
|
||||||
{{selection}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Please finish the code above carefully and logically.
|
|
||||||
Respond just with the snippet of code that should be inserted."
|
|
||||||
]]
|
|
||||||
local model_obj = prt.get_model "command"
|
|
||||||
prt.Prompt(params, prt.ui.Target.append, model_obj, nil, template)
|
|
||||||
end,
|
|
||||||
CompleteFullContext = function(prt, params)
|
|
||||||
local template = [[
|
|
||||||
I have the following code from {{filename}}:
|
|
||||||
|
|
||||||
```{{filetype}}
|
|
||||||
{{filecontent}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Please look at the following section specifically:
|
|
||||||
```{{filetype}}
|
|
||||||
{{selection}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Please finish the code above carefully and logically.
|
|
||||||
Respond just with the snippet of code that should be inserted.
|
|
||||||
]]
|
|
||||||
local model_obj = prt.get_model "command"
|
|
||||||
prt.Prompt(params, prt.ui.Target.append, model_obj, nil, template)
|
|
||||||
end,
|
|
||||||
CompleteMultiContext = function(prt, params)
|
|
||||||
local template = [[
|
|
||||||
I have the following code from {{filename}} and other realted files:
|
|
||||||
|
|
||||||
```{{filetype}}
|
|
||||||
{{multifilecontent}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Please look at the following section specifically:
|
|
||||||
```{{filetype}}
|
|
||||||
{{selection}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Please finish the code above carefully and logically.
|
|
||||||
Respond just with the snippet of code that should be inserted.
|
|
||||||
]]
|
|
||||||
local model_obj = prt.get_model "command"
|
|
||||||
prt.Prompt(params, prt.ui.Target.append, model_obj, nil, template)
|
|
||||||
end,
|
|
||||||
Explain = function(prt, params)
|
|
||||||
local template = [[
|
|
||||||
Your task is to take the code snippet from {{filename}} and explain it with gradually increasing complexity.
|
|
||||||
Break down the code's functionality, purpose, and key components.
|
|
||||||
The goal is to help the reader understand what the code does and how it works.
|
|
||||||
|
|
||||||
```{{filetype}}
|
|
||||||
{{selection}}
|
|
||||||
```
|
|
||||||
|
|
||||||
Use the markdown format with codeblocks and inline code.
|
|
||||||
Explanation of the code above:
|
|
||||||
]]
|
|
||||||
local model = prt.get_model "command"
|
|
||||||
prt.logger.info("Explaining selection with model: " .. model.name)
|
|
||||||
prt.Prompt(params, prt.ui.Target.new, model, nil, template)
|
|
||||||
end,
|
|
||||||
ProofReader = function(prt, params)
|
|
||||||
local chat_prompt = [[
|
|
||||||
I want you to act as a proofreader. I will provide you with texts and
|
|
||||||
I would like you to review them for any spelling, grammar, or
|
|
||||||
punctuation errors. Once you have finished reviewing the text,
|
|
||||||
provide me with any necessary corrections or suggestions to improve the
|
|
||||||
text. Highlight the corrected fragments (if any) using markdown backticks.
|
|
||||||
|
|
||||||
When you have done that subsequently provide me with a slightly better
|
|
||||||
version of the text, but keep close to the original text.
|
|
||||||
|
|
||||||
Finally provide me with an ideal version of the text.
|
|
||||||
|
|
||||||
For each of these versions, you can elide sections which include long unchanged text with NO_CHANGES_HERE.
|
|
||||||
|
|
||||||
Whenever I provide you with text, you reply in this format directly:
|
|
||||||
|
|
||||||
|
|
||||||
## Summary of suggestions:
|
|
||||||
|
|
||||||
{a brief list of spelling, grammar and punctuation errors, with brief snippets of the original text so I can search and find each change, followed by summaries of what types of changes are in the slightly better and ideal versions}
|
|
||||||
|
|
||||||
## Corrected text:
|
|
||||||
|
|
||||||
{corrected text, or say "NO_CORRECTIONS_NEEDED" instead if there are no corrections made}
|
|
||||||
|
|
||||||
## Slightly better text
|
|
||||||
|
|
||||||
{slightly better text}
|
|
||||||
|
|
||||||
## Ideal text
|
|
||||||
|
|
||||||
{ideal text}
|
|
||||||
]]
|
|
||||||
prt.ChatNew(params, chat_prompt)
|
|
||||||
end,
|
|
||||||
ProofReader2 = function(prt, params)
|
|
||||||
local chat_prompt = [[
|
|
||||||
I want you to act as a professional proofreader and editor. When I provide you with text, please:
|
|
||||||
|
|
||||||
1. First, identify and correct errors in
|
|
||||||
- spelling
|
|
||||||
- grammar
|
|
||||||
- punctuation
|
|
||||||
- syntax errors.
|
|
||||||
- Technical accuracy (for domain-specific content especially)
|
|
||||||
Mark corrections using markdown backticks.
|
|
||||||
|
|
||||||
2. Second, analyze stylistic elements including
|
|
||||||
- clarity
|
|
||||||
- conciseness
|
|
||||||
- word choice
|
|
||||||
- sentence structure
|
|
||||||
- paragraph organization and transitions (as appropriate for text length)
|
|
||||||
|
|
||||||
3. Provide your response in this structured format:
|
|
||||||
|
|
||||||
# Summary of the text:
|
|
||||||
Provide a concise overview of the text (1-2 sentences).
|
|
||||||
For longer texts (5+ paragraphs), include a brief outline of the content.
|
|
||||||
|
|
||||||
|
|
||||||
## Summary of suggestions:
|
|
||||||
- List specific errors found with brief context
|
|
||||||
- Group similar issues together
|
|
||||||
- Note patterns if they exist
|
|
||||||
- Highlight 3-5 most impactful improvements
|
|
||||||
- Summarize the types of improvements made in each version
|
|
||||||
|
|
||||||
## Corrected text:
|
|
||||||
Present the text with technical errors fixed (or state "NO_CORRECTIONS_NEEDED" if appropriate)
|
|
||||||
|
|
||||||
## Enhanced text:
|
|
||||||
Provide a version with moderate improvements to readability and flow while preserving the original voice and style. You may use [NO_CHANGES_HERE] to indicate substantial unchanged sections to keep your response more concise.
|
|
||||||
|
|
||||||
## Optimal text:
|
|
||||||
Present an ideal version that maintains the original intent but optimizes for clarity, impact, and professional quality. Use [NO_CHANGES_HERE] as mentioned above.
|
|
||||||
|
|
||||||
Please maintain the original meaning and tone while making your suggestions. If you're uncertain about the author's intent in any section, note this and provide alternative interpretations.
|
|
||||||
For very long texts, focus on the most impactful improvements.
|
|
||||||
]]
|
|
||||||
prt.ChatNew(params, chat_prompt)
|
|
||||||
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("n", "<leader>pt", "<cmd>PrtChatToggle<CR>", { noremap = true})
|
|
||||||
|
|
||||||
require("nomodoro").setup({
|
require("nomodoro").setup({
|
||||||
work_time = 10,
|
work_time = 10,
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
local lsp_zero = require("lsp-zero")
|
-- local lsp_zero = require("lsp-zero")
|
||||||
lsp_zero.on_attach(function(client, bufnr)
|
-- lsp_zero.on_attach(function(client, bufnr)
|
||||||
lsp_zero.default_keymaps({ buffer = bufnr })
|
-- lsp_zero.default_keymaps({ buffer = bufnr })
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
local cmp_format = lsp_zero.cmp_format({ details = true })
|
local luasnip = require("luasnip")
|
||||||
local cmp_action = lsp_zero.cmp_action()
|
-- local cmp_format = lsp_zero.cmp_format({ details = true })
|
||||||
|
-- local cmp_action = lsp_zero.cmp_action()
|
||||||
|
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
|
|
||||||
@@ -26,13 +27,39 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
formatting = cmp_format,
|
formatting = cmp_format,
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
-- ['<Tab>'] = cmp_action.tab_complete(),
|
["<CR>"] = cmp.mapping(function(fallback)
|
||||||
-- ['<S-Tab>'] = cmp_action.select_prev_or_fallback(),
|
if cmp.visible() then
|
||||||
["<Tab>"] = cmp_action.luasnip_supertab(),
|
if luasnip.expandable() then
|
||||||
["<S-Tab>"] = cmp_action.luasnip_shift_supertab(),
|
luasnip.expand()
|
||||||
["<C-f>"] = cmp_action.luasnip_jump_forward(),
|
else
|
||||||
["<C-b>"] = cmp_action.luasnip_jump_backward(),
|
cmp.confirm({
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
select = true,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
elseif luasnip.locally_jumpable(1) then
|
||||||
|
luasnip.jump(1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif luasnip.locally_jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
}),
|
}),
|
||||||
window = {
|
window = {
|
||||||
completion = cmp.config.window.bordered(),
|
completion = cmp.config.window.bordered(),
|
||||||
@@ -40,10 +67,10 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
require("luasnip").lsp_expand(args.body)
|
luasnip.lsp_expand(args.body)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- require("lspconfig").nil_ls.setup({})
|
vim.lsp.enable("pyright")
|
||||||
require("lspconfig").pyright.setup({})
|
vim.lsp.enable("nixd")
|
||||||
require("lspconfig").nixd.setup({})
|
vim.lsp.enable("terraformls")
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ require("lualine").setup({
|
|||||||
icons_enabled = false,
|
icons_enabled = false,
|
||||||
},
|
},
|
||||||
require("nomodoro").status,
|
require("nomodoro").status,
|
||||||
parrot_status,
|
-- parrot_status,
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
"encoding",
|
"encoding",
|
||||||
|
|||||||
42
home/deepak/tmux/tmux.nix
Normal file
42
home/deepak/tmux/tmux.nix
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
pkgs-unstable,
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-unstable.tmux;
|
||||||
|
historyLimit = 100000;
|
||||||
|
clock24 = true;
|
||||||
|
keyMode = "vi";
|
||||||
|
mouse = true;
|
||||||
|
prefix = "M-,";
|
||||||
|
plugins = [
|
||||||
|
pkgs.tmuxPlugins.vim-tmux-navigator
|
||||||
|
pkgs.tmuxPlugins.better-mouse-mode
|
||||||
|
pkgs.tmuxPlugins.sensible
|
||||||
|
pkgs.tmuxPlugins.power-theme
|
||||||
|
pkgs.tmuxPlugins.resurrect
|
||||||
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
set-option -g status-position top
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
set -s copy-command 'xsel -bi'
|
||||||
|
bind -N "Change layout" -T prefix % next-layout
|
||||||
|
bind -N "Horizontal split" -T prefix | split-window -h -c '#{pane_current_path}'
|
||||||
|
bind -N "Horizontal split" -T prefix \\ split-window -h -c '#{pane_current_path}'
|
||||||
|
bind -N "Vertical split" -T prefix - split-window -v -c '#{pane_current_path}'
|
||||||
|
bind -N "Create a new window" -T prefix c new-window -c '#{pane_current_path}'
|
||||||
|
bind -N "Quick pane for obsidian todos" -T prefix . split-window -c $DPK_OBSIDIAN_DIR -h "vim todos.md"
|
||||||
|
bind -N "Enter copy mode" -T prefix Space copy-mode
|
||||||
|
bind -N "Load buffer from xsel and paste" -T prefix C-p run "xsel -ob | tmux load-buffer - ; tmux paste-buffer"
|
||||||
|
set -g escape-time 1
|
||||||
|
bind -N "Leave copy mode" -T copy-mode-vi Escape send-keys -X cancel
|
||||||
|
bind -N "Leave copy mode" -T copy-mode-vi y send -X copy-pipe
|
||||||
|
bind -N "Selection toggle" -T copy-mode-vi Space if -F "#{selection_present}" { send -X clear-selection } { send -X begin-selection }
|
||||||
|
bind -N "Copy and leave copy-mode" -T copy-mode-vi Enter send -X copy-pipe-and-cancel
|
||||||
|
set-option -g status-right "#[fg=#ffb86c]#[fg=#262626,bg=#ffb86c]#(cat ${config.xdg.cacheHome}/weather/short-weather.txt) #[fg=#3a3a3a,bg=#ffb86c]#[fg=#ffb86c,bg=#3a3a3a] %T #[fg=#ffb86c,bg=#3a3a3a]#[fg=#262626,bg=#ffb86c] %F "
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -52,6 +52,7 @@ in
|
|||||||
];
|
];
|
||||||
trusted-substituters = [ "http://attic.baklava" ];
|
trusted-substituters = [ "http://attic.baklava" ];
|
||||||
trusted-public-keys = [ "systems:tvbHIThn7MAwvgMSiYR3ULVlL6cBrA40afqGuextnNQ=" ];
|
trusted-public-keys = [ "systems:tvbHIThn7MAwvgMSiYR3ULVlL6cBrA40afqGuextnNQ=" ];
|
||||||
|
download-buffer-size = 524288000;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
@@ -68,6 +69,7 @@ in
|
|||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
|
"docker"
|
||||||
]; # Enable ‘sudo’ for the user.
|
]; # Enable ‘sudo’ for the user.
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,53 +16,25 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"maxos" = inputs.nixpkgs-24-11.lib.nixosSystem {
|
"nixosWalrus" = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
system = linuxSystem;
|
|
||||||
specialArgs = {
|
|
||||||
inherit customPackageOverlay;
|
|
||||||
inherit nixpkgs-unstable;
|
|
||||||
withDocker = false;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./maxos/configuration.nix
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.homeManager-24-11.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
withGUI = true;
|
|
||||||
gitSigningKey = "976F3357369149AB";
|
|
||||||
rundirnum = "1000";
|
|
||||||
inherit nixpkgs-unstable;
|
|
||||||
};
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.users.deepak = {
|
|
||||||
imports = [ ../home/deepak/home.nix ];
|
|
||||||
};
|
|
||||||
home-manager.sharedModules = [
|
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"nixosWalrus" = inputs.nixpkgs-24-11.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit customPackageOverlay;
|
inherit customPackageOverlay;
|
||||||
inherit nixpkgs-unstable;
|
inherit nixpkgs-unstable;
|
||||||
hostname = "nixosWalrus";
|
hostname = "nixosWalrus";
|
||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
withDocker = false;
|
withDocker = true;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
(
|
(
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
nix.registry.nixpkgs.flake = inputs.nixpkgs-24-11;
|
nix.registry.nixpkgs.flake = inputs.nixpkgs-stable;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
./commonWSL-configuration.nix
|
./commonWSL-configuration.nix
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.homeManager-24-11.nixosModules.home-manager
|
inputs.homeManager-stable.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
withGUI = false;
|
withGUI = false;
|
||||||
@@ -81,10 +53,10 @@ in
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs.NixOS-WSL-2411.nixosModules.wsl
|
inputs.NixOS-WSL-stable.nixosModules.wsl
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"nixosEggYoke" = inputs.nixpkgs-24-11.lib.nixosSystem {
|
"nixosEggYoke" = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit customPackageOverlay;
|
inherit customPackageOverlay;
|
||||||
@@ -97,12 +69,12 @@ in
|
|||||||
(
|
(
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
nix.registry.nixpkgs.flake = inputs.nixpkgs-24-11;
|
nix.registry.nixpkgs.flake = inputs.nixpkgs-stable;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
./commonWSL-configuration.nix
|
./commonWSL-configuration.nix
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.homeManager-24-11.nixosModules.home-manager
|
inputs.homeManager-stable.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
withGUI = false;
|
withGUI = false;
|
||||||
@@ -117,7 +89,7 @@ in
|
|||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
inputs.NixOS-WSL-2411.nixosModules.wsl
|
inputs.NixOS-WSL-stable.nixosModules.wsl
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
cmp-vimtex,
|
cmp-vimtex,
|
||||||
spaceport-nvim,
|
spaceport-nvim,
|
||||||
nomodoro,
|
nomodoro,
|
||||||
parrot-nvim,
|
# parrot-nvim,
|
||||||
inputs,
|
inputs,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -12,20 +12,23 @@ let
|
|||||||
cmpVimtexPlugin = prev.vimUtils.buildVimPlugin {
|
cmpVimtexPlugin = prev.vimUtils.buildVimPlugin {
|
||||||
src = cmp-vimtex;
|
src = cmp-vimtex;
|
||||||
name = "cmp-vimtex";
|
name = "cmp-vimtex";
|
||||||
|
doCheck = false;
|
||||||
};
|
};
|
||||||
spaceportNvimPlugin = prev.vimUtils.buildVimPlugin {
|
spaceportNvimPlugin = prev.vimUtils.buildVimPlugin {
|
||||||
src = spaceport-nvim;
|
src = spaceport-nvim;
|
||||||
name = "spaceport-nvim";
|
name = "spaceport-nvim";
|
||||||
|
doCheck = false;
|
||||||
};
|
};
|
||||||
nomodoroNvimPlugin = prev.vimUtils.buildVimPlugin {
|
nomodoroNvimPlugin = prev.vimUtils.buildVimPlugin {
|
||||||
src = nomodoro;
|
src = nomodoro;
|
||||||
name = "nomodoro";
|
name = "nomodoro";
|
||||||
|
doCheck = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
parrotNvimPlugin = prev.vimUtils.buildVimPlugin {
|
# parrotNvimPlugin = prev.vimUtils.buildVimPlugin {
|
||||||
src = parrot-nvim;
|
# src = parrot-nvim;
|
||||||
name = "parrot-nvim";
|
# name = "parrot-nvim";
|
||||||
};
|
# };
|
||||||
|
|
||||||
nvimWebDeviconPlugin = prev.vimUtils.buildVimPlugin {
|
nvimWebDeviconPlugin = prev.vimUtils.buildVimPlugin {
|
||||||
src = inputs.nvim-web-devicons;
|
src = inputs.nvim-web-devicons;
|
||||||
@@ -42,7 +45,7 @@ let
|
|||||||
cmp-vimtex = cmpVimtexPlugin;
|
cmp-vimtex = cmpVimtexPlugin;
|
||||||
spaceport-nvim = spaceportNvimPlugin;
|
spaceport-nvim = spaceportNvimPlugin;
|
||||||
nomodoro = nomodoroNvimPlugin;
|
nomodoro = nomodoroNvimPlugin;
|
||||||
parrot-nvim = parrotNvimPlugin;
|
# parrot-nvim = parrotNvimPlugin;
|
||||||
nvim-web-devicons = nvimWebDeviconPlugin;
|
nvim-web-devicons = nvimWebDeviconPlugin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user