Compare commits
3 commits
6dfe3ac326
...
21edda5fe6
| Author | SHA1 | Date | |
|---|---|---|---|
| 21edda5fe6 | |||
| d4615fc435 | |||
| c10c610034 |
9 changed files with 2673 additions and 2 deletions
|
|
@ -74,4 +74,9 @@ nix multi user, multi system, configuration with `sops` secret management, `home
|
||||||
- make radarr, sonarr, and bazarr accessible over vpn
|
- make radarr, sonarr, and bazarr accessible over vpn
|
||||||
- create some sort of service that allows uploading files to jellyfin
|
- create some sort of service that allows uploading files to jellyfin
|
||||||
- auto sort files into where they should go with some combination of filebot cli and picard cli
|
- auto sort files into where they should go with some combination of filebot cli and picard cli
|
||||||
- graphana accessible though tailscale
|
- graphana accessible though tailscale
|
||||||
|
- fix polycule package
|
||||||
|
- fix panoramax package
|
||||||
|
- actual instance
|
||||||
|
- intergrade radarr, sonarr, and bazarr
|
||||||
|
- claude code MCP servers should bundle node with them so they work in all environments
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,8 @@ in {
|
||||||
noisetorch.enable = true;
|
noisetorch.enable = true;
|
||||||
tor-browser.enable = true;
|
tor-browser.enable = true;
|
||||||
gdx-liftoff.enable = true;
|
gdx-liftoff.enable = true;
|
||||||
|
# polycule package is currently broken
|
||||||
|
polycule.enable = false;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,18 @@ in {
|
||||||
claudeDev = lib.mkIf ai-tooling-enabled {
|
claudeDev = lib.mkIf ai-tooling-enabled {
|
||||||
enable = true;
|
enable = true;
|
||||||
mcp = {
|
mcp = {
|
||||||
nixos.enable = true;
|
nixos = {
|
||||||
|
enable = true;
|
||||||
|
autoApprove = {
|
||||||
|
nixos_search = true;
|
||||||
|
nixos_info = true;
|
||||||
|
home_manager_search = true;
|
||||||
|
home_manager_info = true;
|
||||||
|
darwin_search = true;
|
||||||
|
darwin_info = true;
|
||||||
|
nixos_flakes_search = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
eslint = {
|
eslint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoApprove = {
|
autoApprove = {
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,8 @@
|
||||||
# Override h3 C library to version 4.3.0
|
# Override h3 C library to version 4.3.0
|
||||||
h3 = pkgs.callPackage ./h3-c-lib.nix {};
|
h3 = pkgs.callPackage ./h3-c-lib.nix {};
|
||||||
})
|
})
|
||||||
|
(final: prev: {
|
||||||
|
polycule = pkgs.callPackage ./polycule {};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
149
modules/common-modules/pkgs/polycule/default.nix
Normal file
149
modules/common-modules/pkgs/polycule/default.nix
Normal file
|
|
@ -0,0 +1,149 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
flutter329,
|
||||||
|
fetchFromGitLab,
|
||||||
|
pkg-config,
|
||||||
|
wrapGAppsHook,
|
||||||
|
gtk3,
|
||||||
|
glib,
|
||||||
|
glib-networking,
|
||||||
|
webkitgtk_4_1,
|
||||||
|
libsecret,
|
||||||
|
libnotify,
|
||||||
|
dbus,
|
||||||
|
sqlcipher,
|
||||||
|
openssl,
|
||||||
|
mpv,
|
||||||
|
alsa-lib,
|
||||||
|
libass,
|
||||||
|
ffmpeg-full,
|
||||||
|
libplacebo,
|
||||||
|
libunwind,
|
||||||
|
shaderc,
|
||||||
|
vulkan-headers,
|
||||||
|
vulkan-loader,
|
||||||
|
lcms2,
|
||||||
|
libdovi,
|
||||||
|
libdvdnav,
|
||||||
|
libdvdread,
|
||||||
|
mujs,
|
||||||
|
libbluray,
|
||||||
|
lua,
|
||||||
|
rubberband,
|
||||||
|
libuchardet,
|
||||||
|
zimg,
|
||||||
|
openal,
|
||||||
|
pipewire,
|
||||||
|
libpulseaudio,
|
||||||
|
libcaca,
|
||||||
|
libdrm,
|
||||||
|
libdisplay-info,
|
||||||
|
libgbm,
|
||||||
|
xorg,
|
||||||
|
nv-codec-headers-11,
|
||||||
|
libva,
|
||||||
|
libvdpau,
|
||||||
|
}:
|
||||||
|
flutter329.buildFlutterApplication rec {
|
||||||
|
pname = "polycule";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "polycule_client";
|
||||||
|
repo = "polycule";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-kY1vJiDXh0rSCJNOAkO8JGiMR8kXwDHuc3T+S4MkOWY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pubspecLock = lib.importJSON ./polycule-pubspec.lock.json;
|
||||||
|
|
||||||
|
gitHashes = {
|
||||||
|
matrix = "sha256-e1HGC2yZyqqYB5YAGKmUkkdDbuSzhiUenJMKJgQYIi8=";
|
||||||
|
media_kit = "sha256-1sVX+aHFLFJBtrNZrR6tWkb80vFELW2N9EejyQKlBPg=";
|
||||||
|
media_kit_libs_android_video = "sha256-N6QoktM8u9NYF8MAXLsxM9RlV8nICM4NbnmABHTRkZg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gtk3
|
||||||
|
glib
|
||||||
|
glib-networking
|
||||||
|
webkitgtk_4_1
|
||||||
|
libsecret
|
||||||
|
libnotify
|
||||||
|
dbus
|
||||||
|
sqlcipher
|
||||||
|
openssl
|
||||||
|
mpv
|
||||||
|
alsa-lib
|
||||||
|
libass
|
||||||
|
ffmpeg-full
|
||||||
|
libplacebo
|
||||||
|
libunwind
|
||||||
|
shaderc
|
||||||
|
vulkan-headers
|
||||||
|
vulkan-loader
|
||||||
|
lcms2
|
||||||
|
libdovi
|
||||||
|
libdvdnav
|
||||||
|
libdvdread
|
||||||
|
mujs
|
||||||
|
libbluray
|
||||||
|
lua
|
||||||
|
rubberband
|
||||||
|
libuchardet
|
||||||
|
zimg
|
||||||
|
openal
|
||||||
|
pipewire
|
||||||
|
libpulseaudio
|
||||||
|
libcaca
|
||||||
|
libdrm
|
||||||
|
libdisplay-info
|
||||||
|
libgbm
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
xorg.libXpresent
|
||||||
|
nv-codec-headers-11
|
||||||
|
libva
|
||||||
|
libvdpau
|
||||||
|
];
|
||||||
|
|
||||||
|
flutterBuildFlags = [
|
||||||
|
"--release"
|
||||||
|
"--target"
|
||||||
|
"lib/main.dart"
|
||||||
|
"--dart-define=POLYCULE_VERSION=v${version}"
|
||||||
|
"--dart-define=POLYCULE_IS_STABLE=true"
|
||||||
|
"--no-tree-shake-icons"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Install desktop files and icons from the source
|
||||||
|
install -Dm644 linux/business.braid.polycule.desktop $out/share/applications/polycule.desktop
|
||||||
|
install -Dm644 assets/logo/logo-circle.png $out/share/pixmaps/polycule.png
|
||||||
|
|
||||||
|
# Update desktop file to use correct executable name
|
||||||
|
substituteInPlace $out/share/applications/polycule.desktop \
|
||||||
|
--replace 'Exec=business.braid.polycule' 'Exec=polycule'
|
||||||
|
|
||||||
|
# Create a symlink with the expected name
|
||||||
|
ln -sf $out/bin/polycule $out/bin/business.braid.polycule
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A geeky and efficient [matrix] client for power users";
|
||||||
|
longDescription = ''
|
||||||
|
Polycule is a modern Matrix client built with Flutter, designed for power users
|
||||||
|
who want a fast, efficient, and feature-rich Matrix experience.
|
||||||
|
'';
|
||||||
|
homepage = "https://polycule.im/";
|
||||||
|
license = licenses.eupl12;
|
||||||
|
maintainers = [];
|
||||||
|
platforms = ["x86_64-linux" "aarch64-linux"];
|
||||||
|
sourceProvenance = with sourceTypes; [fromSource];
|
||||||
|
mainProgram = "polycule";
|
||||||
|
};
|
||||||
|
}
|
||||||
2459
modules/common-modules/pkgs/polycule/polycule-pubspec.lock.json
Normal file
2459
modules/common-modules/pkgs/polycule/polycule-pubspec.lock.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -38,5 +38,6 @@
|
||||||
./davinci-resolve.nix
|
./davinci-resolve.nix
|
||||||
./gdx-liftoff.nix
|
./gdx-liftoff.nix
|
||||||
./tor-browser.nix
|
./tor-browser.nix
|
||||||
|
./polycule.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
32
modules/home-manager-modules/programs/polycule.nix
Normal file
32
modules/home-manager-modules/programs/polycule.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.programs.polycule = {
|
||||||
|
enable = lib.mkEnableOption "enable polycule matrix client";
|
||||||
|
package = lib.mkPackageOption pkgs "polycule" {};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.programs.polycule.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
|
home.packages = [
|
||||||
|
config.programs.polycule.package
|
||||||
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf osConfig.host.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
# TODO: check that these are actually the correct folders
|
||||||
|
# directories = [
|
||||||
|
# "${config.xdg.configHome}/polycule"
|
||||||
|
# "${config.xdg.dataHome}/polycule"
|
||||||
|
# "${config.xdg.cacheHome}/polycule"
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
@ -72,6 +72,15 @@ in {
|
||||||
mcp = {
|
mcp = {
|
||||||
nixos = {
|
nixos = {
|
||||||
enable = lib.mkEnableOption "enable NixOS MCP server for Claude Dev";
|
enable = lib.mkEnableOption "enable NixOS MCP server for Claude Dev";
|
||||||
|
autoApprove = {
|
||||||
|
nixos_search = lib.mkEnableOption "should the nixos_search tool be auto approved for the nixos MCP server";
|
||||||
|
nixos_info = lib.mkEnableOption "should the nixos_info tool be auto approved for the nixos MCP server";
|
||||||
|
home_manager_search = lib.mkEnableOption "should the home_manager_search tool be auto approved for the nixos MCP server";
|
||||||
|
home_manager_info = lib.mkEnableOption "should the home_manager_info tool be auto approved for the nixos MCP server";
|
||||||
|
darwin_search = lib.mkEnableOption "should the darwin_search tool be auto approved for the nixos MCP server";
|
||||||
|
darwin_info = lib.mkEnableOption "should the darwin_info tool be auto approved for the nixos MCP server";
|
||||||
|
nixos_flakes_search = lib.mkEnableOption "should the nixos_flakes_search tool be auto approved for the nixos MCP server";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
eslint = {
|
eslint = {
|
||||||
enable = lib.mkEnableOption "enable ESLint MCP server for Claude Dev";
|
enable = lib.mkEnableOption "enable ESLint MCP server for Claude Dev";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue