3
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]

I want to add custom commands to my PATH but am unable to get it working. So far I've installed home-manager and added the code below to my nix configuration.

imports = [
  ./hardware-configuration.nix
  
];

Then later on to add the item to PATH

home-manager.users.curtismchale = { pkgs, ... }: {
  home.stateVersion = "23.05";
  home.sessionPath = [
    "$HOME/Workspace/proudcity/proudcity-kubernetes/bin"
  ];
};

I have also tried $HOME/Workspace/proudcity/producity-kubernetes/bin/pc-kube but that doesn't change the issue.

I can see the commands installed at ~/Workspace/proudcity/proudcity-kubernetes/bin/pc-kube but when I type the expected command pc kube $command it says there is nothing installed in path and offers to install some programs that match pc for me.

26
submitted 1 year ago by [email protected] to c/[email protected]

Lovely first ride on the Zipp 303 s wheels I got this week. They roll fast and don’t feel harsh.

[-] [email protected] 2 points 1 year ago* (last edited 1 year ago)

So the line of rev = "v${version}"; has an extra v in it which corresponded to the repository I copied to get started but this isn't needed for my repository.

my correct line reads rev = "${version}"

2
submitted 1 year ago by [email protected] to c/[email protected]

I'm trying to build my first nix package out of the Kana project. My `default.nix' file is below.

When I try to build the application nix tries to fetch https://github.com/ChrisWiegman/kana-cli/archive/v0.10.1.tar.gz which gives a 404. How do I get nix to download the release .tar.gz file to build the application?

{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, go
}:

buildGoModule rec {
  pname = "kana-cli";
  version = "0.10.1";

  src = fetchFromGitHub {
    owner = "ChrisWiegman";
    repo = "kana-cli";
    rev = "v${version}";
    hash = "";
  };

  vendorSha256 = null;

  # This is required for wrapProgram.
  allowGoReference = true;

  nativeBuildInputs = [ makeWrapper ];

  postFixup = ''
    wrapProgram $out/bin/kana-cli --prefix PATH : ${lib.makeBinPath [ go ]}
  '';

  meta = with lib; {
    homepage = "https://github.com/ChrisWiegman/kana-cli";
    description = "WordPress Stuff";
    license = licenses.gpl3;
    maintainers = with maintainers; [ curtismchale ];
  };
}
[-] [email protected] 1 points 1 year ago

Hollow Knight...need to put in the time to finish it at some point still.

[-] [email protected] 1 points 1 year ago

CTRL - P to get to all the available commands in Obsidian.

[-] [email protected] 1 points 1 year ago

Given the open format of Obsidian I'm not really that concerned about the fact that it's not open source. It's just markdown files I can do whatever I want with in the future.

curtismchale

joined 1 year ago