From 9cd7d15d772ae513fc63193c27b57d8c7440d7ad Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sun, 23 Aug 2026 13:49:21 +0100 Subject: [PATCH] chore(nix->guix): delete Nix estate-wide (#138) --- .github/workflows/governance.yml | 2 +- .github/workflows/hypatia-scan.yml | 2 +- .github/workflows/secret-scanner.yml | 2 +- packaging/nix/default.nix | 95 ---------------------------- packaging/nix/flake.lock | 61 ------------------ packaging/nix/flake.nix | 64 ------------------- 6 files changed, 3 insertions(+), 223 deletions(-) delete mode 100644 packaging/nix/default.nix delete mode 100644 packaging/nix/flake.lock delete mode 100644 packaging/nix/flake.nix diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index e344b40..d6aa766 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -31,4 +31,4 @@ permissions: jobs: governance: - uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 \ No newline at end of file + uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index 92f38eb..fc2b618 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -26,4 +26,4 @@ permissions: jobs: hypatia: uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index 2c9877c..d74f680 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -18,4 +18,4 @@ jobs: permissions: contents: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/packaging/nix/default.nix b/packaging/nix/default.nix deleted file mode 100644 index 34b1d22..0000000 --- a/packaging/nix/default.nix +++ /dev/null @@ -1,95 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -{ lib -, stdenv -, fetchFromGitHub -, gnat -, gprbuild -, rustPlatform -, rclone -, fuse3 -, pkg-config -, dbus -, systemd -}: - -let - version = "1.0.0"; - - src = fetchFromGitHub { - owner = "hyperpolymath"; - repo = "cloud-sync-tuner"; - rev = "v${version}"; - sha256 = lib.fakeSha256; - }; - - overlay-daemon = rustPlatform.buildRustPackage { - pname = "cloud-sync-overlay"; - inherit version src; - sourceRoot = "source/overlay-daemon"; - cargoSha256 = lib.fakeSha256; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ dbus ]; - }; - - tray-daemon = rustPlatform.buildRustPackage { - pname = "cloud-sync-tray"; - inherit version src; - sourceRoot = "source/tray-daemon"; - cargoSha256 = lib.fakeSha256; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ dbus ]; - }; - -in stdenv.mkDerivation { - pname = "cloud-sync-tuner"; - inherit version src; - - nativeBuildInputs = [ - gnat - gprbuild - pkg-config - ]; - - buildInputs = [ - fuse3 - ]; - - buildPhase = '' - runHook preBuild - gprbuild -P cloud_sync_tuner.gpr -XBUILD_MODE=release - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - - install -Dm755 bin/cloud_sync_tuner $out/bin/cloud-sync-tuner - install -Dm755 ${overlay-daemon}/bin/cloud-sync-overlay $out/bin/cloud-sync-overlay - install -Dm755 ${tray-daemon}/bin/cloud-sync-tray $out/bin/cloud-sync-tray - install -Dm755 scripts/cloud-sync-status $out/bin/cloud-sync-status - - install -Dm644 man/cloud-sync-tuner.1 $out/share/man/man1/cloud-sync-tuner.1 - - install -Dm644 systemd/rclone-dropbox.service $out/lib/systemd/user/rclone-dropbox.service - install -Dm644 systemd/cloud-sync-watchdog.service $out/lib/systemd/user/cloud-sync-watchdog.service - install -Dm644 systemd/cloud-sync-watchdog.timer $out/lib/systemd/user/cloud-sync-watchdog.timer - install -Dm644 overlay-daemon/cloud-sync-overlay.service $out/lib/systemd/user/cloud-sync-overlay.service - install -Dm644 tray-daemon/cloud-sync-tray.service $out/lib/systemd/user/cloud-sync-tray.service - - install -Dm644 config/config.toml.example $out/share/cloud-sync-tuner/config.toml.example - install -Dm644 config/schema.ncl $out/share/cloud-sync-tuner/schema.ncl - - install -Dm644 nautilus-extension/cloud_sync_overlay.py $out/share/nautilus-python/extensions/cloud_sync_overlay.py - - runHook postInstall - ''; - - meta = with lib; { - description = "Ada TUI for managing rclone cloud mounts with rate limiting"; - homepage = "https://github.com/hyperpolymath/cloud-sync-tuner"; - license = licenses.agpl3Plus; - maintainers = with maintainers; [ ]; - platforms = platforms.linux; - mainProgram = "cloud-sync-tuner"; - }; -} diff --git a/packaging/nix/flake.lock b/packaging/nix/flake.lock deleted file mode 100644 index 4cee253..0000000 --- a/packaging/nix/flake.lock +++ /dev/null @@ -1,61 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1776169885, - "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/packaging/nix/flake.nix b/packaging/nix/flake.nix deleted file mode 100644 index 97eb8da..0000000 --- a/packaging/nix/flake.nix +++ /dev/null @@ -1,64 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -{ - description = "Ada TUI for managing rclone cloud mounts with rate limiting"; - - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - }; - - outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem (system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in { - packages = { - default = pkgs.callPackage ./default.nix { }; - cloud-sync-tuner = self.packages.${system}.default; - }; - - devShells.default = pkgs.mkShell { - buildInputs = with pkgs; [ - gnat - gprbuild - rustc - cargo - rclone - fuse3 - pkg-config - dbus - ]; - }; - } - ) // { - overlays.default = final: prev: { - cloud-sync-tuner = final.callPackage ./default.nix { }; - }; - - nixosModules.default = { config, lib, pkgs, ... }: { - options.services.cloud-sync-tuner = { - enable = lib.mkEnableOption "Cloud Sync Tuner services"; - }; - - config = lib.mkIf config.services.cloud-sync-tuner.enable { - environment.systemPackages = [ pkgs.cloud-sync-tuner ]; - systemd.user.services.cloud-sync-overlay = { - description = "Cloud Sync Overlay Daemon"; - wantedBy = [ "graphical-session.target" ]; - serviceConfig = { - ExecStart = "${pkgs.cloud-sync-tuner}/bin/cloud-sync-overlay"; - Restart = "on-failure"; - }; - }; - systemd.user.services.cloud-sync-tray = { - description = "Cloud Sync Tray Daemon"; - wantedBy = [ "graphical-session.target" ]; - serviceConfig = { - ExecStart = "${pkgs.cloud-sync-tuner}/bin/cloud-sync-tray"; - Restart = "on-failure"; - }; - }; - }; - }; - }; -}