Skip Navigation
curtismchale curtismchale @lemmy.ca
Posts 4
Comments 12
nixos @lemmy.ml curtismchale @lemmy.ca

Adding custom commands to $PATH

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.

1

First ride on Zipp 303 s

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

0
NixOS package returning 404 from github
  • 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}"

  • nixos @lemmy.ml curtismchale @lemmy.ca

    NixOS package returning 404 from github

    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 ]; }; } ```

    3
    Do you have any games that you like but you never finished?
  • Hollow Knight...need to put in the time to finish it at some point still.

  • State Bicycle Co.
  • I commuted around town on one of their fixed gear bikes for 5 years without issue. I swapped in new brakepads, and lubed the chain every few weeks in the rainy winter outside Vancouver BC. It was way cheaper to purchase that bike than to do the maintenance required to commute and train on my regular road bike

    I had no issues with mine and sold it before a move to a hilly town for around 50% of the purchase price.

  • Self Hosted Research Storage

    I'm happy with Obsidian for taking my notes but I want to find something I can host myself to track web articles, pdfs, mp3 files that I reference as research. I suppose I'm looking for a replacement for DEVONthink or Zotero.

    I have a Synology to run stuff on so solutions that run there are a preference, though not required.

    5
    Thoughts on RHEL going closed source ?
  • Thanks for more information.

  • Thoughts on RHEL going closed source ?
  • I'm newish to Fedora and admit I don't understand the whole developer/governance structure of it vs RHEL, but the news did make me wonder about continuing to use Fedora.

    Reading some comments here, maybe it's a non-issue. Guess I'll have to dig more.

  • fully supported usb c docks
  • I have a Kensington SD5700T and a CalDigit TS4. Both of those are USB 4/Thunderbolt 4 docs and they work fine under Fedora. They support 2 monitors out via USB C or a combination of USB C/HDMI.

    I'd recommend the CalDigit dock though as the Kensington one has developer coil whine so if I'm not using the linux laptop I power it down and unplug the laptop to stop the annoying sound. The TS4 has no such issues.

  • Why everyone is switching to NixOS ?
  • I've been looking at it after numerous times I update Fedora only to have some tool break that I use daily. Then I spend a chunk of the day getting Virtualbox working again so I can do my job (write code for websites).

    I haven't made the jump, but it looks very interesting.

  • What are the keyboard shortcuts you use the most?
  • CTRL - P to get to all the available commands in Obsidian.

  • What are your thoughts about Obsidian not being Open Source?
  • 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.

  • What are your cycling plans for this summer?
  • One bigger ride (300km ish) from Prince George down past West Lake on gravel and around to Quesnel. Then back up to PG. At some point we'll detour back into the mountains on the East side of the highway but a bit more scouting needs to be done to see if the route goes as the roads are old and may not be maintained.

  • Which Tiling Window Managers do you like, and why?
  • I've tried AwesomeWM but couldn't get anything going with it really.

    I then moved on to Material Shell (yes that's a Gnome Extension) and it brought enough to really make me want to dig in more.

    Now I'm slowly working on a Sway configuration on my Fedora 38 machine. Can't work in it yet, but unlike my attempt at AwesomeWM...I'm actually making progress on getting things setup. My 4 monitors were configured fairly easily, but now I need to figure out why dmenu isn't working to launch applications. Could be on my end since I'm using a Moonlander keyboard with a custom DVORAK profile.

  • Your top 5 plugins?
    • Kanban
    • Book Search
    • Paste URL into Selection
    • Smart Random Note
    • Graph Analysis

    Ugh that was hard to get down to the top 5. Strang New Worlds is also a top plugin.