This may be an unusual thing but I realised that use nix run a lot instead of putting the package in my nixos configuration. It’s often on packages I run at most once every 3 days

Am I the only one that does that?

  • moonpiedumplings@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    11 days ago

    I use nix-shell -p for infrequently used commands, or nix shell flake#packagename for flakes. I prefer the shell environment because I rarely need to run something only one in a session. Usually I forget the cli arguments, and then have to run --help and so on.

    For anything I need more frequently, I usually install either via home manager if I care about a specific/newer version, or just as a system package (I don’t use NixOS).

  • Corngood@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 days ago

    I do this and then regret it when I’m on my laptop using slow WiFi and have to dowload 1g of stuff to run freecad or Krita or something

  • brian@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 days ago

    I use comma very frequently. I have fast enough Internet that download time doesn’t really matter for most things, so it takes a lot for me to actually promote it to a system package

  • Scipitie@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 days ago

    I don’t have any packages like that to be fair but: no.

    I’ve ran nix run perhaps … once a year for the last years. I either create a shell.nix or add it into my config.

    Just curious what would be a command you’re using like this? The only one that came close to that for me was nvidia-smi and that I ran once with run and then created a shell.nix with some other debug stuff :D

    • RustyNova@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 days ago

      I actually use it to run krita, prism launcher when the Minecraft mood peek in, inkscape, MusicBrainz picard, Alistral, peazips, libre Office.

      Aka, anything that I don’t use enough to warrant opening my config and adding them in (and forgetting when I do open my config.

      Although krita is currently being installed through flatpack because nixpkgs ship broken alpha versions…

      • Scipitie@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 days ago

        Ah for these tools I went full all in on home manager! But nothing wrong with a nix run if it works!

        I never tried flatpacks on nixos, curious idea! Might solve the one or other flake hack I have :D thanks!

        • RustyNova@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          10 days ago

          Personally I find home manager really hard to use. The documentation is really bad, and I never find what want… Nor what’s possible. I don’t use it because I don’t want to, just I don’t know how to

          It was that or spaghetti an override and compile krita from scratch. So I chose the lazy way