⚘ use your pds as a git remote if you want to ⚘
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

nix

notplants 8ba02a4b 5cb2f96e

+115
+1
.gitignore
··· 2 2 scripts/pds-dev/pds-data/ 3 3 scripts/pds-dev/pds.env 4 4 tests/.testenv 5 + result
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1771923393, 6 + "narHash": "sha256-Fy0+UXELv9hOE8WjYhJt8fMDLYTU2Dqn3cX4BwoGBos=", 7 + "owner": "NixOS", 8 + "repo": "nixpkgs", 9 + "rev": "ea7f1f06811ce7fcc81d6c6fd4213150c23edcf2", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "NixOS", 14 + "ref": "nixpkgs-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+35
flake.nix
··· 1 + { 2 + description = "git-remote-pds - Git remote helper for ATProto PDS"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 6 + }; 7 + 8 + outputs = { self, nixpkgs }: 9 + let 10 + supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 11 + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; 12 + in 13 + { 14 + packages = forAllSystems (system: 15 + let 16 + pkgs = nixpkgs.legacyPackages.${system}; 17 + in 18 + { 19 + git-remote-pds = pkgs.rustPlatform.buildRustPackage { 20 + pname = "git-remote-pds"; 21 + version = "0.1.0"; 22 + src = ./.; 23 + cargoLock.lockFile = ./Cargo.lock; 24 + nativeCheckInputs = [ pkgs.git ]; 25 + }; 26 + 27 + default = self.packages.${system}.git-remote-pds; 28 + } 29 + ); 30 + 31 + overlays.default = final: prev: { 32 + git-remote-pds = self.packages.${final.system}.git-remote-pds; 33 + }; 34 + }; 35 + }
+52
nix.md
··· 1 + # Installing with Nix 2 + 3 + ## Try it without installing 4 + 5 + ```bash 6 + nix run git+https://codeberg.org/notplants/pds-git-remote 7 + ``` 8 + 9 + ## Imperative install (user profile) 10 + 11 + ```bash 12 + nix profile install git+https://codeberg.org/notplants/pds-git-remote 13 + ``` 14 + 15 + Persists across reboots but lives outside your system configuration. 16 + 17 + ## NixOS system configuration 18 + 19 + Add the input to your system flake: 20 + 21 + ```nix 22 + # flake.nix 23 + { 24 + inputs = { 25 + # ... 26 + pds-git-remote = { 27 + url = "git+https://codeberg.org/notplants/pds-git-remote"; 28 + inputs.nixpkgs.follows = "nixpkgs"; 29 + }; 30 + }; 31 + } 32 + ``` 33 + 34 + Then add the package to your system: 35 + 36 + ```nix 37 + environment.systemPackages = [ 38 + inputs.pds-git-remote.packages.${pkgs.system}.default 39 + ]; 40 + ``` 41 + 42 + Rebuild with `sudo nixos-rebuild switch`. 43 + 44 + ## Home Manager 45 + 46 + Same flake input as above, then: 47 + 48 + ```nix 49 + home.packages = [ 50 + inputs.pds-git-remote.packages.${pkgs.system}.default 51 + ]; 52 + ```