<tmciver>
Hey folks. I was able to get my first NixOS working last night (yay!) but I couldn't log in. The reason is obvious: I didn't set a password. I'd like to use immutable user config and it looks like I'm supposed to use hashedPassword for that.
<tmciver>
But I'm confused about how this is to be done. Do I calculate the hash on a different Linux system and then add it to the config file?
LnL has joined #nixos
LnL has joined #nixos
LnL has quit [Changing host]
<tmciver>
Or is there a way to do this on the one machine? It seems like a chicken and egg problem.
redkahuna has joined #nixos
ransom has joined #nixos
patagonicus138 has joined #nixos
redkahuna has quit [Ping timeout: 260 seconds]
<cole-h>
tmciver: hashedPassword is generated by using `mkpasswd -m sha-512` and entering the password you want hashed
LnL has joined #nixos
patagonicus13 has quit [Ping timeout: 272 seconds]
<tmciver>
cole-h: Yes, I read that but I didn't understand it. I installed NixOS from USB. I guess I was supposed to do that while editing my config file before the install. OK, I think I get it.
ddellacosta has quit [Ping timeout: 240 seconds]
<cole-h>
Indeed.
growpotk- has joined #nixos
anderslundstedt has quit [Ping timeout: 272 seconds]
LnL has quit [Ping timeout: 240 seconds]
<tmciver>
It seems that mkpasswd is not available in NixOS. Is it only available from the live USB OS?
LnL has joined #nixos
LnL has joined #nixos
LnL has quit [Changing host]
cjpbirkbeck has quit [Quit: Goodbye, take care]
<cole-h>
It's available in the `mkpasswd` package.
<cole-h>
But it is available by default in the live USB.
redkahuna has joined #nixos
anderslundstedt has joined #nixos
<tmciver>
Makes sense. I didn't install that package. Thanks.
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #99220 → lilypond: add patch to restrict embedded-{ps,svg} when -dsafe is used → https://git.io/JUyyX
redkahuna has joined #nixos
<hsngrmpf[m]>
When using nix unstable, how can is execute a program via `nix run` using arguments?
<hsngrmpf[m]>
`nix run nixpkgs#vim --help` doesn't
<hsngrmpf[m]>
`nix run nixpkgs#vim` works, but
<cole-h>
nix run nixpkgs#vim -c vim --help
redkahuna has quit [Ping timeout: 265 seconds]
<cole-h>
`nix run nixpkgs#vim` guesses the binary (I believe), and doesn't pass any arguments to it
<cole-h>
To pass arguments, you must run the comment with -c, I believe
<cole-h>
Ah
Shados_ has joined #nixos
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h>
hsngrmpf[m]: Pass `-- --help`
<cole-h>
hsngrmpf[m]: To disambiguate between passing `--help` to `nix run` vs passing it to `vim`
maxdevjs has quit [Ping timeout: 272 seconds]
edwtjo has joined #nixos
edwtjo has joined #nixos
edwtjo has quit [Changing host]
Shados has quit [Ping timeout: 260 seconds]
Fulgen has quit [Ping timeout: 260 seconds]
rotaerk has quit [Ping timeout: 240 seconds]
Fulgen has joined #nixos
rotaerk has joined #nixos
<hsngrmpf[m]>
Thanks! Is this documented somewhere?
growpotk- has quit [Ping timeout: 256 seconds]
<lordcirth_>
hsngrmpf[m], it's more of a general shell thing
<cole-h>
No, `--` is more of a typical unix commandline thing, to disambiguate where arguments are being provided
<hsngrmpf[m]>
<cole-h "nix run nixpkgs#vim -c vim --hel"> But at least this one should expect to find in `nix run --help` !?
<hsngrmpf[m]>
> <@freenode_cole-h:matrix.org> nix run nixpkgs#vim -c vim --help
<hsngrmpf[m]>
* But at least this, one should expect to find in `nix run --help` !?
<{^_^}>
error: syntax error, unexpected '<', at (string):324:1
zacts has joined #nixos
<cole-h>
You could consider `--` an "arg", in which case it would be covered under the `[ARGS...]` part of "Usage: nix run FLAGS... INSTALLABLE? ARGS..." ;)
<cole-h>
Feel free to file an issue on NixOS/nix if you think it should be added to the help, though.
ransom has joined #nixos
<hsngrmpf[m]>
OK. The `-c` thing doesn't work BTW `--` does
<hsngrmpf[m]>
* OK. The `-c` thing doesn't work BTW, `--` does
redkahuna has joined #nixos
la-jesystani has quit [Ping timeout: 272 seconds]
abathur has quit [Quit: abathur]
redkahuna has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #99222 → ganeti: init at 3.0.0rc1 → https://git.io/JUy9v
<cole-h>
tbh, I'd just change the usage line to have `[--]`
<cole-h>
(Indicating it's optional)
redkahuna has joined #nixos
azure2 has quit [Read error: Connection reset by peer]
azure2 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
ransom has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
redkahuna has quit [Ping timeout: 240 seconds]
alp has joined #nixos
<hsngrmpf[m]>
That, I think, would be very confusing for people not knowing the `--` operator, `[--]` could indicate all kinds of stuff. People might copy paste it as is. I think examples should be copy-paste-able.
<hsngrmpf[m]>
And the example is not wrong per se. It can just be written shorter in specific cases.
o1lo01ol1o has joined #nixos
<hsngrmpf[m]>
* That, I think, would be very confusing for people not knowing the `--` operator, `[--]` could indicate all kinds of stuff. People might copy paste it as is. I think examples should be copy-paste-able.
<hsngrmpf[m]>
And the example is not wrong per se. It can just be simplified in specific cases.
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<cole-h>
FYI, editing your messages doesn't translate very well to IRC... it sends new messages each time.
azure2 has quit [Read error: Connection reset by peer]
azure2 has joined #nixos
inkbottle has joined #nixos
ManiacOfMadness has quit [Ping timeout: 272 seconds]
zebrag has quit [Ping timeout: 256 seconds]
Sanchayan has joined #nixos
<hsngrmpf[m]>
uff. good to know
<radvendii>
there's no difference between file paths in "" and outside of "" in nix, right?
<cole-h>
"/somepath" is a string containing the text `/somepath`
<cole-h>
> "./." == ./.
<{^_^}>
false
<cole-h>
So, no, they are not the same.
<cole-h>
(Though some modules may treat them the same)
<radvendii>
oh, huh. I thought everyone was moving away from raw paths. can i put ${package.path}/bin/foo without quotes around it? I'm getting an unexpected DOLLAR_CURLY
<samueldr>
we're moving away from raw _urls_
azure2 has quit [Read error: Connection reset by peer]
<samueldr>
raw paths are required for many Nix features
<radvendii>
oh gotcha. that's what i was thinking of
<cole-h>
samueldr++
<{^_^}>
samueldr's karma got increased to 0b100010100
<cole-h>
Beat me to it.
azure2 has joined #nixos
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
invokesus has quit [Ping timeout: 260 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
alp has quit [Ping timeout: 272 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}>
[nixpkgs] @thall opened pull request #99228 → [20.09] pythonPackages.lmtpd: upgrade to Python 3 → https://git.io/JUydE
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}>
[nixpkgs] @thall opened pull request #99229 → [20.09] pythonPackages.pure-eval: upgrade to Python 3 → https://git.io/JUyd7
<{^_^}>
[nixpkgs] @thall opened pull request #99230 → python3Packages.pybase64: Upgrade to python 3 → https://git.io/JUydA
<radvendii>
so is it possible to have a path with a variable expanded? I'm looking for ${foo] not surrounded in quotes and not finding any. Is there some way to convert a string to a path or something?
<radvendii>
ah. toPath seems to be the way to go
<radvendii>
orrr not
<{^_^}>
[nixpkgs] @thall opened pull request #99231 → pythonPackages.pygraphviz: upgrade to Python 3 → https://git.io/JUyFL
justanotheruser has quit [Ping timeout: 272 seconds]
mjrosenb has quit [Ping timeout: 240 seconds]
mjrosenb has joined #nixos
pikajude has quit [Ping timeout: 272 seconds]
pikajude has joined #nixos
azure3 has joined #nixos
azure2 has quit [Ping timeout: 246 seconds]
azure3 has quit [Read error: Connection reset by peer]
azure3 has joined #nixos
oida has quit [Ping timeout: 240 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<cole-h>
radvendii: What do you mean "path with a variable"? Do you mean that you want something like `/asdf/${foldername}`?
<{^_^}>
[nixpkgs] @NicolasGuilloux opened pull request #99233 → Add Skipper and Pulpo package → https://git.io/JUybP
<cole-h>
If so: `/asdf + "/${foldername}"` is what you're looking for.
<cole-h>
> let folder = "somefolder"; in ./. + "/${somefolder}"
<{^_^}>
undefined variable 'somefolder' at (string):324:41
<cole-h>
> let folder = "somefolder"; in ./. + "/${folder}"
<{^_^}>
/var/lib/nixbot/state/nixpkgs/somefolder
invokesus has joined #nixos
oida has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
sangoma has joined #nixos
<radvendii>
weirdly enough it seems to be fine with strings that refer to absolute nix store paths, but not strings that refer to relative paths ¯\_(ツ)_/¯
cole-h has quit [Quit: Goodbye]
<radvendii>
but thanks, I honestly didn't even know you could + things of different types in nix
karantan has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azure3 has quit [Read error: Connection reset by peer]
<aiowej>
Hi. I'm getting Nixos to run on my Macbook (Model: Late 2013 Retina). It's working great, and I want to thank everyone involved in Nixos. One thing doesn't work, and it's the proprietary wifi driver. What I've tried: in hardware-configuration.nix, add import `<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>`, add `"wl"` to kernelModules, add `networking.enableB43Firmware = true;` to configuration.nix, and a whole lot of
<aiowej>
DDGing. Here is /etc/nixos/configuration.nix: http://ix.io/2zmh, and here is /etc/nixos/hardware-configuration.nix: http://ix.io/2zmi. Does someone have experience with this, and perhaps know a way to get the dumb proprietary driver to work?
medvid_ has joined #nixos
domogled has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
lord| has quit [Read error: Connection reset by peer]
domogled has quit [Remote host closed the connection]
<AWizzArd>
Now that my first project got Nixified I wonder how to build it. I saw that remote builds are supported. So if I configure that then Nix would manage everything that is required for compilation? Somehow my source code has to get there (that remote build machine).
sangoma_ has quit [Read error: Connection reset by peer]
arjen-jonathan has joined #nixos
<rawtaz>
AWizzArd: what project?
<AWizzArd>
rawtaz: company internal.
<AWizzArd>
rawtaz: I started with a smaller service in our infrastructure, which Nix can now build and dockerize. Next is to convince Jenkins/Gitlab to use Nix to build the stuff, and I am considering using https://nixbuild.net/
<{^_^}>
[nixpkgs] @JoeLancaster opened pull request #99248 → nixadd: init at 1.0.0 → https://git.io/JUSYa
<simonpe^^>
If someone here is familiar with niv, yesterday one of my build machines started producing different hashes for my builds and I'm trying to figure out why
<{^_^}>
[nixpkgs] @yorickvP opened pull request #99249 → [20.09] nixos/victoriametrics: escape newlines in ExecStart → https://git.io/JUSOJ
<immae>
AWizzArd: you’ll probably have a mix of "this derivation is available in cache.nixos.org, let’s take it there" (for dependencies, for instance) and "this one has to come from the local machine, let’s send it to the building machine" (for your sources)
<simonpe^^>
So over night, exactly the same build but different hashes
<simonpe^^>
What's the method to debug why hashes change anyway?
<AWizzArd>
immae: I heard about Cachix too. Do you think that Nixbuild & Cachix can be utilized by companies to have a very slim setup? All of the sources should stay confidential and such.
<immae>
That depends on your contract with nixbuild and cachix ;)
<immae>
but I suppose they’re done precisely for this kind of thing
n9nes has quit [Ping timeout: 256 seconds]
aiowej` has quit [Remote host closed the connection]
<simonpe^^>
immae: I actually don't know what changed, if I do `nix-instantiate` in the same repo on two different machines they yield different results
n9nes has joined #nixos
<simonpe^^>
immae: and if I peak into those generated derivations basically every dependency has a different hash
<simonpe^^>
I have no clue how I would go about figuring out what's wrong
<immae>
simonpe^^: you may start with nix-diff which I guess should show you a better diff
<simonpe^^>
And our build pipeline is stopped :/
<immae>
(a more concise one, to get the deeeep one that changed)
astrofog has quit [Read error: Connection reset by peer]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUSOQ
<immae>
(the first one I have on my machine and it has only two lines)
<simonpe^^>
they are both identical
<simonpe^^>
source $stdenv/setup
<simonpe^^>
genericBuild
n9nes has quit [Ping timeout: 240 seconds]
<simonpe^^>
same md5sum
<simonpe^^>
one thing that differs is the environment of the nix-daemon service, idk if that matters
<simonpe^^>
and also one of the machines have the other in its nix.conf as a substituter
<immae>
I don’t see how
<immae>
can you look at the diff between /nix/store/69lyjyca86317hdsc1rwf3ahn7s5kiyn-no-relocs.patch and /nix/store/bxmj2l6bm280rb3q11r8v87yi1api1vp-no-relocs.patch too ?
<immae>
Oh small hint at the end of the paste, what is in /nix/store/6amzmcvilfkhxhvzlgi38hgp1j ?
<immae>
(ah or most probably the paste is incomplete)
<simonpe^^>
so I'm using ansible on these ubuntu machines to install nix, and on one of them (the new machine we got yesterday) the ansible scripts weren't working so I randomly changed som ansible code and the install passed on both machines. The new machine could skip the build by re-using the cache from the old machine but the old machine started producing these weird problems
<immae>
could you check that the nix version is the same?
orivej has quit [Ping timeout: 240 seconds]
<simonpe^^>
its 2.3.7 on both of them
<immae>
ok
<immae>
I’m clueless sorry
rprije has quit [Ping timeout: 240 seconds]
<ocharles>
Y'all ok to help with me a general Linux question? I have a directory foo/ with foo/a and foo/b. I need to run executable X in this directory, and X will modify files in both foo/a and foo/b. I don't like what X is doing to files in foo/a, so I want to run X in a chroot. My question is: can anyone think up abuse of unionfs/overlayfs such that: writes to foo/a go to foo/a-cow, but any other writes to foo/ go to the original foo/?
<{^_^}>
[nixpkgs] @raboof closed pull request #98425 → inkcut: fix by using the standard qt5 version → https://git.io/JUzkO
<{^_^}>
[nixpkgs] @georgewhewell opened pull request #99255 → kodi: remove jre override, use jre_headless → https://git.io/JUSZ2
ikwildrpepper has quit [Ping timeout: 260 seconds]
ikwildrpepper has joined #nixos
emilsp has joined #nixos
lemsip has quit [Ping timeout: 256 seconds]
<immae>
simonpe^^: can you check /nix/store/720ikgx7yaapyb8hvi8lkicjqwzcx3xr-builder.sh and /nix/store/mzh859m1zrixx9cbfa5c60zkg6rhxx5s-builder.sh too?
syd has joined #nixos
<syd>
Hi peeps
<syd>
Is there a way to configure extra caches on the command line? Ideally via env vars so I can put it in a shellHook ..
<immae>
simonpe^^: it’s funny that only files coming from the nixpkgs tree are marked as different
syd has quit [Client Quit]
syd has joined #nixos
<woffs>
syd: something like --option extra-substituters http://my.cache/
<syd>
woffs can I pass that via env var?
<woffs>
syd, not that I know.
<simonpe^^>
immae: they are the same md5sum wise
<syd>
I just made an alias for `nix-build` the extra options ..
<simonpe^^>
but same jenkins/root difference in ownership
Chiliparrot has joined #nixos
<syd>
woffs: do the extra substitutors work if my build ends up happening on another machines?
orivej has joined #nixos
<immae>
simonpe^^: ok, so the whole diff doesn’t have more information saddly
<simonpe^^>
I moved my old /nix/{store,vars} and copied it over from the working machine, now it behaves differntly
<immae>
you may dig into that jenkins/root difference bu I think it won’t change anything
<simonpe^^>
no on that machine the permissions were fine
<immae>
That might be something interesting to investigate if you kept both versions of the store (and are interested into looking at that)
karantan has joined #nixos
<simonpe^^>
immae: crap I just deleted the non-working store
<immae>
ok doesn’t matter
<simonpe^^>
but it might happen again
<simonpe^^>
thanks a ton for the help tho
sangoma has quit [Ping timeout: 272 seconds]
<immae>
from those information my guesses are: (1) some impurities in niv / your derivations (like getting a path from /nix/var/nix/profile directly) (2) some rmeote path that was downloaded incompletely (but I believe it would be seen after) (3) some line ending issues that nix automatically fixes somehow and makes the diff blank
<immae>
I still don’t believe that jenkins/root makes a difference but I may review my opinion :p
<simonpe^^>
immae: I'm not sure where to start digging, I'd love to contribute since I think nix is a fantastic project
<immae>
well next time it happens maybe ;)
<immae>
(and maybe someone out there already knows and is just idle, I don’t know)
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUScr
<simonpe^^>
after a year or so in this project I might be able to convince the team to move over to nix and nixops instead of these stupid ubuntu machines
<simonpe^^>
bringing in nix was already a stretch and as a consultant I'm scared AF when I encounter these weird problems that I don't know how to fix
<{^_^}>
[nixpkgs] @siraben opened pull request #99263 → st darwin → https://git.io/JUS4B
sangoma has joined #nixos
<ikwildrpepper>
AWizzArd: small channel will progress faster as it doesn't do the same amount of tests before the channel gets updated.
<ikwildrpepper>
so you might get e.g. sec updates faster, but you might hit some issues, if you depend on some package that might (or not) break in the extra tests that the normal channel runs before updating
<stigo>
mog: cool
ericsagnes has joined #nixos
<__red__>
Wow, advertisers know me well. They just offered me an ATX motherboard-format backplane for 7 Pi computer modules
<MrFoxie>
siraben in virtualbox it has only demo user and i was adding new user and i made the mistake so i want to factory format it and reinstall it again
<siraben>
MrFoxie: hm, there shouldn't be a need to "factory format" it, simply adjust configuration.nix as needed and nixos-rebuild switch
<MrFoxie>
ok
<MrFoxie>
is there any link of documentation for virtualbox users
<{^_^}>
[nix] @zimbatm closed pull request #2508 → Create version.nix containing used nixos version → https://git.io/fxApJ
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrFoxie has quit [Remote host closed the connection]
arjen-jonathan has quit [Ping timeout: 260 seconds]
<NobbZ[m]>
By definition, it isn't and never can't. Nix the package manager though is available as nix-for-android via fdroid.
<NobbZ[m]>
Also, there is nixos-mobile, an experiment to get nixOS on mobile devices, though it's highly experimental and requires you to delete whichever is you had before. Also only a couple of devices are supported
anderslu1dstedt has quit [Ping timeout: 258 seconds]
<qyliss>
I think it's quite a bit more than a couple
alp has quit [Ping timeout: 240 seconds]
<gchristensen>
(and it is a funded project)
<siraben>
dang, MrFoxie left
<siraben>
Well, if you're reading the logs, the process shouldn't be any different than on a real NixOS installation
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
anderslu1dstedt has joined #nixos
<Anime_Senpai>
sorry I was having a conversation with my waifu siraben
<siraben>
?
Siyo has quit [Quit: Bye]
<Anime_Senpai>
NobbZ[m]: so nixos-mobile os supposed for some of the devices it means that I have to go with nix-for-android
anderslundstedt has quit [Ping timeout: 256 seconds]
<Anime_Senpai>
siraben: nothing just forget it
Siyo has joined #nixos
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 260 seconds]
Anime_Senpai has quit [Remote host closed the connection]
grobi has quit [Quit: WeeChat 2.8]
alp has joined #nixos
<{^_^}>
[nixpkgs] @umazalakain opened pull request #99279 → teams: remove rect-overlay -- causes desktop sharing to break without a composer → https://git.io/JUSrp
Siyo has quit [Client Quit]
Siyo has joined #nixos
pinkieval has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
<{^_^}>
[nixpkgs] @edolstra pushed to release-20.09 « emacs: Remove references from emacs.pdmp »: https://git.io/JUSoh
pinkieval has quit [Quit: We're here, we're queer, connection reset by peer.]
Guest95295 has joined #nixos
<tmciver>
Hello folks! I tried to set my user's password using hashedPassword but it doesn't work. I got the hash using `mkpasswd -m sha-512` and used the output as the value for hashedPassword but I then cannot log in. Then I realized that the output of mkpasswd is different each time I execute it. This seems to be the result of a different salt being used. But the docs don't say anything about the salt. How to
<V>
you can force a particular salt with -S, but... I'm not sure why you'd need to do that
<V>
(and would recommend against that)
pinkieval has joined #nixos
<tmciver>
V: Not positive. What's the recommended way to do this? I feel like I'm missing a step. I can't see how this can work if the output of mkpasswd is different each time.
<munksgaard>
Hah, no that's not the error I'm getting :) This is: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @cw789 to master « erlangR23: 23.0.3 -> 23.1 (#98646) »: https://git.io/JUS9b
<__monty__>
Hmm, I have a package that's a directory of files, is this how I'd read one of those files? `builtins.readFile (pkg.outPath + "/file.txt")`
domogled has quit [Remote host closed the connection]
NieDzejkob has quit [Ping timeout: 258 seconds]
<jtle>
Hi, is it possible to change which dwm package is used in the nixos/dwm module? It currently doens't provide a `package` option
aiowej has joined #nixos
<nh2[m]>
clever: ah, `environment.usrbinenv` I see. Now I guess I just need to find a legit way to do something like that for a docker image
sangoma has quit [Read error: Connection reset by peer]
<clever>
nh2[m]: i think it was entrypoint vs start? one of those lets you do these things
<clever>
nh2[m]: entrypoint and cmd, basically, the command that gets ran when you start it, will be "${entrypoint} ${cmd}", and by default, the cmd you specify elsewhere replaces cmd
<clever>
nh2[m]: so entrypoint can be a shell script to handle activation scripts, then run "$@" (what the user requested)
<clever>
mysql does that for example
<aiowej>
Hi! I'm using KDE Plasma, and am "blessed" with a high DPI screen, but not with 20-20 vision (except for hindsight amirite). In `System Settings > Display and Monitor > Display Configuration > Scale Display` you can set scaling, which will be applied upon restart. But upon restart, NixOS (I think) resets that value to it's default of 1x scaling. I wonder if I can set this setting in configuration.nix instead? Alternatively, if there are
<aiowej>
any other DE (preferably tiling ones..) that allow setting DPI scaling settings in a declarative, or at least persistent way?
sangoma has joined #nixos
NieDzejkob has joined #nixos
<aiowej>
Or, what can I read to learn how to make a patch for NixOS itself, and add this feature?
<AluisioASG>
Hey, do we have any current consensus on kernel module names? Most packages use something akin to "name = ${pname}-${kernel.version}-${version}", but some newer ones switch the versions around or even get rid of the kernel version
<visl>
When running calibre i get the error: "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found." It suggests that reinstalling the application may fix the problem. I removed calibre from my config, ran nixos-collect-garbage then did `nix-shell -p calibre` to see if that worked but no luck. It seems like it's reusing the existing version. How do I really remove a package so I can reinstall?
<visl>
(oh.. i also did do the `nixos-rebuild switch` between removing from the config and gc)
knupfer has joined #nixos
abathur has quit [Quit: abathur]
Fare has joined #nixos
abathur has joined #nixos
nature has quit [Ping timeout: 256 seconds]
<grfn>
hmm, I'm trying to use `makeWrapper` in a derivation and it's not working
Soo_Slow has quit [Quit: Soo_Slow]
<grfn>
saying "makeWrapper: command not found"
<grfn>
the documentation indicates that makeWrapper should be available in the stdenv
shabius has quit [Ping timeout: 272 seconds]
<infinisil>
visl: Reinstalling doesn't do anything with Nix
<cole-h>
grfn: Try adding `makeWrapper` to the `nativeBuildInputs`
<visl>
infinisil: it looks like it was fixed and merged into release-20.09 (https://github.com/NixOS/nixpkgs/pull/98854). at this point are we (am i) just waiting for the next "build" of 20.09 or is it possible this bug persisted for calibre? (the linked fix targeted qutebrowser but changed qt for all python packages)
<{^_^}>
[nixpkgs] @andir opened pull request #99333 → Nixos 20.09 rl mysql → https://git.io/JU9Wz
<{^_^}>
#98854 (by erictapen, 5 days ago, merged): [20.09] fix passing qt5 version to pythonInterpreters
andreas303 has quit [Remote host closed the connection]
<infinisil>
visl: Are you using 20.09?
<visl>
infinisil: yes
Pwnna has quit [Quit: Bye]
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
Pwnna has joined #nixos
<infinisil>
Gonna run `nix-shell -p calibre -I nixpkgs=channel:nixos-20.09 --run calibre` to see if it works
andreas303 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
<infinisil>
Sure enough, still fails
<infinisil>
Checking the release-20.09 branch now
<infinisil>
That works
<infinisil>
So yeah, it should be in the next nixos-20.09 update
vidbina has quit [Ping timeout: 260 seconds]
<visl>
cool. thanks for checking
<{^_^}>
[nixpkgs] @alyssais merged pull request #99018 → dbus: build manpages from xml → https://git.io/JUP5l
<{^_^}>
[nixpkgs] @alyssais pushed commit from @solson to staging « dbus: build manpages from xml »: https://git.io/JU9lT
Wharncliffe has joined #nixos
erasmas has quit [Quit: leaving]
Darkmatter66_ has joined #nixos
grobi has quit [Quit: WeeChat 2.8]
Darkmatter66 has quit [Ping timeout: 260 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maxdevjs has quit [Remote host closed the connection]
maxdevjs has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #99335 → makeRustPlatform: Put back in it's own file. → https://git.io/JU98U
o1lo01ol_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @andir opened pull request #99340 → nftables: Warn about correct firewall setting → https://git.io/JU9B0
o1lo01ol1o has joined #nixos
bbarker has joined #nixos
lunik1 has quit [Read error: Connection reset by peer]
lunik1 has joined #nixos
<bbarker>
Is using this method to build python packages problematic? The nix-shell command runs without error, but the gurobipy package is not added to the /nix/store: nix-shell -I nixpkgs=/home/bebarker/workspace/nixpkgs -p 'python37.withPackages(ps : with ps; [ gurobipy ]) '
<infinisil>
l33[m]: The nextcloud module isn't writted ideally, so this has to be done in a roundabout way with `poolSettings = lib.mkOptionDefault { pm = lib.mkForce "bla"; }`
<infinisil>
Any option you set by default has priority 100. By using mkOptionDefault (1500), mkDefault (1000) or mkForce (50) you can change the priority to another value
<infinisil>
The module system only takes all definitions of the highest priority, and merges those together
<l33[m]>
Ah i see... so if these options are seting in mutliple places, the highest priority gets set?
lunik1 has joined #nixos
<infinisil>
Which is why you need to use mkOptionDefault if you want to not completely override the default value in that module. Because option defaults are set with `mkOptionDefault`
<l33[m]>
I see.......'interesting'....
<jkt>
what puzzles me is that I don't really see any Xorg process, just sddm
camsbury has quit [Remote host closed the connection]
<infinisil>
Maybe I should define some functions here to demonstrate the definition merging
<infinisil>
> mergeDefs = type: defs: let res = lib.mergeDefinitions ["some" "option"] type (map (d: { value = d; file = "some-file.nix"; }) defs); in { inherit (res) mergedValue; inherit (res.defsFinal') highestPrio; }
<craige>
Does anyone have any good examples that can point me to of packageX having a variable set that points to the latest version of a file in packageY? Am I seeking something that can actually be done in Nix?
<humancalico[m]>
Is there a way to upgrade to `nixos-unstable` declaratively?
<nicolas[m]1>
humancalico: using flakes or setting `nix.nixPath = [ "nixpkgs=${path-to-your-nixos-unstable}" ];`
la-jesystani has joined #nixos
<infinisil>
craige: Since getting the "latest" thing is impure, you need to either not do that in Nix (e.g. by pointing Nix to a git repository and updating that automatically), or by using impure Nix features (such as builtins.{fetchurl,fetchTarball}, which can fetch from e.g. the master branch without a sha256)
alexherbo2 has quit [Read error: Connection reset by peer]
<infinisil>
For reproducibility, nixpkgs doesn't use any impure features, so you won't find an example there
<infinisil>
l33[m]: Well you should check out the generated config
<infinisil>
There's nothing about mkOptionDefault that would make nextcloud hand..
<infinisil>
hang*
<l33[m]>
yeah, I'll find that hash, and have a look
<l33[m]>
it maybe unrelated.... I'll have a play with the code snippets you provided and try and get my head around it.
<infinisil>
l33[m]: Actually it's probably easiest to do `nix-instantiate --eval '<nixpkgs/nixos>' -A config.services.nextcloud.poolSettings` to see what it evaluates to
<infinisil>
Can also append `.<property>` to that to see the individual ones
<l33[m]>
infinisil: super.
<infinisil>
Or poolSettings.'"some.property.with.dots"'
<infinisil>
Or I guess just `-A config.services.nextcloud.poolSettings --strict` to see all at once
Fare has quit [Ping timeout: 240 seconds]
<nicolas[m]1>
outside of using `makeWrapper`, is there a way to patchshebang shell scripts with a custom environment (say buildEnv)?
<V>
or just `nixos-option services.nextcloud.poolSettings` :p
<l33[m]>
more than 1 way to skin a cat (no that i would, i like cats).