jimmiehansson has quit [Remote host closed the connection]
zakame has joined #nixos
charukiewicz has joined #nixos
<energizer>
i have a user service running on a timer. journalctl lists it by the filepath in the nix store instead of the unit file name. how can i fix that?
<energizer>
the executable's filepath, specifically
thelounge52 has quit [Ping timeout: 256 seconds]
kreisys has joined #nixos
gustavderdrache has joined #nixos
thelounge52 has joined #nixos
Jd007 has joined #nixos
rajivr has joined #nixos
Fare has joined #nixos
thelounge52 has quit [Ping timeout: 240 seconds]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta_0>
hello there, i'm trying to build ghc with the ghc.nix repo, anyways, after moving up one directory, the hadrian.cabal problem was fix with the path, but bash is still throwing this error: `Is a directory`, i'm guessing that this should be something simple? I setup a shell.nix file which imports everything in ghc.nix direcotory in order to get my (direnv+nix-direnv+emacs-direnv) setup working, any tips on how to fix
<KarlJoad>
Who would be the best person to contact about changing python packages in nixpkgs? The file I'm messing with didn't have a maintainer.
ahmedelgabri has quit [Ping timeout: 272 seconds]
thelounge52 has joined #nixos
<cole-h>
jonringer or fridh are the people I see touching Python the most
<hexa->
,locate libpci.so
<{^_^}>
Found in packages: pciutils
<hexa->
KarlJoad: what's this about?
<abathur>
also potentially others who've made *functional* edits in the history of the package (i.e., ignoring style/treewide/maintenance stuff)
<cole-h>
(and excluding people who may have removed themselves from the maintainer list on purpose)
<KarlJoad>
hexa-: I am pulling the dolfin library out of a python package and making it a separate library. I have need of the dolfin library for another thing. I didn't think it would be best to re-define dolfin.
<KarlJoad>
cole-h: Would it make sense to "@" them on the PR then?
nhs has joined #nixos
thelounge52 has quit [Ping timeout: 265 seconds]
<energizer>
KarlJoad: they'll probably see it anyway
<cole-h>
I would. "Hey, @name, I noticed you did X, Y, or Z with this package and wanted to run this change by you." "Hey, @name, you seem to be fairly involved in Python packaging, so I wanted to run this change by you." etc etc
is_null has quit [Ping timeout: 256 seconds]
<KarlJoad>
Ok. I'm @-ing them in the PR. Hopefully they have some insight as to why the package fails to build.
<ldlework>
energizer: so I was able to build talib c library, and when I put that package into the nativeBuildInputs of the cython wrapper, it still fails to build with
<ldlework>
talib/_ta_lib.c:611:10: fatal error: ta-lib/ta_defs.h: No such file or directory
<ldlework>
while compiling the cython extension
<energizer>
not certain native* is the right place for that but i'm never really sure
<ldlework>
same
<ldlework>
hmm maybe its working with 'buildInputs'
<ldlework>
holy crap i did
<ldlework>
tit
<ldlework>
lol
Maxdamantus has quit [Ping timeout: 272 seconds]
<siraben>
nice
Maxdamantus has joined #nixos
<ldlework>
ModuleNotFoundError: No module named 'dash'
<ldlework>
hmm
<energizer>
it might be called plotly_dash or plotly.dash or whatever
<ldlework>
i think that i need to install dash separately
<ldlework>
but i have to do the whole "downgrade it to 3.x" dance
<ldlework>
energizer: wouldn't I just get boned once it needed the native lib which isn't in nixpkgs?
<ldlework>
energizer: I'd love to see how you get this working with poetry2nix
evanjs has joined #nixos
<energizer>
sometimes it just works, sometimes poetry2nix has an override built into its (large and growing) overrides.nix file, sometimes you have to add an override yourself
<energizer>
...and sometimes i have to ask someone else for help :D
<energizer>
but poetry2nix doesn't use nixpkgs
nhs has joined #nixos
<energizer>
except for certain manually defined deps
<energizer>
it gets stuff from pypi all by itself
PixelyIon[m] has joined #nixos
thelounge52 has joined #nixos
<energizer>
the main downside of using poetry2nix ime is that you have to wait for it to build numpy
<DigitalKiwi>
while i'm not sure about the latest nixUnstable i have used nix on raspberry pis with 1GB of ram...just addd a bit of swap. my server only even has 2GB (and 3GB swap) and runs great
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
Darkmatter66_ has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
Sketching embedded digital audio algorithms. To fix permissions of the Axoloti USB device node, add a similar udev rule to <literal>services.udev.extraRules</literal>: <literal>SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="0442", OWNER="someuser", GROUP="somegroup"</literal>
<DigitalKiwi>
is that how it's supposed to be or is that a bug
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to release-20.09: https://git.io/Jtar8
<patagonicus>
I'd like to only build the kernel based on a nixos config, instead of building the whole system. What's the right attribute for that? I'm debugging a build failure on armv7 and I don't want to build ~everything all the time will bisecting.
attila_lendvai has quit [Ping timeout: 246 seconds]
<patagonicus>
Looking at top-level.nix, I think it's `nix-build '<nixpkgs/nixos>' -A config.boot.kernelPackages.kernel` Let's see if that reproduces my problem.
<s1341>
/nix/store/fq92hv78w2vh4hcm6bqbxqml4w78d5yy-ndk-toolchain-binutils/bin/aarch64-linux-android-ld: warning: libprotobuf.so, needed by /nix/store/gjv4r2fay3yj0s2bnk8ahnmalyamj520-protobuf-3.14.0-aarch64-unknown-linux-android/lib/libprotoc.so, not found (try using -rpath or -rpath-link)
<s1341>
what am I doing wrong here? How do I get protobuf to set an rpath in all its libs?
ryzokuken has quit [Remote host closed the connection]
ryzokuken has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
nhs has joined #nixos
zebrag has joined #nixos
<exarkun>
After upgrading from 20.03 to 20.09 my system fails to boot, saying there is no /dev/sdd. My config has `boot.loader.grub.device`, `boot.initrd.postDeviceCommands`, and `fileSystems` that reference partitions on that device.
<exarkun>
If I change them to use one of the other names, is it more likely to work?
n-osborne has quit [Remote host closed the connection]
<exarkun>
dave34: I have one for 20.03 :) Would that help?
<yorick>
dave34: I think i3 has a default config somewhere
<siraben>
dave34: I have one for 20.09
dave34 has quit [Ping timeout: 240 seconds]
<siraben>
dang they left :(
mog has joined #nixos
ahmedelgabri has joined #nixos
ryzokuken has quit [Read error: Connection reset by peer]
<eyJhb>
Is there any known way to harden /nix/store? Or are we just doomed to have it world readable ? I really hate the case where nobody can read the values in /nix/store
<eyJhb>
But could be e.g. WWW etc. I just hate the idea of having a web app where a user is able to read files + list dirs, that just enumerate the /nix/store for secrets
<viric>
how does it work for non-nixos? isn't /usr/lib readable for those?
<viric>
I think you are not meant to find secrets in nix store.
<eyJhb>
Not meant to yes, but there might be some secrets in there, that is hard to get rid of, or something there shouldn't be there is
thelounge52 has joined #nixos
respawn_ has quit [Read error: Connection reset by peer]
<viric>
maybe we could have a patern, like $out/root-only/ is only accessible by root
<viric>
but that'd rather invite to put there secrets
respawn_ has joined #nixos
<viric>
and nar archive creation, etc... huge impact
<eyJhb>
Yeah, that's to inviting
orivej has joined #nixos
<eyJhb>
Also zimbatm poked multiple holes in the idea in #nixos-dev :D
<eyJhb>
So I guess it is back to the drawing board, but yeah, permissions would be cool
<gchristensen>
the NAR archive format used to distribute Nix store paths has no concept of file modes beyond "is it executable", and no concept of ownership / group, eyJhb
<rmcgibbo[m]>
Good (us/eastern-time) morning to everyone. As might be apparent from comments on recent PRs, I turned on a new bot last night that runs nixpkgs-review on most new PRs for a pilot run.
<rmcgibbo[m]>
If anyone has feedback I'm going to be working on some improvements to it today.
<gluonix>
Hi, I am trying to write a derivation that downloads an executable file, via fetchurl, and runs that executable. When trying to create the destination directory `$out` I get a Permission denied error. I am wondering what i am doing wrong as what i do does not seem different than the example in
<gluonix>
I now get the error: "sgx_linux_x64_sdk_2.12.100.3.bin: /nix/store/kr812lw8sqfhkl2azl8hcnfwxj081568-sgxsdk/sgxsdk/scripts/install.sh: /usr/bin/env: bad interpreter: No such file or directory
<yrashk>
anyone using rustup on nixos? I am consistently running into this error:
<yrashk>
/nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /run/user/1000/cargo-installUpdNp2/release/deps/libthiserror_impl-be5fa72c3d7bb0fb.so)
<rmcgibbo[m]>
gluonix: In my limited experience "bad interpreter / no such file or directory" is usually because non-nixos stuff that depends on the normal linux dynamic linker, and you need to run patchelf.
<rmcgibbo[m]>
yrashk: I have personally never been able to get rustup to work on nixos, and so I switched to doing things the "nixos" way, like making a default.nix that specifies the toolchain and then loading into it with nix-shell.
<rmcgibbo[m]>
s1341: I think one simple way is to append to NIX_LDFLAGS inside the derivation.
thelounge52 has joined #nixos
eyjhb[m] has left #nixos ["User left"]
<rmcgibbo[m]>
gluonix: yeah, i'd check the script you're downloading and look for the binaries it's calling or bundled, and then run various iterations of `patchelf --print-interpreter`, `ldd` and that kind of stuff on them, to see which ones need to be properly nixified.
ahmed_elgabri has quit [Ping timeout: 264 seconds]
davidv7 has joined #nixos
malook has joined #nixos
thehottestpotato has joined #nixos
earldouglas has quit [Quit: leaving]
dave16 has quit [Quit: Connection closed]
pta2002 has quit [Quit: leaving]
<thehottestpotato>
I'm using ghidra, a java tool, in wayland, and because it doesnt behave well with wayland natively, I need to pass an environment var to have it properly display. I want to do this in the most Nix way possible, but I dont know the best way to override or wrap the package so that it calls with the environment setup correctly. My best guess is that I
<thehottestpotato>
want to override `postFixup` so that I can add the `--set` flag to `makeWrapper`, but i have some issues with that around referenced variables that I cant find in the overrideAttrs scope. Does anyone have some tips or adviec?
pta2002 has joined #nixos
<pta2002>
Hello (again)
<pta2002>
I think my SSH issues are actually ipv6 issues
<pta2002>
I have an IPv6 subnet from hetzner assigned to my server
<pta2002>
But idk how to make sure nixos understands it
<pta2002>
So I'd do networking.interfaces.enp1s0.ipv6.addresses = [{ address = "2a01:4f8:c2c:3859::"; prefixLength = 64; }];
<thehottestpotato>
eyJhb: https://ghostbin.co/paste/jd7ax This is the paste, the problem im running into is that while `pkg_path` is defined in ghidra's package file, I have no idea how to properly access it, and I feel like just hardcoding in what the value should be might cause me some issues in the future
<pta2002>
well let's try this out ig
<infinisil>
pta2002: I think you need to pass the actual ip there
<infinisil>
Not sure thouggh
<pta2002>
yeah got the ip
<pta2002>
let me see
<pta2002>
hm
<pta2002>
still not working
<pta2002>
ip addr shows the proper network now though
thelounge52 has joined #nixos
<pta2002>
maybe if i reboot, let's try that
<infinisil>
Can you ping?
<infinisil>
The ipv6?
aleph- has joined #nixos
<pta2002>
oh i'll try that when it comes back up
<pta2002>
nop
<pta2002>
weird, it's there on ip addr
<pta2002>
inet6 2a01:4f8:c2c:3859::1/64 scope global
j2t has quit [Remote host closed the connection]
j2t has joined #nixos
<pta2002>
But I can ping the ipv4 fine
<pta2002>
wait i'm an idiot and was pinging it form within the machine
<pta2002>
still, the machine should've been able to ping itself
<pta2002>
yeah can't ping i
thelounge52 has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 258 seconds]
<pta2002>
also i get "network is unreachable" when i try to do some ipv6 networking from the server
<drozdziak1>
pta2002: It's a problem upstream as well, I might try and take a stab at it when I get the chance (am using nixops and deploying through the very tunnel :P but it doesn't build locally)
<pta2002>
oh ffs
<pta2002>
now ipv6 works and ipv4 doesn't
meh` has quit [Ping timeout: 240 seconds]
cptchaos83 has joined #nixos
<drozdziak1>
pta2002: What's the rough networking setup on Hetzner? Does it do DHCPv6 for you, are you supposed to put yourself on the assigned range somehow?
<pta2002>
yeah
<pta2002>
wait oops
gluonix has quit [Ping timeout: 240 seconds]
<pta2002>
drozdziak1: as far as i can tell it does dhcp for ipv4
<drozdziak1>
I think the kind people on #netowrking (or ##networking) might be a better audience for your issue
<pta2002>
at least i hadn't provided it myself
<pta2002>
now i assigned it statically for both
<pta2002>
since i can just grab the ip from terraform
<drozdziak1>
pta2002: Does Hetzner dashboard give you a KVM interface to get a shell in the browser? Maybe you could validate against their network by trying to access something from the machine itself?
<sphalerite>
pta2002: huh, hetzner robot says the IP is blocked
<leo60228>
yeah search is fixed now, nice
<pta2002>
hm this is hetzner cloud
<pta2002>
not robot
<pta2002>
afaik robot is dedicated
<sphalerite>
uuuuh it was performing network scans apparently..?
<sphalerite>
yes it is
<sphalerite>
yeah never mind I guess it is a different problem
<thehottestpotato>
Anyone else able to give me some advice with this override config? https://ghostbin.co/paste/jd7ax If I just need to replace the pkg_path var with the constant that the ghidra package defines it as thats fine I just want to know if theres a better option
<sshow>
Repeating a question from yesterday; When I add a custom layout to services.xserver.extraLayouts, I have to rebuild xorg-server. Is there a better way?
serum[m] has joined #nixos
iktomi has joined #nixos
serum[m] has left #nixos [#nixos]
alexherbo23 has joined #nixos
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo23 is now known as alexherbo2
henri has quit [Quit: ERC (IRC client for Emacs 27.1)]
<iktomi>
Hi all, I'm trying to make my nixos configs flake-y, and got stuck on step 1. First line is "imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ];", and I guess <nixpkgs/...> is the kind of reference flakes are supposed to avoid. How can I get at that module inside the flake expression?
<iktomi>
I have a question about how to structure these flakes. I have a Python web app that depends on things from PyPI that aren't in nixpkgs. Some of those same dependencies might be used in another Python app. My thought was to have a github:me/python-flakes input to my Python apps (call them github:me/myapp1 and github:me/myapp2) , then for my server
<iktomi>
nixos config declare those apps as inputs and also have github:me/python-flakes as an input for myapp1 and myapp2 to "follow"
<iktomi>
Does this make sense? I should probably get this working as a single monolithic expression before I try splitting it up
seku has joined #nixos
<iktomi>
I would then have to flake update all three to deploy, I guess.. :\
thelounge52 has joined #nixos
n-osborne has quit [Remote host closed the connection]
<iktomi>
NixOS is my secret weapon for administering servers as a team of one. Now, our instrumentation computers, they're all CentOS and occupy a huge amount of my time :(
vidbina has quit [Ping timeout: 264 seconds]
<shapr>
iktomi: how many servers?
thelounge52 has quit [Ping timeout: 272 seconds]
<shapr>
I just realized I don't know how to globally install a nix package I just created! What's the secret?
<iktomi>
For our instrument, 3, each a special snowflake
<clever>
shapr: add it to the environment.systemPackages list in configuration.nix
<srk>
shapr: environment.systemPackages
<shapr>
do I need to point to github or my local filesystem or something?
n-osborne has quit [Remote host closed the connection]
jonringer has quit [Ping timeout: 264 seconds]
<infinisil>
aleph-: Remove the `machines = {`
<infinisil>
the nodes are declared in the topmost level in nixops
n-osborne has joined #nixos
<aleph->
Ahh
<aleph->
Thanks infinisil
<infinisil>
(I didn't like that about nixops, so in my nixus I'm using the toplevel `nodes` option instead to declare machines)
<aleph->
Nos
<aleph->
Nod
<aleph->
Secondary question, getting the following error due to how I lay out nix files in this dir tree. Complains of not having an absolute path. https://paste.rs/QMt
<aleph->
I use that to just generate a import array of nix files from a dir.
<aleph->
Should I just move them to being under a machine dir and address them absolutely?
Qwerky has joined #nixos
<aleph->
Per each machine relative to the machine_name.nix file.
<infinisil>
aleph-: Shouldn't that be `../common` without the `"`?
hoijui has quit [Quit: Leaving]
<infinisil>
(same for ../laundry)
jtle has quit [Quit: Client update]
<adisbladis>
infinisil: I want to change that for 2.0
<adisbladis>
I haven't done it yet though
<infinisil>
Nice
emilsp has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aleph->
Hmm does nixops not like local derivs that also exist in the nix store? I have a few I've overridden and import locally seem to be conflicting? https://paste.rs/MTO
<aleph->
Err global nix store/cache/
<infinisil>
Pretty sure that's unrelated to nixops
Qwerky has quit [Remote host closed the connection]
kreisys has joined #nixos
<aleph->
Interesting while telling me almost nothing. https://paste.rs/dBH seems to imply there's something wrong with my rss-bridge and nginx config https://paste.rs/RdA
thelounge52 has joined #nixos
friendzoner has joined #nixos
<friendzoner>
good day/evening nixers
proofofkeags has quit [Quit: Leaving]
<friendzoner>
I am looking to understand what overlays do, I understand that I can "abuse" overlays to get custom packages into my pkg scope, is that a good explanation?
<infinisil>
aleph-: I see "hash '' has wrong length for hash type 'sha256'"
<aleph->
Yeah not getting much from that
<friendzoner>
I've had 3 days of nix exposure as a disclaimer lol
<infinisil>
aleph-: Do you have any rss-bridge overlay or so?
<friendzoner>
I am trying to figure out if and how nix can help me simplify dev environments. I want to build a custom package and provide it among others to a dev team, so that all of the use the same tools with the same versions
<friendzoner>
right now it's some awkward cloning and following a readme by copy pasting commands
<tadfisher[m]>
> I am trying to figure out if and how nix can help me simplify dev environments. I want to build a custom package and provide it among others to a dev team, so that all of the use the same tools with the same versions
<tadfisher[m]>
Flakes is the best option, even though it's experimental.
<{^_^}>
error: syntax error, unexpected IF, expecting ')', at (string):471:27
<aleph->
Okay hmm. Something seems up with my overlays somehow. https://paste.rs/Z48
<aleph->
infinisil
<friendzoner>
I've been looking at flakes, but I feel like I am missing some nix fundamentals, and building nodejs applications is not as straightforward for a beginner. I've seen node2nix but I am missing the glue between all these tools
vidbina has joined #nixos
<friendzoner>
or rather writing derivations
n-osborne has quit [Read error: Connection reset by peer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor has quit [Remote host closed the connection]
dev_mohe has joined #nixos
spudly1 has quit [Quit: Bridge terminating on SIGTERM]
thelounge52 has quit [Ping timeout: 265 seconds]
<klardotsh>
anyone have ideas as to why vm.nix+villain.nix in https://git.klar.sh/klardotsh/dotfiles/commit/ebd829b5cacf8e0fc45b69c264427f77a17841d1 would fail to build? without the nixpkgs.crossSystem.config = "aarch64-unknown-linux-gnu"; line alsoft complains that it requires an aarch64 system (makes sense!), and with it, Nix complains that it can't find llvmPackages_7
<klardotsh>
I imagine this is some a-ha moment of cross-compiling NixOS but so far I'm not piecing it together
<aleph->
Bah these errors are getting annoying https://paste.rs/Bpv (vendoring and overriding deluged.service to await for my authfile key to be deployed)