Compare commits

...

5 Commits

Author SHA1 Message Date
tux
43b3be09e5 chore: persist claude, orca and gh dirs 2026-09-17 22:47:13 +05:30
tux
f960a5eb04 feat(sirius): add galaxy-buds-client 2026-09-17 21:55:09 +05:30
tux
23dfd5b998 feat(flake): add llm-agents input and packages 2026-09-17 21:54:02 +05:30
tux
2b3e4661b3 feat(packages): add omasnap 2026-09-17 21:31:29 +05:30
tux
cdce741599 chore: add .config/nix to persist dir 2026-09-17 16:52:01 +05:30
10 changed files with 320 additions and 83 deletions

292
flake.lock generated
View File

@@ -53,6 +53,40 @@
"url": "https://codeberg.org/LGFae/awww"
}
},
"bun2nix": {
"inputs": {
"flake-parts": [
"llm-agents",
"flake-parts"
],
"nixpkgs": [
"llm-agents",
"nixpkgs"
],
"systems": [
"llm-agents",
"systems"
],
"treefmt-nix": [
"llm-agents",
"treefmt-nix"
]
},
"locked": {
"lastModified": 1788011267,
"narHash": "sha256-mEq2kU+ljompTToZ44Afvm7d/rHJ5iMBl0tjZuyShJs=",
"owner": "Mic92",
"repo": "bun2nix",
"rev": "5765b0614591f75ee8ba5596e81ae85c167d1071",
"type": "github"
},
"original": {
"owner": "Mic92",
"ref": "fix-structured-attrs-hook",
"repo": "bun2nix",
"type": "github"
}
},
"cardwire": {
"inputs": {
"fenix": "fenix",
@@ -327,6 +361,27 @@
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": [
"llm-agents",
"nixpkgs"
]
},
"locked": {
"lastModified": 1788450739,
"narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_4": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
@@ -344,7 +399,7 @@
"type": "github"
}
},
"flake-parts_4": {
"flake-parts_5": {
"inputs": {
"nixpkgs-lib": [
"nur",
@@ -365,7 +420,7 @@
"type": "github"
}
},
"flake-parts_5": {
"flake-parts_6": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
@@ -383,7 +438,7 @@
"type": "github"
}
},
"flake-parts_6": {
"flake-parts_7": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_3"
},
@@ -440,7 +495,7 @@
},
"flake-utils_3": {
"inputs": {
"systems": "systems_5"
"systems": "systems_6"
},
"locked": {
"lastModified": 1731533236,
@@ -458,7 +513,7 @@
},
"flake-utils_4": {
"inputs": {
"systems": "systems_6"
"systems": "systems_7"
},
"locked": {
"lastModified": 1731533236,
@@ -1068,9 +1123,31 @@
"type": "github"
}
},
"llm-agents": {
"inputs": {
"bun2nix": "bun2nix",
"flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_11",
"systems": "systems_3",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1789643193,
"narHash": "sha256-Vd9M6YDpwLDTI2JgQxNdnx8xvWJ8mVI5tehu/yFvoMA=",
"owner": "numtide",
"repo": "llm-agents.nix",
"rev": "e07b7ec56fcbb9d93383319aae2d3aedcd4631d1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "llm-agents.nix",
"type": "github"
}
},
"mango": {
"inputs": {
"flake-parts": "flake-parts_3",
"flake-parts": "flake-parts_4",
"nixpkgs": [
"nixpkgs"
],
@@ -1190,9 +1267,9 @@
"inputs": {
"home-manager": "home-manager_4",
"nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs_11",
"nixpkgs": "nixpkgs_12",
"nixpkgs-nixcord": "nixpkgs-nixcord",
"treefmt-nix": "treefmt-nix"
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
"lastModified": 1789029226,
@@ -1210,7 +1287,7 @@
},
"nixos-hardware": {
"inputs": {
"nixpkgs": "nixpkgs_12"
"nixpkgs": "nixpkgs_13"
},
"locked": {
"lastModified": 1788942796,
@@ -1369,6 +1446,22 @@
}
},
"nixpkgs_11": {
"locked": {
"lastModified": 1789370336,
"narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c7def046b9a883d46974757852106483d741586f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_12": {
"locked": {
"lastModified": 1788921488,
"narHash": "sha256-8+xWRxEkD6l217cIUdRxfeUGS9lQX0hVtUuNVsBaDzk=",
@@ -1384,7 +1477,7 @@
"type": "github"
}
},
"nixpkgs_12": {
"nixpkgs_13": {
"locked": {
"lastModified": 1767892417,
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
@@ -1397,39 +1490,39 @@
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
"nixpkgs_13": {
"locked": {
"lastModified": 1789006805,
"narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_14": {
"locked": {
"lastModified": 1789006805,
"narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=",
"owner": "nixos",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe",
"type": "github"
},
"original": {
"owner": "nixos",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_15": {
"locked": {
"lastModified": 1789006805,
"narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_16": {
"locked": {
"lastModified": 1776683584,
"narHash": "sha256-NuTLMrr10Tng72hurYG8jYQ4XKK8wnpJmOGcPiis96g=",
@@ -1445,7 +1538,7 @@
"type": "github"
}
},
"nixpkgs_16": {
"nixpkgs_17": {
"locked": {
"lastModified": 1788752844,
"narHash": "sha256-VaWGJ6+cIYN2erfSecbRV+4ljI185Ty2wUrXyvQbgOw=",
@@ -1461,7 +1554,7 @@
"type": "github"
}
},
"nixpkgs_17": {
"nixpkgs_18": {
"locked": {
"lastModified": 1782175435,
"narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
@@ -1477,7 +1570,7 @@
"type": "github"
}
},
"nixpkgs_18": {
"nixpkgs_19": {
"locked": {
"lastModified": 1770107345,
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
@@ -1493,22 +1586,6 @@
"type": "github"
}
},
"nixpkgs_19": {
"locked": {
"lastModified": 1774386573,
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1788179007,
@@ -1525,6 +1602,22 @@
"type": "github"
}
},
"nixpkgs_20": {
"locked": {
"lastModified": 1774386573,
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1787631388,
@@ -1697,8 +1790,8 @@
},
"nur": {
"inputs": {
"flake-parts": "flake-parts_4",
"nixpkgs": "nixpkgs_14"
"flake-parts": "flake-parts_5",
"nixpkgs": "nixpkgs_15"
},
"locked": {
"lastModified": 1789084691,
@@ -1716,7 +1809,7 @@
},
"opencode": {
"inputs": {
"nixpkgs": "nixpkgs_15"
"nixpkgs": "nixpkgs_16"
},
"locked": {
"lastModified": 1789072415,
@@ -1864,12 +1957,13 @@
"import-tree": "import-tree",
"lan-mouse": "lan-mouse",
"lanzaboote": "lanzaboote",
"llm-agents": "llm-agents",
"mango": "mango",
"nix-index-database": "nix-index-database",
"nix-on-droid": "nix-on-droid",
"nixcord": "nixcord",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_13",
"nixpkgs": "nixpkgs_14",
"nixpkgs-stable": "nixpkgs-stable",
"nur": "nur",
"opencode": "opencode",
@@ -1877,7 +1971,7 @@
"sops-nix": "sops-nix",
"tfolio": "tfolio",
"tnvim": "tnvim",
"treefmt-nix": "treefmt-nix_3",
"treefmt-nix": "treefmt-nix_4",
"trok": "trok",
"tshell": "tshell",
"vicinae-extensions": "vicinae-extensions",
@@ -1993,7 +2087,7 @@
"mango",
"nixpkgs"
],
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1782624992,
@@ -2027,7 +2121,7 @@
},
"serpantinum": {
"inputs": {
"nixpkgs": "nixpkgs_16",
"nixpkgs": "nixpkgs_17",
"serpantinum-wallpapers": "serpantinum-wallpapers"
},
"locked": {
@@ -2062,7 +2156,7 @@
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_17"
"nixpkgs": "nixpkgs_18"
},
"locked": {
"lastModified": 1788914643,
@@ -2109,21 +2203,6 @@
}
},
"systems_3": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -2138,6 +2217,21 @@
"type": "github"
}
},
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1681028828,
@@ -2168,13 +2262,28 @@
"type": "github"
}
},
"systems_7": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tfolio": {
"inputs": {
"flake-parts": "flake-parts_5",
"flake-parts": "flake-parts_6",
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": "treefmt-nix_2"
"treefmt-nix": "treefmt-nix_3"
},
"locked": {
"lastModified": 1788861166,
@@ -2213,7 +2322,7 @@
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"nixcord",
"llm-agents",
"nixpkgs"
]
},
@@ -2234,7 +2343,7 @@
"treefmt-nix_2": {
"inputs": {
"nixpkgs": [
"tfolio",
"nixcord",
"nixpkgs"
]
},
@@ -2254,7 +2363,10 @@
},
"treefmt-nix_3": {
"inputs": {
"nixpkgs": "nixpkgs_18"
"nixpkgs": [
"tfolio",
"nixpkgs"
]
},
"locked": {
"lastModified": 1786901030,
@@ -2271,6 +2383,24 @@
}
},
"treefmt-nix_4": {
"inputs": {
"nixpkgs": "nixpkgs_19"
},
"locked": {
"lastModified": 1786901030,
"narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"treefmt-nix_5": {
"inputs": {
"nixpkgs": [
"trok",
@@ -2291,7 +2421,7 @@
"type": "github"
}
},
"treefmt-nix_5": {
"treefmt-nix_6": {
"inputs": {
"nixpkgs": [
"tshell",
@@ -2314,11 +2444,11 @@
},
"trok": {
"inputs": {
"flake-parts": "flake-parts_6",
"flake-parts": "flake-parts_7",
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": "treefmt-nix_4"
"treefmt-nix": "treefmt-nix_5"
},
"locked": {
"lastModified": 1788821928,
@@ -2340,7 +2470,7 @@
"nixpkgs"
],
"quickshell": "quickshell",
"treefmt-nix": "treefmt-nix_5"
"treefmt-nix": "treefmt-nix_6"
},
"locked": {
"lastModified": 1789072839,
@@ -2430,7 +2560,7 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_4",
"systems": "systems_5",
"vicinae": "vicinae"
},
"locked": {
@@ -2450,7 +2580,7 @@
"voxtype": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_19"
"nixpkgs": "nixpkgs_20"
},
"locked": {
"lastModified": 1780004034,

View File

@@ -94,5 +94,6 @@
voxtype.url = "github:peteonrails/voxtype/v0.7.5";
opencode.url = "github:anomalyco/opencode";
serpantinum.url = "github:ilyamiro/serpantinum";
llm-agents.url = "github:numtide/llm-agents.nix";
};
}

View File

@@ -1,6 +1,7 @@
{inputs, ...}: {
flake.overlays = {
modifications = final: prev: {
omasnap = prev.callPackage ../../packages/omasnap.nix {};
tnvim = inputs.tnvim.packages.${prev.stdenv.hostPlatform.system}.default;
tshell = inputs.tshell.packages.${prev.stdenv.hostPlatform.system}.default;
trok = inputs.trok.packages.${prev.stdenv.hostPlatform.system}.default;
@@ -25,12 +26,17 @@
nur = inputs.nur.overlays.default;
copyparty = inputs.copyparty.overlays.default;
llm-agents = inputs.llm-agents.overlays.shared-nixpkgs;
};
perSystem = {system, ...}: {
_module.args.pkgs = import inputs.nixpkgs {
perSystem = {system, ...}: let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = builtins.attrValues inputs.self.overlays;
};
in {
_module.args.pkgs = pkgs;
packages.omasnap = pkgs.omasnap;
};
}

View File

@@ -30,6 +30,7 @@
hyprshot
wl-clipboard
wl-screenrec
omasnap
(writeShellScriptBin "hypr-screenshot" ''
hyprshot -m region -r ppm - | satty --filename -
'')

View File

@@ -0,0 +1,7 @@
{
flake.modules.homeManager.shell = {
programs.gh = {
enable = true;
};
};
}

View File

@@ -25,6 +25,7 @@
".bun"
".rustup"
".config/sops"
".config/nix"
".local/share/nvim"
".local/share/opencode"
".local/share/zsh"

View File

@@ -33,6 +33,7 @@
".config/Vencord"
".config/vesktop"
".config/sops"
".config/nix"
".config/obs-studio"
".config/easyeffects"
".config/DankMaterialShell"
@@ -50,10 +51,16 @@
".local/share/GalaxyBudsClient"
".local/state/serpantinum"
".local/share/zed"
".claude"
".orca"
".config/orca"
];
files = [
".wakatime.cfg"
".claude.json"
".config/gh/hosts.yml"
];
};
};
@@ -138,6 +145,8 @@
telegram-desktop
galaxy-buds-client
impala
llm-agents.claude-code
llm-agents.orca
];
# !!! DO NOT CHANGE THIS !!!

View File

@@ -33,6 +33,7 @@
".config/Vencord"
".config/vesktop"
".config/sops"
".config/nix"
".config/obs-studio"
".config/easyeffects"
".config/DankMaterialShell"
@@ -50,11 +51,17 @@
".local/share/GalaxyBudsClient"
".local/state/serpantinum"
".local/share/zed"
".claude"
".orca"
".config/orca"
];
files = [
".wakatime.cfg"
".config/lan-mouse/lan-mouse.pem"
".claude.json"
".config/gh/hosts.yml"
];
};
};
@@ -137,7 +144,10 @@
environment.systemPackages = with pkgs; [
davinci-resolve
telegram-desktop
galaxy-buds-client
impala
llm-agents.claude-code
llm-agents.orca
];
# !!! DO NOT CHANGE THIS !!!

View File

@@ -33,6 +33,10 @@
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
extra-substituters = ["https://cache.numtide.com"];
extra-trusted-public-keys = [
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
];
};
};
}

68
packages/omasnap.nix Normal file
View File

@@ -0,0 +1,68 @@
{
lib,
stdenv,
cmake,
fetchFromGitHub,
hyprland,
kdePackages,
ninja,
pkg-config,
tesseract,
wayland,
wayland-protocols,
wayland-scanner,
wl-clipboard,
}:
stdenv.mkDerivation {
pname = "omasnap";
version = "v1.20.1";
src = fetchFromGitHub {
owner = "omacom";
repo = "omasnap";
rev = "d339588f3aba554f314d6233da2dddc98f83de55";
hash = "sha256-90p1lZDj4cksAAhpbJMQwN6cMqqcZyRVESMLpjmw294=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "/usr/share/wayland-protocols" \
"${wayland-protocols}/share/wayland-protocols"
'';
nativeBuildInputs = [
cmake
kdePackages.wrapQtAppsHook
ninja
pkg-config
wayland-scanner
];
buildInputs = [
kdePackages.layer-shell-qt
kdePackages.qtbase
wayland
wayland-protocols
];
cmakeFlags = [(lib.cmakeBool "BUILD_TESTING" false)];
qtWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [
hyprland
tesseract
wl-clipboard
])
];
meta = {
description = "Fast Wayland screenshot and annotation overlay for Hyprland";
homepage = "https://github.com/omacom/omasnap";
license = lib.licenses.mit;
mainProgram = "omasnap";
platforms = lib.platforms.linux;
};
}