<fzakaria>
How can i write a NixOS module whose option is an attrset of attrset; then in the _config_ portion of the module; i want to set a new key-value in each value
<cole-h>
The problem exists in your Nix configuration
blueberrypie5 has joined #nixos
sigmundv has joined #nixos
<zeta_0>
cole-h: how would you recommend that i troubleshoot this, should i remove the .emacs that's appended to the import, or try to find what is causing the collision, and i hope colemickens comes back, he helped me set this up.
blueberrypie has quit [Ping timeout: 240 seconds]
<cole-h>
I already told you what is causing the collision -- you have both emacs and emacsWithPackages in your packages somewhere.
etrepum_ has joined #nixos
etrepum has quit [Ping timeout: 240 seconds]
jboy has quit [Ping timeout: 240 seconds]
etrepum_ is now known as etrepum
<cole-h>
zeta_0: It looks to be in your home-manager configuration, not your NixOS configuration, FWIW
jboy has joined #nixos
<zeta_0>
cole-h: ok, i see emacs in the import: `((import
<zeta_0>
"/home/zeta/nixpkgs" {}).emacs)` and i'm using`emacsWithPackages` in my emacs overlay, so these 2 must be what's colliding.
<cole-h>
Yes
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUnvl
gluegadget has quit [Ping timeout: 240 seconds]
<zeta_0>
cole-h: would you recommend that i remove the appended .emacs of the import? i don't know why colemickens recommended that.
<fzakaria>
infinisil: I have a module with secrets encrypted; i was wondering if as part of the setup for the module; i can assign a key to the sub-type of it's value decrypted.
<fzakaria>
(if that made sense)
<zeta_0>
cole-h: or i could substitute emacs with emacsWithPackages.
<cole-h>
I'd recommend removing anything you don't understand :)
Heirlung has quit [Ping timeout: 240 seconds]
gluegadget has joined #nixos
<cole-h>
But the reason he probably recommended that is so you can get emacs from your nixpkgs checkout. If you're using emacs-overlay, that sounds useless.
knerten1 has quit [Ping timeout: 240 seconds]
SrPx has quit [Ping timeout: 240 seconds]
kharon has quit [Ping timeout: 240 seconds]
Heirlung has joined #nixos
ris has quit [Ping timeout: 272 seconds]
kharon has joined #nixos
SrPx has joined #nixos
gleber has quit [Ping timeout: 240 seconds]
<infinisil>
fzakaria: Still no clue, an example would come a long way
s1341 has quit [Ping timeout: 240 seconds]
s1341 has joined #nixos
gleber has joined #nixos
<zeta_0>
cole-h: ok, i removed it: (import "/home/zeta/nixpkgs" {}) , now its throwing another error: https://dpaste.org/9DLT
<zeta_0>
cole-h: oh and i already changed the packet tracer section to: (import "/home/zeta/nixpkgs" {}) , which still throws an error.
<cole-h>
Well, yeah, you don't want to do that
<cole-h>
Because nixpkgs isn't a package
<cole-h>
That's probably your problem
<cole-h>
Remove that line
<colemickens>
...
<colemickens>
the package was supposed to be on the end of it
<colemickens>
sorry, I had to duck out and apparently have to duck out again, I'll be around tomorrow zeta_0 if cole-h doesn't get you squared away, sorry for disappearing on you
<cole-h>
colemickens: (I had them remove that because they're using emacs-overlay's emacsWithPackagesFromUsePackage)
<zeta_0>
colemickens: ok, i understand, i think i'm almost there, bit this import code is causing me problems.
<colemickens>
cole-h: the point was never to use emacs though
<colemickens>
they're trying to just pull one package from another nixpkgs checkout on disk
<cole-h>
Oh
<cole-h>
lmao
<cole-h>
zeta_0: OK, so put that line back, but add the actual package you want, not emacs
<euank>
It will be cleaner to bind that import to something with a let though, and it'll let it be evaluated less often I think.
domogled has quit [Quit: domogled]
<cole-h>
We can try that after we get this working :)
<euank>
so instead of having any `(import "/some/path" {}).package` in your package list, up where you have `let unstable = import <unstable> {};` ...
<cole-h>
No need to add more complexity when even this much is somewhat problematic.
<zeta_0>
cole-h: i changed it to: `((import "/home/zeta/nixpkgs" {}).packet-tracer)` (i'm not sure if that's the correct package name though, for packet tracer!)
<euank>
You could add `myNixpkgs = import "/path" {};` and use `myNixpkgs.pkgName` in the list itself
<cole-h>
zeta_0: Whatever is on the left side of the equals in `.... = callPackage ./.../packettracer/default.nix {}`
<euank>
Yup, agreed on getting it working first, just a tip to save some parentheses
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
sigmundv has quit [Ping timeout: 256 seconds]
nixbitcoin has joined #nixos
nixbitcoin_ has quit [Ping timeout: 240 seconds]
<zeta_0>
packet-tracer did not work so i tried: `((import "/home/zeta/nixpkgs" {}).packettracer)` , and it threw another error: https://dpaste.org/YKHL
<zeta_0>
cole-h, euank: ^
maier has joined #nixos
<cole-h>
zeta_0: qt56 doesn't exist
<cole-h>
(anymore)
<euank>
That sounds like `callPackage` didn't have `qt56` scope to pass to it. It should be using the callPackage from that nixpkgs, so that nixpkgs is just a broken repo I guess
nixbitcoin has quit [Remote host closed the connection]
<euank>
It ended up not being quite right. You could try patching it up more (i.e. bump the qt version or such), or you could check out the old nixpkgs commit exactly which will have that qt version
maier has quit [Ping timeout: 260 seconds]
h0m1 has quit [Ping timeout: 258 seconds]
<euank>
but may be bad for some other reason (the rest of nixpkgs there being a couple years old)
<euank>
Presumably, in your repo it's not. I'd probably just try bumping the qt version to whatever it is in your nixpkgs commit and see if that works
<zeta_0>
i can't be spending all day on this, i already have virtualbox setup, so i can install ubuntu on it, and then install packet-tracer from there.
<euank>
It'll help to have a quicker way to test it than doing a full home-manager rebuild. If you run `nix-build /home/zeta/nixpkgs/default.nix -A pkgs.packettracer`, that should show you that error and let you iterate a bit more quickly on fixing stuff.
<zeta_0>
ok i did that and its still missing qt56
<zeta_0>
where do i go from here?
<euank>
What cole said makes sense; try changing qt56 to qt5 in the two places it shows up in the package, see if that works
<euank>
You can also look at the list of attribute names in `pkgs/top-level/all-package.nix` to figure out what qt versions are available in your patched up nixpkgs
<cole-h>
qt5 qt512 qt514 qt5Full qt5ct
doublex has quit [Ping timeout: 260 seconds]
<cole-h>
Those are all the qt5* attrs available
<euank>
Did zeta push their nixpkgs commit somewhere?
<zeta_0>
the error message says it's here: `/home/zeta/nixpkgs/lib/customisation.nix:69:16` so i'll change the version in that path.
<cole-h>
No
<cole-h>
zeta_0: No
<cole-h>
It doesn't exist in there
<zeta_0>
well tell me where to go, and i'll go there and change it, also what what qt version do you recommend that i use?
<euank>
By 'two places it shows up in the package..' I meant 'in pkgs/.../packettracer/default.nix', whatever that full path is
<cole-h>
The only thing that has to do with it, is that's how nixpkgs lets you override packages with e.g. overrideAttrs
<cole-h>
zeta_0: I just ddi
<cole-h>
zeta_0: Change qt56 to qt5 in the packettracer derivation
<zeta_0>
ok i'll look now, sorry for the misunderstanding !
<euank>
No worries, nix definitely can spit out some non-obvious / unintuitive errors
<euank>
zeta_0: allowUnfree is a per-nixpkgs configuration, which can be configured on import. In all likelyhood you just need to tweak it for that one repo
nixy has quit [Ping timeout: 246 seconds]
<euank>
so where you've got right now `import "/home/zeta/nixpkgs" {}`, you probably want `import "/home/zeta/nixpkgs" { config = { allowUnfree = true; }; }`
<euank>
to allow it for that import specifically. Turning it on for another nixpkgs import won't affect that one since you're passing a default config (import ... {}) to it
night has quit [Read error: Connection reset by peer]
<euank>
Hopefully that makes sense
ddellacosta has quit [Ping timeout: 246 seconds]
Guest52826 has quit [Ping timeout: 264 seconds]
boegel has quit [Read error: Connection reset by peer]
puck has joined #nixos
tghume has quit [Ping timeout: 264 seconds]
bgamari has quit [Ping timeout: 246 seconds]
bgamari has joined #nixos
NightA has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<zeta_0>
euank: yes that makes sense, and ok, i'll try that out now, one second !
orivej has joined #nixos
jbox has joined #nixos
tghume has joined #nixos
jbox is now known as Guest26937
toothbrush has joined #nixos
boegel has joined #nixos
<toothbrush>
Hey all. I've put programs.xss-lock.enable = true;
<toothbrush>
.. in my configuration.nix, but it's not working. I'm using lightdm and Xmonad. There's an error showing in `systemctl status xss-lock.service`:
<toothbrush>
Error getting session: GDBus.Error:org.freedesktop.login1.NoSessionForPID. However, `env | grep XDG_SESSION_ID` is set, and ` loginctl show-session 5` shows sensible output..
<toothbrush>
I wonder if anyone knows where i can dig?
<zeta_0>
euank, cole-h: ok, i fixed the syntax errors: `((import "/home/zeta/nixpkgs" {config = {allowUnfree = true;};}).packettracer)`, time to try out another rebuild !
<{^_^}>
#93764 (by evenbrenden, 6 weeks ago, open): nixos/displayManager: add XDG_SESSION_ID to systemd user environment
<toothbrush>
euank: i'll have a look, thank you!
nixy has joined #nixos
<toothbrush>
euank: i'm running on 20.09, but unfortunately i'm a nixos noob still - how would i pass this environment variable to xss-lock before the PR is merged?
<zeta_0>
euank, cole-h: ok, when i try `nixos-rebuild switch` it's throwing an error that has to do with the cisco website: https://dpaste.org/WToe
<cole-h>
zeta_0: Then follow the instructions? There's nothing we can help you with, there.
<euank>
toothbrush: looks like it requires some changes for the display manager too. I'm not really sure the best way to patch that in locally
<euank>
I think you could do something like `let experimentalPRNixpkgs = (import builtins.fetchTarball "https://github.com/..../archive/$commit.tar.gz" {});`, and then ....
<toothbrush>
euank: ah, ok. maybe it's best to wait for that PR to be merged? Am i right in understanding that if i'm following channel 20.09, i'm basically tracking master?
<euank>
I've definitely done something like that before to replace a nixos module with a patched one. I'd be a little wary of doing it if the nixpkgs versions differ enough though.
<euank>
Is 20.09 the same as nixos-unstable?
<toothbrush>
I _think_ so?
<zeta_0>
euank, cole-h: ciscos's website does not have packet-tracer 7.1 anymore, would it be hard to update the packettracer.nix file to use packet-tracer version 7.3 ?
<euank>
Unstable's close enough to tracking master. It waits for a hydra build for it too before it promotes
<toothbrush>
okay so probably i'll just live with the brokenness for a bit then :)
<toothbrush>
since we're on the topic, i've noticed that my screen goes black after a few minutes. how would i make it just stay on until i tell it otherwise? I've seen internet forums mention "xset s" and other invocations, but that doesn't feel nixos-y?
<drakonis>
21.09 not out yet?
<euank>
What I said above should work; since you're not that far from the current nixpkgs modules, it's not that scary to do and it would probably just work
<zeta_0>
to be more specific, it uses packet-tracer version 7.3.1
<euank>
But waiting works too, totally up to you
<toothbrush>
euank: i guess if it fails i can try the famous rollback!
<euank>
I mean, in all probability any failure will be _before_ it activates, so you won't even have to. If it blows up, I'd expect it to be "this nixos module field was renamed"
<cole-h>
,tias zeta_0
<{^_^}>
zeta_0: Try it and see! (then tell us what you saw)
<euank>
zeta_0: sounds like you get to update the packettracker default.nix to use a new version of the artifact then :)
<euank>
it shouldn't be too hard
<drakonis>
oops
<drakonis>
20.09
<toothbrush>
okay, i'll see if i can adapt your example - thanks for your help!
<zeta_0>
ok, i'll give it a try !
<energizer>
i need help with python poetry if anybody has a minute.
<cole-h>
drakonis: lol
<cole-h>
drakonis: Branch-off happened today
<drakonis>
oh nice
<euank>
Oh, toothbrush, one other option would be to git clone nixpkgs locally, fetch that commit, and then `nixos-rebuild switch -I nixpkgs=/local/checkout/path` (as mentioned here https://nixos.org/manual/nixos/stable/#sec-custom-packages )
<drakonis>
i see that the tree with the improved acme changes is in
<cole-h>
drakonis: ZHF starts this week, beta starts next week
<cole-h>
(Tentatively)
<zeta_0>
euank, cole-h: in the packettracer directory, do i just need to change default.nix, or do i need to change the build.sh file as well?
<euank>
Now that I think about it, that's a less fragile way to try a PR than my previous "just disable/import a few specific modules" approach, even if both probably work in this case
<cole-h>
zeta_0: I would suggest you try it yourself, and if one isn't sufficient, try the other :)
<zeta_0>
ok
<toothbrush>
euank: wouldn't that roll back all my other packages to the state whenever that PR branch was created off master?
<euank>
Yup, indeed, unless you rebased the PR locally
<toothbrush>
yeah i could do that too probably
<toothbrush>
fine let me try that!
ajmcmiddlin_ is now known as ajmcmiddlin
lunaa has joined #nixos
<zeta_0>
the default.nix file requires a tar file, but the download from the cisco website is now a .deb file, can i still get it to work by changing the file name to a .deb file?
<zeta_0>
name = "Packet_Tracer_${version}_for_Linux_64_bit.tar";
<zeta_0>
but the file is: `PacketTracer_731_amd64.deb`
orivej has quit [Ping timeout: 265 seconds]
<zeta_0>
one obstacle after another !
orivej has joined #nixos
lunaa has quit [Client Quit]
<zeta_0>
euank, cole-h ^
hadrien has left #nixos ["Killed buffer"]
<euank>
there might be other nixpkgs that deal with extracting debs and shuffling things around appropriately; could be worth grepping to see if any are helpful. Just renaming the file won't be enough since it's a diff format (ar vs tar), and almost certainly a different directory structure within
zangi has joined #nixos
<cole-h>
No idea, I haven't touched a .deb file in probably 5 years, if not more.
<zeta_0>
i'm screwed then !
<zeta_0>
should i just give up now, and just install ubuntu on virtualbox?
<cole-h>
Up to you. Welcome to yak shaving.
<toothbrush>
euank: alright, it's installing the world. fingers crossed!
<abathur>
imo, it's not good to try to figure out something new in Nix when you're up against a wall/deadline
<abathur>
if you've found the wall, I'd just go with the VM
<zeta_0>
ya, i give up, tell colemickens about my progress if i have time later, we can finish fix this packettracer build.
<abathur>
but if you've still got time and feel like you'd want to get this to work in Nix eventually anyways...?
<zeta_0>
i already have virtualbox setup, time to install ubuntu !
nikivi has joined #nixos
<euank>
I'd offer to try and help package it, but it's behind an account wall and not free software :(
<zeta_0>
well, later, i'm calling it a day, thanks for the help !
<{^_^}>
[nixos-homepage] @samueldr pushed to feature/2020-r/main « index.tt: Make the search form actually work »: https://git.io/JUnTh
kroh has quit [Remote host closed the connection]
maier has joined #nixos
jonringer has quit [Ping timeout: 264 seconds]
maier has quit [Ping timeout: 260 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #nixos
davetapley has quit [Ping timeout: 246 seconds]
vdemeester has quit [Read error: Connection reset by peer]
vdemeester has joined #nixos
zgrep has quit [Ping timeout: 260 seconds]
dongcarl has joined #nixos
davetapley has joined #nixos
wpcarro has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
m0rphism has quit [Ping timeout: 256 seconds]
jared-w_ has quit [Ping timeout: 258 seconds]
jared-w_ has joined #nixos
Supersonic112 has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
Supersonic has quit [Ping timeout: 256 seconds]
Supersonic112 is now known as Supersonic
<samueldr>
okay, so quick recap
<samueldr>
it seems like fonts on my main computer just decided to die out and stop working, all around
<samueldr>
but without changing nixpkgs version
<samueldr>
just after a rebuild
<cole-h>
nix-diff to the rescure? :D
<cole-h>
uh
<cole-h>
s/rescure/rescue/
<samueldr>
probably won't help considering booting the previous generation doesn't help?
cjpbirkbeck has quit [Quit: Goodbye, take care]
iqubic has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #97416 → mypaint: fix crash without hicolor-icon-theme → https://git.io/JUnIn
<iqubic>
I have a laptop with a built-in fingerprint scanner. Is it possible to use this on NixOS?
<samueldr>
it all depends on the specific scanner, and hardware support in the Linux kernel
<samueldr>
oooh... I fixed it... but if it's what I think it is it might not be good
<iqubic>
Yeah. That will be the issue. It's a goodix fingerprint scanner, so it's got like zero support.
dramforever has joined #nixos
Heirlung has quit [Ping timeout: 240 seconds]
<samueldr>
okay, solved it...
koh has joined #nixos
<samueldr>
if on 20.03 your fonts are broken after running an app (which??) from unstable, clearing the font cache or refreshing it will solve the problem
<samueldr>
e.g. rm -rf ~/.cache/fontconfig or fc-cache -r
<samueldr>
that's not a solution to the underpinning problem, but a way to make things work again
<samueldr>
underlying problem*
Heirlung has joined #nixos
lotharn has quit [Ping timeout: 260 seconds]
<iqubic>
I was going to say my fonts weren't broken, but then I realized that I'm not actually on 20.03
mmohammadi9812 has joined #nixos
<iqubic>
I'm running 100% unstable
lotharn has joined #nixos
detran has joined #nixos
lotharn has quit [Max SendQ exceeded]
lotharn has joined #nixos
jmeredith has joined #nixos
rprije has joined #nixos
ensyde has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
realisation has quit [Ping timeout: 265 seconds]
ManiacOfMadness has joined #nixos
veleiro has quit [Ping timeout: 265 seconds]
realisation has joined #nixos
<{^_^}>
[nix-mode] @rossabaker opened pull request #107 → Check for process before completing in nix-repl → https://git.io/JUnqm
Havvy has quit [Read error: Connection reset by peer]
Havvy has joined #nixos
ensyde has quit [Quit: WeeChat 2.9]
zgrep has joined #nixos
ensyde has joined #nixos
pjt_tmp has joined #nixos
<Graypup_>
getting a The ‘fileSystems’ option does not specify your root file system. while installing nixos
<Graypup_>
for some reason it is indeed the case that the root fs is not listed in the autodetected config
malook has joined #nixos
<Graypup_>
i did a fucky wucky and didn't mount it lmfao
malook has quit [Client Quit]
malook has joined #nixos
xd1le has quit [Remote host closed the connection]
<Graypup_>
i guess that's why it didn't work, I messed up haha
<cole-h>
The beta begins next week. Channels will probably appear when the various hydra things finish
<Ke>
yes
<cole-h>
Well, there y ago
<cole-h>
ya go*
<GolDDranks>
I checked the binaries to be indeed, fully statically linked with file and ldd
<Ke>
thanks
<GolDDranks>
So, I'm not quite sure how Nix works here. I read in the documentation that it tries to search the hashes of the dependencies from the result?
<GolDDranks>
It thinks that the two deps are runtime dependencies, which means that their hash is contained somewhere in the result, right?
<Ke>
GolDDranks: try nix why-depends
<V>
GolDDranks: when Nix builds a package, it scans through all files produced and marks packages it finds references to as runtime deps
<V>
So it automatically knows what runtime dependencies a package has
<Ke>
GolDDranks: you can just grep inside the binaries
<V>
(of course this is a heuristic and isn't perfect)
<GolDDranks>
Okay, why-depeneds shows that there is a reference inside file /nix/store/PKGHASH_PKGNAME/nix-support/propagated-build-inputs
<GolDDranks>
That seems to be a text file
buckley310 has joined #nixos
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 256 seconds]
<Graypup_>
GolDDranks, is this haskell per chance?
<V>
no, dropbear is C AFAIK
<GolDDranks>
No, this is dropbear that depends on zlib, both are C
<Graypup_>
shoulda read the commit ♀️ my error
<V>
there being a reference in that file means that zlib is in propogatedBuildInputs
<energizer>
hey can someone who's on unstable try installing python3Packages.pendulum and run `python3 -c'import pendulum; print(pendulum.__version__)'`
<{^_^}>
[nix] @abathur opened pull request #3996 → Macos big sur fixes → https://git.io/JUn3Z
<bradparker>
Not sure if this is the best place to ask. I'm trying to get Ansible + some Linode module for Ansible working from within a Nix-Shell on macOS. I can get a shell with both the correct Linode API python module and Ansible installed (as a python module also). For some reason the Ansible executable "can't see" the Linode API python module.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradparker>
I also tried creating a "python with packages" containing the Linode module and then using `.override` to set it as the "top level" Ansible executable's python3. But then the executable uses a different (newer) python version than the one I supplied anyway.
GolDDranks has quit [Remote host closed the connection]
<bradparker>
In that shell I can happily run ansible and I can also write python scripts that import "linode_api4". But ansible fails to look up "linode_api4"
aleph- has quit [Ping timeout: 240 seconds]
LeshaInc has joined #nixos
<joesventek>
Anyone else having issues building a system configuration on nixos-unstable using systemd-boot?
<euank>
Is there anything more to the ansible module system than PYTHONPATH? It looks like ansible's python path contains that at least
cole-h has quit [Ping timeout: 258 seconds]
<joesventek>
Apparently it is due to `bootctl status` returning a non-zero exit code. But looking at its output I don't see any issues being reported.
wak-work has joined #nixos
sascha has joined #nixos
sascha is now known as Guest35326
<joko>
Hey, does Hydra support PR evaluation of flake repositories?
<bradparker>
euank: I don't know, sorry. Do you think the interpreter being in a different location could be throwing it off? Ansible complains and mentions this path /nix/store/51ly5wgcjmv9g23156kjsd4x9m102zxf-python3-3.7.8/bin/python3 but I have this one in the shell /nix/store/va522zrw44yxjr58z03s5978ndrbk0pa-python3-3.7.8-env/bin/python3
<euank>
bradparker: for me, the error was 'Failed to import the required Python library (linode-python)' rather than linode_api4
<euank>
And if I changed your shell.nix to just use `nixpkgs.python37.withPackages(packages: with packages; [ ansible linode ]);` instead, it got further at least
<bradparker>
Ah, we're using `linode_v4` somewhere in our playbooks
<dramforever>
Hey, we're shipping channels starting at 'alpha0' apparently
<dramforever>
Is this new?
<dramforever>
version alpha0, i mean
<euank>
bradparker: seems like both those packages might be required (one for your stuff, one for ansible). Does tossing in that extra python package end up working?
<bradparker>
Hrm, no. Same error. Apparently before now they've just been pip-installing only linode_api4
<euank>
is there an easy way to repro it locally? Some minimal playbook or one-shot module command?
<bradparker>
Hrm, lemme see
<euank>
And is the error specifically about it failing to load linode_api4?
<euank>
Huh, interesting, I don't reproduce that error on linux
<euank>
I get to a "invalid oauth token" error, meaning I think it loaded the python module just fine
peelz has quit [Read error: Connection reset by peer]
peelz has joined #nixos
cr4y1 has joined #nixos
<bradparker>
Huh, interesting. Thanks a bunch for having a look :). I might have a crack at these interpreter settings and see if that helps.
<euank>
I also have two different python interpreters at play fwiw
<euank>
Oh, actually, no, I take that back
civodul has joined #nixos
<euank>
chasing down the #! in `/nix/store/.../bin/.ansible-wrapped` and the python wrapped by `$(which python)` in that shell do both give me the same thing. There are something like 3 layers of wrapper scripts here you can poke through to see what PYTHONPATH is being set for various things.
m0rphism has joined #nixos
<euank>
Unfortunately, I'm well out of my depth, and I can't repro it on nixos, so I don't think I'll be any help. Good luck.
alp has joined #nixos
<bradparker>
Been a huge help. Thanks again :)
jonringer has joined #nixos
malook has joined #nixos
turbo_MaCk has joined #nixos
<{^_^}>
[nixpkgs] @zowoq pushed 3 commits to release-20.09: https://git.io/JUnGj
<turbo_MaCk>
is systemd-boot-builder.py broken on most recent unstable?
mmohammadi9812 has quit [Ping timeout: 260 seconds]
mmohammadi9812 has joined #nixos
mmohammadi9812 has quit [Ping timeout: 256 seconds]
nixbitcoin has quit [Remote host closed the connection]
<zeta_0>
does anyone here know how to get qemu up and running correctly? virt-manager returned this: https://dpaste.org/bS72
nixbitcoin has joined #nixos
buffet6 has joined #nixos
<immae>
zeta_0: virtualisation.libvirtd.enable = true should be enough, is that what you did?
<immae>
(+ adding libvirtd to your groups if you want to use it as a user)
buffet has quit [Ping timeout: 240 seconds]
buffet6 is now known as buffet
zecnate has joined #nixos
nixbitcoin has quit [Remote host closed the connection]
<zecnate>
New to nixos. What is the command to fetch and install a specific revision of nixpkgs? I see `nix-channel --add URL` and `nix-channel --update` but I want something like `nix-channel --fetch URL HASH`.
<zeta_0>
immae: so far i've placed this in configuration.nix:
<zeta_0>
but i haven't add libvirtd to groups, so i'll do that now !
<{^_^}>
[nixpkgs] @cohei opened pull request #97429 → skktools: enable to build on mac → https://git.io/JUnnG
<immae>
zeta_0: adding libvirtd to groups won’t solve your issue I think
<zecnate>
The reason I want this is because I'm experimenting with using a nixos docker image to set up a reproducible build for my project, so I need to "pin" the specific revision of nixpkgs used inside the docker file. `nix-channel --update` would not be reproducible.
<zecnate>
Is there a general guide for this use case of using Nix for reproducible builds?
<zeta_0>
immae: do i need to place it into extraGroups option of my user?
<immae>
yes
<immae>
Did you restart after enabling the kernelModules ?
<zecnate>
I'm attempting to explore nixos with `docker run -ti nixos/nix` and struggling.
<zecnate>
First issue: `nix-channel --help` gives some error about `man nix-channel` failing. So I tried `nix-env -i man` but that didn't work. (I'm kind of fumbling blindly here.)
<{^_^}>
[nixpkgs] @cohei opened pull request #97431 → skk-dicts-unstable: enable to build on mac → https://git.io/JUnn6
<zecnate>
Next I wanted to figure out which derivation provides `env` and I see this ticket: https://github.com/NixOS/nixpkgs/issues/1751 -but that approach doesn't work for me.
<{^_^}>
#1751 (by jameshfisher, 6 years ago, closed): Which package provides file "foo"
cfricke has quit [Client Quit]
<zecnate>
If I run `command-not-found env` I get `/bin/sh: command-not-found: not found`.
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<zecnate>
Are there recommended steps to upgrade this docker image shell environment into a proper interactive nixos user environment?
aw has joined #nixos
spacefrogg has joined #nixos
dramforever has joined #nixos
alexherbo2 has joined #nixos
zeta_0 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta_0>
immae: nope, i rebooted, but virt-manager is still returning the same error message.
<Graypup_>
(imo everything in that state directory should be stuffed into the database, but that's a Big Opinion for later on the app side)
<Ke>
then you need static user
<Graypup_>
coolio so I just make up an id >399 since nix promises not to eat those?
<immae>
zecnate: I’m trying to understand your situation, first are you using nix or are you on the nixos operating system?
<zeta_0>
immae: it says it's having trouble finding the default kvm, i have both amd-kvm and intel-kvm setup, so maybe that's what's confusing it, since it worked out of the box for you, what are the exact steps that you did?
<Ke>
in my opinion using dynamic users is best practice when possible, ie. no persistent state needed etc.
<Ke>
ie. when you could just run as nobody/nogroup
<immae>
zeta_0: ah I don’t have amd-kvm in my list, so maybe that’s why?
<Graypup_>
I so so so want no persistent state haha it's just a question of getting approval to put the time into making it so
<immae>
it didn’t have a way to get confused
<zeta_0>
immae: ok, i'll remove it and check to see if that fixes it.
<zecnate>
@immae: I'm running the `nixos/nix` docker container, which I assume is a standard nixos setup.
<zecnate>
Ok, is there a reliable nixos docker container image?
<Graypup_>
afaik no, but unsure. I think the way it works is that people build containers on their host systems and deploy them
<immae>
I could build you one, but I don’t know if there are "public" ones
<zecnate>
@graypup_ Thanks! I am not running nixos, though, so I can't use that derivation. Is there an image published on docker hub?
<Graypup_>
zecnate, hm interesting because I'm not either haha
<immae>
zecnate: you can install nix on non-nixos system
<Graypup_>
and it defo builds on my computer
<zecnate>
@immae I've done that in the past. For this project that doesn't fit the requirements.
<Graypup_>
which is, by the way, arch linux, on WSL2 on Windows ;-)
<immae>
zecnate: well that would let you build a nixos docker container and then you can throw away nix if you want
thc202 has joined #nixos
<zecnate>
The requirements are: the users have docker, and they are unwilling to install nix. They can use docker to create a reproducible build of the project.
<Graypup_>
ah, well you don't need nixos for that?
sangoma has joined #nixos
<zecnate>
Ok. I realize I was assuming there'd be an "official" Docker image for nixos releases…
<immae>
to my knowledge there’s none
<zecnate>
@graypup_ I was hoping to use Nix as a dependency management system and build orchestrator.
captn3m0- has joined #nixos
<zecnate>
Ok.
<immae>
but you can do that ^ on any system, you don’t need to be on nixos
<immae>
(using nix)
mvanwaveren has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #97432 → allegro: fix build, use texinfo6_5 → https://git.io/JUnc2
<immae>
so if you install nix on your debian-or-arch-or-whatever system then you can build docker containers like you want
<zecnate>
@immae: as I said, a requirement is that users don't need to install nix.
<immae>
yes but you can prepare them a docker image
<dramforever>
as in, not manually but okay if something came with nix, or just no nix at all
captn3m0 has quit [Ping timeout: 260 seconds]
<dramforever>
which one do you mean by 'unwilling to install nix'?
<zecnate>
Ok, so I could install Nix on my own system to generate a project-specific docker image with nixos on it, then distribute that to my users, who then use that docker image to run nix-build to build the software…
<immae>
yes
<Graypup_>
zecnate, yeah you've definitely got a good case for a container-with-nix-in-it
<zecnate>
I think the main difference between me generating my own docker image and "an official one" is simply that there would hopefully be more eyes on the official one to fix bugs, catch security issues, etc…
<zecnate>
Anyway, I do think that approach where I distribute my own docker image is feasible, it's just another layer I wasn't anticipating.
<zecnate>
@Graypup_ good to hear it makes sense to Nix people.
<zecnate>
How do Nixers refer to themselves, btw? Nixies?
<zecnate>
If the use case seems baroque or weird to you, wait until you see what I'm trying to replace. :-)
<Graypup_>
nix is such a useful tool, but oof the complexity is real. I had to learn it because it was seemingly the only way to get working ghcjs packages, and also haskell stack barely works for me
zeta_0 has joined #nixos
euandreh has quit [Remote host closed the connection]
aborsu has quit [Quit: aborsu]
jonringer has quit [Ping timeout: 256 seconds]
<zecnate>
The system I'm trying to replace is hand-woven out of posix-compliant makefiles which track dependencies by hash, fetch tarballs, build, etc… Then for reproducible builds, users have to run a blessed vm image, so there's a severe bootstrapping problem.
euandreh has joined #nixos
<Graypup_>
holy crap they reimplemented a nix-like in make
<Graypup_>
that is amazing
<zecnate>
Ok, next step on this project would be to learn about building docker images from nix. I'm wondering if it'll be easier to get running with Nix on debian or if I should install nixos on an lxc container. I think I may prefer the latter.
<Graypup_>
nixos and nix are totally different things :)
<zecnate>
Does anyone have a feel for what the most popular installation of Nix itself is? Is it mostly nixos users or is it actually Nix-on-debian or something like that?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<Graypup_>
nixos is "what if operating system but nix", and nix is a really sweet build tool
aw has joined #nixos
<zecnate>
I understand that, but what's most important for me is to be in the largest user base (so that docs tend to match my case, bugs tend to get ironed out quicker, etc…).
<zeta_0>
immae: i think libvirtd was working the whole time, i'm guessing it was because by default virt-manager tries searching for a remote ssh connect, but after chaning the option to qemu/kvm user session, virt-manager now seems to work out-of-the-box !
wfranzini has joined #nixos
<zeta_0>
immae: thanks for the troubleshooting tips !
<immae>
oh
spacefrogg has joined #nixos
<Graypup_>
you absolutely can just run it in debian and it's probably going to be easier. the commands are the same, the outputs are the same. it's just a q of whether your system config is being managed by nix or not
<immae>
so only the client was buggy?
<zecnate>
Thanks for the feedback. Ttyl.
<dramforever>
zecnate: Given that 'just Nix' is a strict subset of 'NixOS', I think you can go with the former
<Graypup_>
^
<zecnate>
Oh wait, is there a guide/readme/howto for generating docker images with nix?
wfranzini has quit [Client Quit]
<dramforever>
And NixOS is definitely *not just* Nix but it's a whole system
<dramforever>
it also handles system configuration
<dramforever>
So it means there's actually a middle option: Nix in a container
<Graypup_>
i read the section in the nixpkgs manual, then gave up and searched the entirety of github for examples
<zeta_0>
immae: ya, i think it was virt-manager's default setting that was the problem.
<zecnate>
@graypup_ the only time I've run nix was on debian and I recall hitting two or so blockers in setting it up. Next time if I encounter them again I'll file doc patches or at least tickets.
<Graypup_>
also, as someone who literally just started using nixos today for a deployment it is incredibly nice and easy (but I came out of writing project scaffolding with nix so I more or less understand how it works)
<immae>
zecnate: Grahamc blog post might be a little more advanced than what you want to do now :)
<dramforever>
it sounds like your users are in fact developers and they're going to build stuff
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
mananamenos has joined #nixos
lotharn has quit [Ping timeout: 260 seconds]
<zecnate>
@dramforever: If I show up with a project that relies only on a dependency I'm sure they already have (Docker) that's way easier to sell than if I show up saying "ok, to switch to this new build system, first install Nix"...
<zecnate>
Some of them use mac and windows, btw. No idea if nix is easy to install there.
<immae>
(it’s almost impossible on latest mac’s)
<zecnate>
It might be possible, it's just a matter of streamlining to sell it well to the rest of the team. ;-)
<zecnate>
Gotta run. Thanks everyone!
<dramforever>
Well if they have Docker just put it in a container :)
zecnate has quit [Remote host closed the connection]
<dramforever>
You know, Linux
<immae>
Well he’ll figure out a usage I guess :)
jb55 has quit [Remote host closed the connection]
<Graypup_>
it runs on windows with wsl2 but i have absolutely no idea if it works in wsl1 and it /definitely/ doesn't run natively
jb55 has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
<dramforever>
The thing I'm a bit worried is that their build system gets replaced with a black box Docker image
<Graypup_>
dramforever, perhaps, or it could be seen as putting the tools in the docker image, but the build system kept outside in the source directory :)
maxdevjs has quit [Ping timeout: 244 seconds]
malook has quit [Quit: malook]
cr4y1 has joined #nixos
<dramforever>
And now the build system probably can't be 'incomprehensible' Nix code
<dramforever>
So maybe the use case ends up being that Nix provides the dependencies, which it can perfectly do, of course
teto has joined #nixos
<dramforever>
But at this point I'm just guessing what's going on
cr4y1 has quit [Read error: Connection reset by peer]
cr4y1 has joined #nixos
peelz has quit [Ping timeout: 260 seconds]
mmohammadi98121 has joined #nixos
mmk2410[m] has joined #nixos
Cadey has quit [Ping timeout: 246 seconds]
mmohammadi9812 has quit [Read error: Connection reset by peer]
mmohammadi98121 is now known as mmohammadi9812
<Graypup_>
blargh the caddy module was fixed 15 minutes ago, which is GREAT but also I need it now ;-;
Cadey has joined #nixos
GolDDranks has joined #nixos
<srk>
it's just git pull away
zgrep has quit [Ping timeout: 240 seconds]
<GolDDranks>
Hi, I quick question! I want to do a bind mount like this, and have it always mounted on boot: mount -o rw,noexec,nosuid,nodev,bind /chroot/dropbox_home/ /chroot/dropbox/home
<GolDDranks>
How should I do this idiomatically in NixOS?
<GolDDranks>
I tried with systemd.mounts, but it didn't mount automatically
zgrep has joined #nixos
<Graypup_>
srk, well yea but I want binaries for the rest of my project. not like that's ever stopped me before though ^^
<Graypup_>
maybe i *will* just niv update it to master haha
<srk>
Graypup_: cherry-pick is also an option, but then you need to maintain a branch
<GolDDranks>
Ah, seems like I need to specify the mount, and also specify that it in automounts
mvanwaveren has left #nixos [#nixos]
mvanwaveren has joined #nixos
zgrep has quit [Excess Flood]
zgrep has joined #nixos
<Graypup_>
srk, that indeed constitutes the problem. sod it, I have a big computer, I can just build anything that needs building
<mvanwaveren>
Hello, I would like to install Nix in a multi-user installation. I see the installer creates new users in a new group.
<Graypup_>
nix has completely poisoned my mindset lol, putting dependencies on 15 minute old software, reading the source code for documentation nearly exclusively, etc. oof
sputny has joined #nixos
<GolDDranks>
I can't see it creating .mount files anywhere...
<mvanwaveren>
Hello, I am a Nix newbie. I would like to install Nix is a multi-user installation. I see the installer creates new users and a new group. Questions: (a) will any user be able to use Nix in this multi-user installation ? (b) Why the new users and the new group ? (c) The installer says I can change the group name. Can I change it ao an existing
<mvanwaveren>
group ?
<srk>
Graypup_: yup, that's the nice thing about it. with big computer you can just build most stuff from master and catch breakage early
zgrep has quit [Ping timeout: 260 seconds]
zgrep has joined #nixos
<Graypup_>
srk, i may or may not have bought a ryzen 9 out of impatience with build times recently
<srk>
Graypup_: :)) I've upgraded my workstation to older 6-core xeon to not have to wait for builds so long (mostly due to cross compilation and occasional nixos-rebuild of the workstation from master)
<dramforever>
mvanwaveren: The new group is nixbld which means 'Nix build', so for (a) the answer is that nixbld is not relevant and you should check the config options allowed-users and trusted-users
lotharn has joined #nixos
<dramforever>
For (b) I think the answer is to run builds in a user that isn't a normal user (to minimize interference) and isn't root either (because running as little as root possible is in general a good idea)
knupfer has joined #nixos
<dramforever>
For (c), is that still a question after the answers to (a) and (b)?
sigmundv has joined #nixos
<dramforever>
If you try builds, you'll see that they run using the nixbld* users
tmaekawa has joined #nixos
<mvanwaveren>
dramforever: does this mean that any user can do a build, but behind the scenes the build is done by the newly created user.
<GolDDranks>
Ah, found the mounts. They were in /etc/systemd/system/chroot-dropbox-home.mount etc. But they don't work for some reason. Whew, this is so exhausting :(
<Graypup_>
curious mostly: is there any particular reason why nix builds don't use something like the systemd dynamic users?
GuillaumeChrel[m has quit [Quit: Idle for 30+ days]
<Graypup_>
mvanwaveren, i think the nix daemon gets the request, becomes that user and runs the build
ZeroCostAbstrac4 has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
tmaekawa has quit [Client Quit]
<dramforever>
yup
<dramforever>
You can set allowed-users to... set the allowed users
khassanov[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<mvanwaveren>
dramforever: ok, I think I understand it now better. I will install.
mukayu[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<Graypup_>
aha it is basically the same thing as dynamic users in systemd only it keeps the users around
derrecklowe[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
flip[m] has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
hienergy[m] has quit [Quit: Idle for 30+ days]
hydridity[m] has quit [Quit: Idle for 30+ days]
jabarszcz[m] has quit [Quit: Idle for 30+ days]
SourOatMilk[m] has quit [Quit: Idle for 30+ days]
srgancap[m] has quit [Quit: Idle for 30+ days]
travelion[m] has quit [Quit: Idle for 30+ days]
pachumicchu has quit [Quit: Idle for 30+ days]
tolja[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
{Adam}[m] has quit [Quit: Idle for 30+ days]
knupfer has quit [Ping timeout: 260 seconds]
magnetophon has joined #nixos
<Graypup_>
Ke, I could use StateDirectory actually, but more problematically I need to manage postgres auth
<Graypup_>
and would prefer to use peer uath
<Graypup_>
*auth
<Graypup_>
which pretty much precludes dynamic users I think
<GolDDranks>
All right, it was about setting the target. `wantedBy = [ "local-fs.target" ];` did the trick, and now it mounts.
Darkmatter66 has quit [Ping timeout: 256 seconds]
ezemtsov has joined #nixos
malook has joined #nixos
<Ke>
Graypup_: sure
<Ke>
I would not assume nixos has any dynamicusers support for statedirectory either
zupo has joined #nixos
ezemtsov has quit [Remote host closed the connection]
alexherbo24 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo24 is now known as alexherbo2
civodul has quit [Remote host closed the connection]
civodul has joined #nixos
joebobjoe has joined #nixos
alexherbo28 has joined #nixos
mallox has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo28 is now known as alexherbo2
ezemtsov has joined #nixos
mallox has joined #nixos
<{^_^}>
[nixpkgs] @fgaz opened pull request #97435 → isso: fix build, switch to python 3, add a test → https://git.io/JUn4B
<ezemtsov>
Hi people. Trying to wrap opm-project.org into nix derivation. Currently stuck on opm-grid repo which is using opm-common as dependency. I defined opm-common reference in `propagatedBuildInputs = [ opm-common ];` but make is still failing with "make[2]: *** No rule to make target '/nix/store/vglskifrxgc9g1v4w85jwpvls6071mkr-opm-common-2020.04//nix/store/vglskifrxgc9g1v4w85jwpvls6071mkr-opm-common-2020.04/lib/libopmc
<ezemtsov>
ommon.a', needed by 'bin/finitevolume'. Stop."
<ezemtsov>
What am I doing wrong, why is the path doubled?
<ezemtsov>
Hi can I debug such cases?
<dramforever>
Basically try to find what you're doing that's making the make command
malook has quit [Quit: malook]
<q3k[m]>
it looks like the makefile in opm-common is borked, probably doing some blind path concat
<dramforever>
How does that even work
<q3k[m]>
you can pass a -K to nix-build to make it leave things behind so you can inspect them
<dramforever>
Can you share the full expression in say a repo or pastbin?
<damjan>
hi all, I'm trying to build uwsgi with php support. is it normal php-config doesn't have any ldflags? it prevents linking to all the libraries in --libs http://vpaste.net/hCuIx
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}>
[nixpkgs] @filalex77 merged pull request #97439 → [20.09] nixos/caddy: add support for caddy v2 → https://git.io/JUnEk
<{^_^}>
[nixpkgs] @filalex77 pushed 8 commits to release-20.09: https://git.io/JUn2V
chenhq2005_ has quit [Ping timeout: 264 seconds]
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
chenhq2005 has joined #nixos
LogicalOverflow has joined #nixos
mariatsji has quit [Ping timeout: 244 seconds]
Darkmatter66 has joined #nixos
<{^_^}>
[nixpkgs] @oxalica opened pull request #97444 → rust-analyzer: 2020-08-24 -> 2020-09-07 and some clean-up → https://git.io/JUna5
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
mallox has joined #nixos
chenhq2005 has quit [Ping timeout: 246 seconds]
simonpe^^ has joined #nixos
Darkmatter66 has joined #nixos
<simonpe^^>
I just did `nix-channel --upgrade` and `nix-env -iA nixpkgs.nix` and it started compiling everything from scratch (which I don't have time to wait for). Why did this happen and how do I prevent it in the future?
<pingiun>
how can I enable passwordauthentication only for some users? with passwordAuthentication = false, I cannot seem to use a Match with PsswordAuthentication yes
galagora has joined #nixos
<pingiun>
it seems to have to do with PAM, but I don't know how I can fix it
<galagora>
Does hydra build Haskell packages with all GHC versions, or just the haskellPackages one (8.8.4)?
<pingiun>
oh nvm it seems like I was just doing something else wrong
FRidh has quit [Quit: Konversation terminated!]
<galagora>
And if it's the latter, how is the blessed version selected?
alexherbo21 has joined #nixos
mmohammadi98128 has joined #nixos
emacsomancer has quit [Read error: Connection reset by peer]
xensky has quit [Quit: i quit]
<evanjs>
romildo: " { name = "vim"; } # dracula theme" -- mmmm are you sure that's right? that's looking for a plugin called "vim"
<evanjs>
clever: is there some way I can invoke rg against an expression in nixpkgs?
<evanjs>
came up with this `rg dracula $(nix-instantiate --find-file nixpkgs/pkgs/misc/vim-plugins/vim-plugin-names)` but idk if that's the cleanest way lol
<evanjs>
romildo: ^
emacsomancer has joined #nixos
<evanjs>
one way of querying attrs in the vim-plugin-names list without needing to keep a local checkout or etc
dermetfan has quit [Ping timeout: 240 seconds]
maier has joined #nixos
alexherbo25 has joined #nixos
alexherbo2 has quit [Ping timeout: 258 seconds]
alexherbo25 is now known as alexherbo2
<clever>
> pkgs.hello.meta.location
<{^_^}>
attribute 'location' missing, at (string):323:1
<clever>
> pkgs.hello.meta.loc
<{^_^}>
attribute 'loc' missing, at (string):323:1
<romildo>
evanjs, this vim section in my configuration.nix is old and do not remember the details. I am not an expert on vim and I do not know the details anymore. I will try your suggestion. If not working I will remove this dracula thing.
<nixbitcoin>
Where can I add build options to the NixOS kernel?
<clever>
evanjs: one minor issue there, is that `nix edit` changes the args to the editor dynamically
<inquisitiv3>
I've installed Pycharm using Nix on my Fedora machine. My problem is that Pycharm doesn't seem to find my fonts that I've placed under `~/.local/share/fonts`. Libreoffice (also installed with Nix) doesn't seem to find the font either.
<clever>
evanjs: if it looks like vim, it adds args to jump to the right offset in the file
<evanjs>
clever: lol I was _just_ wondering how I'd go about args
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUnPv
<david-sawatzke[m>
Hi, I'm trying to install a proprietary linux ide (with toolchain) using `buildFHSUserEnv`, but it needs sudo for some reason (even though it's installing to a local directory) and sudo completly breaks. Is there a way to fix this/another way to do this?
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<galagora>
OK wait. What's wrong with your sudo in the first place? Why can't you run `sysctl`? What's the output of `ls -ld $(which sudo)` and `file $(which sudo)`?
alexherbo20 has joined #nixos
mariatsji has quit [Remote host closed the connection]
growpotkin has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo20 is now known as alexherbo2
realisation has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixops-aws] @andir opened pull request #112 → efs mount targets: allow passing a subnetid as Nix attrset → https://git.io/JUnMX
<{^_^}>
#69338 (by JohnAZoidberg, 50 weeks ago, open): SUID wrappers do not work in buildFHSUserenv.env
galagora has quit [Remote host closed the connection]
maier has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos
realisation has quit [Ping timeout: 260 seconds]
galagora has joined #nixos
<david-sawatzke[m>
galagora: Feared that might be the case, but didn't find that issue. Thanks for the help, guess I'll need to go the docker/container route
<david-sawatzke[m>
Since it includes the whole toolchain, there are quite a few binaries to patch, and I'm not even sure how to, since it comes with a weird self-extracting java installer
realisation has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
serge90[m] has left #nixos ["User left"]
sangoma has quit [Ping timeout: 246 seconds]
mdlayher has left #nixos [#nixos]
Extends has joined #nixos
realisation has quit [Ping timeout: 260 seconds]
LysergicDreams has quit [Quit: leaving]
arjen-jonathan has quit [Ping timeout: 244 seconds]
<evanjs>
i.e. nixos-rebuild works fine, but it fails when trying to recompile xmonad upon launch, seemingly because it isn't checking out the right version of xmonad-contrib
cole-h has joined #nixos
realisation has joined #nixos
<evanjs>
The overlay it is defined in is eventually added to nixpkgs.overlays, etc
mariatsji has quit [Ping timeout: 272 seconds]
fresheyeball has quit [Ping timeout: 260 seconds]
fresheyeball has joined #nixos
Siyo has quit [Quit: Bye]
Siyo has joined #nixos
<cole-h>
bqv: Do you know why `builtins.currentSystem` doesn't seem to exist in any of my imported config files? Are we not allowed to use it in flake-ified configs?
eoli3n_ has joined #nixos
mananamenos has quit [Ping timeout: 260 seconds]
realisation has quit [Ping timeout: 256 seconds]
<evanjs>
cole-h: I would imagine not without --impure or etc bt ¯\_(ツ)_/¯
<cole-h>
Yeah, fair. Guess it's time to add `inherit system;` to my specialArgs >:)
proofofkeags has joined #nixos
Pratzkas has joined #nixos
Pratzkas has quit [Remote host closed the connection]
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUnSm
Extends has joined #nixos
endformationage has joined #nixos
GolDDranks has joined #nixos
sangoma has joined #nixos
<GolDDranks>
Does NixOS has support for quotas? I can't find hardly anything
<simpson>
GolDDranks: There's some support for the xfs_quota subsystem specific to XFS, but not the Linux quota subsystem, which is what I assume you want.
<simpson>
(I searched "quota" in the manual using $(man configuration.nix))
<Ke>
looking at ubuntu tutorial, things like that should just work in nixos
<Ke>
simpson: not sure how ambitious are you, but in general you absolutely can not use nixos based on just nixos docs anyway, so it's better to not provide docs for distro independent parts, unless you make them so good other distro users will use them
<GolDDranks>
My filesystem options are autogenerated at the moment, can I specify just the options bit in the configuration.nix?
<Ke>
I mostly use archlinux docs for nixos, since that's what google often gives you for generic desktop topics
<GolDDranks>
Or should I move the relevant filesystem to configuration.nix in totality
<Ke>
GolDDranks: the options are probably merged, but you can just edit the options there
<Ke>
GolDDranks: just do not generate new configs again
<simpson>
I would generally expect that a subsystem which typically has special users created, has special files configured, needs kernel modules, etc. might need some supporting distro-level configuration.
<Ke>
I don't even use hardware-configuration.nix, it's in no way mandatory
<Ke>
maybe
<judson>
Is there a docbug about buildGoModule? I'm trying to set modSha256, but I get an error about "missing vendorSha256"
<cole-h>
modSha256 is deprecated (or even removed) in favor of vendorSha256, IIRC
<Ke>
I am not sure it does?
<Ke>
I did not find anything nixos could do for quotas on a quick glance
<infinisil>
Damnit cole-h, stop finding mistakes in my commit messages! :P
<cole-h>
infinisil: >:)
<Ke>
GolDDranks: just in case, you do know, what config merging means?
<Ke>
for configs
<GolDDranks>
Not sure entirely sure! I could think two ways
neeasade has joined #nixos
<Ke>
GolDDranks: it means that if you have some imports, things like lists that are present in both are frequently concatenated to produce the end result
<Ke>
you also have things like mkDefault and mkForce that allow you to change this behaviour, I believe
<GolDDranks>
I see, merging sets makes pretty much sense but concatenating lists can be confusing
GolDDranks has quit [Remote host closed the connection]
alp has joined #nixos
orivej has joined #nixos
mariatsji has quit [Remote host closed the connection]
fresheyeball has quit [Quit: WeeChat 2.7.1]
<judson>
I'm trying to build a Go program that includes a DLL style module (it's experimental) - as a result a "build everything" style approach isn't working.
mariatsji has joined #nixos
aborsu has joined #nixos
mmohammadi9812 has quit [Read error: Connection reset by peer]
mmohammadi98122 has joined #nixos
<mjrosenb>
error: unsupported builtin function 'buildenv'; builder for '/nix/store/srrkbklr85rnjl1dnvwa5pbc07y0sx3m-user-environment.drv' failed with exit code 1 -- is there any way to figure out what is referencing this non-existent builtin function?
<mjrosenb>
I remember I did something silly a while back because as soon as a RC of python-3.9 was available, nix wanted to upgrade to that. I wonder if I installed nix by accideent durning that hubub.
maier has quit [Ping timeout: 264 seconds]
<mjrosenb>
should it be safe for me to nix-env --unistall nix as my non-root user?
<galagora>
Yes
<galagora>
You don't have to have anything installed using nix-env
<galagora>
thoughtpolice: Can I hit all the packages in Nixpkgs so that they get cached in Joburg or does that not count as "being gentle"? Downloading from the shield is very slow...
urkk_ has quit [Ping timeout: 240 seconds]
urkk has joined #nixos
aborsu has quit [Quit: aborsu]
alp has quit [Remote host closed the connection]
alp has joined #nixos
<{^_^}>
[nixpkgs] @WilliButz opened pull request #97463 → codimd: build with nodejs-12_x instead of nodejs-10_x → https://git.io/JUnQV
<mjrosenb>
is /nix/var/nix/profiles something that is normally used when running on macos? or is this something special that I got because I tried to install nix-darwin?
<{^_^}>
[nixpkgs] @cole-h opened pull request #97464 → cantata: add perl for dynamic playlists → https://git.io/JUnQQ
<mjrosenb>
ok, in that case, why did I not get a new default profile there when I upgraded nix? /Library/LaunchDaemons/org.nixos.nix-daemon.plist is still starting nix-daemon from 2.0.4
Darkmatter66_ has joined #nixos
acarrico has quit [Ping timeout: 258 seconds]
Darkmatter66 has quit [Ping timeout: 260 seconds]
est31 has quit [Remote host closed the connection]
<evanjs>
to clarify... everything seems to rebuild fine, but when attempting to start display-manager and etc, it fails to recompile xmonad, and it looks like it isn't using "unstable-2020-06-23", but the upstream "0.16", instead
<nij>
Hello.. some of the programs don't run fonts correctly.. instead of characters I see boxes with letters inside.
<nij>
But it works fine with my qutebrowser and terminal..
sangoma has quit [Ping timeout: 265 seconds]
<nij>
I wonder if I need some standard fonts.. any thoughts?
Extends has quit [Remote host closed the connection]
<infinisil>
energizer: Check out pkgs/top-level/python-packages.nix, the functions toPythonModule and hasPythonModule
<infinisil>
energizer: Adding `pendulum = self.toPythonModule (nixpkgs-unstable ...)` at least makes it attempt to build pendulum from there
<infinisil>
Note how `hasPythonModule` checks for `drv.pythonModule == python`, meaning it requires it to be instantiated with the exact same python version for it to be considered "having a python module"
<infinisil>
By using `toPythonModule` this gets kind of overwritten
<infinisil>
I suspect you probably need to use an overlay/override to make nixpkgs-unstable build pendulum with the python version of stable
shibboleth has joined #nixos
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<energizer>
infinisil: is it possible to use the new version of pendulum without going via nixpkgs-unstable?
<infinisil>
overlays I guess
<infinisil>
override the pendulum version in nixos-20.03 to a newer one with an overlay
<infinisil>
Not sure how well that works, but maybe you can try
<energizer>
where will it get poetry-core if i do that?
malook has joined #nixos
<infinisil>
No idea
<infinisil>
Not sure why that would be a problem either
<infinisil>
And no idea what peotry-core is either :)
<energizer>
it's one of the arguments of pendulum
<{^_^}>
[nixos-homepage] @samueldr pushed to feature/2020-r/main « common.tt: Comment out dangling demo links »: https://git.io/JUnFC
<{^_^}>
[nixpkgs] @trevorcook opened pull request #97467 → Add an "addPackages" utility to python buildEnv → https://git.io/JUnFW
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nij>
I'm on archlinux and hope to manage my ~ with home-manager..
<nij>
Now I've created a new user just to test it out.
<nij>
I have nix installed from AUR, and home-manager installed from nix.. what should I do next?
<afreak>
nij: home-manager readme tells u next step, doesnt it?
<nij>
It does, so I added =htop= following it.
<nij>
Now it is in the nix store.
<afreak>
u should also let home-manager manage ur shell rc file, like bashrc if using bash, then u can just say fzf.enableBashIntegratein = true, and it just works, which is nice
<nij>
My new user also needs to be able to `sudo`, right?
<afreak>
it doesnt need sudo to use home-manager
magnetophon has joined #nixos
<nij>
Hmm.. ok.. lemme try it out
nij has quit [Quit: ERC (IRC client for Emacs 27.1)]
peelz has quit [Read error: Connection reset by peer]
<NobbZ[m]>
Someone has an idea how I could get JSON or other machine readable output from `nix flake show`?
<eacameron>
I have a rather simple runCommand build that just runs some tests. I need some of those tests to connect to a server (started from the test) on localhost. Is that possible in a nix-build?
<eacameron>
Or do I need to resort to the full blown nixos test infra?
arjen-jonathan has joined #nixos
knupfer has quit [Ping timeout: 244 seconds]
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos
<Raito_Bezarius>
is there an easy way to force redownload of a fetchTarball?
<NobbZ[m]>
"Raito_Bezarius" (https://matrix.to/#/@freenode_Raito_Bezarius:matrix.org) change the sha or name
spudly- has joined #nixos
spudly- has joined #nixos
spudly- has quit [Changing host]
sputny1 has joined #nixos
spudly has quit [Ping timeout: 260 seconds]
spudly- is now known as spudly
<cole-h>
Raito_Bezarius: You could do that ^ or use `--option tarball-ttl 0`
fendor has quit [Remote host closed the connection]
<zeta_0>
i enable the libvirtd service in nixos, started up a virtual machine and put ubuntu on it, this configuration works, but for some reason it's being very slow and sometimes freezes, any troubleshooting tips to help me fix this issue ? here's the full issue that i posted on reddit, if any of you want to take a look: https://www.reddit.com/r/NixOS/comments/iorlow/nixos_setup_libvirtdqemukvmvirtmanager_why_is_the/
page has quit [Ping timeout: 246 seconds]
<immae>
zeta_0: try -m 4G ?
corpix_ has quit [Remote host closed the connection]
<immae>
(i.e. giving more RAM than the default 128M)
MtotheM has quit [Read error: Connection reset by peer]
Havvy has quit [Ping timeout: 256 seconds]
<immae>
Ah it looks like you already did it
<cole-h>
worldofpeace++ jonringer++ ZHF time, let's go!
<{^_^}>
worldofpeace's karma got increased to 185
<{^_^}>
jonringer's karma got increased to 6
Havvy has joined #nixos
kalbasit_ has joined #nixos
<zeta_0>
immae: ya, i gave it 8 gib of ram, so that's plenty, i'm using qcow2, but someone told me to use raw instead, and i need to double check to see if the hardware virtualization is enabled.
<cole-h>
jonringer: btw, got some weird formatting in step 5 -- "[See also, (https://....)".
<immae>
zeta_0: do you have a way to check that your configuration is actualy what you think it is?
<immae>
(like running free -m or htop inside the vm to see that you actually have the resources you think it has)
<immae>
just in case there would be some thing to reload that virt-manager forgets to do
<zeta_0>
immae: i think that i need to find better nix documentation, the nix wiki on virtualization hasn't helped me much.
<immae>
To be honest your configuration (apart from the fact that I have only "kvm-intel") is exactly what I have and it runs blazingly fast provided that I give enough ram
arjen-jonathan has quit [Ping timeout: 246 seconds]
<zeta_0>
what section of the nixos wiki has more documentation on virtualization ? https://nixos.wiki/
<immae>
although I don’t use virt-manager and I run directly the qemu commands
<immae>
(you might want tot try that btw)
<zeta_0>
immae: that's fine, i just need better nix documentation on this, i'm not to familiar with virtualization, i was hoping everything would just work out of the box without any issues.
<immae>
ok (it should :p )
<immae>
Do you want to try a qemu-command that I polished for my use case, just to see if it’s only a parameter issue?
<zeta_0>
ya, i'm open to trying that out !
<immae>
(to answer your question about wiki page I only saw small chunks here and there and never anything really useful)
<damjan>
so, `buildInputs` should add linker flags for paths to libraries and include flags for the compiler. how do I debug what exactly the build step gets?
matthiaskrgr has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net - currently broken?]
<zeta_0>
clever: if i understand correctly, qemu comes automatically installed in nixos, but do i need any other tools installed to be a able to run a virtual machine ?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUcJZ
<zeta_0>
clever: i'll try a couple more things, but if i still can't get it to work, i'll just switch to virtualbox.
<{^_^}>
[nixpkgs] @cole-h opened pull request #97483 → [20.09] cantata: add perl for dynamic playlists → https://git.io/JUcJn
<clever>
zeta_0: i find qemu is better for automation and complex tasks, while virtualbox is better if you just want to run windows or ubuntu without any fuss
<zeta_0>
i forgot how do i get into bios, i keep tapping escape on reboot, but that doesn't work.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.09: https://git.io/JUcJE
<zeta_0>
clever: that's good, and this qemu/kvm stuff looks very useful but it's way over my head, time to switch back to virtualbox, thats more user friendly.