Compare commits
228 Commits
main
...
c4510abf88
| Author | SHA1 | Date | |
|---|---|---|---|
| c4510abf88 | |||
| 0c4cdd2d1e | |||
| c1418e1402 | |||
| ab59c50520 | |||
| 624a56e948 | |||
| fb269c0265 | |||
| 2a07ecef61 | |||
| aa830fc795 | |||
| 227a4fe53d | |||
| 99dfe10ebf | |||
| c002741419 | |||
| 448b3e5ef0 | |||
| fafadf4034 | |||
| a5845fb847 | |||
| 757d5e5c81 | |||
| 7b13880be2 | |||
| b895e85953 | |||
| ee3b95d986 | |||
| f5ed623d53 | |||
| d30fa3922b | |||
| 1c20cc3326 | |||
| e7a36abd8c | |||
| 635583669f | |||
| dec73a74d8 | |||
| ac23d88ca9 | |||
| 85df2e7886 | |||
| 7bb0f6fca4 | |||
| 486e273b97 | |||
| e7756a2959 | |||
| 68fa0d8c89 | |||
| b9c7c099e7 | |||
| e62790f2c7 | |||
| 3d36eb305e | |||
| 0952bfd827 | |||
| c6671fea4e | |||
| 55b3fde362 | |||
| 18f2e4d93a | |||
| dbac0fd1b9 | |||
| 26760d27a4 | |||
| eec5d54f59 | |||
| 1a0c85ec97 | |||
| 0037ba2e54 | |||
| 846112cd25 | |||
| 6233bd0867 | |||
| 6ba7fd28d5 | |||
| c75724de68 | |||
| 04f33a92ea | |||
| 3cc69cf68d | |||
| 5f5e5f8d4d | |||
| 2c5a115bf9 | |||
| 323fbe15c8 | |||
| f8b0f62606 | |||
| 0a222ed225 | |||
| a846849a80 | |||
| 092a4b47e6 | |||
| 385fcb3ee1 | |||
| 833d999027 | |||
| 0df8cdb354 | |||
| 23a89dab30 | |||
| 7ae0c01e8d | |||
| a975d9fb6c | |||
| 6684e2e7fe | |||
| 7f0726f443 | |||
| cb8ac3b848 | |||
| 3a1997f0c4 | |||
| a2a7c3c5a0 | |||
| ce6940b048 | |||
| e21411c2f9 | |||
| dcb525cce2 | |||
| dc630fe984 | |||
| ce90493654 | |||
| 0c553e7a7d | |||
| 4cf601df84 | |||
| c8e4337a14 | |||
| 49de518ad1 | |||
| 6c9312f509 | |||
| 3359426c48 | |||
| 0f0f038f5a | |||
| ab31842e58 | |||
| ea88fff4a4 | |||
| b3ab7dcb1c | |||
| adb1265800 | |||
| 40b2c821c8 | |||
| b59eb6889a | |||
| c538c5ad08 | |||
| 4236aa1def | |||
| 9ea3a7c984 | |||
| f57cabb186 | |||
| 0778b12305 | |||
| d9c3cb9889 | |||
| 9d22c210e3 | |||
| eb54ade226 | |||
| 1d5c1a7c2a | |||
| 0f7f9585b3 | |||
| ed24f55d15 | |||
| f5a490d452 | |||
| 88969087fe | |||
| b14e2e5a39 | |||
| 02f28ab1df | |||
| c048eb73c0 | |||
| b22c5bc935 | |||
| 7c46bae3e2 | |||
| 8a1f51873e | |||
| e03c77cdbc | |||
| a64d153004 | |||
| a78af6529c | |||
| c460bebb2d | |||
| b84944543a | |||
| 63f4c82c76 | |||
| 677b1b6666 | |||
| b827b518cd | |||
| 68eecd01c7 | |||
| 8fc4e23d3b | |||
| cf381042d0 | |||
| 2303988b74 | |||
| 791d90b703 | |||
| 29137a8cdd | |||
| dd175e99b8 | |||
| 3a5f1cf47e | |||
| 755f1f4a06 | |||
| 1cfc049326 | |||
| 09d2832948 | |||
| 85ab23eb5d | |||
| 76a31b3051 | |||
| 8e5cbe6350 | |||
| e75fc95b27 | |||
| 24ed3f03cd | |||
| b6453330bf | |||
| bd008cde04 | |||
| ffff1cfda1 | |||
| 0f369bdf6c | |||
| 600e55de1f | |||
| a390428ca9 | |||
| a5aeddc5c2 | |||
| e9748b0236 | |||
| 3902e2da67 | |||
| 42af1badc4 | |||
| 1eca0c995d | |||
| 92389f7048 | |||
| d6459d0d84 | |||
| 00e5c92c1e | |||
| c19afff26a | |||
| 8ea03f0a66 | |||
| 8f3f6ec66d | |||
| 3401ed7424 | |||
| bb6a380599 | |||
| 35fd4e61e2 | |||
| 01542dda96 | |||
| 8464884fdb | |||
| 33b022c659 | |||
| a8f3f222b1 | |||
| bf9ea37280 | |||
| 724c5c176b | |||
| 49e99e9de2 | |||
| ce0af2988a | |||
| 5a7afbfe82 | |||
| 87afec8955 | |||
| 2a1512f85b | |||
| 313e623ec4 | |||
| 4f7ab88634 | |||
| a8851e5a91 | |||
| 629f25c795 | |||
| b52d87d30b | |||
| 54114f99ab | |||
| 2fcde8ddd1 | |||
| a952136be1 | |||
| 7773d2a7a0 | |||
| c86a52e435 | |||
| c99738c210 | |||
| 8321d5e2ef | |||
| 46477cce25 | |||
| 4765527fa6 | |||
| 67f5aefc82 | |||
| 89c398a957 | |||
| d1fc192d26 | |||
| bc2790c7fb | |||
| e3f55a1fbd | |||
| c66cd0e28c | |||
| d5d395ed56 | |||
| e15f9a51cb | |||
| acafbf9a6a | |||
| 4952ea0634 | |||
| 6e2f28d601 | |||
| 143d31433f | |||
| a176c744f8 | |||
| 2fa0b1f36a | |||
| 520cd476fc | |||
| f985df8e61 | |||
| ec750ebb17 | |||
| f3fd842692 | |||
| 6ff168caeb | |||
| 0863445dab | |||
| 989a9626b3 | |||
| 7fa58a0421 | |||
| a477b2c5c3 | |||
| d2999ab763 | |||
| 5d7b8d520a | |||
| edbbd3efd5 | |||
| de0b4852bf | |||
| 3e66197dd8 | |||
| 495befc8c0 | |||
| c4ccfc3a92 | |||
| 02869d267a | |||
| 1e03157838 | |||
| bc3caec6ba | |||
| 2d9e1fd875 | |||
| 63ef553d6b | |||
| 11ed160935 | |||
|
|
7256c82b91 | ||
|
|
fcdb9d19fc | ||
| cec89af852 | |||
| 8de9913ecf | |||
| d71e7d0e5d | |||
| e643d22eda | |||
| c141508203 | |||
| 8ee1913d93 | |||
| ac4619f1a4 | |||
| d178a03b43 | |||
| 063f142ae5 | |||
| c90127e212 | |||
| f317f9409e | |||
| c13de26ee1 | |||
| ac5b97dba4 | |||
| 4e2c3473e4 | |||
| 8434ceb45a | |||
| b2d1ef4bb1 | |||
| c6ec0a5d1d | |||
| d9ea9d1d27 |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,3 +1,7 @@
|
|||||||
|
#
|
||||||
|
.claude/
|
||||||
|
home/hosts/work/packages.local.nix
|
||||||
|
|
||||||
# ---> Nix
|
# ---> Nix
|
||||||
# Ignore build outputs from performing a nix-build or `nix build` command
|
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||||
result
|
result
|
||||||
@@ -5,4 +9,4 @@ result-*
|
|||||||
|
|
||||||
nixos-efi-vars.fd
|
nixos-efi-vars.fd
|
||||||
|
|
||||||
home/hosts/work/packages.local.nix
|
/.pre-commit-config.yaml
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -1,15 +1,27 @@
|
|||||||
# NixOS flake
|
# NixOS flake
|
||||||
|
|
||||||
## Set up virtual machine ([`disko`](https://github.com/nix-community/disko/blob/master/docs/interactive-vm.md))
|
## hosts
|
||||||
|
|
||||||
1. Build the virtual machine
|
### NixOS
|
||||||
|
|
||||||
|
```
|
||||||
|
nixos-rebuild switch --flake .#<hostname>
|
||||||
|
```
|
||||||
|
|
||||||
|
### home manager
|
||||||
|
|
||||||
|
```
|
||||||
|
home-manager switch --flake .#work
|
||||||
|
```
|
||||||
|
|
||||||
|
### virtual machines
|
||||||
|
|
||||||
```
|
```
|
||||||
nix build -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko'
|
nix build -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko'
|
||||||
```
|
|
||||||
|
|
||||||
2. Run the virtual machine
|
|
||||||
|
|
||||||
```
|
|
||||||
./result/bin/disko-vm
|
./result/bin/disko-vm
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## docs
|
||||||
|
|
||||||
|
* [deploy using colmena](./deploy/README.md)
|
||||||
|
* [SD installer images](./images/README.md)
|
||||||
|
|||||||
9
deploy/README.md
Normal file
9
deploy/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# `colmena` deployments
|
||||||
|
|
||||||
|
* tags: `local`, `cloud`
|
||||||
|
* deployments can be made from `astyanax` and `andromache` hosts
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- [docs: `colmena`](https://colmena.cli.rs/)
|
||||||
|
- [repo: `colmena`](https://github.com/zhaofengli/colmena)
|
||||||
32
deploy/colmena.nix
Normal file
32
deploy/colmena.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
self,
|
||||||
|
inputs,
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
mkNode = hostname: tags: {
|
||||||
|
imports = [ ../hosts/${hostname} ];
|
||||||
|
deployment = {
|
||||||
|
targetHost = self.nixosConfigurations.${hostname}.config.ssh.publicHostname;
|
||||||
|
targetUser = self.nixosConfigurations.${hostname}.config.ssh.username;
|
||||||
|
buildOnTarget = builtins.any (t: t != "local") tags;
|
||||||
|
inherit tags;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
inputs.colmena.lib.makeHive {
|
||||||
|
meta = {
|
||||||
|
nixpkgs = import inputs.nixpkgs {
|
||||||
|
localSystem = "x86_64-linux";
|
||||||
|
};
|
||||||
|
|
||||||
|
nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) self.nixosConfigurations;
|
||||||
|
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs or { }) self.nixosConfigurations;
|
||||||
|
};
|
||||||
|
|
||||||
|
astyanax = mkNode "astyanax" [ "local" ];
|
||||||
|
andromache = mkNode "andromache" [ "local" ];
|
||||||
|
vm = mkNode "vm" [ "local" ];
|
||||||
|
hecuba = mkNode "hecuba" [ "cloud" ];
|
||||||
|
eetion = mkNode "eetion" [ "arm" ];
|
||||||
|
}
|
||||||
@@ -103,13 +103,6 @@ if [[ -z "${SSH_CONNECTION}" ]]; then
|
|||||||
fi
|
fi
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# pnpm
|
|
||||||
export PNPM_HOME="/home/h/.local/share/pnpm"
|
|
||||||
case ":$PATH:" in
|
|
||||||
*":$PNPM_HOME:"*) ;;
|
|
||||||
*) export PATH="$PNPM_HOME:$PATH" ;;
|
|
||||||
esac
|
|
||||||
# pnpm end
|
|
||||||
|
|
||||||
# Codi
|
# Codi
|
||||||
# Usage: codi [filetype] [filename]
|
# Usage: codi [filetype] [filename]
|
||||||
|
|||||||
@@ -4,16 +4,3 @@
|
|||||||
# Set NeoVim as default editor
|
# Set NeoVim as default editor
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export SUDO_EDITOR="$EDITOR"
|
export SUDO_EDITOR="$EDITOR"
|
||||||
|
|
||||||
declare -A -r EDITOR_CONFIGS=(
|
|
||||||
["nvim"]="$HOME/.config/nvim/init.lua"
|
|
||||||
["vim"]="$HOME/.vimrc"
|
|
||||||
)
|
|
||||||
|
|
||||||
edit_editor_config() {
|
|
||||||
for editor in "${!EDITOR_CONFIGS[@]}"; do
|
|
||||||
if [ "$EDITOR" = "$editor" ]; then
|
|
||||||
$EDITOR "${EDITOR_CONFIGS[$editor]}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|||||||
32
dots/.bin/bak
Executable file
32
dots/.bin/bak
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# back up a file by copying it to a new file with a .bak extension
|
||||||
|
# reference: https://askubuntu.com/questions/962489/is-there-any-way-to-create-backup-copy-of-a-file-without-type-its-name-twice
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "Usage: bak [-t|--timestamp] <file to back up>"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
timestamp=false
|
||||||
|
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case $1 in
|
||||||
|
-t|--timestamp)
|
||||||
|
timestamp=true
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
[ $# -eq 1 ] || usage
|
||||||
|
|
||||||
|
if $timestamp; then
|
||||||
|
date="$(date +%Y-%m-%d_%H-%M-%S)"
|
||||||
|
cp -vpn "$1"{,."$date".bak}
|
||||||
|
else
|
||||||
|
cp -vpn "$1"{,.bak}
|
||||||
|
fi
|
||||||
@@ -8,19 +8,24 @@ Pomodoro timer
|
|||||||
- Notification on break finish
|
- Notification on break finish
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import atexit
|
import atexit
|
||||||
|
import os
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from plyer import notification
|
from plyer import notification
|
||||||
|
|
||||||
POMO_PATH = os.path.join(os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share")), "pomo")
|
POMO_PATH = os.path.join(
|
||||||
|
os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share")), "pomo"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@atexit.register
|
@atexit.register
|
||||||
def clear():
|
def clear():
|
||||||
if os.path.exists(POMO_PATH):
|
if os.path.exists(POMO_PATH):
|
||||||
os.remove(POMO_PATH)
|
os.remove(POMO_PATH)
|
||||||
|
|
||||||
|
|
||||||
def format_mins_secs(mins, secs):
|
def format_mins_secs(mins, secs):
|
||||||
return f"{mins:02d}:{secs:02d}"
|
return f"{mins:02d}:{secs:02d}"
|
||||||
|
|
||||||
@@ -34,6 +39,7 @@ def make_countdown():
|
|||||||
os.system(f'echo -n "{time_str}" > {POMO_PATH}')
|
os.system(f'echo -n "{time_str}" > {POMO_PATH}')
|
||||||
sleep(1)
|
sleep(1)
|
||||||
duration -= 1
|
duration -= 1
|
||||||
|
|
||||||
return countdown
|
return countdown
|
||||||
|
|
||||||
|
|
||||||
@@ -58,21 +64,23 @@ def main(args):
|
|||||||
def handle_signal(signal, frame):
|
def handle_signal(signal, frame):
|
||||||
# Wait for clear to finish
|
# Wait for clear to finish
|
||||||
clear()
|
clear()
|
||||||
print('Exiting')
|
print("Exiting")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == "__main__":
|
||||||
|
|
||||||
parser = ArgumentParser()
|
parser = ArgumentParser()
|
||||||
parser.add_argument('-w', '--work-duration', type=int,
|
parser.add_argument(
|
||||||
help='Session duration', default=25)
|
"-w", "--work-duration", type=int, help="Session duration", default=25
|
||||||
parser.add_argument('-b', '--break-duration', type=int,
|
)
|
||||||
help='Break duration', default=5)
|
parser.add_argument(
|
||||||
parser.add_argument('-r', '--repeats', type=int,
|
"-b", "--break-duration", type=int, help="Break duration", default=5
|
||||||
help='Numer of sessions', default=1)
|
)
|
||||||
parser.add_argument('-c', '--clear', action='store_true',
|
parser.add_argument(
|
||||||
help='Clear timer')
|
"-r", "--repeats", type=int, help="Numer of sessions", default=1
|
||||||
|
)
|
||||||
|
parser.add_argument("-c", "--clear", action="store_true", help="Clear timer")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
session="r5rs"
|
session="r5rs"
|
||||||
|
|
||||||
tmux attach-session -t $session || tmux new-session -s $session \; \
|
tmux attach-session -t "$session" || tmux new-session -s "$session" \; \
|
||||||
split-window -h -t $session \; \
|
split-window -h -t $session \; \
|
||||||
send-keys -t 0 "vim" C-m \; \
|
send-keys -t 1 "nvim -c \"set ft=scheme\"" C-m \; \
|
||||||
send-keys -t 1 "plt-r5rs --no-prim" C-m \; \
|
send-keys -t 2 "plt-r5rs --no-prim" C-m \; \
|
||||||
select-pane -t 0
|
select-pane -t 1
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Back up my $HOME folder to OneDrive using `restic`.
|
|
||||||
#
|
|
||||||
# Adds extra flags needed for using `rclone` with sharepoint WebDav I.e. add
|
|
||||||
# `--ignore-size --ignore-checksum --update` to the default `rclone.args`.
|
|
||||||
#
|
|
||||||
# Select directory in repo using -r rclone:<repo>:<directory>
|
|
||||||
#
|
|
||||||
# Runs `backup` command on $HOME and ignore what is listed in `.resticexclude`
|
|
||||||
#
|
|
||||||
# ```/etc/restic-env
|
|
||||||
# export B2_ACCOUNT_ID=
|
|
||||||
# export B2_ACCOUNT_KEY=
|
|
||||||
# ```
|
|
||||||
#
|
|
||||||
# `restic -r b2:desktop-arch init`
|
|
||||||
|
|
||||||
source /etc/restic-env
|
|
||||||
restic -r "$RESTIC_REPOSITORY:$HOSTNAME" backup \
|
|
||||||
--tag "hektor" \
|
|
||||||
--one-file-system \
|
|
||||||
--files-from="$HOME/.resticinclude" \
|
|
||||||
--exclude-file="$HOME/.resticexclude" \
|
|
||||||
--verbose=3
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[ -f "/tmp/pomo" ] && cat /tmp/pomo || echo ""
|
[ -f "/home/h/.local/share/pomo" ] && cat /home/h/.local/share/pomo || echo ""
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
DEFAULT_TEMPERATURE = 3500
|
DEFAULT_TEMPERATURE = 3500
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('/tmp/temperature', 'r') as temp_file:
|
with open("/tmp/temperature", "r") as temp_file:
|
||||||
current_temperature = int(temp_file.read())
|
current_temperature = int(temp_file.read())
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
current_temperature = DEFAULT_TEMPERATURE
|
current_temperature = DEFAULT_TEMPERATURE
|
||||||
@@ -16,7 +16,8 @@ if len(sys.argv) == 1:
|
|||||||
print(current_temperature)
|
print(current_temperature)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif len(sys.argv) != 2:
|
elif len(sys.argv) != 2:
|
||||||
print("""
|
print(
|
||||||
|
"""
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
screen-temperature
|
screen-temperature
|
||||||
@@ -27,7 +28,8 @@ Usage:
|
|||||||
|
|
||||||
screen-temperature <+|-><temperature>
|
screen-temperature <+|-><temperature>
|
||||||
increase or decrease screen temperature by <temperature>
|
increase or decrease screen temperature by <temperature>
|
||||||
""")
|
"""
|
||||||
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
temperature_change = sys.argv[1]
|
temperature_change = sys.argv[1]
|
||||||
@@ -41,11 +43,10 @@ else:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run(["redshift", "-O", str(new_temperature), "-P"], check=True)
|
subprocess.run(["redshift", "-O", str(new_temperature), "-P"], check=True)
|
||||||
with open('/tmp/temperature', 'w') as temp_file:
|
with open("/tmp/temperature", "w") as temp_file:
|
||||||
temp_file.write(str(new_temperature) + '\n')
|
temp_file.write(str(new_temperature) + "\n")
|
||||||
# Send notification
|
# Send notification
|
||||||
subprocess.run(
|
subprocess.run(["notify-send", str(new_temperature) + "K"])
|
||||||
["notify-send", str(new_temperature) + "K"])
|
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
print("Error: could not set screen temperature.")
|
print("Error: could not set screen temperature.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.background primary-color "#555555"
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.wm.preferences workspace-names "['sh', 'www', 'dev', 'info', 'etc']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings close "['<Shift><Super>Delete']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>j']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Super>k']"
|
|
||||||
gsettings set org.gnome.shell.keybindings toggle-application-view "['<Super>p']"
|
|
||||||
gsettings set org.gnome.mutter center-new-windows true
|
|
||||||
gsettings set org.gnome.shell.keybindings toggle-quick-settings []
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>a']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>s']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>d']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>f']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Super>g']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 "['<Super><Shift>a']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 "['<Super><Shift>s']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 "['<Super><Shift>d']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-4 "['<Super><Shift>f']"
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Super><Shift>g']"
|
|
||||||
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name "Kitty"
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command "kitty"
|
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding "<Shift><Super>Return"
|
|
||||||
|
|
||||||
gsettings set org.gnome.shell.keybindings screenshot "['Print']"
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.wm.preferences num-workspaces "5"
|
|
||||||
gsettings set org.gnome.mutter dynamic-workspaces "false"
|
|
||||||
gsettings set org.gnome.shell.extensions.window-list display-all-workspaces "true"
|
|
||||||
gsettings set org.gnome.shell.app-switcher current-workspace-only "true"
|
|
||||||
|
|
||||||
gsettings set org.gnome.login-screen logo ''
|
|
||||||
gsettings set org.gnome.shell favorite-apps "['firefox-developer-edition.desktop']"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Tiny Vim update helper
|
|
||||||
|
|
||||||
nvim +PlugUpgrade +PlugUpdate +CocUpdate
|
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
current_zettel_path="$ZK_PATH/$(cat "$ZK_PATH/current-zettel.txt")"
|
||||||
|
|
||||||
if [ "$TERM_PROGRAM" = tmux ]; then
|
if [ "$TERM_PROGRAM" = tmux ]; then
|
||||||
cd ~/.zk && $EDITOR "$(cat ~/.zk/current-zettel.txt)"
|
cd "$ZK_PATH" && $EDITOR "$current_zettel_path"
|
||||||
else
|
else
|
||||||
echo 'Not in tmux'
|
echo 'Not in tmux'
|
||||||
echo 'Choose an option:'
|
echo 'Choose an option:'
|
||||||
@@ -18,12 +20,12 @@ else
|
|||||||
else
|
else
|
||||||
# Create session with a window named 'zk' and start nvim
|
# Create session with a window named 'zk' and start nvim
|
||||||
tmux new-session -s zk -n zk -d
|
tmux new-session -s zk -n zk -d
|
||||||
tmux send-keys -t zk:zk "cd ~/.zk && $EDITOR \"\$(cat ~/.zk/current-zettel.txt)\"" Enter
|
tmux send-keys -t zk:zk "cd $ZK_PATH && $EDITOR $current_zettel_path" Enter
|
||||||
tmux attach -t zk
|
tmux attach -t zk
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
cd ~/.zk && $EDITOR "$(cat ~/.zk/current-zettel.txt)"
|
cd "$ZK_PATH" && $EDITOR "$current_zettel_path"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'Not opening Zettelkasten'
|
echo 'Not opening Zettelkasten'
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ hide_window_decorations yes
|
|||||||
|
|
||||||
#: Tab bar {{{
|
#: Tab bar {{{
|
||||||
|
|
||||||
tab_bar_edge top
|
tab_bar_edge bottom
|
||||||
tab_bar_style powerline
|
tab_bar_style powerline
|
||||||
tab_bar_min_tabs 1
|
tab_bar_min_tabs 1
|
||||||
tab_powerline_style slanted
|
tab_powerline_style slanted
|
||||||
@@ -136,7 +136,7 @@ map f5 goto_tab 5
|
|||||||
map f6 goto_tab 6
|
map f6 goto_tab 6
|
||||||
map f7 goto_tab 7
|
map f7 goto_tab 7
|
||||||
map f8 goto_tab 8
|
map f8 goto_tab 8
|
||||||
map kitty_mod+c new_tab
|
# map kitty_mod+c new_tab # FIXME: conflict with 'copy'
|
||||||
map cmd+t
|
map cmd+t
|
||||||
map kitty_mod+q
|
map kitty_mod+q
|
||||||
map cmd+w
|
map cmd+w
|
||||||
@@ -163,5 +163,4 @@ map cmd+q
|
|||||||
|
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
include ./themes/zenwritten_dark.conf
|
|
||||||
include ./nvim.conf
|
include ./nvim.conf
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
# This file is auto-generated by shipwright.nvim
|
|
||||||
# vim:ft=kitty
|
|
||||||
## name: zenwritten_dark
|
|
||||||
## author: Michael Chris Lopez
|
|
||||||
## license: MIT
|
|
||||||
## upstream: https://github.com/mcchrish/zenbones.nvim/raw/main/extras/kitty/zenwritten_dark.conf
|
|
||||||
## blurb: A zenbones variant with zero hue and saturation.
|
|
||||||
foreground #BBBBBB
|
|
||||||
background #191919
|
|
||||||
selection_foreground #BBBBBB
|
|
||||||
selection_background #404040
|
|
||||||
# Cursor colors
|
|
||||||
cursor #C9C9C9
|
|
||||||
cursor_text_color #191919
|
|
||||||
# URL underline color when hovering with mouse
|
|
||||||
# kitty window border colors
|
|
||||||
# OS Window titlebar colors
|
|
||||||
# Tab bar colors
|
|
||||||
active_tab_foreground #BBBBBB
|
|
||||||
active_tab_background #65435E
|
|
||||||
inactive_tab_foreground #BBBBBB
|
|
||||||
inactive_tab_background #303030
|
|
||||||
# Colors for marks (marked text in the terminal)
|
|
||||||
# The basic 16 colors
|
|
||||||
# black
|
|
||||||
color0 #191919
|
|
||||||
color8 #3D3839
|
|
||||||
# red
|
|
||||||
color1 #DE6E7C
|
|
||||||
color9 #E8838F
|
|
||||||
# green
|
|
||||||
color2 #819B69
|
|
||||||
color10 #8BAE68
|
|
||||||
# yellow
|
|
||||||
color3 #B77E64
|
|
||||||
color11 #D68C67
|
|
||||||
# blue
|
|
||||||
color4 #6099C0
|
|
||||||
color12 #61ABDA
|
|
||||||
# magenta
|
|
||||||
color5 #B279A7
|
|
||||||
color13 #CF86C1
|
|
||||||
# cyan
|
|
||||||
color6 #66A5AD
|
|
||||||
color14 #65B8C1
|
|
||||||
# white
|
|
||||||
color7 #BBBBBB
|
|
||||||
color15 #8E8E8E
|
|
||||||
# You can set the remaining 240 colors as color16 to color255.
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
# This file is auto-generated by shipwright.nvim
|
|
||||||
# vim:ft=kitty
|
|
||||||
## name: zenwritten_light
|
|
||||||
## author: Michael Chris Lopez
|
|
||||||
## license: MIT
|
|
||||||
## upstream: https://github.com/mcchrish/zenbones.nvim/raw/main/extras/kitty/zenwritten_light.conf
|
|
||||||
## blurb: A zenbones variant with zero hue and saturation.
|
|
||||||
foreground #353535
|
|
||||||
background #EEEEEE
|
|
||||||
selection_foreground #353535
|
|
||||||
selection_background #D7D7D7
|
|
||||||
# Cursor colors
|
|
||||||
cursor #353535
|
|
||||||
cursor_text_color #EEEEEE
|
|
||||||
# URL underline color when hovering with mouse
|
|
||||||
# kitty window border colors
|
|
||||||
# OS Window titlebar colors
|
|
||||||
# Tab bar colors
|
|
||||||
active_tab_foreground #353535
|
|
||||||
active_tab_background #DEB9D6
|
|
||||||
inactive_tab_foreground #353535
|
|
||||||
inactive_tab_background #CFCFCF
|
|
||||||
# Colors for marks (marked text in the terminal)
|
|
||||||
# The basic 16 colors
|
|
||||||
# black
|
|
||||||
color0 #EEEEEE
|
|
||||||
color8 #C6C3C3
|
|
||||||
# red
|
|
||||||
color1 #A8334C
|
|
||||||
color9 #94253E
|
|
||||||
# green
|
|
||||||
color2 #4F6C31
|
|
||||||
color10 #3F5A22
|
|
||||||
# yellow
|
|
||||||
color3 #944927
|
|
||||||
color11 #803D1C
|
|
||||||
# blue
|
|
||||||
color4 #286486
|
|
||||||
color12 #1D5573
|
|
||||||
# magenta
|
|
||||||
color5 #88507D
|
|
||||||
color13 #7B3B70
|
|
||||||
# cyan
|
|
||||||
color6 #3B8992
|
|
||||||
color14 #2B747C
|
|
||||||
# white
|
|
||||||
color7 #353535
|
|
||||||
color15 #5C5C5C
|
|
||||||
# You can set the remaining 240 colors as color16 to color255.
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
default_keybindings = false
|
default_keybindings = false
|
||||||
flip_status_indicators = true
|
flip_status_indicators = true
|
||||||
|
library_tabs = ["tracks", "albums", "artists", "playlists", "browse"] # remove podcasts tab
|
||||||
|
|
||||||
[keybindings]
|
[keybindings]
|
||||||
"Enter" = "play"
|
"Enter" = "play"
|
||||||
@@ -24,11 +25,10 @@ flip_status_indicators = true
|
|||||||
"c" = "clear"
|
"c" = "clear"
|
||||||
"=" = "volup 1"
|
"=" = "volup 1"
|
||||||
"-" = "voldown 1"
|
"-" = "voldown 1"
|
||||||
"/" = "focus search"
|
|
||||||
"Q" = "focus queue"
|
|
||||||
"L" = "focus library"
|
|
||||||
"1" = "focus queue"
|
"1" = "focus queue"
|
||||||
"2" = "focus library"
|
"2" = "focus search"
|
||||||
|
"3" = "focus library"
|
||||||
|
"4" = "focus cover"
|
||||||
"h" = "move left 1"
|
"h" = "move left 1"
|
||||||
"j" = "move down 1"
|
"j" = "move down 1"
|
||||||
"k" = "move up 1"
|
"k" = "move up 1"
|
||||||
@@ -41,26 +41,5 @@ flip_status_indicators = true
|
|||||||
"Y" = "share selected"
|
"Y" = "share selected"
|
||||||
"U" = "update"
|
"U" = "update"
|
||||||
|
|
||||||
[theme]
|
|
||||||
primary="#aaaaaa"
|
|
||||||
secondary="#555555"
|
|
||||||
background="1a1a1a"
|
|
||||||
title="#cccccc"
|
|
||||||
title_secondary="#aaaaaa"
|
|
||||||
playing="#ffffff"
|
|
||||||
playing_bg="1a1a1a"
|
|
||||||
playing_selected="#ffffff"
|
|
||||||
highlight="#cccccc"
|
|
||||||
highlight_bg="#333333"
|
|
||||||
error="#ffffff"
|
|
||||||
error_bg="#333333"
|
|
||||||
statusbar="#cccccc"
|
|
||||||
statusbar_bg="#1a1a1a"
|
|
||||||
statusbar_progress="#cccccc"
|
|
||||||
statusbar_progress_bg="#1a1a1a"
|
|
||||||
cmdline="#cccccc"
|
|
||||||
cmdline_bg="#1a1a1a"
|
|
||||||
search_match="#ffffff"
|
|
||||||
|
|
||||||
backend="pipe"
|
backend="pipe"
|
||||||
notify="false"
|
notify="false"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
username = 'hektor.misplon@gmail.com'
|
|
||||||
auth_type = 0
|
|
||||||
auth_data = 'KDEzMzc9PXRydTMpPzo='
|
|
||||||
61
dots/.config/nvim/after/plugin/claude-code.nvim.lua
Normal file
61
dots/.config/nvim/after/plugin/claude-code.nvim.lua
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
require("claude-code").setup({
|
||||||
|
-- Terminal window settings
|
||||||
|
window = {
|
||||||
|
split_ratio = 0.3, -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits)
|
||||||
|
position = "vertical", -- Position of the window: "botright", "topleft", "vertical", "float", etc.
|
||||||
|
enter_insert = true, -- Whether to enter insert mode when opening Claude Code
|
||||||
|
hide_numbers = true, -- Hide line numbers in the terminal window
|
||||||
|
hide_signcolumn = true, -- Hide the sign column in the terminal window
|
||||||
|
|
||||||
|
-- Floating window configuration (only applies when position = "float")
|
||||||
|
float = {
|
||||||
|
width = "80%", -- Width: number of columns or percentage string
|
||||||
|
height = "80%", -- Height: number of rows or percentage string
|
||||||
|
row = "center", -- Row position: number, "center", or percentage string
|
||||||
|
col = "center", -- Column position: number, "center", or percentage string
|
||||||
|
relative = "editor", -- Relative to: "editor" or "cursor"
|
||||||
|
border = "rounded", -- Border style: "none", "single", "double", "rounded", "solid", "shadow"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- File refresh settings
|
||||||
|
refresh = {
|
||||||
|
enable = true, -- Enable file change detection
|
||||||
|
updatetime = 100, -- updatetime when Claude Code is active (milliseconds)
|
||||||
|
timer_interval = 1000, -- How often to check for file changes (milliseconds)
|
||||||
|
show_notifications = true, -- Show notification when files are reloaded
|
||||||
|
},
|
||||||
|
-- Git project settings
|
||||||
|
git = {
|
||||||
|
use_git_root = true, -- Set CWD to git root when opening Claude Code (if in git project)
|
||||||
|
},
|
||||||
|
-- Shell-specific settings
|
||||||
|
shell = {
|
||||||
|
separator = "&&", -- Command separator used in shell commands
|
||||||
|
pushd_cmd = "pushd", -- Command to push directory onto stack (e.g., 'pushd' for bash/zsh, 'enter' for nushell)
|
||||||
|
popd_cmd = "popd", -- Command to pop directory from stack (e.g., 'popd' for bash/zsh, 'exit' for nushell)
|
||||||
|
},
|
||||||
|
-- Command settings
|
||||||
|
command = "claude", -- Command used to launch Claude Code
|
||||||
|
-- Command variants
|
||||||
|
command_variants = {
|
||||||
|
-- Conversation management
|
||||||
|
continue = "--continue", -- Resume the most recent conversation
|
||||||
|
resume = "--resume", -- Display an interactive conversation picker
|
||||||
|
|
||||||
|
-- Output options
|
||||||
|
verbose = "--verbose", -- Enable verbose logging with full turn-by-turn output
|
||||||
|
},
|
||||||
|
-- Keymaps
|
||||||
|
keymaps = {
|
||||||
|
toggle = {
|
||||||
|
normal = "<C-,>", -- Normal mode keymap for toggling Claude Code, false to disable
|
||||||
|
terminal = "<C-,>", -- Terminal mode keymap for toggling Claude Code, false to disable
|
||||||
|
variants = {
|
||||||
|
continue = "<leader>cC", -- Normal mode keymap for Claude Code with continue flag
|
||||||
|
verbose = "<leader>cV", -- Normal mode keymap for Claude Code with verbose flag
|
||||||
|
},
|
||||||
|
},
|
||||||
|
window_navigation = true, -- Enable window navigation keymaps (<C-h/j/k/l>)
|
||||||
|
scrolling = true, -- Enable scrolling keymaps (<C-f/b>) for page up/down
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -1,16 +1,22 @@
|
|||||||
require("codecompanion").setup({
|
require("codecompanion").setup({
|
||||||
extensions = {
|
ignore_warnings = true,
|
||||||
mcphub = {
|
|
||||||
callback = "mcphub.extensions.codecompanion",
|
|
||||||
opts = {
|
|
||||||
make_vars = true,
|
|
||||||
make_slash_commands = true,
|
|
||||||
show_result_in_chat = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
strategies = {
|
strategies = {
|
||||||
chat = { adapter = "openai" },
|
chat = { adapter = "openai" },
|
||||||
inline = { adapter = "openai" },
|
inline = { adapter = "openai" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Load mcphub extension after codecompanion is initialized
|
||||||
|
-- and ensure the config structure exists
|
||||||
|
local ok, cc_config = pcall(require, "codecompanion.config")
|
||||||
|
if ok then
|
||||||
|
cc_config.interactions = cc_config.interactions or {}
|
||||||
|
cc_config.interactions.chat = cc_config.interactions.chat or {}
|
||||||
|
cc_config.interactions.chat.tools = cc_config.interactions.chat.tools or {}
|
||||||
|
|
||||||
|
require("mcphub.extensions.codecompanion").setup({
|
||||||
|
make_vars = true,
|
||||||
|
make_slash_commands = true,
|
||||||
|
show_result_in_chat = true,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|||||||
@@ -13,14 +13,15 @@ require("conform").setup({
|
|||||||
gdscript = { "gdformat" },
|
gdscript = { "gdformat" },
|
||||||
haskell = { "ormolu" },
|
haskell = { "ormolu" },
|
||||||
html = { "prettierd", "prettier", stop_after_first = true },
|
html = { "prettierd", "prettier", stop_after_first = true },
|
||||||
lua = { "stylua" }, -- configured in stylua.toml
|
|
||||||
markdown = { "prettierd", "prettier", stop_after_first = true },
|
|
||||||
nix = { "nixfmt" },
|
|
||||||
javascript = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
javascript = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
||||||
javascriptreact = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
javascriptreact = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
||||||
json = { "prettierd", "prettier", stop_after_first = true },
|
json = { "prettierd", "prettier", stop_after_first = true },
|
||||||
jsonc = { "prettierd", "prettier", stop_after_first = true },
|
jsonc = { "prettierd", "prettier", stop_after_first = true },
|
||||||
|
lua = { "stylua" }, -- configured in stylua.toml
|
||||||
|
markdown = { "prettierd", "prettier", stop_after_first = true },
|
||||||
|
nix = { "nixfmt" },
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
|
rust = { "rustfmt", lsp_fallback = "fallback" },
|
||||||
svelte = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
|
svelte = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
|
||||||
typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
|
typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
|
||||||
typescriptreact = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
typescriptreact = { "eslint_d", "eslint", "prettierd", "prettier", stop_after_first = true },
|
||||||
|
|||||||
1
dots/.config/nvim/after/plugin/fidget.nvim.lua
Normal file
1
dots/.config/nvim/after/plugin/fidget.nvim.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require("fidget").setup()
|
||||||
@@ -11,6 +11,6 @@ vim.keymap.set("n", "<leader>fd", fzf.diagnostics_workspace)
|
|||||||
vim.keymap.set("n", "<leader>fhe", fzf.help_tags)
|
vim.keymap.set("n", "<leader>fhe", fzf.help_tags)
|
||||||
vim.keymap.set("n", "<leader>fhi", fzf.search_history)
|
vim.keymap.set("n", "<leader>fhi", fzf.search_history)
|
||||||
vim.keymap.set("n", "<leader>fma", fzf.marks)
|
vim.keymap.set("n", "<leader>fma", fzf.marks)
|
||||||
vim.keymap.set("n", "<leader>fma", fzf.man_pages)
|
vim.keymap.set("n", "<leader>fmp", fzf.man_pages)
|
||||||
|
|
||||||
vim.keymap.set("i", "<c-f>", fzf.complete_path)
|
vim.keymap.set("i", "<c-f>", fzf.complete_path)
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
require("neodev").setup() -- should setup before lspconfig
|
require("neodev").setup() -- should setup before lspconfig
|
||||||
|
|
||||||
-- vim.g.coq_settings = { auto_start = 'shut-up' }
|
|
||||||
-- local capabilities = coq.lsp_ensure_capabilities()
|
|
||||||
|
|
||||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||||
|
|
||||||
@@ -64,8 +61,31 @@ local servers = {
|
|||||||
Lua = {},
|
Lua = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- marksman = {},
|
nixd = {
|
||||||
nixd = {},
|
settings = {
|
||||||
|
nixd = {
|
||||||
|
nixpkgs = {
|
||||||
|
expr = "import <nixpkgs> { }",
|
||||||
|
expr = 'import (builtins.getFlake ("git+file://" + toString ../../../../../.)).inputs.nixpkgs { }',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
nixos = {
|
||||||
|
expr = '(builtins.getFlake ("git+file://" + toString ../../../../../.)).nixosConfigurations."'
|
||||||
|
.. vim.fn.hostname()
|
||||||
|
.. '".options',
|
||||||
|
},
|
||||||
|
home_manager = {
|
||||||
|
expr = '(builtins.getFlake ("git+file://" + toString ../../../../../.)).homeConfigurations."'
|
||||||
|
.. vim.fn.expand("$USER")
|
||||||
|
.. "@"
|
||||||
|
.. vim.fn.hostname()
|
||||||
|
.. '".options',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
openscad_ls = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
-- tsserver = {},
|
-- tsserver = {},
|
||||||
svelte = {
|
svelte = {
|
||||||
|
|||||||
9
dots/.config/nvim/after/plugin/m_taskwarrior_d.nvim.lua
Normal file
9
dots/.config/nvim/after/plugin/m_taskwarrior_d.nvim.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- require("m_taskwarrior_d").setup()
|
||||||
|
--
|
||||||
|
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
|
||||||
|
-- group = vim.api.nvim_create_augroup("TWTask", { clear = true }),
|
||||||
|
-- pattern = "*.md",
|
||||||
|
-- callback = function()
|
||||||
|
-- vim.cmd("TWSyncTasks")
|
||||||
|
-- end,
|
||||||
|
-- })
|
||||||
@@ -2,12 +2,15 @@ local ts = require("treesj")
|
|||||||
local vim = vim
|
local vim = vim
|
||||||
local keymap = vim.keymap
|
local keymap = vim.keymap
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
local treesitter_configs = require("nvim-treesitter.configs")
|
local treesitter = require("nvim-treesitter")
|
||||||
|
|
||||||
treesitter_configs.setup({
|
local nixCatsUtils = require("nixCatsUtils")
|
||||||
|
local is_nix = nixCatsUtils.isNixCats
|
||||||
|
|
||||||
|
treesitter.setup({
|
||||||
-- Basically added what I might need from the docs
|
-- Basically added what I might need from the docs
|
||||||
-- <https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#supported-languages>
|
-- <https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#supported-languages>
|
||||||
ensure_installed = {
|
ensure_installed = is_nix and {} or {
|
||||||
"awk",
|
"awk",
|
||||||
"bash",
|
"bash",
|
||||||
"bibtex",
|
"bibtex",
|
||||||
@@ -86,7 +89,7 @@ treesitter_configs.setup({
|
|||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = not is_nix,
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
modules = {},
|
modules = {},
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
|||||||
106
dots/.config/nvim/flake.lock
generated
106
dots/.config/nvim/flake.lock
generated
@@ -1,12 +1,52 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"mcp-hub",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1743550720,
|
||||||
|
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mcp-hub": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755841689,
|
||||||
|
"narHash": "sha256-KakvXZf0vjdqzyT+LsAKHEr4GLICGXPmxl1hZ3tI7Yg=",
|
||||||
|
"owner": "ravitemer",
|
||||||
|
"repo": "mcp-hub",
|
||||||
|
"rev": "9c7670a4c341ed3cf738a6242c0fde1cea40bccf",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ravitemer",
|
||||||
|
"repo": "mcp-hub",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixCats": {
|
"nixCats": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763330129,
|
"lastModified": 1770584904,
|
||||||
"narHash": "sha256-KbOeWIF52SV53BOeETGO2C5ewaV2Ex9iaXH7G72gOr8=",
|
"narHash": "sha256-9Zaz8lbKF2W9pwXZEnbiGsicHdBoU+dHt3Wv3mCJoZ8=",
|
||||||
"owner": "BirdeeHub",
|
"owner": "BirdeeHub",
|
||||||
"repo": "nixCats-nvim",
|
"repo": "nixCats-nvim",
|
||||||
"rev": "c81551ed87db2aefab30a12cf7425ff94dc0ad64",
|
"rev": "538fdde784d2909700d97a8ef307783b33a86fb1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -17,11 +57,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763464769,
|
"lastModified": 1743689281,
|
||||||
"narHash": "sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM=",
|
"narHash": "sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ+VoVdg=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2bfc080955153be0be56724be6fa5477b4eefabb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1770843696,
|
||||||
|
"narHash": "sha256-LovWTGDwXhkfCOmbgLVA10bvsi/P8eDDpRudgk68HA8=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6f374686605df381de8541c072038472a5ea2e2d",
|
"rev": "2343bbb58f99267223bc2aac4fc9ea301a155a16",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -47,30 +103,14 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins-crazy-node-movement": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1693654676,
|
|
||||||
"narHash": "sha256-hQcQEp39zFN2zphMfcr97yRVcuHhBsSkzKO7XNloDpQ=",
|
|
||||||
"owner": "theHamsta",
|
|
||||||
"repo": "crazy-node-movement",
|
|
||||||
"rev": "d5cf01cc44c5715501d3d6fe439af7c8b7fa5df2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "theHamsta",
|
|
||||||
"repo": "crazy-node-movement",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins-helm-ls-nvim": {
|
"plugins-helm-ls-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761915179,
|
"lastModified": 1768584652,
|
||||||
"narHash": "sha256-W9NRa84l5Cs62OsDeqb+LMxk8oYjhVBCB3o3UmE9a0I=",
|
"narHash": "sha256-jnMc87OjURNcqsva0npYgVyUrWc5C6L7yHpNvt9eSmg=",
|
||||||
"owner": "qvalentin",
|
"owner": "qvalentin",
|
||||||
"repo": "helm-ls.nvim",
|
"repo": "helm-ls.nvim",
|
||||||
"rev": "d6f3a8d4ad59b4f54cd734267dfb5411679ea608",
|
"rev": "f0b9a1723890971a6d84890b50dbf5f40974ea1b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -82,11 +122,11 @@
|
|||||||
"plugins-mcphub-nvim": {
|
"plugins-mcphub-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759035242,
|
"lastModified": 1768730387,
|
||||||
"narHash": "sha256-I6EbgY/2sAdtrxtmH0qbAAQvMCHhOsfolJfblV0fXOk=",
|
"narHash": "sha256-g9tPvjThz6EUk7zcY7lL+YH4lrT4x3FJ6jrNMHA8PAE=",
|
||||||
"owner": "ravitemer",
|
"owner": "ravitemer",
|
||||||
"repo": "mcphub.nvim",
|
"repo": "mcphub.nvim",
|
||||||
"rev": "8ff40b5edc649959bb7e89d25ae18e055554859a",
|
"rev": "7cd5db330f41b7bae02b2d6202218a061c3ebc1f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -130,11 +170,11 @@
|
|||||||
"plugins-tailwind-fold-nvim": {
|
"plugins-tailwind-fold-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752559116,
|
"lastModified": 1766077142,
|
||||||
"narHash": "sha256-8uefZIVsn9USEd6FyiO3m3TRKAS/vigU4t9Tk5ijd3c=",
|
"narHash": "sha256-SwcDLlygXUSV/dytPXA5Y45OpUhjnExc8SZg5a8MZ2k=",
|
||||||
"owner": "razak17",
|
"owner": "razak17",
|
||||||
"repo": "tailwind-fold.nvim",
|
"repo": "tailwind-fold.nvim",
|
||||||
"rev": "d9e7ca11691d252b35795726dff087bf013b2ebf",
|
"rev": "e2ba5ee1ca9b74208709fe9d7314b8aa753b26a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -145,10 +185,10 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"mcp-hub": "mcp-hub",
|
||||||
"nixCats": "nixCats",
|
"nixCats": "nixCats",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"plugins-beancount-nvim": "plugins-beancount-nvim",
|
"plugins-beancount-nvim": "plugins-beancount-nvim",
|
||||||
"plugins-crazy-node-movement": "plugins-crazy-node-movement",
|
|
||||||
"plugins-helm-ls-nvim": "plugins-helm-ls-nvim",
|
"plugins-helm-ls-nvim": "plugins-helm-ls-nvim",
|
||||||
"plugins-mcphub-nvim": "plugins-mcphub-nvim",
|
"plugins-mcphub-nvim": "plugins-mcphub-nvim",
|
||||||
"plugins-nvimkit-nvim": "plugins-nvimkit-nvim",
|
"plugins-nvimkit-nvim": "plugins-nvimkit-nvim",
|
||||||
|
|||||||
@@ -2,15 +2,16 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
nixCats.url = "github:BirdeeHub/nixCats-nvim";
|
nixCats.url = "github:BirdeeHub/nixCats-nvim";
|
||||||
|
mcp-hub.url = "github:ravitemer/mcp-hub";
|
||||||
|
|
||||||
plugins-shipwright-nvim = {
|
plugins-shipwright-nvim = {
|
||||||
url = "github:rktjmp/shipwright.nvim";
|
url = "github:rktjmp/shipwright.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
plugins-crazy-node-movement = {
|
# plugins-m-taskwarrior-d-nvim = {
|
||||||
url = "github:theHamsta/crazy-node-movement";
|
# url = "github:huantrinh1802/m_taskwarrior_d.nvim";
|
||||||
flake = false;
|
# flake = false;
|
||||||
};
|
# };
|
||||||
plugins-beancount-nvim = {
|
plugins-beancount-nvim = {
|
||||||
url = "github:polarmutex/beancount.nvim";
|
url = "github:polarmutex/beancount.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
@@ -36,7 +37,6 @@
|
|||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
self,
|
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixCats,
|
nixCats,
|
||||||
...
|
...
|
||||||
@@ -47,8 +47,11 @@
|
|||||||
forEachSystem = utils.eachSystem nixpkgs.lib.platforms.all;
|
forEachSystem = utils.eachSystem nixpkgs.lib.platforms.all;
|
||||||
extra_pkg_config = { };
|
extra_pkg_config = { };
|
||||||
|
|
||||||
dependencyOverlays = [
|
mkDependencyOverlays = system: [
|
||||||
(utils.standardPluginOverlay inputs)
|
(utils.standardPluginOverlay inputs)
|
||||||
|
(_final: _prev: {
|
||||||
|
mcp-hub = inputs.mcp-hub.packages.${system}.default;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
categoryDefinitions =
|
categoryDefinitions =
|
||||||
@@ -62,18 +65,33 @@
|
|||||||
black
|
black
|
||||||
clang
|
clang
|
||||||
clang-tools
|
clang-tools
|
||||||
|
delta
|
||||||
|
emmet-language-server
|
||||||
|
eslint_d
|
||||||
|
fd
|
||||||
gawk
|
gawk
|
||||||
gdtoolkit_4
|
gdtoolkit_4
|
||||||
|
hadolint
|
||||||
|
helm-ls
|
||||||
isort
|
isort
|
||||||
tree-sitter
|
lua-language-server
|
||||||
ormolu
|
mcp-hub
|
||||||
nodePackages.prettier
|
|
||||||
nixd
|
nixd
|
||||||
nixfmt
|
nixfmt
|
||||||
|
nodePackages.prettier
|
||||||
|
nodePackages.typescript-language-server
|
||||||
|
ormolu
|
||||||
prettierd
|
prettierd
|
||||||
|
rust-analyzer
|
||||||
|
rustfmt
|
||||||
shellcheck-minimal
|
shellcheck-minimal
|
||||||
|
stylelint
|
||||||
stylua
|
stylua
|
||||||
|
tree-sitter
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
|
vtsls
|
||||||
|
yaml-language-server
|
||||||
|
yamllint
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -123,7 +141,6 @@
|
|||||||
pkgs.neovimPlugins.shipwright-nvim
|
pkgs.neovimPlugins.shipwright-nvim
|
||||||
lush-nvim
|
lush-nvim
|
||||||
zenbones-nvim
|
zenbones-nvim
|
||||||
pkgs.neovimPlugins.crazy-node-movement
|
|
||||||
nvim-treesitter.withAllGrammars
|
nvim-treesitter.withAllGrammars
|
||||||
nvim-treesitter-textobjects
|
nvim-treesitter-textobjects
|
||||||
# nvim-treesitter-context
|
# nvim-treesitter-context
|
||||||
@@ -143,7 +160,11 @@
|
|||||||
copilot-lua
|
copilot-lua
|
||||||
copilot-cmp
|
copilot-cmp
|
||||||
pkgs.neovimPlugins.helm-ls-nvim
|
pkgs.neovimPlugins.helm-ls-nvim
|
||||||
pkgs.vimPlugins.kitty-scrollback-nvim
|
kitty-scrollback-nvim
|
||||||
|
fidget-nvim
|
||||||
|
rustaceanvim
|
||||||
|
# pkgs.neovimPlugins.m-taskwarrior-d-nvim
|
||||||
|
claude-code-nvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -160,19 +181,17 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
packageDefinitions = {
|
packageDefinitions = {
|
||||||
nvim =
|
nvim = _: {
|
||||||
{ ... }:
|
settings = {
|
||||||
{
|
suffix-path = true;
|
||||||
settings = {
|
suffix-LD = true;
|
||||||
suffix-path = true;
|
wrapRc = true;
|
||||||
suffix-LD = true;
|
aliases = [ "vim" ];
|
||||||
wrapRc = true;
|
|
||||||
aliases = [ "vim" ];
|
|
||||||
};
|
|
||||||
categories = {
|
|
||||||
general = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
categories = {
|
||||||
|
general = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
defaultPackageName = "nvim";
|
defaultPackageName = "nvim";
|
||||||
in
|
in
|
||||||
@@ -180,6 +199,7 @@
|
|||||||
forEachSystem (
|
forEachSystem (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
dependencyOverlays = mkDependencyOverlays system;
|
||||||
nixCatsBuilder = utils.baseBuilder luaPath {
|
nixCatsBuilder = utils.baseBuilder luaPath {
|
||||||
inherit
|
inherit
|
||||||
nixpkgs
|
nixpkgs
|
||||||
@@ -199,7 +219,7 @@
|
|||||||
name = defaultPackageName;
|
name = defaultPackageName;
|
||||||
packages = [ defaultPackage ];
|
packages = [ defaultPackage ];
|
||||||
inputsFrom = [ ];
|
inputsFrom = [ ];
|
||||||
shellHook = '''';
|
shellHook = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -211,31 +231,32 @@
|
|||||||
moduleNamespace = [ defaultPackageName ];
|
moduleNamespace = [ defaultPackageName ];
|
||||||
inherit
|
inherit
|
||||||
defaultPackageName
|
defaultPackageName
|
||||||
dependencyOverlays
|
|
||||||
luaPath
|
luaPath
|
||||||
categoryDefinitions
|
categoryDefinitions
|
||||||
packageDefinitions
|
packageDefinitions
|
||||||
extra_pkg_config
|
extra_pkg_config
|
||||||
nixpkgs
|
nixpkgs
|
||||||
;
|
;
|
||||||
|
dependencyOverlays = mkDependencyOverlays;
|
||||||
};
|
};
|
||||||
homeModule = utils.mkHomeModules {
|
homeModule = utils.mkHomeModules {
|
||||||
moduleNamespace = [ defaultPackageName ];
|
moduleNamespace = [ defaultPackageName ];
|
||||||
inherit
|
inherit
|
||||||
defaultPackageName
|
defaultPackageName
|
||||||
dependencyOverlays
|
|
||||||
luaPath
|
luaPath
|
||||||
categoryDefinitions
|
categoryDefinitions
|
||||||
packageDefinitions
|
packageDefinitions
|
||||||
extra_pkg_config
|
extra_pkg_config
|
||||||
nixpkgs
|
nixpkgs
|
||||||
;
|
;
|
||||||
|
dependencyOverlays = mkDependencyOverlays;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
overlays = utils.makeOverlays luaPath {
|
overlays = utils.makeOverlays luaPath {
|
||||||
inherit nixpkgs dependencyOverlays extra_pkg_config;
|
inherit nixpkgs extra_pkg_config;
|
||||||
|
dependencyOverlays = mkDependencyOverlays;
|
||||||
} categoryDefinitions packageDefinitions defaultPackageName;
|
} categoryDefinitions packageDefinitions defaultPackageName;
|
||||||
|
|
||||||
nixosModules.default = nixosModule;
|
nixosModules.default = nixosModule;
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
require("nixCatsUtils").setup({ non_nix_value = true }) -- https://github.com/BirdeeHub/nixCats-nvim/blob/77dffad8235eb77684fcb7599487c8e9f23d5b8f/templates/example/init.lua
|
require("nixCatsUtils").setup({ non_nix_value = true }) -- https://github.com/BirdeeHub/nixCats-nvim/blob/77dffad8235eb77684fcb7599487c8e9f23d5b8f/templates/example/init.lua
|
||||||
|
|
||||||
vim.cmd([[
|
vim.opt.termguicolors = true
|
||||||
set termguicolors
|
vim.api.nvim_set_hl(0, "Normal", { ctermbg = "NONE", bg = "NONE" })
|
||||||
set bg=light
|
|
||||||
hi Normal ctermbg=none guibg=NONE
|
|
||||||
]])
|
|
||||||
|
|
||||||
require("base")
|
require("base")
|
||||||
require("cursor")
|
require("cursor")
|
||||||
@@ -22,7 +19,5 @@ require("utils")
|
|||||||
require("zk")
|
require("zk")
|
||||||
require("reload")
|
require("reload")
|
||||||
|
|
||||||
require("paq-setup") -- when not on nixCats
|
|
||||||
|
|
||||||
vim.opt.background = "dark"
|
vim.opt.background = "dark"
|
||||||
vim.opt.laststatus = 3
|
vim.opt.laststatus = 3
|
||||||
|
|||||||
@@ -43,4 +43,5 @@ require("nixCatsUtils.catPacker").setup({
|
|||||||
{ "zbirenbaum/copilot-cmp" },
|
{ "zbirenbaum/copilot-cmp" },
|
||||||
{ "qvalentin/helm-ls.nvim", ft = "helm" },
|
{ "qvalentin/helm-ls.nvim", ft = "helm" },
|
||||||
{ "mikesmithgh/kitty-scrollback.nvim" },
|
{ "mikesmithgh/kitty-scrollback.nvim" },
|
||||||
|
{ "greggh/claude-code.nvim" },
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ local autocmd = vim.api.nvim_create_autocmd
|
|||||||
|
|
||||||
autocmd("BufNewFile", {
|
autocmd("BufNewFile", {
|
||||||
pattern = "shell.nix",
|
pattern = "shell.nix",
|
||||||
command = "0r ~/.config/nvim/skeletons/shell.nix",
|
command = "0r ~/.config/nvim/skeletons/shell.nix.skeleton",
|
||||||
})
|
})
|
||||||
|
|
||||||
autocmd("BufNewFile", {
|
autocmd("BufNewFile", {
|
||||||
pattern = "flake.nix",
|
pattern = "flake.nix",
|
||||||
command = "0r ~/.config/nvim/skeletons/flake.nix",
|
command = "0r ~/.config/nvim/skeletons/flake.nix.skeleton",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
set -g status-style bg=default
|
|
||||||
@@ -1 +1 @@
|
|||||||
set -g status-style bg=blue,fg=black;
|
set -g status-style bg=colour12,fg=colour0
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
# This file is based on the one provided by shipwright.nvim
|
|
||||||
set -g @FG '#dddddd'
|
|
||||||
set -g @BG '#111111'
|
|
||||||
|
|
||||||
set -g status-left ' #[fg=#{@FG},bold]#{s/root//:client_key_table} '
|
|
||||||
set -g status-right '#[fg=#{@FG},bold] [#S]#[fg=#{@FG},bold] [%d/%m] #[fg=#{@FG},bold][%I:%M%p] '
|
|
||||||
set -g status-style fg='#{@FG}',bg='#{@BG}'
|
|
||||||
|
|
||||||
set -g window-status-current-style fg='#{@FG}',bg='#{@BG}',bold
|
|
||||||
|
|
||||||
set -g pane-border-style fg='#{@FG}'
|
|
||||||
set -g pane-active-border-style fg='#{@FG}'
|
|
||||||
|
|
||||||
set -g message-style fg='#{@FG}',bg='#{@FG}'
|
|
||||||
|
|
||||||
set -g display-panes-active-colour '#{@FG}'
|
|
||||||
set -g display-panes-colour '#{@FG}'
|
|
||||||
|
|
||||||
set -g clock-mode-colour '#{@FG}'
|
|
||||||
|
|
||||||
set -g mode-style fg='#{@FG}',bg='#{@FG}'
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# This file is based on the one provided by shipwright.nvim
|
|
||||||
set -g @FG '#111111'
|
|
||||||
set -g @BG '#dddddd'
|
|
||||||
|
|
||||||
set -g status-left ' #[fg=#{@FG},bold]#{s/root//:client_key_table} '
|
|
||||||
set -g status-right '#[fg=#{@FG},bold] [#S]#[fg=#{@FG},bold] [%d/%m] #[fg=#{@FG},bold][%I:%M%p] '
|
|
||||||
set -g status-style fg='#{@FG}',bg='#{@BG}'
|
|
||||||
|
|
||||||
set -g window-status-current-style fg='#{@FG}',bg='#{@BG}',bold
|
|
||||||
|
|
||||||
set -g pane-border-style fg='#{@FG}'
|
|
||||||
set -g pane-active-border-style fg='#{@FG}'
|
|
||||||
|
|
||||||
set -g message-style fg='#{@FG}',bg='#{@FG}'
|
|
||||||
|
|
||||||
set -g display-panes-active-colour '#{@FG}'
|
|
||||||
set -g display-panes-colour '#{@FG}'
|
|
||||||
|
|
||||||
set -g clock-mode-colour '#{@FG}'
|
|
||||||
|
|
||||||
set -g mode-style fg='#{@FG}',bg='#{@FG}'
|
|
||||||
|
|
||||||
@@ -39,10 +39,22 @@ bind-key -T root F7 select-window -t 7
|
|||||||
bind-key -T root F8 select-window -t 8
|
bind-key -T root F8 select-window -t 8
|
||||||
bind-key -T root F9 select-window -t 9
|
bind-key -T root F9 select-window -t 9
|
||||||
|
|
||||||
|
|
||||||
|
# bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
|
||||||
|
# bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
|
||||||
|
bind-key -T root S-F1 join-pane -s :1
|
||||||
|
bind-key -T root S-F2 join-pane -s :2
|
||||||
|
bind-key -T root S-F3 join-pane -s :3
|
||||||
|
bind-key -T root S-F4 join-pane -s :4
|
||||||
|
bind-key -T root S-F5 join-pane -s :5
|
||||||
|
bind-key -T root S-F6 join-pane -s :6
|
||||||
|
bind-key -T root S-F7 join-pane -s :7
|
||||||
|
bind-key -T root S-F8 join-pane -s :8
|
||||||
|
bind-key -T root S-F9 join-pane -s :9
|
||||||
|
|
||||||
# 1-based indexing makes most sense for keyboard layouts (where number row start at 1)
|
# 1-based indexing makes most sense for keyboard layouts (where number row start at 1)
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
setw -g automatic-rename
|
|
||||||
|
|
||||||
# statusbar
|
# statusbar
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
@@ -53,21 +65,10 @@ set -g status-left "#[bg=colour235,fg=colour255] #S #[fg=colour235,bg=default]
|
|||||||
set -g status-right ""
|
set -g status-right ""
|
||||||
%else
|
%else
|
||||||
set -g status-left '#h '
|
set -g status-left '#h '
|
||||||
set -g status-right '#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") %a%l:%M:%S %p %Y-%m-%d'
|
set -g status-right '#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") %a %l:%M:%S %p %Y-%m-%d'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# theming
|
set -g default-terminal "tmux-256color"
|
||||||
%if "#{==:#{host},desktop-arch}"
|
|
||||||
set -g default-terminal "tmux-256color"
|
|
||||||
setw -g window-status-style fg=colour244,bg=default
|
|
||||||
setw -g window-status-current-style fg=colour232,bg=default,bold
|
|
||||||
set -g message-style fg=colour232,bg=default
|
|
||||||
setw -g clock-mode-colour colour235
|
|
||||||
set -g status-style bg=default
|
|
||||||
set -g pane-border-style fg=#cccccc
|
|
||||||
set -g pane-active-border-style fg=#555555
|
|
||||||
set -g message-style bg=#cccccc,fg=#000000
|
|
||||||
%endif
|
|
||||||
|
|
||||||
set-hook -g after-new-session 'if -F "#{==:#{session_name},ssh}" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.ssh.conf" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.regular.conf"'
|
set-hook -g after-new-session 'if -F "#{==:#{session_name},ssh}" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.ssh.conf" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.regular.conf"'
|
||||||
|
|
||||||
@@ -75,3 +76,5 @@ set-hook -g after-new-session 'if -F "#{==:#{session_name},ssh}" "source ${XDG_C
|
|||||||
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
|
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'
|
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
|
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
|
||||||
|
|
||||||
|
set -g allow-passthrough on
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
set -g status-style bg=default
|
|
||||||
3
dots/.gitignore
vendored
3
dots/.gitignore
vendored
@@ -84,6 +84,9 @@ dkms.conf
|
|||||||
|
|
||||||
# Dotenv
|
# Dotenv
|
||||||
.env
|
.env
|
||||||
|
.envrc
|
||||||
|
.direnv/
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
|
||||||
# Prevent module files from being ignored (e.g. NestJS)
|
# Prevent module files from being ignored (e.g. NestJS)
|
||||||
!*.module*
|
!*.module*
|
||||||
|
|||||||
29
dots/.local/share/task/hooks/on-add.limit.py
Executable file
29
dots/.local/share/task/hooks/on-add.limit.py
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import sys
|
||||||
|
import json
|
||||||
|
|
||||||
|
SLOTS_FILE = "/home/h/.local/share/task/add_slots"
|
||||||
|
|
||||||
|
def get_slots():
|
||||||
|
try:
|
||||||
|
with open(SLOTS_FILE, "r") as f:
|
||||||
|
return int(f.read().strip())
|
||||||
|
except:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
slots = get_slots()
|
||||||
|
|
||||||
|
if slots <= 0:
|
||||||
|
print(f"Cannot add task: No slots available (0/{slots}).")
|
||||||
|
print("Delete or complete a task first to earn an add slot.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
with open(SLOTS_FILE, "w") as f:
|
||||||
|
f.write(str(slots - 1))
|
||||||
|
|
||||||
|
print(f"Task added. Slots remaining: {slots - 1}")
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
task = json.loads(line)
|
||||||
|
print(json.dumps(task))
|
||||||
|
sys.exit(0)
|
||||||
34
dots/.local/share/task/hooks/on-modify.limit.py
Executable file
34
dots/.local/share/task/hooks/on-modify.limit.py
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import sys
|
||||||
|
import json
|
||||||
|
|
||||||
|
SLOTS_FILE = "/home/h/.local/share/task/add_slots"
|
||||||
|
|
||||||
|
def get_slots():
|
||||||
|
try:
|
||||||
|
with open(SLOTS_FILE, "r") as f:
|
||||||
|
return int(f.read().strip())
|
||||||
|
except:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
data = sys.stdin.read().strip().split("\n")
|
||||||
|
if len(data) < 2:
|
||||||
|
for line in data:
|
||||||
|
if line:
|
||||||
|
print(line)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
old_task = json.loads(data[0])
|
||||||
|
new_task = json.loads(data[1])
|
||||||
|
|
||||||
|
was_pending = old_task.get("status") == "pending"
|
||||||
|
is_not_pending = new_task.get("status") in ("completed", "deleted")
|
||||||
|
|
||||||
|
if was_pending and is_not_pending:
|
||||||
|
slots = get_slots() + 1
|
||||||
|
with open(SLOTS_FILE, "w") as f:
|
||||||
|
f.write(str(slots))
|
||||||
|
print(f"Slot earned! Total slots: {slots}")
|
||||||
|
|
||||||
|
print(json.dumps(new_task))
|
||||||
|
sys.exit(0)
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# Restic ignore
|
|
||||||
|
|
||||||
# General
|
|
||||||
.trash
|
|
||||||
Trash
|
|
||||||
.cache
|
|
||||||
cache
|
|
||||||
Cache
|
|
||||||
CachedData
|
|
||||||
CachedExtension
|
|
||||||
CacheStorage
|
|
||||||
__pycache__
|
|
||||||
GPUCache
|
|
||||||
ShaderCache
|
|
||||||
build
|
|
||||||
.git
|
|
||||||
node_modules
|
|
||||||
venv
|
|
||||||
env
|
|
||||||
|
|
||||||
# Specifics
|
|
||||||
$HOME/.android
|
|
||||||
$HOME/.atom
|
|
||||||
$HOME/.build
|
|
||||||
$HOME/.cabal
|
|
||||||
$HOME/.cargo
|
|
||||||
$HOME/.conda
|
|
||||||
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Storage
|
|
||||||
$HOME/.config/BraveSoftware/Brave-Browser/Default/Local Extension Settings
|
|
||||||
$HOME/.config/nvm/versions
|
|
||||||
$HOME/.config/devcert
|
|
||||||
$HOME/.espressif
|
|
||||||
$HOME/.local/share/torbrowser
|
|
||||||
$HOME/.mozilla
|
|
||||||
$HOME/.nvm
|
|
||||||
$HOME/.npm
|
|
||||||
$HOME/.nuget
|
|
||||||
$HOME/.yarn
|
|
||||||
$HOME/.config/yarn
|
|
||||||
$HOME/doc/disk-images
|
|
||||||
$HOME/.stremio-server
|
|
||||||
$HOME/Games
|
|
||||||
!$HOME/Games/*/drive_c/users/h/AppData
|
|
||||||
!$HOME/Games/rhino
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
/etc
|
|
||||||
/boot
|
|
||||||
/home
|
|
||||||
594
flake.lock
generated
594
flake.lock
generated
@@ -1,5 +1,97 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"base16": {
|
||||||
|
"inputs": {
|
||||||
|
"fromYaml": "fromYaml"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755819240,
|
||||||
|
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-fish": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1765809053,
|
||||||
|
"narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=",
|
||||||
|
"owner": "tomyun",
|
||||||
|
"repo": "base16-fish",
|
||||||
|
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tomyun",
|
||||||
|
"repo": "base16-fish",
|
||||||
|
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-helix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760703920,
|
||||||
|
"narHash": "sha256-m82fGUYns4uHd+ZTdoLX2vlHikzwzdu2s2rYM2bNwzw=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-helix",
|
||||||
|
"rev": "d646af9b7d14bff08824538164af99d0c521b185",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-helix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-vim": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1732806396,
|
||||||
|
"narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-vim",
|
||||||
|
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-vim",
|
||||||
|
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"colmena": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nix-github-actions": "nix-github-actions",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"stable": "stable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762034856,
|
||||||
|
"narHash": "sha256-QVey3iP3UEoiFVXgypyjTvCrsIlA4ecx6Acaz5C8/PQ=",
|
||||||
|
"owner": "zhaofengli",
|
||||||
|
"repo": "colmena",
|
||||||
|
"rev": "349b035a5027f23d88eeb3bc41085d7ee29f18ed",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zhaofengli",
|
||||||
|
"repo": "colmena",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -7,11 +99,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746728054,
|
"lastModified": 1768920986,
|
||||||
"narHash": "sha256-eDoSOhxGEm2PykZFa/x9QG5eTH0MJdiJ9aR00VAofXE=",
|
"narHash": "sha256-CNzzBsRhq7gg4BMBuTDObiWDH/rFYHEuDRVOwCcwXw4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "ff442f5d1425feb86344c028298548024f21256d",
|
"rev": "de5708739256238fb912c62f03988815db89ec9a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -29,11 +121,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1764561884,
|
"lastModified": 1771732978,
|
||||||
"narHash": "sha256-vQ3iFPPhxsLqV3c5kgmYP53mVD6id6gsP0tN+oTmqok=",
|
"narHash": "sha256-o7gZh/eXFkEEmzwlBdIbgCJhmdlqQhOhVjudqgsIefg=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "aba4621459aec251d90d6452e3495b58a8a5e185",
|
"rev": "18226106e18bc40cce99d436ee741a946f1888f6",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -43,7 +135,113 @@
|
|||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"firefox-gnome-theme": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1764873433,
|
||||||
|
"narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1650374568,
|
||||||
|
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767039857,
|
||||||
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nvim",
|
||||||
|
"mcp-hub",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1743550720,
|
||||||
|
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767609335,
|
||||||
|
"narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "250481aafeb741edfe23d29195671c19b36b6dca",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659877975,
|
||||||
|
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
@@ -61,6 +259,84 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"fromYaml": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731966426,
|
||||||
|
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"git-hooks": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"gitignore": "gitignore",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771857445,
|
||||||
|
"narHash": "sha256-NCrhxU9wq5+4jQG1fvRbyTnH8GSbH6LovreVoH2fOL4=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"rev": "3d7a52f678227930ab089f5d9b384f2d50f7d534",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"git-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gnome-shell": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"host": "gitlab.gnome.org",
|
||||||
|
"lastModified": 1767737596,
|
||||||
|
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
||||||
|
"owner": "GNOME",
|
||||||
|
"repo": "gnome-shell",
|
||||||
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"host": "gitlab.gnome.org",
|
||||||
|
"owner": "GNOME",
|
||||||
|
"ref": "gnome-49",
|
||||||
|
"repo": "gnome-shell",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -68,11 +344,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764544324,
|
"lastModified": 1771851181,
|
||||||
"narHash": "sha256-GVBGjO7UsmzLrlOJV8NlKSxukHaHencrJqWkCA6FkqI=",
|
"narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e4e25a8c310fa45f2a8339c7972dc43d2845a612",
|
"rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -81,13 +357,53 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"mcp-hub": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755841689,
|
||||||
|
"narHash": "sha256-KakvXZf0vjdqzyT+LsAKHEr4GLICGXPmxl1hZ3tI7Yg=",
|
||||||
|
"owner": "ravitemer",
|
||||||
|
"repo": "mcp-hub",
|
||||||
|
"rev": "9c7670a4c341ed3cf738a6242c0fde1cea40bccf",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ravitemer",
|
||||||
|
"repo": "mcp-hub",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-github-actions": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"colmena",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1729742964,
|
||||||
|
"narHash": "sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9+BV1h+MpA=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-github-actions",
|
||||||
|
"rev": "e04df33f62cdcf93d73e9a04142464753a16db67",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-github-actions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-secrets": {
|
"nix-secrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764371082,
|
"lastModified": 1770135527,
|
||||||
"narHash": "sha256-yxFxEKXFuXFyFIDZY1gla2OyuqcIE3uT8KDDgTmm3cE=",
|
"narHash": "sha256-Fup9LiyL6bDID3x+rAB2nP99Xv2o9Is5NkTDbmIy6o0=",
|
||||||
"ref": "main",
|
"ref": "main",
|
||||||
"rev": "b9c2ce32cc4c95d7ff01372faea2668407ef8d27",
|
"rev": "521d144f8a8ff9fca8ccf492d7fbdd05d9a5fe37",
|
||||||
"shallow": true,
|
"shallow": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/hektor/nix-secrets"
|
"url": "ssh://git@github.com/hektor/nix-secrets"
|
||||||
@@ -101,11 +417,11 @@
|
|||||||
},
|
},
|
||||||
"nixCats": {
|
"nixCats": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764009888,
|
"lastModified": 1770584904,
|
||||||
"narHash": "sha256-hJekfTiW1792txgRSM4LcHnz1lDSY87LYbsJEn2V378=",
|
"narHash": "sha256-9Zaz8lbKF2W9pwXZEnbiGsicHdBoU+dHt3Wv3mCJoZ8=",
|
||||||
"owner": "BirdeeHub",
|
"owner": "BirdeeHub",
|
||||||
"repo": "nixCats-nvim",
|
"repo": "nixCats-nvim",
|
||||||
"rev": "16ac3281f322ea15d39843829e42a44d22da3715",
|
"rev": "538fdde784d2909700d97a8ef307783b33a86fb1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -116,7 +432,7 @@
|
|||||||
},
|
},
|
||||||
"nixgl": {
|
"nixgl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@@ -137,11 +453,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764440730,
|
"lastModified": 1771423359,
|
||||||
"narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=",
|
"narHash": "sha256-yRKJ7gpVmXbX2ZcA8nFi6CMPkJXZGjie2unsiMzj3Ig=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3",
|
"rev": "740a22363033e9f1bb6270fbfb5a9574067af15b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -153,11 +469,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764517877,
|
"lastModified": 1771369470,
|
||||||
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
|
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
|
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -167,14 +483,55 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1743689281,
|
||||||
|
"narHash": "sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ+VoVdg=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2bfc080955153be0be56724be6fa5477b4eefabb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nur": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": [
|
||||||
|
"stylix",
|
||||||
|
"flake-parts"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767810917,
|
||||||
|
"narHash": "sha256-ZKqhk772+v/bujjhla9VABwcvz+hB2IaRyeLT6CFnT0=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "dead29c804adc928d3a69dfe7f9f12d0eec1f1a4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nvim": {
|
"nvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"mcp-hub": "mcp-hub",
|
||||||
"nixCats": "nixCats",
|
"nixCats": "nixCats",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"plugins-beancount-nvim": "plugins-beancount-nvim",
|
"plugins-beancount-nvim": "plugins-beancount-nvim",
|
||||||
"plugins-crazy-node-movement": "plugins-crazy-node-movement",
|
|
||||||
"plugins-helm-ls-nvim": "plugins-helm-ls-nvim",
|
"plugins-helm-ls-nvim": "plugins-helm-ls-nvim",
|
||||||
"plugins-mcphub-nvim": "plugins-mcphub-nvim",
|
"plugins-mcphub-nvim": "plugins-mcphub-nvim",
|
||||||
"plugins-nvimkit-nvim": "plugins-nvimkit-nvim",
|
"plugins-nvimkit-nvim": "plugins-nvimkit-nvim",
|
||||||
@@ -207,30 +564,14 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins-crazy-node-movement": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1693654676,
|
|
||||||
"narHash": "sha256-hQcQEp39zFN2zphMfcr97yRVcuHhBsSkzKO7XNloDpQ=",
|
|
||||||
"owner": "theHamsta",
|
|
||||||
"repo": "crazy-node-movement",
|
|
||||||
"rev": "d5cf01cc44c5715501d3d6fe439af7c8b7fa5df2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "theHamsta",
|
|
||||||
"repo": "crazy-node-movement",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins-helm-ls-nvim": {
|
"plugins-helm-ls-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761915179,
|
"lastModified": 1768584652,
|
||||||
"narHash": "sha256-W9NRa84l5Cs62OsDeqb+LMxk8oYjhVBCB3o3UmE9a0I=",
|
"narHash": "sha256-jnMc87OjURNcqsva0npYgVyUrWc5C6L7yHpNvt9eSmg=",
|
||||||
"owner": "qvalentin",
|
"owner": "qvalentin",
|
||||||
"repo": "helm-ls.nvim",
|
"repo": "helm-ls.nvim",
|
||||||
"rev": "d6f3a8d4ad59b4f54cd734267dfb5411679ea608",
|
"rev": "f0b9a1723890971a6d84890b50dbf5f40974ea1b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -242,11 +583,11 @@
|
|||||||
"plugins-mcphub-nvim": {
|
"plugins-mcphub-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759035242,
|
"lastModified": 1768730387,
|
||||||
"narHash": "sha256-I6EbgY/2sAdtrxtmH0qbAAQvMCHhOsfolJfblV0fXOk=",
|
"narHash": "sha256-g9tPvjThz6EUk7zcY7lL+YH4lrT4x3FJ6jrNMHA8PAE=",
|
||||||
"owner": "ravitemer",
|
"owner": "ravitemer",
|
||||||
"repo": "mcphub.nvim",
|
"repo": "mcphub.nvim",
|
||||||
"rev": "8ff40b5edc649959bb7e89d25ae18e055554859a",
|
"rev": "7cd5db330f41b7bae02b2d6202218a061c3ebc1f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -290,11 +631,11 @@
|
|||||||
"plugins-tailwind-fold-nvim": {
|
"plugins-tailwind-fold-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752559116,
|
"lastModified": 1766077142,
|
||||||
"narHash": "sha256-8uefZIVsn9USEd6FyiO3m3TRKAS/vigU4t9Tk5ijd3c=",
|
"narHash": "sha256-SwcDLlygXUSV/dytPXA5Y45OpUhjnExc8SZg5a8MZ2k=",
|
||||||
"owner": "razak17",
|
"owner": "razak17",
|
||||||
"repo": "tailwind-fold.nvim",
|
"repo": "tailwind-fold.nvim",
|
||||||
"rev": "d9e7ca11691d252b35795726dff087bf013b2ebf",
|
"rev": "e2ba5ee1ca9b74208709fe9d7314b8aa753b26a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -305,15 +646,18 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"colmena": "colmena",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
|
"git-hooks": "git-hooks",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-secrets": "nix-secrets",
|
"nix-secrets": "nix-secrets",
|
||||||
"nixgl": "nixgl",
|
"nixgl": "nixgl",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nvim": "nvim",
|
"nvim": "nvim",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix",
|
||||||
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
@@ -323,11 +667,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764483358,
|
"lastModified": 1771735105,
|
||||||
"narHash": "sha256-EyyvCzXoHrbL467YSsQBTWWg4sR96MH1sPpKoSOelB4=",
|
"narHash": "sha256-MJuVJeszZEziquykEHh/hmgIHYxUcuoG/1aowpLiSeU=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "5aca6ff67264321d47856a2ed183729271107c9c",
|
"rev": "d7755d820f5fa8acf7f223309c33e25d4f92e74f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -336,6 +680,56 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1750133334,
|
||||||
|
"narHash": "sha256-urV51uWH7fVnhIvsZIELIYalMYsyr2FCalvlRTzqWRw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "36ab78dab7da2e4e27911007033713bab534187b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylix": {
|
||||||
|
"inputs": {
|
||||||
|
"base16": "base16",
|
||||||
|
"base16-fish": "base16-fish",
|
||||||
|
"base16-helix": "base16-helix",
|
||||||
|
"base16-vim": "base16-vim",
|
||||||
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
|
"gnome-shell": "gnome-shell",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nur": "nur",
|
||||||
|
"systems": "systems_2",
|
||||||
|
"tinted-foot": "tinted-foot",
|
||||||
|
"tinted-kitty": "tinted-kitty",
|
||||||
|
"tinted-schemes": "tinted-schemes",
|
||||||
|
"tinted-tmux": "tinted-tmux",
|
||||||
|
"tinted-zed": "tinted-zed"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771787992,
|
||||||
|
"narHash": "sha256-Vg4bGwwenNYI8p3nJTl9FRyeIyrjATeZrZr+GyUSDrw=",
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "stylix",
|
||||||
|
"rev": "30054cca073b49b42a71289edec858f535b27fe9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "danth",
|
||||||
|
"repo": "stylix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@@ -350,6 +744,102 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-foot": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726913040,
|
||||||
|
"narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-foot",
|
||||||
|
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-foot",
|
||||||
|
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-kitty": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1735730497,
|
||||||
|
"narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-kitty",
|
||||||
|
"rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-kitty",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-schemes": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767710407,
|
||||||
|
"narHash": "sha256-+W1EB79Jl0/gm4JqmO0Nuc5C7hRdp4vfsV/VdzI+des=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"rev": "2800e2b8ac90f678d7e4acebe4fa253f602e05b2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-tmux": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767489635,
|
||||||
|
"narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-tmux",
|
||||||
|
"rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-tmux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-zed": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767488740,
|
||||||
|
"narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-zed",
|
||||||
|
"rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-zed",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
109
flake.nix
109
flake.nix
@@ -3,9 +3,12 @@
|
|||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
url = "github:nixos/nixpkgs/nixos-unstable";
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
stylix = {
|
||||||
|
url = "github:danth/stylix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nixos-hardware = {
|
nixos-hardware = {
|
||||||
url = "github:NixOS/nixos-hardware/master";
|
url = "github:NixOS/nixos-hardware/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko/latest";
|
url = "github:nix-community/disko/latest";
|
||||||
@@ -35,48 +38,114 @@
|
|||||||
url = "path:./dots/.config/nvim";
|
url = "path:./dots/.config/nvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
colmena = {
|
||||||
|
url = "github:zhaofengli/colmena";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
git-hooks = {
|
||||||
|
url = "github:cachix/git-hooks.nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixos-hardware,
|
|
||||||
disko,
|
|
||||||
sops-nix,
|
|
||||||
nix-secrets,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
nixgl,
|
nixgl,
|
||||||
firefox-addons,
|
git-hooks,
|
||||||
nvim,
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
lib = inputs.nixpkgs.lib;
|
inherit (self) outputs;
|
||||||
|
inherit (inputs.nixpkgs) lib;
|
||||||
utils = import ./utils { inherit lib; };
|
utils = import ./utils { inherit lib; };
|
||||||
hostDirNames = utils.dirNames ./hosts;
|
hostDirNames = utils.dirNames ./hosts;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
dotsPath = ./dots;
|
||||||
inherit system;
|
gitHooks = import ./git-hooks.nix {
|
||||||
overlays = [ nixgl.overlay ];
|
inherit nixpkgs git-hooks system;
|
||||||
|
src = ./.;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nix.nixPath = [
|
nix.nixPath = [
|
||||||
"nixpkgs=${inputs.nixpkgs}"
|
"nixpkgs=${inputs.nixpkgs}"
|
||||||
]; # <https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md>
|
]; # <https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md>
|
||||||
nixosConfigurations = lib.genAttrs hostDirNames (
|
nixosConfigurations =
|
||||||
host:
|
(lib.genAttrs hostDirNames (
|
||||||
nixpkgs.lib.nixosSystem {
|
host:
|
||||||
modules = [ ./hosts/${host} ];
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
modules = [
|
||||||
}
|
./hosts/${host}
|
||||||
);
|
{ nixpkgs.hostPlatform = import ./hosts/${host}/system.nix; }
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs outputs dotsPath;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
))
|
||||||
|
// {
|
||||||
|
sd-image-orange-pi-aarch64 = nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
||||||
|
./images/sd-image-orange-pi-aarch64.nix
|
||||||
|
{
|
||||||
|
nixpkgs.buildPlatform = "x86_64-linux";
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs outputs dotsPath;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
sd-image-raspberry-pi-aarch64 = nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
||||||
|
./images/sd-image-raspberry-pi-aarch64.nix
|
||||||
|
{
|
||||||
|
nixpkgs.buildPlatform = "x86_64-linux";
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs outputs dotsPath;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
work = home-manager.lib.homeManagerConfiguration {
|
work = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [ nixgl.overlay ];
|
||||||
|
};
|
||||||
modules = [ ./home/hosts/work ];
|
modules = [ ./home/hosts/work ];
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = {
|
||||||
|
inherit inputs outputs dotsPath;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
apps.${system}.colmena = inputs.colmena.apps.${system}.default;
|
||||||
|
|
||||||
|
colmena = import ./deploy/colmena.nix {
|
||||||
|
inherit
|
||||||
|
self
|
||||||
|
inputs
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
checks.${system} = gitHooks.checks;
|
||||||
|
formatter.${system} = gitHooks.formatter;
|
||||||
|
devShells.${system} = gitHooks.devShells;
|
||||||
|
|
||||||
|
legacyPackages.${system} = {
|
||||||
|
sd-image-orange-pi-aarch64 =
|
||||||
|
self.nixosConfigurations.sd-image-orange-pi-aarch64.config.system.build.sdImage;
|
||||||
|
sd-image-raspberry-pi-aarch64 =
|
||||||
|
self.nixosConfigurations.sd-image-raspberry-pi-aarch64.config.system.build.sdImage;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
47
git-hooks.nix
Normal file
47
git-hooks.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
nixpkgs,
|
||||||
|
git-hooks,
|
||||||
|
system,
|
||||||
|
src,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
|
pre-commit-check = git-hooks.lib.${system}.run {
|
||||||
|
inherit src;
|
||||||
|
hooks = {
|
||||||
|
nixfmt = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nixfmt;
|
||||||
|
};
|
||||||
|
statix.enable = true;
|
||||||
|
deadnix.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
checks = {
|
||||||
|
inherit pre-commit-check;
|
||||||
|
};
|
||||||
|
|
||||||
|
formatter =
|
||||||
|
let
|
||||||
|
inherit (pre-commit-check) config;
|
||||||
|
inherit (config) package configFile;
|
||||||
|
script = ''
|
||||||
|
${pkgs.lib.getExe package} run --all-files --config ${configFile}
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
pkgs.writeShellScriptBin "pre-commit-run" script;
|
||||||
|
|
||||||
|
devShells = {
|
||||||
|
default =
|
||||||
|
let
|
||||||
|
inherit (pre-commit-check) shellHook enabledPackages;
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
inherit shellHook;
|
||||||
|
buildInputs = enabledPackages;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,19 +1,63 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
username = "h";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(import ../astyanax {
|
../../modules
|
||||||
inherit inputs;
|
../../modules/ai-tools.nix
|
||||||
inherit config;
|
../../modules/audio
|
||||||
inherit pkgs;
|
../../modules/cloud
|
||||||
})
|
../../modules/comms
|
||||||
|
../../modules/desktop/niri
|
||||||
|
../../modules/direnv
|
||||||
|
../../modules/3d
|
||||||
|
../../modules/git
|
||||||
|
../../modules/k8s/k9s.nix
|
||||||
|
../../modules/kitty.nix
|
||||||
|
../../modules/music
|
||||||
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
|
../../modules/ssh.nix
|
||||||
|
../../modules/taskwarrior.nix
|
||||||
|
../../modules/keepassxc.nix
|
||||||
|
../../modules/anki.nix
|
||||||
|
../../modules/photography
|
||||||
|
../../modules/browser
|
||||||
|
../../modules/shell
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.taskwarrior.config.recurrence = lib.mkForce "on";
|
home = {
|
||||||
|
stateVersion = "25.05";
|
||||||
|
inherit username;
|
||||||
|
homeDirectory = "/home/${username}";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.userDirs.createDirectories = false;
|
||||||
|
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||||
|
|
||||||
|
ai-tools.opencode.enable = true;
|
||||||
|
browser.primary = "librewolf";
|
||||||
|
cloud.hetzner.enable = true;
|
||||||
|
comms.signal.enable = true;
|
||||||
|
github.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
|
shell.bash = {
|
||||||
|
enable = true;
|
||||||
|
aliases.lang-js = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
taskwarrior.config.recurrence = lib.mkForce "on";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = import ../packages.nix { inherit pkgs; };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
@@ -10,68 +9,56 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/dconf.nix # TODO: Only enable when on Gnome?
|
../../modules
|
||||||
../../modules/git.nix
|
../../modules/ai-tools.nix
|
||||||
../../modules/k9s.nix
|
../../modules/audio
|
||||||
(import ../../modules/taskwarrior.nix {
|
../../modules/anki.nix
|
||||||
inherit config;
|
../../modules/cloud
|
||||||
inherit pkgs;
|
../../modules/comms
|
||||||
})
|
../../modules/direnv
|
||||||
|
../../modules/desktop/niri
|
||||||
|
../../modules/git
|
||||||
|
../../modules/k8s/k9s.nix
|
||||||
|
../../modules/kitty.nix
|
||||||
|
../../modules/music
|
||||||
|
../../modules/nfc
|
||||||
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
|
../../modules/ssh.nix
|
||||||
|
../../modules/taskwarrior.nix
|
||||||
|
../../modules/keepassxc.nix
|
||||||
|
../../modules/browser
|
||||||
|
../../modules/shell
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
home = {
|
||||||
home.username = username;
|
stateVersion = "25.05";
|
||||||
home.homeDirectory = "/home/${username}";
|
inherit username;
|
||||||
|
homeDirectory = "/home/${username}";
|
||||||
|
};
|
||||||
|
|
||||||
xdg.userDirs.createDirectories = false;
|
xdg.userDirs.createDirectories = false;
|
||||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||||
|
|
||||||
programs = {
|
ai-tools.opencode.enable = true;
|
||||||
bash = {
|
browser.primary = "librewolf";
|
||||||
enable = true;
|
cloud.hetzner.enable = true;
|
||||||
enableCompletion = true;
|
comms.signal.enable = true;
|
||||||
initExtra = ''
|
github.enable = true;
|
||||||
for f in /home/h/.bashrc.d/*; do
|
nfc.proxmark3.enable = true;
|
||||||
[ -f "$f" ] && source "$f"
|
pandoc.enable = true;
|
||||||
done
|
|
||||||
|
|
||||||
source /home/h/.bash_aliases/all
|
shell.bash = {
|
||||||
source /home/h/.bash_aliases/lang-js
|
enable = true;
|
||||||
|
aliases.lang-js = true;
|
||||||
# host-specific config goes here
|
|
||||||
# ...
|
|
||||||
|
|
||||||
export PATH=${../../../dots/.bin}:$PATH
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
firefox = import ../../modules/firefox.nix {
|
|
||||||
inherit inputs;
|
|
||||||
inherit pkgs;
|
|
||||||
inherit config;
|
|
||||||
};
|
|
||||||
fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
};
|
|
||||||
home-manager.enable = true;
|
|
||||||
keepassxc = import ../../modules/keepassxc.nix;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = import ./packages.nix {
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = import ../packages.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit config;
|
inherit config;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".inputrc".source = ../../../dots/.inputrc;
|
|
||||||
".bashrc.d/prompt".source = ../../../dots/.bashrc.d/prompt;
|
|
||||||
".bashrc.d/editor".source = ../../../dots/.bashrc.d/editor;
|
|
||||||
".bash_aliases/all".source = ../../../dots/.bash_aliases/all;
|
|
||||||
".bash_aliases/lang-js".source = ../../../dots/.bash_aliases/lang-js;
|
|
||||||
".config/kitty/kitty.conf".source = ../../../dots/.config/kitty/kitty.conf;
|
|
||||||
".config/kitty/themes/zenwritten_light.conf".source =
|
|
||||||
../../../dots/.config/kitty/themes/zenwritten_light.conf;
|
|
||||||
".config/kitty/themes/zenwritten_dark.conf".source =
|
|
||||||
../../../dots/.config/kitty/themes/zenwritten_dark.conf;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
bash-completion
|
|
||||||
bash-language-server
|
|
||||||
bat
|
|
||||||
brightnessctl
|
|
||||||
entr
|
|
||||||
eslint_d
|
|
||||||
feh
|
|
||||||
fzf
|
|
||||||
gh
|
|
||||||
git
|
|
||||||
haskell-language-server
|
|
||||||
haskellPackages.pandoc-crossref
|
|
||||||
haskellPackages.hadolint
|
|
||||||
htop
|
|
||||||
jq
|
|
||||||
kitty
|
|
||||||
lua-language-server
|
|
||||||
nixfmt-rfc-style
|
|
||||||
nmap
|
|
||||||
nodejs_24
|
|
||||||
nvimpager
|
|
||||||
ormolu
|
|
||||||
pandoc
|
|
||||||
parallel
|
|
||||||
pass
|
|
||||||
pnpm
|
|
||||||
ripgrep
|
|
||||||
silver-searcher
|
|
||||||
sops
|
|
||||||
sshfs
|
|
||||||
stylelint
|
|
||||||
svelte-language-server
|
|
||||||
tailwindcss-language-server
|
|
||||||
tldr
|
|
||||||
tmux
|
|
||||||
tmuxp
|
|
||||||
tree
|
|
||||||
tree-sitter
|
|
||||||
typescript-language-server
|
|
||||||
unzip
|
|
||||||
vim-language-server
|
|
||||||
vimPlugins.vim-plug
|
|
||||||
vtsls
|
|
||||||
wget
|
|
||||||
xbanish
|
|
||||||
xclip
|
|
||||||
yaml-language-server
|
|
||||||
]
|
|
||||||
24
home/hosts/packages.nix
Normal file
24
home/hosts/packages.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
bat
|
||||||
|
entr
|
||||||
|
feh
|
||||||
|
fzf
|
||||||
|
htop
|
||||||
|
jq
|
||||||
|
nmap
|
||||||
|
nvimpager
|
||||||
|
parallel
|
||||||
|
pass
|
||||||
|
ripgrep
|
||||||
|
silver-searcher
|
||||||
|
sops
|
||||||
|
sshfs
|
||||||
|
tldr
|
||||||
|
tree
|
||||||
|
unzip
|
||||||
|
vimPlugins.vim-plug
|
||||||
|
wget
|
||||||
|
]
|
||||||
@@ -10,37 +10,113 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
../../modules
|
||||||
|
../../modules/stylix.nix
|
||||||
|
../../modules/ai-tools.nix
|
||||||
|
../../modules/cloud
|
||||||
|
../../modules/comms
|
||||||
|
../../modules/desktop/niri
|
||||||
../../modules/dconf.nix
|
../../modules/dconf.nix
|
||||||
../../modules/git.nix
|
../../modules/direnv
|
||||||
../../modules/k9s.nix
|
../../modules/docker
|
||||||
|
../../modules/git
|
||||||
|
../../modules/go
|
||||||
|
../../modules/k8s
|
||||||
|
../../modules/k8s/k9s.nix
|
||||||
|
../../modules/keepassxc.nix
|
||||||
|
../../modules/kitty.nix
|
||||||
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
|
../../modules/browser
|
||||||
|
../../modules/shell
|
||||||
|
../../modules/music
|
||||||
|
../../modules/nodejs.nix
|
||||||
|
../../modules/taskwarrior.nix
|
||||||
|
../../modules/bruno.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
|
../../modules/vscode.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = "${inputs.nix-secrets}/secrets.yaml";
|
||||||
|
|
||||||
|
secrets = {
|
||||||
|
taskwarrior_sync_server_url = { };
|
||||||
|
taskwarrior_sync_server_client_id = { };
|
||||||
|
taskwarrior_sync_encryption_secret = { };
|
||||||
|
anki_sync_user = { };
|
||||||
|
anki_sync_key = { };
|
||||||
|
opencode_api_key = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
templates = {
|
||||||
|
"taskrc.d/sync" = {
|
||||||
|
content = ''
|
||||||
|
sync.server.url=${config.sops.placeholder.taskwarrior_sync_server_url}
|
||||||
|
sync.server.client_id=${config.sops.placeholder.taskwarrior_sync_server_client_id}
|
||||||
|
sync.encryption_secret=${config.sops.placeholder.taskwarrior_sync_encryption_secret}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
"opencode/auth.json" = {
|
||||||
|
path = "${config.home.homeDirectory}/.local/share/opencode/auth.json";
|
||||||
|
content = ''
|
||||||
|
{
|
||||||
|
"zai-coding-plan": {
|
||||||
|
"type": "api",
|
||||||
|
"key": "${config.sops.placeholder.opencode_api_key}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
home = {
|
||||||
home.username = username;
|
stateVersion = "25.05";
|
||||||
home.homeDirectory = "/home/${username}";
|
inherit username;
|
||||||
|
homeDirectory = "/home/${username}";
|
||||||
|
};
|
||||||
|
|
||||||
targets.genericLinux.nixGL = {
|
targets.genericLinux.nixGL = {
|
||||||
packages = inputs.nixgl.packages;
|
inherit (inputs.nixgl) packages;
|
||||||
defaultWrapper = "mesa";
|
defaultWrapper = "mesa";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
browser.primary = "firefox";
|
||||||
|
browser.secondary = "chromium";
|
||||||
|
cloud.azure.enable = true;
|
||||||
|
comms.signal.enable = true;
|
||||||
|
comms.teams.enable = true;
|
||||||
|
ai-tools = {
|
||||||
|
claude-code.enable = true;
|
||||||
|
opencode.enable = true;
|
||||||
|
};
|
||||||
|
github.enable = true;
|
||||||
|
gitlab.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
|
shell.bash.enable = true;
|
||||||
|
starship.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# editorconfig.enable = true;
|
|
||||||
firefox = import ../../modules/firefox.nix {
|
|
||||||
inherit inputs;
|
|
||||||
inherit pkgs;
|
|
||||||
inherit config;
|
|
||||||
};
|
|
||||||
gh.enable = true;
|
gh.enable = true;
|
||||||
keepassxc = import ../../modules/keepassxc.nix;
|
|
||||||
kubecolor.enable = true;
|
kubecolor.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = import ./packages.nix {
|
home.packages =
|
||||||
inherit inputs;
|
import ./packages.nix {
|
||||||
inherit config;
|
inherit inputs;
|
||||||
inherit pkgs;
|
inherit config;
|
||||||
};
|
inherit pkgs;
|
||||||
|
}
|
||||||
|
++ import ../packages.nix {
|
||||||
|
inherit inputs;
|
||||||
|
inherit config;
|
||||||
|
inherit pkgs;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,4 @@ let
|
|||||||
[ ];
|
[ ];
|
||||||
in
|
in
|
||||||
|
|
||||||
(with pkgs; [
|
localPackages
|
||||||
inputs.nvim.packages.x86_64-linux.nvim
|
|
||||||
])
|
|
||||||
++ localPackages
|
|
||||||
|
|||||||
11
home/modules/3d/default.nix
Normal file
11
home/modules/3d/default.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
bambu-studio
|
||||||
|
blender
|
||||||
|
openscad-lsp
|
||||||
|
openscad-unstable
|
||||||
|
orca-slicer
|
||||||
|
];
|
||||||
|
}
|
||||||
89
home/modules/ai-tools.nix
Normal file
89
home/modules/ai-tools.nix
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.ai-tools;
|
||||||
|
rtk-version = "0.18.1";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.ai-tools = {
|
||||||
|
claude-code.enable = lib.mkEnableOption "claude code with rtk and ccline";
|
||||||
|
opencode.enable = lib.mkEnableOption "opencode";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf cfg.claude-code.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
claude-code
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "ccline";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/Haleclipse/CCometixLine/releases/download/v1.0.8/ccline-linux-x64.tar.gz";
|
||||||
|
hash = "sha256-Joe3Dd6uSMGi66QT6xr2oY/Tz8rA5RuKa6ckBVJIzI0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
tar xzf $src
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ccline $out/bin/
|
||||||
|
chmod +x $out/bin/ccline
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "CCometixLine Linux x64 CLI (Claude Code statusline)";
|
||||||
|
homepage = "https://github.com/Haleclipse/CCometixLine";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "rtk-${rtk-version}";
|
||||||
|
version = rtk-version;
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/rtk-ai/rtk/releases/download/v${rtk-version}/rtk-x86_64-unknown-linux-gnu.tar.gz";
|
||||||
|
hash = "sha256-XoTia5K8b00OzcKYCufwx8ApkAS31DxUCpGSU0jFs2Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
tar xzf $src
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp rtk $out/bin/
|
||||||
|
chmod +x $out/bin/rtk
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "RTK - AI coding tool enhancer";
|
||||||
|
homepage = "https://www.rtk-ai.app";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
mcp-nixos
|
||||||
|
];
|
||||||
|
})
|
||||||
|
(lib.mkIf cfg.opencode.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
opencode
|
||||||
|
];
|
||||||
|
home.file.".config/opencode/opencode.json".text = builtins.toJSON {
|
||||||
|
"$schema" = "https://opencode.ai/config.json";
|
||||||
|
permission = {
|
||||||
|
external_directory = {
|
||||||
|
"/run/secrets/" = "deny";
|
||||||
|
"~/.config/sops/age/keys.txt" = "deny";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
plugin = [ "@mohak34/opencode-notifier@latest" ];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,6 +1,33 @@
|
|||||||
{
|
{
|
||||||
enable = true;
|
config,
|
||||||
# sync = {
|
lib,
|
||||||
# username = config.sops.secrets."email/personal".path;
|
pkgs,
|
||||||
# };
|
osConfig ? null,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
hmSopsAvailable = config ? sops && config.sops ? secrets;
|
||||||
|
osSopsAvailable = osConfig != null && osConfig ? sops && osConfig.sops ? secrets;
|
||||||
|
sopsAvailable = hmSopsAvailable || osSopsAvailable;
|
||||||
|
|
||||||
|
sopsSecrets = if hmSopsAvailable then config.sops.secrets else osConfig.sops.secrets;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
warnings = lib.optional (
|
||||||
|
!sopsAvailable && config.programs.anki.enable
|
||||||
|
) "anki is enabled but sops secrets are not available. anki sync will not be configured.";
|
||||||
|
|
||||||
|
programs.anki = {
|
||||||
|
enable = true;
|
||||||
|
addons = with pkgs.ankiAddons; [
|
||||||
|
anki-connect
|
||||||
|
puppy-reinforcement
|
||||||
|
review-heatmap
|
||||||
|
];
|
||||||
|
sync = lib.mkIf sopsAvailable {
|
||||||
|
usernameFile = "${sopsSecrets."anki_sync_user".path}";
|
||||||
|
keyFile = "${sopsSecrets."anki_sync_key".path}";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
home/modules/audio/default.nix
Normal file
5
home/modules/audio/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ pulsemixer ];
|
||||||
|
}
|
||||||
19
home/modules/browser/bookmarks.nix
Normal file
19
home/modules/browser/bookmarks.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
nixos = {
|
||||||
|
name = "NixOS";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "wiki";
|
||||||
|
url = "https://wiki.nixos.org/wiki/NixOS_Wiki";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "packages";
|
||||||
|
url = "https://search.nixos.org/packages";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "options";
|
||||||
|
url = "https://search.nixos.org/options";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
home/modules/browser/chromium.nix
Normal file
12
home/modules/browser/chromium.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.browser.primary == "chromium" || config.browser.secondary == "chromium") {
|
||||||
|
home.packages = [ pkgs.chromium ];
|
||||||
|
};
|
||||||
|
}
|
||||||
31
home/modules/browser/default.nix
Normal file
31
home/modules/browser/default.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.browser = {
|
||||||
|
primary = lib.mkOption {
|
||||||
|
type = lib.types.enum [
|
||||||
|
"firefox"
|
||||||
|
"chromium"
|
||||||
|
"librewolf"
|
||||||
|
];
|
||||||
|
default = "firefox";
|
||||||
|
};
|
||||||
|
|
||||||
|
secondary = lib.mkOption {
|
||||||
|
type = lib.types.nullOr (
|
||||||
|
lib.types.enum [
|
||||||
|
"firefox"
|
||||||
|
"chromium"
|
||||||
|
"librewolf"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./firefox.nix
|
||||||
|
./librewolf.nix
|
||||||
|
./chromium.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,23 +1,34 @@
|
|||||||
{ inputs, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
bookmarks = import ./bookmarks.nix;
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
enable = true;
|
nativeMessagingHosts =
|
||||||
nativeMessagingHosts = with pkgs; [
|
with pkgs;
|
||||||
tridactyl-native
|
[
|
||||||
];
|
tridactyl-native
|
||||||
policies = {
|
]
|
||||||
DefaultDownloadDirectory = "\${home}/dl";
|
++ lib.optionals config.programs.keepassxc.enable [ keepassxc ];
|
||||||
};
|
|
||||||
profiles = {
|
profiles = {
|
||||||
default = {
|
default = {
|
||||||
settings = {
|
settings = {
|
||||||
"signon.rememberSignons" = false;
|
"signon.rememberSignons" = false;
|
||||||
"findbar.highlightAll" = true;
|
"findbar.highlightAll" = true;
|
||||||
"extensions.autoDisableScopes" = 0; # Enable extensions by default <https://nix-community.github.io/home-manager/options.xhtml#opt-programs.firefox.profiles._name_.extensions.packages>
|
"extensions.autoDisableScopes" = 0;
|
||||||
};
|
};
|
||||||
extensions = {
|
extensions = {
|
||||||
packages = with inputs.firefox-addons.packages.${pkgs.system}; [
|
force = true;
|
||||||
|
packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
duckduckgo-privacy-essentials
|
duckduckgo-privacy-essentials
|
||||||
|
firefox-color
|
||||||
istilldontcareaboutcookies
|
istilldontcareaboutcookies
|
||||||
libredirect
|
libredirect
|
||||||
keepassxc-browser
|
keepassxc-browser
|
||||||
@@ -33,23 +44,7 @@
|
|||||||
{
|
{
|
||||||
toolbar = true;
|
toolbar = true;
|
||||||
bookmarks = [
|
bookmarks = [
|
||||||
{
|
bookmarks.nixos
|
||||||
name = "NixOS";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "wiki";
|
|
||||||
url = "https://wiki.nixos.org/wiki/NixOS_Wiki";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "packages";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "options";
|
|
||||||
url = "https://search.nixos.org/options";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -57,6 +52,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
policies = {
|
policies = {
|
||||||
|
DefaultDownloadDirectory = "\${home}/dl";
|
||||||
ExtensionSettings = {
|
ExtensionSettings = {
|
||||||
"jid1-ZAdIEUB7XOzOJw@jetpack" = {
|
"jid1-ZAdIEUB7XOzOJw@jetpack" = {
|
||||||
default_area = "navbar";
|
default_area = "navbar";
|
||||||
23
home/modules/browser/firefox.nix
Normal file
23
home/modules/browser/firefox.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.browser.primary == "firefox" || config.browser.secondary == "firefox") {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
// (import ./firefox-base.nix {
|
||||||
|
inherit
|
||||||
|
config
|
||||||
|
inputs
|
||||||
|
lib
|
||||||
|
pkgs
|
||||||
|
;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
25
home/modules/browser/librewolf.nix
Normal file
25
home/modules/browser/librewolf.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config =
|
||||||
|
lib.mkIf (config.browser.primary == "librewolf" || config.browser.secondary == "librewolf")
|
||||||
|
{
|
||||||
|
programs.librewolf = {
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
// (import ./firefox-base.nix {
|
||||||
|
inherit
|
||||||
|
config
|
||||||
|
inputs
|
||||||
|
lib
|
||||||
|
pkgs
|
||||||
|
;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/modules/bruno.nix
Normal file
7
home/modules/bruno.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.bruno "--no-sandbox")) ];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
home/modules/cloud/azure.nix
Normal file
12
home/modules/cloud/azure.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.cloud.azure.enable {
|
||||||
|
home.packages = with pkgs; [ azure-cli ];
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/modules/cloud/default.nix
Normal file
17
home/modules/cloud/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.cloud = {
|
||||||
|
azure = {
|
||||||
|
enable = lib.mkEnableOption "azure CLI";
|
||||||
|
};
|
||||||
|
hetzner = {
|
||||||
|
enable = lib.mkEnableOption "hetzner CLI";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./azure.nix
|
||||||
|
./hetzner.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
21
home/modules/cloud/hetzner.nix
Normal file
21
home/modules/cloud/hetzner.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
osConfig ? null,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isNixOS = osConfig != null;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.cloud.hetzner.enable {
|
||||||
|
warnings =
|
||||||
|
lib.optional (!isNixOS)
|
||||||
|
"hcloud module requires NixOS host configuration. This module will not work with standalone home-manager.";
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [ hcloud ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/modules/comms/default.nix
Normal file
17
home/modules/comms/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.comms = {
|
||||||
|
signal = {
|
||||||
|
enable = lib.mkEnableOption "signal";
|
||||||
|
};
|
||||||
|
teams = {
|
||||||
|
enable = lib.mkEnableOption "teams";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./signal.nix
|
||||||
|
./teams.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
12
home/modules/comms/signal.nix
Normal file
12
home/modules/comms/signal.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.comms.signal.enable {
|
||||||
|
home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.signal-desktop "--no-sandbox")) ];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
home/modules/comms/teams.nix
Normal file
12
home/modules/comms/teams.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.comms.teams.enable {
|
||||||
|
home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.teams-for-linux "--no-sandbox")) ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,21 +1,13 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
terminal = "kitty";
|
||||||
|
browser = config.browser.primary;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/settings-daemon/plugins/color" = {
|
|
||||||
night-light-enabled = true;
|
|
||||||
night-light-schedule-automatic = true;
|
|
||||||
};
|
|
||||||
"org/gnome/desktop/interface" = {
|
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
|
|
||||||
"org/gnome/desktop/applications/terminal" = {
|
|
||||||
exec = "kitty";
|
|
||||||
exec-arg = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
"org/gnome/desktop/background" = {
|
"org/gnome/desktop/background" = {
|
||||||
color-shading-type = "solid";
|
color-shading-type = "solid";
|
||||||
picture-opacity = 100;
|
|
||||||
picture-options = "zoom";
|
picture-options = "zoom";
|
||||||
picture-uri = "none";
|
picture-uri = "none";
|
||||||
picture-uri-dark = "none";
|
picture-uri-dark = "none";
|
||||||
@@ -24,55 +16,54 @@
|
|||||||
show-desktop-icons = false;
|
show-desktop-icons = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# "org/gnome/desktop/input-sources" = {
|
"org/gnome/desktop/default-applications/office/calendar" = {
|
||||||
# sources = [
|
exec = "${browser} https://calendar.proton.me";
|
||||||
# (mkTuple [
|
needs-term = false;
|
||||||
# "xkb"
|
};
|
||||||
# "us"
|
|
||||||
# ])
|
"org/gnome/desktop/default-applications/office/tasks" = {
|
||||||
# ];
|
exec = "task";
|
||||||
# xkb-options = [ "caps:none" ];
|
needs-term = true;
|
||||||
# };
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/default-applications/terminal" = {
|
||||||
|
exec = terminal;
|
||||||
|
exec-arg = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/input-sources" = {
|
||||||
|
xkb-options = [ "caps:none" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
clock-format = "24h";
|
||||||
|
clock-show-weekday = true;
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
enable-hot-corners = false;
|
||||||
|
font-name = "Iosevka Term SS08 12";
|
||||||
|
locate-pointer = true;
|
||||||
|
monospace-font-name = "Iosevka Term SS08 12";
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/desktop/wm/keybindings" = {
|
"org/gnome/desktop/wm/keybindings" = {
|
||||||
close = [ "<Shift><Super>Delete" ];
|
close = [ "<Shift><Super>Delete" ];
|
||||||
cycle-group = [ ];
|
minimize = [ "<Super>h" ];
|
||||||
cycle-group-backward = [ ];
|
move-to-monitor-down = [ "<Super><Shift>Down" ];
|
||||||
cycle-panels = [ ];
|
move-to-monitor-left = [ "<Super><Shift>Left" ];
|
||||||
cycle-panels-backward = [ ];
|
move-to-monitor-right = [ "<Super><Shift>Right" ];
|
||||||
cycle-windows = [ ];
|
move-to-monitor-up = [ "<Super><Shift>Up" ];
|
||||||
cycle-windows-backward = [ ];
|
|
||||||
maximize = [ "<Super> " ];
|
|
||||||
minimize = [ ];
|
|
||||||
move-to-workspace-1 = [ "<Super><Shift>a" ];
|
move-to-workspace-1 = [ "<Super><Shift>a" ];
|
||||||
move-to-workspace-2 = [ "<Super><Shift>s" ];
|
move-to-workspace-2 = [ "<Super><Shift>s" ];
|
||||||
move-to-workspace-3 = [ "<Super><Shift>d" ];
|
move-to-workspace-3 = [ "<Super><Shift>d" ];
|
||||||
move-to-workspace-4 = [ "<Super><Shift>f" ];
|
move-to-workspace-4 = [ "<Super><Shift>f" ];
|
||||||
move-to-workspace-5 = [ "<Super><Shift>g" ];
|
move-to-workspace-5 = [ "<Super><Shift>g" ];
|
||||||
move-to-workspace-last = [ ];
|
|
||||||
move-to-workspace-left = [ "<Super><Shift>h" ];
|
|
||||||
move-to-workspace-right = [ "<Super><Shift>l" ];
|
|
||||||
panel-run-dialog = [ ];
|
|
||||||
switch-applications = [ "<Super>j" ];
|
switch-applications = [ "<Super>j" ];
|
||||||
switch-applications-backward = [ "<Super>k" ];
|
switch-applications-backward = [ "<Super>k" ];
|
||||||
switch-group = [ ];
|
|
||||||
switch-group-backward = [ ];
|
|
||||||
switch-input-source = [ ];
|
|
||||||
switch-input-source-backward = [ ];
|
|
||||||
switch-panels = [ ];
|
|
||||||
switch-panels-backward = [ ];
|
|
||||||
switch-to-workspace-1 = [ "<Super>a" ];
|
switch-to-workspace-1 = [ "<Super>a" ];
|
||||||
switch-to-workspace-2 = [ "<Super>s" ];
|
switch-to-workspace-2 = [ "<Super>s" ];
|
||||||
switch-to-workspace-3 = [ "<Super>d" ];
|
switch-to-workspace-3 = [ "<Super>d" ];
|
||||||
switch-to-workspace-4 = [ "<Super>f" ];
|
switch-to-workspace-4 = [ "<Super>f" ];
|
||||||
switch-to-workspace-5 = [ "<Super>g" ];
|
switch-to-workspace-5 = [ "<Super>g" ];
|
||||||
switch-to-workspace-last = [ ];
|
|
||||||
switch-to-workspace-left = [ "<Super>h" ];
|
|
||||||
switch-to-workspace-right = [ "<Super>l" ];
|
|
||||||
switch-windows = [ ];
|
|
||||||
switch-windows-backward = [ ];
|
|
||||||
toggle-maximized = [ "<Super>space" ];
|
|
||||||
unmaximize = [ ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
"org/gnome/desktop/wm/preferences" = {
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
@@ -86,8 +77,19 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/mutter" = {
|
||||||
|
center-new-windows = true;
|
||||||
|
dynamic-workspaces = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/color" = {
|
||||||
|
night-light-enabled = true;
|
||||||
|
night-light-schedule-automatic = true;
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
custom-keybindings = [
|
custom-keybindings = [
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -100,14 +102,23 @@
|
|||||||
|
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||||
binding = "<Super>Return";
|
binding = "<Super>Return";
|
||||||
command = "kitty";
|
command = terminal;
|
||||||
name = "Kitty";
|
name = "Kitty";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/power" = {
|
||||||
|
power-button-action = "suspend";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/app-switcher" = {
|
||||||
|
current-workspace-only = true;
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/shell/keybindings" = {
|
"org/gnome/shell/keybindings" = {
|
||||||
screenshot = [ "Print" ];
|
|
||||||
toggle-application-view = [ "<Super>p" ];
|
toggle-application-view = [ "<Super>p" ];
|
||||||
toggle-quick-settings = [ ];
|
toggle-quick-settings = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ dconf2nix ];
|
||||||
}
|
}
|
||||||
|
|||||||
24
home/modules/default.nix
Normal file
24
home/modules/default.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.nixgl.wrap = lib.mkOption {
|
||||||
|
type = lib.types.functionTo lib.types.package;
|
||||||
|
default = if config.lib ? nixGL then config.lib.nixGL.wrap else lib.id;
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
options.wrapApp = lib.mkOption {
|
||||||
|
type = lib.types.raw;
|
||||||
|
default =
|
||||||
|
pkg: flags:
|
||||||
|
if config.lib ? nixGL then
|
||||||
|
pkg.overrideAttrs (old: {
|
||||||
|
postInstall = (old.postInstall or "") + ''
|
||||||
|
wrapProgram $out/bin/${pkg.meta.mainProgram} --add-flags "${flags}"
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
else
|
||||||
|
pkg;
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
182
home/modules/desktop/niri/config.kdl
Normal file
182
home/modules/desktop/niri/config.kdl
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
input {
|
||||||
|
touchpad {
|
||||||
|
tap
|
||||||
|
natural-scroll
|
||||||
|
}
|
||||||
|
mouse {
|
||||||
|
accel-profile "flat"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE: monitors are managed using `shikane` instead, as I assume this to be
|
||||||
|
// too limited for multiple multimonitor configurations. Below is an example
|
||||||
|
// for a simple, fixed, vertical dual monitor setup
|
||||||
|
|
||||||
|
// output "eDP-1" {
|
||||||
|
// position x=0 y=1440
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// output "DP-5" {
|
||||||
|
// position x=0 y=0
|
||||||
|
// }
|
||||||
|
|
||||||
|
layout {
|
||||||
|
gaps 4
|
||||||
|
struts {}
|
||||||
|
center-focused-column "never"
|
||||||
|
preset-column-widths {
|
||||||
|
proportion 0.382
|
||||||
|
proportion 0.618
|
||||||
|
proportion 1.0
|
||||||
|
}
|
||||||
|
default-column-width { }
|
||||||
|
focus-ring {
|
||||||
|
off
|
||||||
|
}
|
||||||
|
border {
|
||||||
|
width 2
|
||||||
|
active-color "#555555"
|
||||||
|
inactive-color "#55555511"
|
||||||
|
urgent-color "#ff0000"
|
||||||
|
}
|
||||||
|
shadow {
|
||||||
|
on
|
||||||
|
softness 32
|
||||||
|
spread 4
|
||||||
|
offset x=0 y=0
|
||||||
|
color "#0007"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
hotkey-overlay {
|
||||||
|
skip-at-startup
|
||||||
|
}
|
||||||
|
|
||||||
|
prefer-no-csd
|
||||||
|
|
||||||
|
screenshot-path "~/doc/screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||||
|
|
||||||
|
// https://yalter.github.io/niri/Configuration:-Animations
|
||||||
|
animations {
|
||||||
|
slowdown 0.66
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||||
|
block-out-from "screen-capture"
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
geometry-corner-radius 0
|
||||||
|
clip-to-geometry true
|
||||||
|
}
|
||||||
|
|
||||||
|
gestures {
|
||||||
|
hot-corners {
|
||||||
|
off
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
binds {
|
||||||
|
Mod+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
Mod+Return hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||||
|
Mod+P hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
|
|
||||||
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; }
|
||||||
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||||
|
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||||
|
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||||
|
|
||||||
|
Mod+Shift+XF86Display { power-off-monitors; }
|
||||||
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
|
||||||
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
|
||||||
|
|
||||||
|
Mod+O repeat=false { toggle-overview; }
|
||||||
|
Mod+Delete repeat=false { close-window; }
|
||||||
|
|
||||||
|
Mod+H { focus-column-left; }
|
||||||
|
Mod+J { focus-window-or-workspace-down; }
|
||||||
|
Mod+K { focus-window-or-workspace-up; }
|
||||||
|
Mod+L { focus-column-right; }
|
||||||
|
|
||||||
|
Mod+Shift+H { move-column-left; }
|
||||||
|
Mod+Shift+J { move-window-down-or-to-workspace-down; }
|
||||||
|
Mod+Shift+K { move-window-up-or-to-workspace-up; }
|
||||||
|
Mod+Shift+L { move-column-right; }
|
||||||
|
|
||||||
|
Mod+Home { focus-column-first; }
|
||||||
|
Mod+End { focus-column-last; }
|
||||||
|
Mod+Ctrl+Home { move-column-to-first; }
|
||||||
|
Mod+Ctrl+End { move-column-to-last; }
|
||||||
|
|
||||||
|
Mod+Left { focus-monitor-left; }
|
||||||
|
Mod+Down { focus-monitor-down; }
|
||||||
|
Mod+Up { focus-monitor-up; }
|
||||||
|
Mod+Right { focus-monitor-right; }
|
||||||
|
Mod+Shift+Left { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Down { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Up { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Right { move-column-to-monitor-right; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Up { move-workspace-down; }
|
||||||
|
Mod+Ctrl+Down { move-workspace-up; }
|
||||||
|
|
||||||
|
// Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
|
// Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
|
// Mod+Shift+WheelScrollDown cooldown-ms=150 { move-window-down-or-to-workspace-down; }
|
||||||
|
// Mod+Shift+WheelScrollUp cooldown-ms=150 { move-window-up-or-to-workspace-up; }
|
||||||
|
|
||||||
|
// Mod+A { focus-workspace 1; }
|
||||||
|
// Mod+S { focus-workspace 2; }
|
||||||
|
// Mod+D { focus-workspace 3; }
|
||||||
|
// Mod+F { focus-workspace 4; }
|
||||||
|
// Mod+Shift+A { move-column-to-workspace 1; }
|
||||||
|
// Mod+Shift+S { move-column-to-workspace 2; }
|
||||||
|
// Mod+Shift+D { move-column-to-workspace 3; }
|
||||||
|
// Mod+Shift+F { move-column-to-workspace 4; }
|
||||||
|
|
||||||
|
Mod+Tab { focus-workspace-previous; }
|
||||||
|
|
||||||
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
Mod+Comma { consume-window-into-column; }
|
||||||
|
Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
|
Mod+N { switch-preset-column-width; }
|
||||||
|
Mod+Shift+N { switch-preset-window-height; }
|
||||||
|
Mod+Ctrl+R { reset-window-height; }
|
||||||
|
|
||||||
|
Mod+Space { maximize-column; }
|
||||||
|
Mod+Shift+Space { fullscreen-window; }
|
||||||
|
|
||||||
|
Mod+Escape { toggle-window-floating; }
|
||||||
|
Mod+Shift+Escape { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
|
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||||
|
|
||||||
|
Mod+C { center-column; }
|
||||||
|
Mod+Ctrl+C { center-visible-columns; }
|
||||||
|
|
||||||
|
Mod+Minus { set-column-width "-10%"; }
|
||||||
|
Mod+Equal { set-column-width "+10%"; }
|
||||||
|
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||||
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||||
|
|
||||||
|
Mod+W { toggle-column-tabbed-display; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Alt+Print { screenshot-window; }
|
||||||
|
|
||||||
|
Mod+Shift+Delete { quit; }
|
||||||
|
}
|
||||||
26
home/modules/desktop/niri/default.nix
Normal file
26
home/modules/desktop/niri/default.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../fuzzel
|
||||||
|
../../mako
|
||||||
|
../../shikane
|
||||||
|
../../waybar
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
file.".config/niri/config.kdl".source = ./config.kdl;
|
||||||
|
packages = with pkgs; [
|
||||||
|
brightnessctl
|
||||||
|
wl-clipboard
|
||||||
|
wlsunset
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gammastep = {
|
||||||
|
enable = true;
|
||||||
|
provider = "manual";
|
||||||
|
latitude = 51.05;
|
||||||
|
longitude = 3.71667;
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/modules/direnv/default.nix
Normal file
7
home/modules/direnv/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
home/modules/docker/default.nix
Normal file
9
home/modules/docker/default.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
dive
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
15
home/modules/fuzzel/default.nix
Normal file
15
home/modules/fuzzel/default.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
programs.fuzzel = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
horizontal-pad = 0;
|
||||||
|
vertical-pad = 0;
|
||||||
|
};
|
||||||
|
border = {
|
||||||
|
width = 2;
|
||||||
|
radius = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
programs.git.enable = true;
|
|
||||||
home.file = {
|
|
||||||
".gitconfig".source = ../../dots/.gitconfig;
|
|
||||||
".gitconfig.work".source = ../../dots/.gitconfig.work;
|
|
||||||
".gitignore".source = ../../dots/.gitignore;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
26
home/modules/git/default.nix
Normal file
26
home/modules/git/default.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
dotsPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
github.enable = lib.mkEnableOption "Github CLI";
|
||||||
|
gitlab.enable = lib.mkEnableOption "Gitlab CLI";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
programs.git.enable = true;
|
||||||
|
home.file = {
|
||||||
|
".gitconfig".source = dotsPath + "/.gitconfig";
|
||||||
|
".gitconfig.work".source = dotsPath + "/.gitconfig.work";
|
||||||
|
".gitignore".source = dotsPath + "/.gitignore";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.gh.enable = config.github.enable;
|
||||||
|
home.packages = lib.optionals config.gitlab.enable [ pkgs.glab ];
|
||||||
|
};
|
||||||
|
}
|
||||||
18
home/modules/go/default.nix
Normal file
18
home/modules/go/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.go = {
|
||||||
|
enable = lib.mkEnableOption "go language";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.go.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
go
|
||||||
|
gopls
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
25
home/modules/k8s/default.nix
Normal file
25
home/modules/k8s/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
argocd
|
||||||
|
fluxcd
|
||||||
|
k3d
|
||||||
|
kubectl
|
||||||
|
kubernetes
|
||||||
|
kustomize
|
||||||
|
minikube
|
||||||
|
opentofu
|
||||||
|
upbound
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.kubecolor = {
|
||||||
|
enable = true;
|
||||||
|
enableAlias = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./helm.nix
|
||||||
|
./k9s.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
15
home/modules/k8s/helm.nix
Normal file
15
home/modules/k8s/helm.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
(wrapHelm kubernetes-helm {
|
||||||
|
plugins = with kubernetes-helmPlugins; [
|
||||||
|
helm-diff
|
||||||
|
helm-git
|
||||||
|
helm-schema
|
||||||
|
helm-secrets
|
||||||
|
helm-unittest
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
{
|
{
|
||||||
enable = true;
|
programs.keepassxc = {
|
||||||
# TODO: https://mynixos.com/home-manager/option/programs.keepassxc.settings
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Browser.Enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
22
home/modules/kitty.nix
Normal file
22
home/modules/kitty.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
dotsPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
programs.bash.shellAliases = {
|
||||||
|
icat = "kitty +kitten icat";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
package = config.nixgl.wrap pkgs.kitty;
|
||||||
|
extraConfig = builtins.readFile (dotsPath + "/.config/kitty/kitty.conf");
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/kitty/nvim.conf".source = dotsPath + "/.config/kitty/nvim.conf";
|
||||||
|
};
|
||||||
|
}
|
||||||
5
home/modules/mako/default.nix
Normal file
5
home/modules/mako/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
services.mako = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
27
home/modules/music/default.nix
Normal file
27
home/modules/music/default.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
dotsPath,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
spotifyWithWayland = pkgs.symlinkJoin {
|
||||||
|
name = "spotify";
|
||||||
|
paths = [ pkgs.spotify ];
|
||||||
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/spotify \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
spotifyWithWayland
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.ncspot = {
|
||||||
|
enable = true;
|
||||||
|
settings = builtins.fromTOML (builtins.readFile (dotsPath + "/.config/ncspot/config.toml"));
|
||||||
|
};
|
||||||
|
}
|
||||||
5
home/modules/nfc/default.nix
Normal file
5
home/modules/nfc/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./proxmark3.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
21
home/modules/nfc/proxmark3.nix
Normal file
21
home/modules/nfc/proxmark3.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.nfc.proxmark3;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nfc.proxmark3 = {
|
||||||
|
enable = lib.mkEnableOption "proxmark3 (iceman fork)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.proxmark3.override { withGeneric = true; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
26
home/modules/nodejs.nix
Normal file
26
home/modules/nodejs.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.nodejs = {
|
||||||
|
enable = lib.mkEnableOption "nodejs (and related packages)";
|
||||||
|
package = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.nodejs_24;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.nodejs.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
config.nodejs.package
|
||||||
|
pnpm
|
||||||
|
yarn
|
||||||
|
biome
|
||||||
|
tsx
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
9
home/modules/nvim.nix
Normal file
9
home/modules/nvim.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
home.packages = [
|
||||||
|
inputs.nvim.packages.${pkgs.stdenv.hostPlatform.system}.nvim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
19
home/modules/pandoc.nix
Normal file
19
home/modules/pandoc.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.pandoc = {
|
||||||
|
enable = lib.mkEnableOption "pandoc";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.pandoc.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
haskellPackages.pandoc-crossref
|
||||||
|
pandoc
|
||||||
|
texliveSmall
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/modules/photography/default.nix
Normal file
7
home/modules/photography/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
darktable
|
||||||
|
];
|
||||||
|
}
|
||||||
73
home/modules/shell/bash.nix
Normal file
73
home/modules/shell/bash.nix
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
dotsPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.shell.bash;
|
||||||
|
inherit (config.home) username;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.shell.bash = {
|
||||||
|
enable = lib.mkEnableOption "bash configuration";
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
all = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Enable common aliases";
|
||||||
|
};
|
||||||
|
lang-js = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable JavaScript/Node.js aliases";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
addBinToPath = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Add dots .bin directory to PATH";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraInit = lib.mkOption {
|
||||||
|
type = lib.types.lines;
|
||||||
|
default = "";
|
||||||
|
description = "Additional bash initialization";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
shell-utils.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
initExtra = ''
|
||||||
|
for f in /home/${username}/.bashrc.d/*; do
|
||||||
|
[ -f "$f" ] && source "$f"
|
||||||
|
done
|
||||||
|
|
||||||
|
${lib.optionalString cfg.aliases.all "source /home/${username}/.bash_aliases/all"}
|
||||||
|
${lib.optionalString cfg.aliases.lang-js "source /home/${username}/.bash_aliases/lang-js"}
|
||||||
|
|
||||||
|
${lib.optionalString cfg.addBinToPath "export PATH=${dotsPath}/.bin:$PATH"}
|
||||||
|
|
||||||
|
${cfg.extraInit}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".inputrc".source = dotsPath + "/.inputrc";
|
||||||
|
".bashrc.d/prompt".source = dotsPath + "/.bashrc.d/prompt";
|
||||||
|
".bashrc.d/editor".source = dotsPath + "/.bashrc.d/editor";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs cfg.aliases.all {
|
||||||
|
".bash_aliases/all".source = dotsPath + "/.bash_aliases/all";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs cfg.aliases.lang-js {
|
||||||
|
".bash_aliases/lang-js".source = dotsPath + "/.bash_aliases/lang-js";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
8
home/modules/shell/default.nix
Normal file
8
home/modules/shell/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./bash.nix
|
||||||
|
./utils.nix
|
||||||
|
./prompt.nix
|
||||||
|
../tmux.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
16
home/modules/shell/prompt.nix
Normal file
16
home/modules/shell/prompt.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.starship = {
|
||||||
|
enable = lib.mkEnableOption "starship prompt";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.starship.enable {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
26
home/modules/shell/utils.nix
Normal file
26
home/modules/shell/utils.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.shell-utils = {
|
||||||
|
enable = lib.mkEnableOption "shell utilities";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.shell-utils.enable {
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ripgrep
|
||||||
|
bat
|
||||||
|
jq
|
||||||
|
entr
|
||||||
|
parallel
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user