2 Commits
Author SHA1 Message Date
Armel van Ravels c9c4feffa8 Disable ai-usage providers via nix 2026-10-12 16:07:46 +02:00
Armel van Ravels eb806610b5 Add photocraft 2026-10-12 10:26:14 +02:00
5 changed files with 80 additions and 13 deletions

No files matched your search

Generated
+13 -13
View File
@@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1791553507,
"narHash": "sha256-Zrzq6ISt8BAG5ArLJP6qJTIn5YgAPZ1jL2lLlxjpFaM=",
"lastModified": 1791803006,
"narHash": "sha256-WAT3CE/2SxaAIVg4rnwcAq/WZSoAKAHUc5GzsTvCgbE=",
"ref": "refs/heads/master",
"rev": "69605d7e5414786cfe004e93e392f8a90ac1638c",
"revCount": 1,
"rev": "c312d83c7a7225fb7b3df53c3e2966a8921d0a69",
"revCount": 2,
"type": "git",
"url": "https://git.een.ninja/armel/ai-usage.git"
},
@@ -43,11 +43,11 @@
},
"nix-flatpak": {
"locked": {
"lastModified": 1790428548,
"narHash": "sha256-OsZ/I7v3ArCrk0XOUvkiU1dFtGtE1qZTHRGjvBXIKUU=",
"lastModified": 1791644268,
"narHash": "sha256-f7Z4PmfnRxf7+37NN48ep+KsQauGtL5REE99pJtMNp8=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "f1f045fc8b35ff59f88982c1752d3f3a42ca6a61",
"rev": "02656785ab214fa1c9655f1beaaf0269eeeec2ca",
"type": "github"
},
"original": {
@@ -58,11 +58,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1791426274,
"narHash": "sha256-MWhktfFtFE8Jl7bf9Pkp7TR5MSdYCjCswSo0Gkb4ywc=",
"lastModified": 1791662279,
"narHash": "sha256-xI8L+UwJLIg75yVJwLPsY+AUEP1teCT3FyuvodyJu2Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7c8764b7c7b09b34f632464276218ef9090eaa11",
"rev": "6fcc160353f63555b560f25588925133c8f61f2a",
"type": "github"
},
"original": {
@@ -74,11 +74,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1791366222,
"narHash": "sha256-o0N4g6uSOIppU7CGToNvGlMf5vC+B6O6ukFHKY/TKOY=",
"lastModified": 1791487292,
"narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "39ad350a0602fa0a58a544344e3e9187526ea45c",
"rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30",
"type": "github"
},
"original": {
+1
View File
@@ -32,6 +32,7 @@
../../modules/cursor-cli.nix
../../modules/git-churn.nix
../../modules/ai-usage.nix
../../modules/photocraft.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
+14
View File
@@ -1 +1,15 @@
{ pkgs, ai-usage, home-manager, ... }:
{
home-manager.users.avravels = {
imports = [ ai-usage.homeManagerModules.default ];
programs.ai-usage = {
enable = true;
providers.cursor.enable = true;
providers.codex.enable = false;
providers.claude.enable = false;
package = ai-usage.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(pkgs.callPackage ../packages/photocraft.nix { })
];
}
+45
View File
@@ -0,0 +1,45 @@
{ lib
, appimageTools
, fetchurl
,
}:
let
pname = "photocraft";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/storytold/photocraft/releases/download/v${version}/photocraft-${version}-linux-x86_64.AppImage";
hash = "sha256-h+vONrzfazHRapyiLOKfmtjbaBheTZgRiADRwt54rEI=";
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm644 ${src} $out/share/${pname}/source.AppImage
mkdir -p $out/share/applications
cat > $out/share/applications/${pname}.desktop <<EOF
[Desktop Entry]
Name=PhotoCraft
Comment=Open-source image editor
Exec=${pname} %F
Terminal=false
Type=Application
Categories=Graphics;RasterGraphics;
StartupNotify=true
EOF
'';
meta = {
description = "Open-source image editor";
homepage = "https://github.com/storytold/photocraft";
downloadPage = "https://github.com/storytold/photocraft/releases";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "photocraft";
};
}