hallettj

joined 2 years ago
[–] hallettj 4 points 1 year ago

As a Nix fanboy I would write a Nix expression that downloads the AppImage, and also writes the desktop file with the appropriate path written into it via string interpolation. That can be done either through a NixOS configuration, or in any Linux distro using Home Manager.

[–] hallettj 1 points 1 year ago* (last edited 1 year ago)

I'm planning to find out myself. I think you're plan sounds good - especially since I have backups in case of a catastrophic data corruption error.

Edit: Oh I don't think nix flake update will upgrade you to the next release if that's what you're thinking. I think you need to edit the nixpkgs input in flake.nix:

inputs = {
  nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; # change to "23.11"
  # ...
}

There are a couple of special values I'm wondering about. Part of the generated part of my NixOS config says this:

  # This value determines the NixOS release from which the default
  # settings for stateful data, like file locations and database versions
  # on your system were taken. It‘s perfectly fine and recommended to leave
  # this value at the release version of the first install of this system.
  # Before changing this value read the documentation for this option
  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  system.stateVersion = "23.05"; # Did you read the comment?

So I guess that value can stay unchanged?

And Home Manager has something similar:

home.stateVersion = "23.05"; # Please read the comment before changing.

Unfortunately I misplaced the comment that goes with that one.

[–] hallettj 9 points 1 year ago (1 children)
[–] hallettj 2 points 1 year ago

I use that r function regularly to go to the git project root. But I call it gtop. I mostly use that and zoxide to get around.

[–] hallettj 3 points 1 year ago (1 children)

This comment really speaks to how I feel.

In addition to flattening the wealth curve on the high end, I think the first change I would want is to increase the federal minimum wage. For decades wages have been stagnant while cost-of-living has grown which has led to mass economic insecurity. I think a lot of current political tension is a direct result. That makes it difficult to cooperate to implement policies that would help people.

[–] hallettj 10 points 1 year ago (2 children)

Radium produces the most radiation by miles. The plutonium gives off some alpha radiation that won't hurt you if you don't eat it. (Eye protection would be a good idea I suppose.) I don't remember what U-235 emits but I don't think it's a huge amount.

[–] hallettj 2 points 1 year ago

Nice! I was looking for something like this a couple of days ago, and I landed on serokell/nix-npm-buildpackage. But I can see that the adisbladis one has a couple of advantages: it puts each dependency in its own store path so you get more cache hits, and it supports dependencies that want to write to node_modules.

There is also a buildNpmPackage in nixpkgs but it wants a dependencies hash up-front which is not what I'm looking for.

[–] hallettj 6 points 1 year ago

And also asking, how does it compare to a high-yield savings account?

[–] hallettj 12 points 1 year ago

Try sudo apt update before running the install command. The ISO might not be preloaded with a full package index, or it might be out of date.

If that doesn't work take a look at /etc/apt/sources.list to see if maybe the ISO uses some minimal repo that doesn't have the full set of packages.

[–] hallettj 3 points 1 year ago

This is what I use. Or if you don't need image/PDF embedding or mobile support then VimWiki is a similar solution that is FOSS.

[–] hallettj 6 points 1 year ago (3 children)

I think NixOS is awesome, but it certainly doesn't offer "access to (basically) all Linux-capable software, no matter from what repo." - at least not natively.

I don't quite agree with this. In NixOS you can write custom expressions that fetch software from any source, and stitch them into your configuration as first-class packages. So you do get access to all Linux-capable software natively, but not necessarily easily. (There is a learning curve to packaging stuff yourself.)

I use this process to bring nightly releases of neovim and nushell into my reproducible config. Ok, I do use flakes that other people published for building those projects, which is a bit like installing from a community PPA. But when I wanted to install Niri, a very new window manager I wrote the package and NixOS module expressions all by myself!

[–] hallettj 2 points 1 year ago (1 children)

That's a very nice one! I also enjoy programming ligatures.

I use Cartograph CF. I like to use the handwriting style for built-in keywords. Those are common enough that I identify them by shape. The loopy handwriting helps me to skim over the keywords to focus on the words that are specific to each piece of code.

sample Haskell code with a handwriting font variant for the words "let", "in", and "where"

I wish more monospace fonts would use the "m" style from Ubuntu Mono. The middle leg is shortened which makes the glyph look less crowded.

view more: ‹ prev next ›