[-] degen@midwest.social 3 points 1 hour ago

Wait, for real? I really thought kagi had its own thing going on, and that was why people would pay for it. Not like a fully bespoke index, but I assumed it was more than that. I guess the "quality control" is what I had heard about.

[-] degen@midwest.social 2 points 22 hours ago

Yeah, I'm more worried about the output of AI getting involved than anything regarding the input, at least as far as a public forums go.

[-] degen@midwest.social 11 points 23 hours ago

There's a larger cone man out of frame trying to coax the hatchlings across the street

[-] degen@midwest.social 7 points 23 hours ago

The good news is dogs are uniquely in tune to other cues like body language. He'll still know!

[-] degen@midwest.social 2 points 23 hours ago

Generally I agree. It feels kind of shoehorned in when desktop is your goal, like more of an afterthought or side effect of the overall focus.

The main thing I hang on to is the code-specified configuration. I never got into managing dotfiles with arch, but that could be a better solution for many people. Especially along with btrfs, numerous containerization options, and whatnot.

[-] degen@midwest.social 5 points 1 day ago

I went from Arch to NixOS, so I can offer a bit there.

You definitely won't want to rely on it until you know a good amount and get comfortable. Things can be made to work, but knowing how to get it done is the main thing most of the time.

Regarding package availability, it's just a matter of a few oddly esoteric incantations and version controlled code, usually. Binaries are another story but still possible, and python is a special case of that.

It has been an annoyance for me, but I've also learned a lot by getting things to work. If you use any niche python stuff you're bound to run into something. A bunch is already packaged and works fine, though. Either way there's a bit of extra nuance, which is more to learn.

You don't have to start with NixOS and can feel it out using nix on any distro. It can be hard to tell if someone will vibe with it. All that said, it could be more than you're looking to get into, but you can ease into it if you're interested.

[-] degen@midwest.social 5 points 1 day ago

He can't ult again for a while, so it's safe for now.

[-] degen@midwest.social 10 points 1 day ago

Nichijou was the first thing I thought of. It's just so carefree and cute, but unexpectedly wild. I love absurdist humor, too.

On top of that it's the first time I really "got" anime, so it's sentimental. I clicked with it hardcore, and was embarrassed about it for a while.

Just imagine anime night with the bros, watching sword art, and you're the only one who just needs to fit in another episode of Nichijou lol

[-] degen@midwest.social 5 points 1 day ago

Oh man, I remember a friend having a heavy duty OtterBox. We were hanging out in the campus stadium and lobbing it as far as we could... That same night someone did a trustfall from the goal post. We had fun.

[-] degen@midwest.social 4 points 1 day ago

I don't know how I went so long without breaking a screen. Galaxy S3 to iPhone 5s across 4 or 5 years, scuffed edges but never the screen.

It was the galaxy S7 that finally went. I swear I dropped it a foot or less while sitting down in my car. From coat pocket into the console gap. Not out even out the door, and that had happened before without breaking. I was so mad that that was what did it.

I didn't even use a case religiously until the S7! I blame the obsession with all glass phones.

[-] degen@midwest.social 3 points 2 days ago

4?? Also, the screenshot reminds me of hedgehog launch. Pulled it right out of the recesses of my memory.

[-] degen@midwest.social 17 points 2 days ago

You nearly killed me with a damn meme. I can't breathe lmao, jesits take the wheel

19
submitted 3 months ago* (last edited 3 months ago) by degen@midwest.social to c/nix@programming.dev

I've tried just about every type of setup I can find for a nix shell with python.

I don't want to purely use nixpkgs for a lack of some packages and broken packages. I'm trying to use pyside6, but not everything in pyside6 is provided by the package, e.g. tools like uic.

Attempting to use a venv as normal leads to a disconnect between the env and system with libstdc++.so.6 unable to be found. There are a various different flakes I've tried to use like the-nix-way/dev-templates#python and others from forum discussions which add stdenv.cc.cc.lib to no avail.

I think the farthest I've gotten is with poetry/poetry2nix, where auto-patchelf warns about missing libQt6 libraries. Running with nix run fails to 'find all the required dependencies' even when adding qt6.qtbase or qt6.full to the packages. This is that flake, taken from the poetry2nix github with an added devshell:

{
  description = "Python application packaged using poetry2nix";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    poetry2nix.url = "github:nix-community/poetry2nix";
  };

  outputs = { self, nixpkgs, poetry2nix }:
    let
      system = "x86_64-linux";  # Adjust for your system
      pkgs = nixpkgs.legacyPackages.${system};
      inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication;
    in {
      packages.${system}.default = mkPoetryApplication {
        projectDir = ./.;
      };

      apps.${system}.default = {
        type = "app";
        program = "${self.packages.${system}.default}/bin/app";
      };

      devShells.${system}.default = pkgs.mkShell {
        packages = [ pkgs.poetry ];
        buildInputs = [ pkgs.qt6.qtbase pkgs.qt6.full pkgs.qt6.wrapQtAppsHook ];
      };
    };
}

It seems kind of hopeless to get it working on NixOS. Does anyone have a working setup I could use for inspiration, or any other tips? I love the nix paradigm, but I'm honestly considering distrohopping with all of the trouble.

9

I'm on NixOS and slowly working through neovim config.

I have treesitter installed with all grammars and it's set up in lua. When I run :TSymbols, it pops open a window showing -----treesitter-----, but no symbols are shown from the (python) code I have open.

All of the setup is put in place by the config flake I'm using, but I don't think there's any additional stuff to add for symbols to work. The treesitter section in the resulting init.lua from nix looks like this:

require('nvim-treesitter.configs').setup({
      ["context_commentstring"] = { ["enable"] = false },
      ["highlight"] = { ["enable"] = true },
      ["incremental_selection"] = {
        ["enable"] = false,
        ["keymaps"] = {
          ["init_selection"] = "gnn",
          ["node_decremental"] = "grm",
          ["node_incremental"] = "grn",
          ["scope_incremental"] = "grc"
        }
      },
      ["indent"] = { ["enable"] = false },
      ["refactor"] = {
        ["highlight_current_scope"] = { ["enable"] = false },
        ["highlight_definitions"] = {
          ["clear_on_cursor_move"] = true,
          ["enable"] = false
        },
        ["navigation"] = {
          ["enable"] = false,
          ["keymaps"] = {
            ["goto_definition"] = "gnd",
            ["goto_next_usage"] = "<a-*>",
            ["goto_previous_usage"] = "<a-#>",
            ["list_definitions"] = "gnD",
            ["list_definitions_toc"] = "gO"
          }
        },
        ["smart_rename"] = {
          ["enable"] = false,
          ["keymaps"] = { ["smart_rename"] = "grr" }
        }
      }
    })
19
submitted 3 months ago* (last edited 3 months ago) by degen@midwest.social to c/nix@programming.dev

https://github.com/NixNeovim/NixNeovim

I'm getting back into my setup after dualbooting and not touching it for a while. Flakes, home-manager, all that jazz. I was in the middle of messing around with my neovim config, bouncing between nixvim and nixneovim. Can't really remember why I was landing on nixneovim, but I think it had to do with having more 1-to-1 vim options through nix and more available plugins.

Part of this post is just to see what everyone's using, but I also can't copy to the system clipboard for the life of me! No ctrl-shift-v or anything. Oddly enough, ctrl-click-drag will copy a cut-off box of text. In nixneovim there's an option for clipboard, but that's just a string like 'unnamed' or 'unnamedplus', straight from the vim options. Nixvim has the option abstracted in a way that has the register and a provider for the functionality like wl-copy. I don't remember it not working with nixneovim before. That was months ago, though. Hoping someone would have an insight as I've been too deep in the weeds.

Edit: sooooo I just needed xclip in home.packages. I had tried installing it in a nix shell, but maybe that wasn't the right way to test. Doesn't seem to work with wl-clipboard, but I think neovim looks for xclip by default and nixneovim doesn't seem to have a way to give a different provider.

But still, how's everyone doing their neovim shenanigans?

view more: next ›

degen

joined 1 year ago