u/Past-Combination6262

▲ 15 r/Nix+1 crossposts

AstroImageJ packaged for NixOS!

Hi y'all. I am an aspiring astronomer who does a lot of work with FITS files and AstroImageJ, but sadly, I couldn't find it anywhere in nixpkgs, nor could I find a flake on the net. So, I decided to make my own! You can find it here: https://github.com/pokemans123/astroimagej-flake .

This was my first time packaging something for nix, so if there's something I'm doing wrong please let me know! Also, I'd love to be able to make a PR on nixpkgs and get it merged there, so let me know what changes I'd have to make to the repo. I've read the How to Contribute section on the repo, but its still really unclear to me. Any advice or help welcome!

reddit.com
u/Past-Combination6262 — 9 days ago
▲ 8 r/Nix+1 crossposts

Packaging python libraries in nix for development(without venvs)

I've been trying to package a library called lightkurve as I need it for my astronomy work but I don't want to deal with python venvs(part of the reason I switched to nixos). However, it has failed every time. Primarily, I've been trying via pip2nix; however it keeps giving me errors like this:

ERROR: Command errored out with exit status 1: command: /nix/store/zq6k7mxqh5xmyhy8y37cyn1p0h38b8k3-python3-3.9.2-env/bin/python /nix/store/124shncl4zs2k5yihfjn8cc6hy6nj5w3-python3.9-pip-20.1.1/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpeowuhviy cwd: /tmp/pip-install-9jj1cykt/pandas Complete output (17 lines): + meson setup /tmp/pip-install-9jj1cykt/pandas /tmp/pip-install-9jj1cykt/pandas/.mesonpy-upe0f6nv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-9jj1cykt/pandas/.mesonpy-upe0f6nv/meson-python-native-file.ini The Meson build system Version: 1.11.1 Source dir: /tmp/pip-install-9jj1cykt/pandas Build dir: /tmp/pip-install-9jj1cykt/pandas/.mesonpy-upe0f6nv Build type: native build Project name: pandas Project version: 2.3.3 C compiler for the host machine: cc (gcc 15.2.0 "gcc (GCC) 15.2.0") C linker for the host machine: cc ld.bfd 2.46 C++ compiler for the host machine: c++ (gcc 15.2.0 "g++ (GCC) 15.2.0") C++ linker for the host machine: c++ ld.bfd 2.46

../meson.build:2:0: ERROR: Compiler cython cannot compile programs.

A full log can be found at /tmp/pip-install-9jj1cykt/pandas/.mesonpy-upe0f6nv/meson-logs/meson-log.txt NOTICE: You are using Python 3.9 which is EOL. Starting with v1.12.0, Meson will require Python 3.10 or newer ---------------------------------------- ERROR: Command errored out with exit status 1: /nix/store/zq6k7mxqh5xmyhy8y37cyn1p0h38b8k3-python3-3.9.2-env/bin/python /nix/store/124shncl4zs2k5yihfjn8cc6hy6nj5w3-python3.9-pip-20.1.1/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpeowuhviy Check the logs for full command output.

I've tried looking at the documentation for uv2nix, but it is massive and overwhelming. So, I've instead tried managing its dependencies manually but some of the dependencies aren't in nixpkgs, so I will have to package those seperately. Is there a better way?

Github repo of the current attempt here(https://github.com/pokemans123/lightkurve-nix)

Any help would be much apprecitated!

u/Past-Combination6262 — 15 days ago
▲ 77 r/NixOS

Recently, a bunch of AUR packages(400+) were compromised and installed malware; how common are these incidents with nixpkgs?

Og post for details:

https://www.reddit.com/r/linux/s/z6sWc5yG0g

How often do incidents like these occur on nixpkgs? I’m an arch user who is thinking of switching to nixos soon and Id like to know how common things like this are.

And another question:

if a virus installed or set itself up as some sort of persistent systemd service, would rolling back to a previous version remove the virus?

reddit.com
u/Past-Combination6262 — 24 days ago
▲ 14 r/Nix+1 crossposts

How do I modularize my nixos dotfile structure for multiple different hosts?

I am very new to nixos and declarative systems; I first started experimenting on a vm for a while before finding an old laptop I want to deploy it to. Few key details:

the vm supports uefi and systemd boot and will be running the latest kernel

the laptop only supports bios and will need grub and the LTS kernel

currently i have a hosts directory and sub directories that each contain hardware files as well as files that simply set the bootloader and kernel for each host

(github here in case anything was unclear: https://github.com/pokemans123/nixos-dots )

Currently, i am just swapping out the host name and the modules in the main configuration.nix and flake.nix depending on where it is being deployed, but that is very tiring and i keep running into issues. Is there a better way? please advise

u/Past-Combination6262 — 27 days ago

I've been interested in astronomy/astrophysics and have wanted to make it my career since I was 8. However, my family asks me to consider what my future would look like with this being my career, which is fair. I've heard that it involves lots of travel; is this true? Also, I am well aware that it requires higher education(masters or PhD), so my family suggests I go to a local school/university instead of out-of-state for my bachelor's since they claim it doesn't matter as much as where I get my bachelor's as much as where I get my master's or PhD. What do you all suggest? I've been aiming for a few out-of-state(NJ) universities, mostly ivy leagues and some other safety net colleges, but should I just go to Rutgers for my bachelor's?

reddit.com
u/Past-Combination6262 — 2 months ago

:: 4 packages to upgrade/install.

4 system/expat 2.7.5-1 -> 2.8.0-1

3 system/iana-etc 20260409-1 -> 20260425-1

2 system/libgpg-error 1.59-1 -> 1.60-1

1 system/sed 4.9-3 -> 4.10-1

==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)

-> Excluding packages may cause partial upgrades and break systems

==>

Sync Dependency (4): sed-4.10-1, expat-2.8.0-1, iana-etc-20260425-1, libgpg-error-1.60-1

:: Synchronizing package databases...

system is up to date

world is up to date

galaxy is up to date

lib32 is up to date

:: Starting full system upgrade...

warning: vim: local (9.2.0283-1) is newer than world (9.2.0038-1)

warning: vim-runtime: local (9.2.0283-1) is newer than world (9.2.0038-1)

resolving dependencies...

looking for conflicting packages...

error: failed to prepare transaction (could not satisfy dependencies)

:: installing expat (2.8.0-1) breaks dependency 'expat=2.7.5' required by lib32-expat

-> error installing repo packages

normally, i wouldn't make this post but I am alarmed that this concerns a core system package

reddit.com
u/Past-Combination6262 — 2 months ago