cashmere

cashmere

Sourcehut

Description

sourcehut is a collection of tools useful for software development. You're at the project hub now — you can create software projects here to organize resources from all of these tools under one name.

Thoughts

Sourcehut gives me the feeling and ability to be much more independent from Github.

I can also lavarage my skills which I aquired over the last weeks together with my configuration.

Migration

git remote set-url origin git@git.sr.ht:~cashmersamurai/projektname
git push --all
git push --tags

Pushing your repository to git.sr.ht

The following commands will add a "remote" to your local git repository, which will allow you to push changes to a remote repository on git.sr.ht.

git remote add origin git@git.sr.ht:~YOU_USERNAME/example

Make sure to replace username with your own. Then this command will push your master branch to git.sr.ht:

git push -u origin master

Since this repository didn't previously exist, you'll be prompted with a link to create the repository on git.sr.ht — click that link and fill out the form on that page. You'll be redirected to your repository on git.sr.ht: you're done!

This command worked very often

git push git@git.sr.ht:~cashmeresamurai/nix-config

Utilizing Builds for

Example configuration

image: nixos/unstable
packages:
  - nixos.nixUnstable
environment:
  NIX_CONFIG: "experimental-features = nix-command flakes"
tasks:
  - build: |
      cd source
      nix develop .#ci -c <your-build-command>

Explanation

You define all the dependencies (image, packages, environment variables) which are needed for the build. After that may go ahead and start defining the tasks.