<iqubic>
I want to make a shell.nix which pulls in the .env of that default.nix, along with cabal-install.
<iqubic>
But I'm not ure ow to do that.
<Baughn>
Ah. I won't be testing that.
<Baughn>
Hm.
<simpson>
iqubic: I'm not sure how to do it either. I'd probably have the shell.nix import from the default.nix? I don't know.
<Baughn>
I was expecting `nix build -f ~/dev/nixpkgs/nixos/release-combined.nix tested --arg supportedSystems '["x86_64-linux"]'` to skip the tests I can't build/run, but that didn't happen.
<infinisil>
In my current version I don't have any such htop problem, but I guess I might see it after updating
<samueldr>
infinisil: though just beginning to look in to it, it's not as simple as setting src to their PR, and cargosha256; and not used to the rust stuff
<samueldr>
yeah, on 19.03 everything is fine
<infinisil>
Usually setting src and cargoSha256 should be enough
<samueldr>
I may just bring in the one from 19.03 until
<samueldr>
yeah, I have yet to look, but it may be that it's using source for something that's from git
testy has quit [Remote host closed the connection]
<disasm>
I deployed a run key using nixops and set the user on it to the user a systemd service runs as. I verified that file is owned by the systemd service user but the journal logs tell me permission denied when it tries to read the key.
<disasm>
is there something really stupid I'm missing?
<samueldr>
now there's the emoji picker from ibus that's weird
<worldofpeace>
interesting, gtk's looks pretty though :)
<worldofpeace>
(or is ibus emoji picker the gtk one...)
<infinisil>
My update to nixos-unstable also hasn't been that smooth
<infinisil>
The worst thing that was nixpkgs fault for now has been that security.acme.directory has been removed without mkRemovedOptionModule (and therefore no explanation or replacement instructions)
<infinisil>
Had to figure out that I can replace it with just /var/lib/acme
<infinisil>
But I gotta say, hardcoding these paths because systemd endorses /var/lib/${name} feels wrong
<samueldr>
infinisil: can you open an issue, cc the RMs for 19.09 (and me) to add this to the release notes?
<samueldr>
(and maybe add mkReomvedModule instead of doing nothing)
<samueldr>
ugh, phrasing...
<samueldr>
not saying that you're doing nothing, but suggesting to doing this in addition to the release notes
<infinisil>
Hehe I got what you were trying to say
<infinisil>
I think only mkRemovedOptionModule would be needed (no release notes) though, since then only people who actually use the option get the info
<infinisil>
Release notes seem more for the changes that can't be informed with warnings/errors
<worldofpeace>
Unless you're begging people to please don't do something :P As many notes as possible
<samueldr>
and, though only weird, ibus also now shows dead keys while typing... only weird, not an issue
<infinisil>
worldofpeace: I fail to parse that sentence of yours
<worldofpeace>
infinisil: make release notes, warnings and errors to deter people from doing things that will give them a bad user experience. but you can't remove the thing
marusich has quit [Remote host closed the connection]
<durka>
Hi! I'm a bit confused trying to setup a build environment on NixOS. I can install gcc-wrapper or clang-wrapper, but there's no `ar`. That should come from binutils but that conflicts with gcc and clang. What should I be installing here?
<ornx>
libraries arent exposed to the normal user environment either, so you have to use a shell in order to have paths to libraries you want to link in your environment
<mog>
yup durka all dev work goes down better inside of a nix-shell
<iqubic>
I have no libraries in my system-wide configuration. And it's a blessing.
<ornx>
i didnt like it at first because i thought it was a huge hassle but im actually quite happy with it now
<samueldr>
it's a kind of "weak" isolation
<iqubic>
All I have in my system.environmentPackages is a list of programs and executable binaries that I actually use.
<durka>
hmm ok so I'm going to do something like `nix-shell -p rustc -p gcc` and I can compile in there
<infinisil>
durka: nix-shell -p <a> <b> <c> is about the same as nix-shell with a shell.nix file with `with import <nixpkgs> {}; stdenv.mkDerivation { name = "shell"; buildInputs = [ <a> <b> <c> ]; }`
<durka>
I'm brand new obviously so maybe I'll start with lorri to avoid conversion costs :p
<durka>
ok so it's kind of like `nix-env -iA nixpkgs.{a,b,c}` but... better
<infinisil>
Kind of yeah
<iqubic>
Is the 'name' attribute needed in the mkDerivation attr set?
<mog>
is lorri going to go into nixos at somepoint? i see its not yet in unstable
<durka>
completely separate question
<infinisil>
mog: It's planned to go into nixpkgs soonish yeah
<durka>
when I install a package I typically do `nix search foo` and it shows up as `nixpkgs.foo` so I run `nix-env -iA nixos.foo`
<durka>
but why do I have to s/nixpkgs/nixos?
ivan__ has joined #nixos
<durka>
why the mismatch between these two tools
<mog>
i try to just install things from nixos stable as im lazy and makes it easier to have reproducable system for me
ivan__ is now known as ivan
<samueldr>
historical footnote from the way channels are configured between nix on non-nixos and nixos
<iqubic>
Because you might have mulitple channels on your system. The nixos. prefix tells nix-env which channel to get the package from.
<durka>
I see
<durka>
can I set nixos as a default for nix-env?
<durka>
also the intro materials should note this... very confusing when it just says "find the package in `nix search`" but `nix-env -iA nixpkgs.foo` doesn't work :/
<iqubic>
Most shell.nix files start with the line: 'with import <nixpkgs> {};' which tells nix-shell which channel to pull the packages from.
<durka>
yeah but I'm talking the regular nix-env that I use for my profile
<infinisil>
iqubic: That's not entirely correct
Okinan has quit [Quit: Konversation terminated!]
<infinisil>
Channels really are one of the most confusing things in Nix
<iqubic>
infinisil: Can you please correct me?
<iqubic>
I know very little about Nix channels.
<durka>
maybe a setting in ~/.config/nixpkgs/config.nix?
<infinisil>
iqubic: <nixpkgs> only tries to find any file in NIX_PATH that matches nixpkgs, which can be from any channel really
sk8forether has quit [Quit: Connection closed for inactivity]
<durka>
heh, lorri is written in rust just like the program I'm trying to set up an environment for
<iqubic>
Oh. I see.
<durka>
I can probably just copy lorri's shell.nix :p
<iqubic>
infinisil: I only have one channel, so it's completely deterministic which channel my packages are coming from.
<iqubic>
I don't know how it works with multiple channels.
<infinisil>
durka: You can put something like `{ nixpkgs = import <nixpkgs> {}; }` in ~/.nix-defexpr/default.nix to have `nix-env -iA nixpkgs.hello` work
<samueldr>
it may not even be from a channel
<infinisil>
durka: Or even `import <nixpkgs> {}` to have `nix-env -iA hello` work
<durka>
`nix-env -iA hello` would be the dream
<durka>
aha
<infinisil>
durka: What does your ~/.nix-defexpr/default.nix contain?
<infinisil>
By default?
<durka>
doesn't exist
<infinisil>
Oh I see, I was wondering about that
<samueldr>
channels are implemented as a kind of porcelain over NIX_PATH; in the end when you use <some-name> it ends up searchin in NIX_PATH, which includes by default a directory that is managed by nix-channel
<infinisil>
Ah right, NIX_PATH contains /nix/var/nix/profiles/per-user/root/channels and ~/.nix-defexpr/channels (which is a symlink to /nix/var/nix/profiles/per-user/$USER/channels)
<infinisil>
But I personally recommend just staying away from nix-env to avoid a whole bunch of oddities
<durka>
what do you use instead?
<infinisil>
I only use it for one-off installations if I'm too lazy to put it in a declarative nix file
<infinisil>
I use my NixOS config or my home-manager config, both of which are declarative ways to install packages
<infinisil>
,declarative durka
<{^_^}>
durka: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<infinisil>
And this is for user-level package installation specifically ^^
<quiet_laika[m]>
i often find myself rebuilding haskell projects with fairly sizable dependency trees on recent versions of nixpkgs+haskell.nix (which itself often requires the building of hackage.nix and stackage.nix), eg im currently running a build that fetched 400 some package artifacts but requires another ~700 more to be built from scratch. i figure if im using the energy and time i might as well forward the benefits, if i can
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<charukie1icz>
I have a Haskell project where I'm using builtins.fetchGit to define my pkg set, using nixpkgs-channels repo with ref = "nixos-unstable". According to https://nixos.org/nixos/packages.html?channel=nixos-unstable&query=time-1.9, time-1.9 and time-1.9.3 should be available, but when I do a nix-build, cabal selects version 1.8.x. Am I doing something wrong?
Rusty1 has quit [Quit: Konversation terminated!]
<charukie1icz>
I have specified time >=1.9 as a dependency in my .cabal file, and I get: Setup: Encountered missing dependencies:
<rixed>
Is there any way to get the attention of a reviewer/packager on a PR that's been waiting on github for a long time? (6 months for the one I need)
slack1256 has quit [Ping timeout: 245 seconds]
<manveru>
rixed: well, sharing it here would be one way :)
<rixed>
manveru: sure but if there weren't a better way then this channel would be flooded already. Or maybe there is something very wrong about mine. Here it is: https://github.com/NixOS/nixpkgs/pull/58449
<{^_^}>
#58449 (by rixed, 26 weeks ago, open): lacaml: Use propagatedBuildInputs for stublibs
<rixed>
my suspicion is that it's too specific and very few packagers can actually have an idea:)
dermetfan has joined #nixos
<manveru>
well, you can always become maintainer for it :)
<rixed>
manveru: maintainer for lacaml? sure why not. how do one become a maintainer then?
<rixed>
manveru: (note that it's already my name in the maintainer field)
<otwieracz>
Hi! I've got `br0` configured in configuration.nix - and I'd like to use is with libvirt via nixops. Do I have to create libvirt network with this bridge? Do I have to? I use this bridge also for LXC, so I'd rather keep it managed by nixos instead of libvirt.
<{^_^}>
[nixpkgs] @etu closed pull request #58208 → composer2nix and phpPackages.language-server: init at 5.4.6 → https://git.io/fjJ1e
orivej has quit [Ping timeout: 240 seconds]
<jluttine>
any ideas what could be wrong: processes calling some of my d-bus thingies (e.g., gnome-keyring secrets, kbdd) first time after login fail, but the second call succeeds. for instance, "git pull" gets git account info from org.freedesktop.secrets (i.e., gnome-keyring) but the first "git pull" fails. when i run it again immediately, then it succeeds. if i look at the keyring via seahorse, the Default Keyring is
orivej has joined #nixos
<jluttine>
locked before the first call but the first call unlocks it.
<jluttine>
i feel that this must be something wrong with dbus in general because kbdd has a similar issue
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ilyagotfryd has joined #nixos
<{^_^}>
[nixpkgs] @feijoas opened pull request #69816 → vscode-extensions.james-yu.latex-workshop: init at 8.2.0 → https://git.io/JeZah
zupo has joined #nixos
ilyagotfryd has quit [Ping timeout: 265 seconds]
iyzsong has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
<rizary_>
does anyone have an example on how to install vscode-insiders using the vscode.nix? because this `https://vscode-update.azurewebsites.net/${version}/${plat}/stable` only works for stable build
<myme>
I'm attempting to write an expression for running Hiri, the email client. I've gone both the autoPatchelf and buildUserFHSenv ways, and hit roadblocks each way. Patching turned out to be a bit messy, so even though I got the GUI up and running it crashed almost immediately.
<myme>
So, basically, it embeds libpython3.5 which tries to load GL. While doing that, there seems to be some missing symbols loading glib.
<myme>
Going down the patch route, I tried to strip stuff like Qt, PyQt, Python, and whatnot which is bundled, but it wound up taking so much time I'd rather just see if I could get it to run at least with minial effort.
<shyim>
How can I generate a nar + narinfo file from a nix-store path?
<azazel>
I had to do something like that in an android FHS earlier this year, and I had to add also X11 libs to the mix, or else I had also incurred in libGL loading errors
<myme>
azazel: Hmm... Could be that it's missing X11 stuff...
<azazel>
PyQT? but it's using libgobject which is a GTK+ / gnome dependency
<azazel>
myme: for that I would investigate if the product has something like a debian package so you will know which version of libgobject is expected to load
<yuken>
Alright, NixOS is working so far, however I have three issues right now that, after a quick Google, I can't resolve:
<yuken>
I'm unsure how to permanently import a custom CA certificate, I can't figure out how to apply GTK2 themes (Hexchat, for example, uses one) - GTK3 works fine with something like lxappearance-gtk3, however lxappearance (gtk2) will not apply themes.
Chiliparrot has joined #nixos
<yuken>
And, at least in Firefox, scrolling with my mouse is _incredibly_ fast; under Arch or openSUSE, the scrolling is the exact same. Under NixOS, it appears to scroll half a page with a tiny movement - dunno what that's about. Any help is appreciated, thanks in advance.
<yuken>
Thanks, now I got 2 more to go. I dunno what's up with the mouse accel stuff, that seems like it shouldn't change from distro to distro.
<yuken>
NixOS seems to be the oddball there.
<PyroLagus>
well, actually you probably want to append
<yuken>
er, not mouse accel, scroll wheel accel.
<yuken>
PyroLagus, would that just be += then, or is there a different way to do that with Nix?
ericsagnes has joined #nixos
<PyroLagus>
i think += should work
<PyroLagus>
ah wait
<PyroLagus>
concat is ++
<PyroLagus>
might have to repeat the variable name
<{^_^}>
[nixpkgs] @laikq opened pull request #69833 → sndpeek: init at 1.4 → https://git.io/JeZw6
<yuken>
Oh, huh. By some magic, my GTK theme just applied to Hexchat... no clue why, but that issue is gone and I dunno how.
<sphalerite>
yuken: just security.pki.cacerts = [''cert text here''];
<yuken>
Well, the last thing is the scroll wheel speed - under every single distribution I've ever used, the scroll wheel has acted the same on my mouse. Under Nix, it seems to want to scroll _really_ fast.
<sphalerite>
yuken: it will get merged with the default value
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
yuken: did you enable libinput?
<yuken>
I did, sphalerite.
<sphalerite>
hm, not sure then
<sphalerite>
(why isn't it enabled by default yet..?)
<yuken>
There appears to be nothing in xinput about scroll speed, just accel speed. I have restarted X, too.
<yuken>
I can just reboot real quick and see if that solves it.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<yuken>
I'll be back in one second, let's see if a reboot fixes it.
<kumikumi>
I'm thinking about maybe setting up steam inside a ubuntu chroot inside nixos for gaming, to get full gaming experience without needing for binary patching and the like. Thoughts? Good idea? Bad idea?
<tilpner>
kumikumi: Steam already runs inside an ubuntu-like chroot by default
<kumikumi>
tilpner: does it mean games run inside that environment too? so they should work the same way as in Ubuntu? IIRC last time I checked there were some inconsistencies
<yuken>
Looks like a reboot fixed it, sphalerite.
<PyroLagus>
t
<PyroLagus>
they do run inside the same environment
LysergicDreams has quit [Ping timeout: 265 seconds]
<sphalerite>
weird
<tilpner>
kumikumi: Yes, it's not actually Ubuntu, so it may be slightly different
LysergicDreams has joined #nixos
<sphalerite>
kumikumi: they run in a chroot that contains the steam runtime environment as distributed by valve. That contains a bunch of libraries typically used by games, and as long as the games don't rely on anything not provided by themselves or the steam runtime, it should work the same as on any other distro.
<kumikumi>
Alright, I'll try some gaming and see if everything works
<{^_^}>
[nixpkgs] @doronbehar opened pull request #69843 → units: Add units_cur python script to $out → https://git.io/JeZrx
kp__ has quit [Quit: WeeChat 2.5]
chloekek has quit [Ping timeout: 265 seconds]
<Rovanion>
sphalerite: The situation I'm solving for is: There is infrastructure as code describing a couple of servers and their relations. One could solve this using a bunch of Dockerfiles and some tool like nixops to run them locally on the infrastructure developers machine for them to play with. But in order to have automatic security updates once deployed I would like to use Nix instead of Docker.
kp__ has joined #nixos
mexisme has joined #nixos
<sphalerite>
Rovanion: so you don't mean lxc specifically, just containers of some description?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Rovanion>
sphalerite: Precisely, it really only needs to solve the issue "The developer of the infrastructure should be able to deploy a copy of the infrastructure, or some subset thereof, to their local machine." It could be solved using virtual machines, or one virtual machine if that solves the issue.
<sphalerite>
Rovanion: this sounds like a good usecase for nixos containers
<yuken>
How should I go about troubleshooting stuff with python libraries? I've installed psycopg2 (nix-env -iA nixos.python37Packages.psycopg2), and according to python, there is no psycopg2 module.
<yuken>
Not sure how to start figuring out what the issue is with Nix.
<{^_^}>
yuken: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<srhb>
yuken: But for python, you will want to use python.withPackages in most ad-hoc use cases. Check the nixpkgs manual :)
<yuken>
Thanks, srhb. I knew I was doing something wrong.
<yuken>
Developing with nixOS is gonna be weird until I figure this stuff out, but it should be nicer in the end I hope.
dansho has quit [Remote host closed the connection]
gxt has quit [Ping timeout: 260 seconds]
<xok>
I do development environment deployments using the nixops...
<xok>
Does anyone know of a good resource for nixops scalability?..
<srhb>
yuken: It spins up a python shell which has psycopg2 and requests installed
<srhb>
yuken: And yes, it will be weird for a while, but you gain a lot of expressivity in return :)
<xok>
the purpose is simple: to scale the system as the needs grow...
<yuken>
srhb, so I'm new to Nix and functional languages in general, but you're essentially telling python3 to use the packages returned by the ps function?
<yuken>
or am I misreading that?
<srhb>
yuken: I am telling the nix python infrastructure to build me a python derivation (basically a python plus some packages, wrapped with a PYTHONPATH variable that knows about said packages) and then spin me up a shell, and run that python
chloekek has joined #nixos
kvda has joined #nixos
ilyagotfryd has quit [Ping timeout: 276 seconds]
<exarkun>
yuken: the function has no name, `ps` is the name of the argument it takes
alex`` has joined #nixos
<exarkun>
it's passed a set of all the python packages python3 has in nixpkgs
<yuken>
Oh, okay, thank exarkun & srhb.
<exarkun>
and you can pick the ones you want
<yuken>
I see how that's working then, thanks <3. Last time I tried messing with Nix, it confused me, doesn't seem so bad now though
<srhb>
yuken: Yes, consider (ps: [ ... ]) a "selector" -- it's a function that is given the python packages (ps) and then you pick the ones you want.
<yuken>
Rust has some stuff like that srhb, so that's pretty self explanatory to me. Speaking of which, I hope using Rust is as easy as Python.
<srhb>
yuken: I'm not very familiar with the rust ecosystem, but I have used it a few times with relative ease.
<srhb>
yuken: One other benefit of Nix, sometimes you don't *have* to understand language specific build systems, you just need nix. :P
<exarkun>
sometimes!
<srhb>
Sometimes, sure.
<yuken>
Rust's build system is pretty nice overall, infinitely better than the various C & C++ build systems imho. It's like if npm had a baby that wasn't garbage.
<clever>
pie_: do you have /boot on its own filesystem?
<pie_>
clever: yeah i think so
<clever>
pie_: then its always copying kernels, and ignores the copyKernels flag
<pie_>
then why is my boot failing with external pointer tables not supported :I
<clever>
pie_: can you screenshot the exact error?
<jluttine>
if i want to set something with `setterm` in nixos configuration.nix, how could i do it? for instance, i'd like to set `setterm --blank 5 --powerdown 1`
<pie_>
no i cant
<clever>
pie_: you dont have a cellphone?
<pie_>
but it says exactly whats in the github issue i linked
<clever>
pie_: can you boot any nixos iso, and pastebin the `fdisk -l /dev/sdsomething` ?
<pie_>
i would confirm that i have a separate boot partition but i cant load my zfs to check, well ok i could load it read onlz to check
Henson has joined #nixos
<clever>
pie_: you dont have to load the zfs to check for other partitions
<clever>
partitions exist outside of zfs
<pie_>
i wanted to check the...well nevermind
<pie_>
i have an EFIBOOT partition
<pie_>
oh wait thats the wrong drive
<Henson>
is there a way I can get buildFHSUserEnv to install 32-bit libraries? I'm trying to run a wine-based 32-bit closed-source game.
<clever>
Henson: use pkgs.pkgsi686Linux.buildFHSUserEnv
<yuken>
Hmm. srhb, what's the best way to create a nix expression/file for nix-shell to setup some python libs? Can't figure that out o-O
<pie_>
clever: i have an efi partition to a bootx64.efi in it
<clever>
pie_: what path is it at, within the partition
<pie_>
EFI/BOOT
<pie_>
thats the only thing on the partition
<clever>
pie_: what is the last-mod timestamp on that?
<pie_>
it might be possible that i garbage collected the recovery boot and grub didnt update? (if i turnd off the entry or forgot to add it or something)
ddellacosta has quit [Ping timeout: 265 seconds]
<pie_>
but the failing boot is still a problem
<clever>
pie_: my recovery boot module, copies the kernel to /boot/
<clever>
so it cant be GC'd
<pie_>
clever: is that what ls shows by default? in which case its september 3
<clever>
thats fairly recent then, i guess your next option is to get the zfs mounting
<clever>
that removes a root, and then normal gc can delete it
<pie_>
the proper solution would eb a tool that lists how much space gcing a generation would free and sort by that
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #69851 → nvidia-x11: Remove patches from the 390 version. → https://git.io/JeZoh
<pie_>
but anyway id just like my system to boot for starters
<clever>
pie_: nix-du does that
<pie_>
ok cool i guess i SILL need to go and look at nix du
<clever>
pie_: did you set any zfs options in configuration.nix?
<pie_>
if nix du is so good maybe it shuld be picked up by upstream -_- mumble mumble
<pie_>
clever what do you mean, on hye normal system or the installer
<pie_>
i dont think i changed any zfs options since the last boot
<pie_>
on the installer i tried setting enableunstable, and it rebuilt, but failed to actually end up with the new zfs somehow
<clever>
pie_: changing zfs flags at runtime is tricky, and its best to reboot first
<clever>
but you cant reboot the iso
<clever>
pie_: do you have 2 usb sticks?
Henson has quit [Ping timeout: 245 seconds]
<pie_>
i think ive done it before somehow
<pie_>
no i dont have 2 usb sticks
<xok>
does nixops deployments support scalability...
<pie_>
i was runing around earlier like omg wtf how do i not have some proper usb sticks
<pie_>
there might be some hidden somehwere but dont know where
<xok>
is that something that has been developed in NixOS ecosystem?..
<clever>
xok: you can use `nixops set-args --arg foo 42` to pass an argument to the deployment file, and then use `lib.range` and `lib.map` to dynamically generate N machines
<pie_>
clever i am the worst sysadmin :c
<clever>
pie_: i typically travel with 3 or 4 random usb sticks, lol
<clever>
pie_: try turning on enableunstable then, from the iso, then `rmmod zfs` and `modprobe zfs` to reload it, dont update the nix channels
<pie_>
i suppose i could boot a virtual machine and give it raw drive acces? :PPPP but id rather not trz to do that
<pie_>
zeah dude thats what i did ...
<clever>
pie_: what did it fail with?
<pie_>
actually maybe it just didnt update the userspace
<pie_>
hold on
<xok>
clever: thanks, but I am looking for some solution that would get us close to what kubernetes does...
<clever>
xok: ive never used that
endformationage has joined #nixos
<pie_>
clever i dont think it errored, i probably just tries to see if zfs version works, they only added that command in 0.8 lol...
<pie_>
anyway, rebuilding
<pie_>
the outdated userspace might be fine though, ill see in a second if it can import
<clever>
pie_: userspace is the part that will update the easiest
<xok>
clever: it's a container orchestration system....
<pie_>
clever hmm yeah i gues i could just -I channel: it
<clever>
pie_: if you mess with the channel, the zfs module wont fit your kernel version, and you cant load it
<clever>
pie_: which is why i said to not update channels
<yuken>
I remember being linked a nice little basic tutorial on Nix here, someone's Github page - anyone have that link? Can't seem to find it in my logs or on Google.
<pie_>
clever no i didnt, does modinfo not check the currently loaded version
<clever>
pie_: correct, modinfo looks at the fs, not the live kernel
<pie_>
oh damnit
<clever>
pie_: thats why i said to rmmod first, a few mins ago
<pie_>
ok i did rmmod and now im back to the first question i asked which is how to get modprobe to insert it again
<pie_>
oh
<pie_>
derp
<clever>
2019-09-28 11:44:07 < clever> pie_: try turning on enableunstable then, from the iso, then `rmmod zfs` and `modprobe zfs` to reload it, dont update the nix channels
<pie_>
unknown symbol in module or unknown parameter
<clever>
pie_: what unknown symbol? what does dmesg say?
<clever>
pie_: is spl in `lsmod` ?
<pie_>
theres 17 unknown szmbols
<clever>
pie_: name one
<pie_>
various things
<pie_>
first one is zfs_prop_valid_keylocation
<clever>
name another!
<pie_>
yes spl is in lsmod
<pie_>
do i need to reload spl as well
<clever>
then you also need to reload spl
elux has joined #nixos
<elux>
hi there
<elux>
What’s the best way to mount a remote file system on a server to my local box over the net? Sshfs?
<pie_>
clever ok i reloaded several old modules now its down to procfs_list_install and _uninstall _destroy _add
<clever>
pie_: did you mess with the channels before the nixos-rebuild?
<clever>
or use -I on nixos-rebuild?
<pie_>
no i did not
<pie_>
no
<__monty__>
elux: Probably nfs.
<pie_>
sidenote, the reason i didnt run rmmod was i thought nixos rebuild would to that
<pie_>
clever, sheesh it worked, looks like last time i mist have fat fingered the actual spl unload step after i unloaded the transitive things, or forgotto do it
<hyper_ch>
hmmm, I can't get displayport to work on linux.... I have this nice usb-c docking station and when I boot up windows, it works and if I boot up linux it doesn't... well, all works except for the monitor if they are attached using displayport :(
<boxscape>
since today, I can suddenly not execute nix-shell anymore or install anything, nix-shell is failing with "/tmp/nix-shell-2717-0/rc: line 1: source: /nix/store/7whxa62xjyfylxhww5w9ppjpsl4x9rim-stdenv-linux/setup: cannot execute binary file". Any idea what I should do?
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @doronbehar opened pull request #69863 → luaPackages.pulseaudio: init at 0.1 → https://git.io/JeZ61
fpob has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
fpob has joined #nixos
<{^_^}>
[nixpkgs] @laikq opened pull request #69864 → friture: init at 0.36 → https://git.io/JeZ6S
<{^_^}>
[nixpkgs] @AmineChikhaoui opened pull request #69865 → sdImage: add option to enable bzip2 compression → https://git.io/JeZ69
alex`` has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xkapastel has joined #nixos
ilyagotfryd has joined #nixos
Henson has joined #nixos
ilyagotfryd has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @doronbehar opened pull request #69866 → hasmail: init at 2019-08-24 → https://git.io/JeZ6d
<clever>
boxscape: what options is /nix mounted with? what does that setup file contain?
<Henson>
clever: thanks for the pkgs.pkgsi686Linux.buildFHSUserEnv suggestion
<{^_^}>
[nixpkgs] @Infinisil opened pull request #69868 → nixos/nix-daemon: Prevent network warning when checking config → https://git.io/JeZ6x
<boxscape>
clever I don't recall doing anything special to mount /nix, how would I find out those options? It appears to be a read-only file system. The setup up, if I'm seeing this right, actually doesn't exist.
<jluttine>
how can i make some systemd service startable by any user? i now tried the following: i wrote a simple wrapper script that just runs `systemctl start foobar` and then i use `security.wrappers.foobar-start-script` to set user to root. but when i ran this wrapper, i still needed to authenticate..
<clever>
jluttine: have you looked into systemd user services?
<clever>
jluttine: or the sudoers file?
<pie__>
hm....my backlight doesnt work anymore...
<jluttine>
not sure if it's ok to use user services in this case.. only at most one instance of the service should be running at any given time
<pie__>
the software doesnt see it
<jluttine>
clever: haven't looked at sudoers file, i'll have a look
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @jonringer to release-19.09 « python3Packages.flit: fix tests and packaging (#69546) »: https://git.io/JeZiH
<pie__>
ok for some reason its just my xbacklight thats broken
<pie__>
light works...
<boxscape>
clever: it's done. It found about 200 paths that were modified.
<boxscape>
the path in which the setup file is is included in changed paths
<boxscape>
s/changed/modified
<mrus>
hey there! Is there anything that can/needs to be configured in nix' configuration in order to enable a LVM SSD cache, or could I simply run the lv* commands myself?
<clever>
boxscape: have you had any improper shutdowns lately?
<boxscape>
yes... I wasn't able to put my computer to sleep or shutdown yesterday because it said a shutdown process is already in progress
<shyim>
srhb, yep . I found it. It was $HOME/.config/nix/nix.conf
<clever>
boxscape: that corrupted some files, try doing a `nix-collect-garbage` to see if it can delete the corrupt ones
<dsg>
How do I specify which channel to use for a nixops deploy? I can't find anything relevant in the options listing of the NixOps manual
<clever>
dsg: nixops modify -d name foo.nix -I nixpkgs=something
<clever>
2019-09-28 11:48:09 < pie_> ah ok, but i just meant for the usersapce, like nix-shell -I nixpkgs=channel:nixos-unstable zfs or something
<clever>
# nixops modify -d house deployments/house.nix -I nixpkgs=https://github.com/nixos/nixpkgs/archive/dae9cf6106d.tar.gz
<clever>
dsg: i prefer setting it to a specific rev, but you can also point it to a local channel (managed by nix-channel) or just directly to a channel
<boxscape>
clever: hm, nix-collect garbage doesn't seem to have changed things. It didn't delete the stdenv-linux path
<dsg>
Thanks :)
<clever>
boxscape: try running `nix-store --delete` on that path, and dont use the force flag
<boxscape>
clever: "cannot delete since it is still alive"
<clever>
boxscape: you will need to depending on what {censored} is, you will need to delete it, but the safe way to do so differs depending on what it is
<boxscape>
clever in case that wasn't clear, I didn't censor it, that's literally the output of the command
<clever>
boxscape: lol!
<clever>
boxscape: try the --query as root?
<boxscape>
ah, good idea
<boxscape>
clever one or two dozen /proc/<number>/environ lines
Ariakenom has joined #nixos
<clever>
boxscape: do you have a nix-shell open?
<clever>
boxscape: what pid/process do the <number>'s refer to?
<boxscape>
clever I'll check that in a second, after closing a nix-shell there's only two paths left, so that's a start
<boxscape>
clever: the remaining two processes don't seem to actually exist, or at least the paths don't exits in /proc
<clever>
boxscape: check `ps aux` to see if that pid exist, and re-check the --query
<boxscape>
clever: It was different paths every time, I think they were processes induced by the actual nix-store --query command. I tried the delete command again, it works now. Which also fixed nix-shell, so I think I'm all good now. Thanks so much for your help!
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
boxscape: dont use `sudo nix-store`, but rather `sudo -i` then `nix-store --query`
<boxscape>
ah okay
o1lo01ol1o has joined #nixos
<clever>
`sudo nix-store` puts it into sudo's path and arguments, so now sudo is "using" the path
<boxscape>
Oh, I see, that makes sense
mexisme has joined #nixos
<boxscape>
I'll be sure to check here first next time nixox tells me that a shutdown process is already in progress...
<boxscape>
s/nixox/nixos
<clever>
also, ive only ever seen such corruption on ext4
<boxscape>
okay
<clever>
ive never had issues like this on zfs
<boxscape>
good to know
<clever>
but the journal= flag for ext4 may solve things
<clever>
the default, is to only ensure the fs itself survives, but data can be lost (files get set to 0 bytes in size)
<{^_^}>
[nixpkgs] @JakeStanger opened pull request #69877 → rofi-mpd: init at 1.1.0 → https://git.io/JeZPl
<boxscape>
okay
<{^_^}>
[nixpkgs] @vcunat pushed to master « nixos network-interfaces.nix: fixup after the last change »: https://git.io/JeZP4
o1lo01ol1o has quit [Ping timeout: 245 seconds]
mexisme has quit [Ping timeout: 240 seconds]
<pie__>
whats the proper way to refer to the python executable in a nix expression?
chiefgoat has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @vcunat pushed to release-19.09 « nixos network-interfaces.nix: fixup after the last change »: https://git.io/JeZPB
<higherorder>
Hey! Is the Nix manual the best place to learn about Nix from first principles?
chiefgoat has quit [Remote host closed the connection]
<pie__>
infinisil: can you add maybe nix-1p and learnxiny to some newb starting points list
<pie__>
for the bot
<infinisil>
,help pie__
<{^_^}>
pie__: Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<pie__>
lul
<infinisil>
:P
<infinisil>
I haven't seen anything defined for newbie starting points
<pie__>
ill add something, but its going to be a "better than nothing" because im distracted
<pie__>
clever: i dont actually want to disable it because i want the hardware to work
<pie__>
clever: the problem is im trying to access the bluetooth in an android vm and its not working. it may or may not be because the host system is still poking it or something idk
<pie__>
im desperate at this point because i cant find anything on why its nto workign
<alexbakker>
I'm facing a strange issue trying to apply a kernel patch
<pie__>
hmm looks like stopping bluez worked
<pie__>
i wonder if the hardware still works idk how any of this bluetooth junk works
<alexbakker>
I added the following entry to the boot.kernelPatches list: { name = "ryzen-3000-temp-1"; patch = "/etc/nixos/patches/linux/ryzen-3000-temp-1.patch"; }
<clever>
alexbakker: dont quote the path
<alexbakker>
I run nixos-rebuild switch, which then tells me the file doesn't exist, while it does
<alexbakker>
clever, oh, huh
<alexbakker>
why is that?
<clever>
alexbakker: the build is ran in a sandbox, and only the files nix knows you depend on are visible
rpg has quit [Read error: Connection reset by peer]
<clever>
alexbakker: unquoted paths are their own type, that will be copied in as needed
<alexbakker>
clever, ah that makes sense, thanks
<alexbakker>
yep, that fixes it, thanks clever
o1lo01ol1o has joined #nixos
lassulus has quit [Read error: Connection reset by peer]
<l3333>
is there a channel for hydra?
<clever>
l3333: most hydra stuff is in this channel
<l3333>
thanks clever
lassulus has joined #nixos
<pie__>
is it possible for su to give a user a group temporarily? i wonder if you can do stuff like tha
<sphalerite>
pie__: not sure about su, but you can use sudo -g groupname
<vika_nezrimaya>
Setting up Postfix as a mail service. I seem to have some problems with SASL authentication on port 587. Saslauthd is configured properly. Postfix is at (mostly) default NixOS settings
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
<durka>
Where do I find the list of options for a package? For example in /etc/nixos/configuration.nix I have `services.xserver.libinput.enable = true;` but where would I find that out?
<tilpner>
nurelin: The borg will probably yell at you for using string over str
wtv_nick has quit [Remote host closed the connection]
<tilpner>
nurelin: You also specify no defaults, so every option needs to be set by the user. This would break many peoples configs
<srhb>
Furthermore, I don't think a str will save you from accidentally injecting a secret.
<LnL>
since it's a nixos module the nixos tests will be most relevant, in this case try nix-build ./nixos/tests/hydra in the repo
ddellacosta has quit [Ping timeout: 240 seconds]
<nurelin>
the problem I had was that i forgot the double-quotes around the path to the ssh private key, which got imported within the store with 0444 permissions
<nurelin>
Which made ssh refuse to use it
<nurelin>
and I had no clue why for a long time
<infinisil>
nurelin: To prevent it from ending up in the store you should add `apply = toString` to the sshKey option definition
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeZDv
<{^_^}>
[nixpkgs] @worldofpeace pushed to release-19.09 « syncthingtray-minimal: rename from syncthingtray-minumal »: https://git.io/JeZDU
l3333 has quit [Quit: Ping timeout (120 seconds)]
fusion809 has joined #nixos
<ivan>
does anyone here run a lot of NixOS machines, is there configuration you manage more dynamically cluster-wide with e.g. consul, or does everything go into NixOS configuration?
<ivan>
I'm trying to decide how to manage all my wireguard configuration
rmeis has quit [Ping timeout: 265 seconds]
justanotheruser has quit [Ping timeout: 276 seconds]
<pie_>
ok found it in the logs, pain to link it right now, apparently bluez needs to be compiled with --enable-deprecated
<pie_>
apparently hcidump may or may not be deprecated just because the original author isnt working on it, not because its bad
<pie_>
but thats just one random forum post i looked at
<esclear>
Hey. I'm currently trying to package software that relies on libpq. Shouldn't postgresql.lib suffice for these purposes? Because if I specify only postgresql.lib as buildInput, cmake won't find libpq.
<hyperfekt>
pie_: lol i vaguely remember having the same issue but not what the result was. could be that there's some kind of replacement that can do the same thing?
<higherorder>
clever: I am reading https://nixos.org/nixos/nix-pills/our-first-derivation.html ; how are out paths computed? They contain a hash, which I naively thought was like a hash of the content of the built derivation, but since the out path is known before building the derivation that cannot be
<iqubic>
So I just ran nixos-rebuild switch, and saw this in the outputed log: "warning: you don't have Internet access; disabling some network-dependent features"
knupfer has joined #nixos
<iqubic>
Since others can see my message, that's clearly false.
<clever>
iqubic: the nix sandbox disables network access during the build
<iqubic>
Ah. Makes sense.
<iqubic>
Thanks.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iqubic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « osinfo-db: 20190805 -> 20190920 »: https://git.io/JeZSM
ddima_ has joined #nixos
<ddima_>
hey. maybe somebody has a moment to have a look at merging this one, it has been open for a while (for master and 19.09): https://github.com/NixOS/nixpkgs/pull/68716
<esclear>
Oh. An I have another issue: I just updated my system and now for some reasons my printers don't show up in the gnome printing dialogues of firefox and evince anymore, although they are listed in the cups webinterface and I can print testpages from there.
<esclear>
Interestingly there is not even a print to pdf option anymore.