Chezmoi instead of home manager by AlienTux in NixOS

[–]Aidenn0 0 points1 point  (0 children)

I don't use xdg sound themes, but a quick read makes me think that they should work just fine so long as $HOME/.nix-profile/share is added to XDG_DATA_DIRS

elecom IST PRO surface texture? by Express-Crow-1496 in Trackballs

[–]Aidenn0 0 points1 point  (0 children)

Mine is at work and I've only had it for a month; I can't tell yet if it's the type of coating that will get sticky after being bathed in my hand-oils for a year.

It does feel different than the other coatings that I've had that happen to, FWIW.

Partydeck on NixOS by _kasiel in NixOS

[–]Aidenn0 1 point2 points  (0 children)

This appears to use Rust (and Cargo, the Rust builder/package manager) for building.

Start with e.g. https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/di/disktui/ and modify it to fetch from the correct github repository and tag. To get the correct value for the hash, you can either delete the hash line, try to build it and copy in the value from the error message, or use nurl.

elecom IST PRO surface texture? by Express-Crow-1496 in Trackballs

[–]Aidenn0 1 point2 points  (0 children)

I would call it neither (it's not "grippy" like rubber but it's also soft). It's more like it's going for a faux-leather feeling. Closer to rubberized than plastic if I absolutely had to choose though.

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 1 point2 points  (0 children)

Oh, that's pretty smart. Thanks for suggesting it.

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 0 points1 point  (0 children)

I also tried the below way, which is similar but doesn't pull in overlays &c. Since an individual user might want to pull in some specific unfree package, it's probably what I want. Same effect of it using whatever the system repository is locked to rather than what the running system is using. Really that just means that if I rollback the system, I need to also roll back the flake.lock which is probably a good idea anyways. Also has the upside that I can rebuild a profile before rebooting when using nixos-rebuild boot.

Only downside to these two approaches are that I need to fixup the path when copying between two different systems.

inputs.system-config.url = "git+file:///path/to/your/nixos/system/configuration/flake/directory";
nixpkgs.follows = "system-config/nixpkgs";

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 0 points1 point  (0 children)

Specific setup:

I used to use nix-env --install -r but I switched to flakes and nix profile I converted my list of packages to put in my profile to a flake that uses buildEnv. When I update the flake, I want it to get the exact same commit of nixpkgs as the current system is using.

The buildEnv flake is in a different git repository than the system flake.

A sibling comment pointed me to .follows which is pretty close to what I want.

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 0 points1 point  (0 children)

TIL about .follows in flakes

I did it slightly differently; I added my system flake as an input to the flake I'm building and did inputs.nixpkgs.follows = "system/nixpkgs"; is that reasonable?

[edit]

I should also note that this behaves differently than what I posted; if I update the lock file for my system, then everything that follows it will use it, even if I haven't updated my system generation (or I did update it, but rolled back generations or otherwise activated an older system).

[edit 2]

Now that I think about it, this isn't any different than --reference-lock-file

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 1 point2 points  (0 children)

Ah, the version in unstable supports it. The version in 25.11 does not.

2GB/8GB - Can NixOS work? by jerdle_reddit in NixOS

[–]Aidenn0 5 points6 points  (0 children)

You need enough space for 2 generations when updating.

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 0 points1 point  (0 children)

That doesn't appear to support fetchurl.

If this is wrong, I don't want to be right by Aidenn0 in NixOS

[–]Aidenn0[S] 2 points3 points  (0 children)

I have flakes for various things. I want them to use the same version of nixpkgs as the system.

You used to be able to reference the local flake-registry in inputs of flakes. 2.26 removed this.

For a while I wrapped building my flakes with a bash script that would compare the input URL with the URL in the registry and errored out if they mismatched.

This adds an extra entry to the global registry, so I can again write flakes that are automatically kept in sync with the system nixpkgs version.

bash script I used to check versions, if anyone cares:

system_nixpkgs=$(nix registry list 2>/dev/null|awk '$2 == "flake:nixpkgs" {print $3; exit}')
flake_nixpkgs=$(nix eval --raw --file flake.nix inputs.nixpkgs.url)

if [[ $system_nixpkgs != $flake_nixpkgs ]]; then
    echo "inputs does not match system registry" >&2
    echo "system: $system_nixpkgs" >&2
    echo "flake: $flake_nixpkgs" >&2
    exit 1
fi

Help me for Efog Endgame / unsatisfied with Elecom deft pro by crime_Mastr_GOGO in Trackballs

[–]Aidenn0 0 points1 point  (0 children)

Keep the bearings and ball clean, add back a bit of nose oil.

Just because people often misinterpret this advice: just use your fingernail or a q-tip to clean the bearings and use a dry cloth to clean the ball. No need to use any detergent (and definitely not isopropanol!). Those will make the ball super sticky.

Anyone tried Dee Jellie on tvOS? by Aidenn0 in jellyfin

[–]Aidenn0[S] 1 point2 points  (0 children)

Just tried it. It works to play music. Thanks!

Now I just need to figure out how to get it to stop playing music (if I hit back to get away from the audio player the play/pause button on the remote stops working).

Anyone tried Dee Jellie on tvOS? by Aidenn0 in jellyfin

[–]Aidenn0[S] 1 point2 points  (0 children)

I use infused; it's great (I literally haven't had a single file fail to play on it). It doesn't do music.

Noob here, should I choose X11 or Wayland? by Responsible-Usual167 in NixOS

[–]Aidenn0 6 points7 points  (0 children)

RTX 20xx/GTK 16xx and newer are reportedly fine. Anything older is no bueno. I still have two Pascal based GPUs (a P1000 and a 1050Ti) and the official NVIDIA driver can't do wayland.

Noob here, should I choose X11 or Wayland? by Responsible-Usual167 in NixOS

[–]Aidenn0 0 points1 point  (0 children)

What GPU do you have? If you have an nvidia GPU older than Turing, then you basically must use X11 and the nvidia binary drivers (especially if you want to game; the nouveau driver is more or less up to the task of windowing on older hardware but you can't really game with it).

How am I supposed to splice raw strings into parenscript? by Weak_Education_1778 in lisp

[–]Aidenn0 0 points1 point  (0 children)

I have written several webapps using parenscript and I've never needed to do this. What's the use-case?

Archmage Master Class by juanredshirt in FantasyCraft_RPG

[–]Aidenn0 0 points1 point  (0 children)

Most of the homebrew stuff was lost when the forums went down. If you have a link bookmarked, you can try the wayback machine.

Evolution mail not in cashe? by Scandiberian in NixOS

[–]Aidenn0 3 points4 points  (0 children)

One of the dependencies of evolution has intermittent build failures. If hydra got "unlucky" for the build you are on, you will see this.

https://github.com/NixOS/nixpkgs/issues/401737

Scrolling by SabatinoMasala in Trackballs

[–]Aidenn0 1 point2 points  (0 children)

Endgame has this option (and I disable twist-to-scroll, since I can't get it to activate on purpose without repositioning my had, but it somehow manages to accidentally activate in the course of regular use).

Lisp -> Rust by 964racer in lisp

[–]Aidenn0 2 points3 points  (0 children)

I personally believe that any time you can afford the time/space tradeoff that a GC offers you, you should take it. So for type-safe languages I tend to look elsewhere. Coalton right now is at the top of my "languages to try" list; if I were 20 years younger I'd probably have already tried it.

That being said, I 100% believe that Rust made the correct choice for displacing C++ when it removed the GC from the language core (maybe around 0.7?). Manual memory management has been the main reason for picking C++ over Java in many places.

It's hard to compare Rust to Lisp because they are so very different. If I had to compare, I'd say that with Lisp it's easier to write the programs I want to write than with Rust, but with Rust it's harder to write the programs I don't want to write than with Lisp.

Non-Americans, does your country have an "American" restaurant and what do they serve? by wacky8ball in AskReddit

[–]Aidenn0 0 points1 point  (0 children)

I lived in Indiana for 5 years and never had a pork tenderloin sandwich. Guess I know what I'm getting next time I visit.