<andreabedini>
I am using nix on macos, what are the consequences of setting sandbox = true? will I lose the ability to use cache.nixos.org?
<taohansen>
I have two let statements that both ouput to the same value (ec2). What is the result of these two statements? Does one overwrite the other, does it append to the other or does it fail?
shiver has quit [Remote host closed the connection]
<gchristensen>
that isn't valid Nix
shiver has joined #nixos
shiver has quit [Changing host]
shiver has joined #nixos
<taohansen>
I didn't think so
<taohansen>
What I really want is some way to append and extend existing attribute sets
<taohansen>
In a non-mutable kind of way
<clever>
taohansen: create a second nix file, and add it to the first using requires = [ ./secondfile.nix ];
<clever>
nixops will then load and merge both
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<taohansen>
Can the second file then make a value change to the first?
<clever>
taohansen: if you use mkForce yes
camsbury has joined #nixos
<taohansen>
That's ideal. Thank you both
abcrawf has quit [Ping timeout: 276 seconds]
abcrawf_ has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Have-Quick has joined #nixos
Supersonic112 is now known as Supersonic
lassulus_ has joined #nixos
sigmundv has quit [Ping timeout: 268 seconds]
sigmundv__ has quit [Ping timeout: 248 seconds]
oltoAltn has joined #nixos
olto has quit [Ping timeout: 240 seconds]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
seafood has quit [Quit: seafood]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
btbytes has joined #nixos
Have-Quick has joined #nixos
MP2E has quit [Remote host closed the connection]
Have-Quick has quit [Client Quit]
woodson_ has joined #nixos
<sorixelle>
Trying to get mpd set up on my configuration, but nixos-rebuild runs out of memory. I think it's because the music folder I've set it to is quite large (~25GB). Is there a way to work around that?
lukec has quit [Ping timeout: 260 seconds]
<clever>
sorixelle: quote the path, you have configured it to import your entire music collection every time you nixos-rebuild
<sorixelle>
Yeah, I figured that was happening :P
<sorixelle>
Didn't realise quoting would fix that though, thanks!
frank87 has quit [Remote host closed the connection]
lnikkila has joined #nixos
frank87 has joined #nixos
Guanin has quit [Ping timeout: 268 seconds]
mtncoder[m] has joined #nixos
Guanin has joined #nixos
<{^_^}>
[nixpkgs] @eqyiel opened pull request #41615 → pkgs/qemu: tell qemu where to find smbd → https://git.io/vhEr0
blankhart has quit [Ping timeout: 256 seconds]
<v0id72[m]>
hi, just wondering if someone could help. How do I change shell to zsh with nixos?
Fare has quit [Ping timeout: 264 seconds]
<LnL>
users.users.foo.shell = pkgs.zsh;
<LnL>
and you probably also want programs.zsh.enable = true;
<v0id72[m]>
i have zsh already installed
<v0id72[m]>
just need to change default shell
<v0id72[m]>
since it does not sit in /bin makes it a little weirder to me at least
endforma1 has quit [Quit: WeeChat 1.9.1]
jwynn6 has joined #nixos
seafood has quit [Quit: seafood]
lanelet has quit [Quit: lanelet]
seafood has joined #nixos
v0id72[m] has left #nixos ["User left"]
hyper_ch2 has joined #nixos
Mateon3 has joined #nixos
Ariakenom has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<leons>
v0id72: You'll really want to enable it in programs.zsh for stuff like completion and init to work correctly. At least with fish, if you don't enable it there and set it as your root shell, there's a chance you won't be able to login anymore. No experience with zsh
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #41617 → check-mssql-health: init at 2.6.4.14 → https://git.io/vhE6h
winem_ has joined #nixos
xy2_ has quit [Ping timeout: 264 seconds]
phdoerfler has joined #nixos
kendrick_ has joined #nixos
shikiryogy has joined #nixos
<kendrick_>
Hi all, I'm currently trying to export a variable via zsh, but even after changing the `programs.zsh.interactiveShellInit` to export a variable, it returns nothing even if I try to echo it. Any ideas?
hotfuzz__ has quit [Read error: Connection reset by peer]
hotfuzz_ has quit [Ping timeout: 248 seconds]
hotfuzz__ has joined #nixos
yawnCH has quit [Ping timeout: 260 seconds]
v0id72[m] has joined #nixos
<v0id72[m]>
Hi am having an issue with mounting a HDD - wonder mount - OS detects and tries to open it in. But this is the error I get when looking in shell.
<sphalerite>
v0id72[m]: you should stick around after asking questions, otherwise you'll miss half the answers
<sphalerite>
about your zsh question earlier: it's perfectly normal for it not to show in /bin, nixos only has /bin as a compatibility hack because so many things rely specifically on /bin/sh
<sphalerite>
but other than that /bin is not used
hotfuzz has joined #nixos
<v0id72[m]>
yes I know that part from the docs that I have read
<sphalerite>
the mounting is failing because exfat isn't supported. ExFAT is a nasty filesystem, because there are patents on it which make implementing it in linux illegal according to some interpretations of the laws in some jurisdictions, as far as I understand
<sphalerite>
I don't know the details, but yeah.
hotfuzz_ has joined #nixos
<v0id72[m]>
ok thanks very much for looking at it!
<sphalerite>
If you don't care about potentially doing something illegal (if you want to be sure I'd suggest getting a lawyer to look at it) you can enable exfat support anyway, let me dig up how to do that…
<JasonGrossman>
sphalerite: I had no idea about that.
<sphalerite>
(or you could just format the disk with another filesystem)
zenojis has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
<v0id72[m]>
I do not care about legality....
<Myrl-saki>
JasonGrossman: Me neither. Wow.
<v0id72[m]>
gonna install exfat
hph^ has joined #nixos
<zenojis>
Hi, I am trying to package a ruby app that uses FFI, I can't figure out how to connect it to the libraries it needs. It uses xlib as a runtime dependency, when I try to install it and run on nixos it fails as soon as it tries to call any xlib functions. Does anyone have pointers?
<v0id72[m]>
fuse that is
<JasonGrossman>
We could really do with a LOT more tips such as that one on the wiki. I know, I should do it myself.
<sphalerite>
you may also need to reboot since it's kernel stuff
<v0id72[m]>
btw if there is info that needs to be updated in the wiki that has been recorded . I would be up for updating the wiki if you need extra bandwidth
<JasonGrossman>
v0id72[m]: Yes please, put this tip on now! What's stopping me is getting my head around the right page to put it on while I'm in the middle of 6 other things.
<v0id72[m]>
sure! If there is any other info pm it to me :) Goes for anyone.
<JasonGrossman>
v0id72[m]++
<{^_^}>
v0id72[m]'s karma got increased to 1
hph^ has quit [Read error: Connection reset by peer]
<andreabedini>
is there a way to "kick" a new build
lsix has joined #nixos
<steveeJ>
is there a helper function that allows me to not care about the sha256 of a git branch? (sry in case of double message, had a connection drop and am not sure if it went t
<v0id72[m]>
np. i will read through info on the wiki that is outstanding and try to complete some things. Send anything in the mean time.
<JasonGrossman>
\o/
<JasonGrossman>
IMO that is a HUGE contribution.
<v0id72[m]>
is there a way I can get mod on /r/NixOS?
<v0id72[m]>
can make some changes there as well if wanted.
<JasonGrossman>
I doubt that that's possible without asking the two Reddit moderators ...
<JasonGrossman>
u/TheSilentNumber and u/kxra
<v0id72[m]>
just thought it needed help as well - since the banner is a leaf still :(
xy2_ has joined #nixos
MP2E has quit [Remote host closed the connection]
Guanin has quit [Quit: Leaving]
<Plato[m]>
Inside my nix-shell for an OpenGL app I'm writing, I'm getting "libGL.so.1: cannot open shared object file".
<Plato[m]>
Am I missing something?
<Plato[m]>
LD_LIBRARY_PATH contains /run/opengl-driver, which doesn't actually contain a libGL. It does, however, contain vdpau and nouveau stuff, although I'm using my Intel GPU.
<M-manveru>
Plato[m]: maybe you're using a different version of glibc than the rest of the system?
Neo-- has joined #nixos
<Plato[m]>
M-manveru: How would I check?
<JasonGrossman>
v0id72[m]: Right, good. Try messaging those two moderators. If they don't reply then I don't know what to do - I have the same problem on another subreddit. :-(
<M-manveru>
Plato[m]: well, make sure you're using the same nixpkgs checkout for your shell.nix as for your OS
<M-manveru>
at least that's my experience
<Plato[m]>
Oh, okay, that could be it. I pinned the app on a different version.
<{^_^}>
[nixpkgs] @orivej closed pull request #41609 → nix: use curl with c-ares resolver → https://git.io/vhE05
<Plato[m]>
srhb: Ah, thanks for pointing me to that. So my application uses pysdl2, which uses sdl2, which tries to load libGL. How do I update my application's nix derivation?
<Plato[m]>
What I found works is setting SDL_OPENGL_PATH to pkgs.libGL/lib/libGL.so.1.
<Plato[m]>
I could package this into a wrapper script. Is this supposed to be done like that?
<srhb>
Plato[m]: If you can't link directly, I suppose that is the way to go.
<srhb>
I would have liked to see a guide on how to adjust to these changes. I wonder if there is one in the release notes...
<Plato[m]>
I looked at SDL2's source code. Apparently, it tries dlopen with either libGL.so.1 (hard coded, no path prefix) or whatever is inside SDL_OPENGL_PATH.
<Plato[m]>
Strange though that I don't find any special treatment in nixpkgs for sdl2 applications. I assume I'm doing something wrong then.
<Plato[m]>
Might this be worth opening an issue in nixpkgs?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @etu to master « python36Packages.cython: Disable the "test_coerce_to_numpy" test on aarch64 (#41453) »: https://git.io/vhE92
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
hph^ has quit [Ping timeout: 256 seconds]
lnikkila has joined #nixos
<srhb>
Plato[m]: At least for discussion, sure. If it could be done cleaner directly in sdl2 that would be nice.
kendrick_ has quit [Remote host closed the connection]
justbeingglad has joined #nixos
<Plato[m]>
Indeed. I'd have thought nixpkgs would patch the source so it looks for a _specific_ libGL.so.
<Plato[m]>
Seems like the usual approach.
<srhb>
Plato[m]: I don't know the intricacies of sdl2, but yes, that was my thought too.
<__monty__>
hodapp: Was going to report the issue we talked about yesterday, turns out shake still works like make, it's just not documented anywhere. I was just missing the extension because I followed a blog post: https://github.com/ndmitchell/shake/issues/582
justbeingglad has joined #nixos
tmaekawa has joined #nixos
xy2_ has joined #nixos
justbeingglad has left #nixos [#nixos]
orivej has quit [Ping timeout: 260 seconds]
simukis has quit [Read error: Connection reset by peer]
tmaekawa has quit [Client Quit]
hph^ has joined #nixos
saschaveres[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days"]
jamshoot[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days"]
Acou_Bass has quit [Ping timeout: 248 seconds]
PlasmaStrike[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
Acou_Bass has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
jelewaus[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
spear2 has quit [Ping timeout: 265 seconds]
grahamc has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
danielrf has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
octowan[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days"]
balsoft[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
<gchristensen>
robstr: checkInputs = [ pylint ] or something like that
<gchristensen>
oh ... hrm I don't know, you might have to add pylint to your test phase
<{^_^}>
[nixpkgs] @Synthetica9 opened pull request #41627 → [WIP] make-derivation: default name if pname and version are both set → https://git.io/vhufk
Barnabas[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
rardiol[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
<sorixelle>
I have a derivation that's copying things to $out/share, but it doesn't appear in the profile, which is strange, because the same derivation copies stuff to $out/bin, and that appears in the profile
<sorixelle>
Am I missing something?
hotfuzz_ has joined #nixos
ericsagn1 has joined #nixos
hotfuzz has quit [Ping timeout: 264 seconds]
wizek[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
trevorriles[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days"]
<sorixelle>
Yeah, fixing up that one did the trick, thanks :)
<sorixelle>
also, sorry i've been asking nothing but quick questions here, heh
<gchristensen>
quick questions are nice sometimes :P
<sorixelle>
still getting used to nix's really unique ways :P Absolutely loving it though, it's a really awesome idea
<Synthetica>
Yeah, it's quite different from other package managements systems
<gchristensen>
:D
<Synthetica>
Not that that's a bad thing :P
<{^_^}>
[nixpkgs] @joachifm pushed to master « Revert "Merge pull request #38263 from lopsided98/grub-initrd-secrets" »: https://git.io/vhuIS
nh2 has joined #nixos
<sorixelle>
I'm trying to set everything up so that I can just keep a backup of one folder and have an almost exact replica of my system bar user directory files
<tfc[m]>
hey there. i have a `default.nix` file that is ready to be used with `nix-shell` in my haskell project. now i would like to enter the `nix-shell` with one *additional* dependency: ghcid. when i write `nix-shell -p haskellPackages.ghcid` then this ONLY installs ghcid and seems to ignore my default.nix
<tfc[m]>
is there a way to get more packages into the nix shell without tampering with the defaultnix file?
hph^ has quit [Ping timeout: 276 seconds]
<srhb>
tfc[m]: I think most people either let ghcid in impurely by having it in their environment or wrap the default.nix in development nix file of some sort that brings it in
<tfc[m]>
ok if there is no way to do this without impurely installing before, i would accept editing my default.nix for the shell-case. but then i currently don't understand how to inject this additional dependency into my cabal2nix generated default.nix. are there maybe any examples where this is done similarly?
edude03 has joined #nixos
aminechikhaoui has quit [Ping timeout: 240 seconds]
aminechikhaoui has joined #nixos
kreisys has joined #nixos
steell has joined #nixos
<srhb>
tfc[m]: The shellFor function is really nifty for this
<tfc[m]>
srhb: ok i have grepped through nixpkgs and found the definition of the function. but i don't understand how to integrate it into my default nix where it says `if pkgs.lib.inNixShell then drv.env else drv`. would i substitute my `drv.env` by a `shellFor { some overrides .... and drv.env }` call somehow?
<srhb>
tfc[m]: Ah, no, I wouldn't integrate it but instead have a shell.nix that uses your default.nix as a shellFor buildinput
<srhb>
Or something similar to that :)
sbdchd has joined #nixos
<tfc[m]>
so if i add a `shell.nix` with `(import ./.).shellFor { packages = p: [ p.haskellPackages.ghcid ]; }`, it will use that instead of my default.nix?
<srhb>
tfc[m]: No, not quite. I think that'd give you the source of ghcid. I meant for you to use shellFor for your own package and ghcid via normal inputs to the shell derivation. Sorry, I don't have time to write up an example right now.
sbdchd has quit [Remote host closed the connection]
<srhb>
(Er, the dependencies of ghcid, not the source)
sbdchd has joined #nixos
<tfc[m]>
srhb: this does however not work as the comment says because it can't find the shellFor attribute in the import ./. {} set...
<srhb>
Yeah, its pkgs.haskellPackages.shellFor depending on how you get pkgs of course
<tfc[m]>
ok, when i use that, how do i feed what my default.nix says into that?
hph^ has joined #nixos
<srhb>
tfc[m]: I can help out later, gotta dash now. :)
<tfc[m]>
ok. sorry if those questions appear stupid, but i have the source code of this function in front of me and feel lost despite that
<srhb>
tfc[m]: Not stupid at all. The point of it is just to get the dependencies for your package, not ghcid itself, which may seem sort of misleading at this point. I'll poke you when I'm back.
<__monty__>
Looking for someone who's a terminfo/termcap/"different thing I'm probably actually looking for" expert.
<manveru>
__monty__: i wrote a terminal once... does that count? :)
Neo-- has quit [Ping timeout: 245 seconds]
Neo-- has joined #nixos
<__monty__>
manveru: How can I find out what terminal a program (in this case python) is actually running in? $TERM often contains 'xterm-256color' which isn't helpful.
edude03 has quit [Read error: Connection reset by peer]
<manveru>
hmm, what exactly do you want to do? find out the terminal capabilities?
<__monty__>
manveru: What I really want is "execute this command in a new window of the same terminal emulator I'm currently running in."
jensens has joined #nixos
xy2_ has joined #nixos
<manveru>
that sounds fun
Neo--- has quit [Ping timeout: 245 seconds]
<__monty__>
Fun as in it's all edge-cases and not even always possible?
<__monty__>
manveru: I'll work with a mix of checking TERM, TERMINFO and prioritising rarer terminals.
Neo--- has quit [Ping timeout: 260 seconds]
<__monty__>
Thanks for the advice.
Neo-- has joined #nixos
Fare has joined #nixos
<sorixelle>
If an application is spitting stuff about "No GSettings schemas installed on this system", adding wrapGAppsHook should fix it, right?
<manveru>
gmarmstrong: don't have any issues with the connection via a2dp and pulseaudio... i have `hardware.bluetooth.enable = true;` in configuration.nix and `services.blueman-applet.enable = true;` in my home-manager config
<clever>
manveru, gmarmstrong: did you change the pulseaudio package?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to release-18.03: https://git.io/vhucZ
<{^_^}>
[nixpkgs] @voanhduy1512 opened pull request #41632 → leetcode-cli: init at 2.5.2 → https://git.io/vhucE
<tilpner>
inquisitiv3 - Yes, most things use <nixpkgs> by default
blankhart has joined #nixos
<tilpner>
inquisitiv3 - So if you add a channel as <nixpkgs-unstable>, it won't be used by default
<inquisitiv3>
tilpner: Thanks!
jtojnar has quit [Quit: jtojnar]
<tilpner>
inquisitiv3 - Note that the "alias" doesn't have to be set via nix-channel. NIX_PATH is the actual source of truth
jtojnar has joined #nixos
<inquisitiv3>
I'll remember that.
<inquisitiv3>
Is there a configuration file for user specific configurations also, or is it just for the system wide one?
<tilpner>
Not by default, and not in the same way
<tilpner>
But if you trust your users, you could import a module from their home
<inquisitiv3>
Is there a reason why it isn't so?
<tilpner>
More likely, you're looking for something like home-manager, which doesn't require root to do anything
<tilpner>
inquisitiv3 - It would be insecure to allow users to alter global configuration like that
<inquisitiv3>
tilpner: I seen the application mentioned, but my knowledge of Nix wasn't enough to understand its purpose fully.
simukis has joined #nixos
<inquisitiv3>
tilpner: Oh, I meant that users add their own file that they could use to configure their system and not having to execute commands.
<tilpner>
I don't see how that could work. Just rebuild the system every time the file changed, or what are you proposing here?
erasmas has joined #nixos
steell has quit [Ping timeout: 256 seconds]
thekolb has joined #nixos
jtojnar has quit [Quit: jtojnar]
<thekolb>
So I am doing my first nixos install and the partitioning instructions (https://nixos.org/nixos/manual/index.html#sec-installation) don’t really line up. My bios mentions the term UEFI a bunch of times so I figured go with the UEFI instructions. fdisk type 1 is FAT12 and not 'UEFI System' though...?
<inquisitiv3>
tilpner: Instead of a user having to execute commands manually for customizing their environment, they could have their own file that they could write with their customization.
<gchristensen>
FAT12? or FAT16 should probably work
<thekolb>
right there is ef for EFI which ends up being fat12
Neo--- has quit [Remote host closed the connection]
<gchristensen>
hmm when using fdisk I always make the disk of partition type `ef`
Neo--- has joined #nixos
<ar>
ef00 fat32 tends to work
<ar>
at least, i haven't yet hit a piece of hardware that doesn't
<thekolb>
should I have went with logical as opposed to primary? I have a feeling that the ordering didn’t really go as planned. (sda1 is now boot even though its partition #33)
<thekolb>
#3*
<gchristensen>
I think primary is good
<gchristensen>
weird
<thekolb>
weird that my partitions are ordered reverse to what is illustrated in the installer though...
<gchristensen>
that is very strange
<gchristensen>
thekolb: just to be cautious you may want to reboot before continuing, just to make sure everything seems right
jensens has quit [Ping timeout: 245 seconds]
<thekolb>
what is the expert mode / fix up partition ordering about?
<thekolb>
never did that before
<gchristensen>
no idea
<gchristensen>
never did that before, either ;)
logzet has joined #nixos
<thekolb>
right, that’s what screwed up the ordering apparently
<{^_^}>
[nixpkgs] @volth opened pull request #41633 → python36Packages.cython: Disable tests on i686 → https://git.io/vhu4R
<gchristensen>
hrmm we might want to delete that from the manual!
<gchristensen>
I never saw it, because I've always ignored those level of specifics ... can you open an issue for me, thekolbV
<thekolb>
don’t know, usually I do put my boot/swap partitions first
fendor has quit [Remote host closed the connection]
<thekolb>
but its weird wrt the instructions that they first are very specific about the ordering and then throw it away^^
<gchristensen>
yeah indeed
<andreabedini>
gchristensen: hi :)
<JasonGrossman>
Right. And surely it doesn't matter what order partitions are in except for a BIOS partition, does it?
<gchristensen>
hi
<andreabedini>
gchristensen: I notice that nixpkgs/pkgs/os-specific/darwin/apple-source-releases/default.nix is a bit outdated and doesn't include newer versions of macos
<andreabedini>
is that a bit deal? should I try to update it?
<gchristensen>
I'm definitely not the person to ask about that :P
<tilpner>
inquisitiv3 - I think we're having a misunderstanding. What commands are you talking about? I'm talking about nixos-rebuild, but I suspect you're talking about nix-env
<gchristensen>
andreabedini: try in #nix-darwin
<andreabedini>
you surely know more that I do :P
<andreabedini>
oh TIL
<andreabedini>
cheers
<LnL>
andreabedini: we still support 10.10 and apple still hasn't released the sources of CoreFoundation so we can't just upgrade the sdk
<andreabedini>
sorry if it's a stupid question, so the build environment is built from scratch using the source packages provided by apple? rather than from an installed mac?
<andreabedini>
LnL: ^
<LnL>
you need the headers from somewhere, otherwise you can't build other stuff
<andreabedini>
they are not distributed with the mac sdk?
<andreabedini>
well, they are, I got /System/Library/Frameworks/CoreFoundation.framework/Headers
<LnL>
no, ls: /System/Library/Frameworks/CoreFoundation.framework/Headers: No such file or directory
<inquisitiv3>
tilpner: That's correct. I read the following article and it states that "[...] NixOS users can utilize Nix's imperative nix-env command to install packages at the user level [...]"
<LnL>
andreabedini: this means building something on 10.10 or 10.13 is 99% the same
<andreabedini>
> Our goal is for the API in this project to match the OS-provided Foundation and abstract away the exact underlying platform as much as possible
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):43:25
<andreabedini>
so the headers should be compatible
shikiryogy has quit [Quit: Leaving]
Neo--- has quit [Remote host closed the connection]
<LnL>
yeah, that might be an option. I should give that another shot
johanot has quit [Quit: Leaving.]
Neo--- has joined #nixos
<thekolb>
gchristensen: where should that issue go? nixpkgs, nixos-homepage?
<gchristensen>
nixpkgs
<gchristensen>
because the issue is with docs contained within nixpkgs
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « darwin.libiconv: use static library »: https://git.io/vhuEj
<andreabedini>
LnL: there are minor differences but most of the headers are identical to the ones I have (10.13.5)
humanoyd has joined #nixos
<thekolb>
Ok so nixos-install fails with "File system "/boot" is not on a GPT partition table."
<andreabedini>
"Import CoreFoundation sources from High Sierra"
<JasonGrossman>
Just out of interest (I don't use MacOS enough to care much on a personal level), does Nix Darwin support old versions of MacOS, before 10.10?
<{^_^}>
[nixpkgs] @spacefrogg opened pull request #41635 → dbus: Add NSS modules path to dbus system bus service → https://git.io/vhuuP
szicari has quit [Quit: Leaving.]
<matthewbauer>
JasonGrossman: I think it could with a few changes to libSystem but I don't think anyone has tried.
<JasonGrossman>
Interesting. Thanks.
<contrapumpkin>
yeah, we used to but more platforms = more work, and macOS users tend to upgrade a lot faster and more consistently than most
<contrapumpkin>
so the cost/benefit didn't seem to warrant it
<JasonGrossman>
I'm gussing especially the ones who are interested in BOTH MacOS and Nix.
<andreabedini>
Import of CF-1253 ("El Capitan"), plus changes required to support this project.
<samueldr>
the installation instructions for UEFI in the nixos manual are quite thin about partitionning and UEFI
<thekolb>
JasonGrossman: yeah, I guess. I just followed the instructions and that’s where I ended up (not having a GPT). I suppose I start from scratch now and backup my configuration.nix?
<thekolb>
samueldr: they are broken, really
bigrick has joined #nixos
<samueldr>
I agree, though there is only one crucial step missing is that they gloss over needing a GPT formatted disk
<JasonGrossman>
thekolb: I would, yes.
<JasonGrossman>
I think it helps a lot for newbies to use gparted instead of gdisk.
<samueldr>
or even cgdisk
<JasonGrossman>
I mean it *would* help a lot -that would be my suggestion.
<samueldr>
(cgdisk will work in TUI)
<thekolb>
isn’t gparted a GUI app?
<JasonGrossman>
thekolb: Yes, so it's not always appropriate.
<JasonGrossman>
I didn't know cgdisk. Looking it up now.
<thekolb>
I am doing the install over SSH
kaba_ has joined #nixos
<JasonGrossman>
thekolb: Mm, right.
<JasonGrossman>
So cgdisk could be ideal.
<samueldr>
cgdisk is akin to cfdisk, in the past cfdisk was for MBR and cgdisk was for GPT
<kaba_>
Hi, on f5b0d6d my monitor simply doesn't turn on (amdgpu). I tried looking at more recent commits regarding video drivers, any idea what may be the cause?
<thekolb>
thanks guys!
<kaba_>
I tried both setting amdgpu as video driver and not setting it at all.
<samueldr>
thekolb: the expected default for UEFI/GPT is to have /boot be the ESP, then whatever partition scheme you need
<JasonGrossman>
This is interesting. I'm faaaairly new to linux, but I came to NixOS after messing around with several other distros, so I knew about partitioning. I imagine the same is currently true for lots of people, but if NixOS takes off there might be more people using it as their first linux distro, and then they'll need better advice about formatting.
<samueldr>
since /boot may host kernels and generations depending on your setup, it may be necessary to have it bigger
katona has joined #nixos
<JasonGrossman>
The NixOS manual + the Arch Wiki is a great combo.
<samueldr>
(especially important if you intend to encrypt your partitions)
kaba_ has quit [Client Quit]
<sphalerite>
Can I make systemd user units imperatively as on other distros?
<samueldr>
sphalerite: I have
<JasonGrossman>
samueldr: Agree, but actualyl I have lots on mine and it's still less than 100MB.
<JasonGrossman>
* actually
<sphalerite>
samueldr: hm. I did systemctl edit --user --force syncthing.service to create syncthing.service, and it doesn't recognise it when I try to enable it
<samueldr>
yeah, I say bigger, since it's possible that e.g. keeping a boatload of generations happen
<JasonGrossman>
I made myself a huge EFI partition in case I wanted to carry on using other distros, but I'm pleased to say that NixOS has been working so well that I haven't needed to. :-)
<JasonGrossman>
I HAVE a boatload of generations. I think 200MB should be more than enough. Many web sites recommend 500 MB though.
<gchristensen>
I am sad to say that I will have to, for the very first time, delete a NixOS generation on this laptop -- as my /boot has finally reached capacityp
<samueldr>
sphalerite: oh, though I only edited them directly
<JasonGrossman>
gchristensen: No no. I have plenty of room on my /boot for your generations.
<gchristensen>
:D
<sphalerite>
gchristensen: the laptop you got last year?
<gchristensen>
it lasted a while -- 241 generations. yeah, sphalerite
<samueldr>
my /boot/ is 1022M, only 63M used :/
xy2_ has quit [Quit: WeeChat 1.9.1]
<sphalerite>
gchristensen: wow. You must have a small system config
<samueldr>
(though I made mine extra big so I could do weird shenanigans like put a recovery system in there in the future)
<sphalerite>
although actually, I have a lot of data in my ~
jensens has joined #nixos
xy2_ has joined #nixos
<JasonGrossman>
samueldr: Me too.
xy2_ has quit [Client Quit]
<sphalerite>
samueldr: hmph, it creates ~/.config/systemd/user/syncthing.service.d/override.conf with the contents that I wrote, but that apparently doesn't cause the unit to exist
<JasonGrossman>
samueldr: I guess we can keep backups or something in the spare space.
<sphalerite>
if I move that override.conf to ../syncthing.service it works
<JasonGrossman>
samueldr: Or union mount it to a decently sized partition for general use. Because that would totally be worth the effort.
<samueldr>
systemctl cat will show the actual unit as systemd sees it using the service and overrides
winem_ has quit [Ping timeout: 256 seconds]
<samueldr>
systemd clears the environment IIRC
<sphalerite>
I don't see how that would cause Exec format error… as opposed to maybe ENOENT
<sphalerite>
hm but yes, passing the full path makes it work
<sphalerite>
wtf
szicari has joined #nixos
<thekolb>
samueldr: I think the only issue for me personally was that I never dealt with UEFI before and the NixOS installation instructions somewhat fail to mention how to create a GPT partition table (i.e., use gdisk).
<thekolb>
How would I go about customizing the .bash_profile of my extraUsers?
rihards has joined #nixos
<sphalerite>
I've got a private key file (adb key) that starts with "-----BEGIN PRIVATE KEY-----". I want to get the fingerprint corresponding to it so I can verify it against hte one shown on my phone. Anyone know how to d othis?
frank87 has quit [Remote host closed the connection]
__Sander__ has quit [Quit: Konversation terminated!]
frank87 has joined #nixos
Tucky has quit [Remote host closed the connection]
aanderse_ has quit [Remote host closed the connection]
jensens has quit [Ping timeout: 260 seconds]
<thoughtpolice>
gchristensen: done, though what's the motivation behind it? (curious)
<gchristensen>
probably going to be a talk I write & give
asuryawanshi has joined #nixos
<maurer>
gchristensen: I'd point out that while it's semi-obvious to me why travis won't work, the conclusion I come to immediately is not "so we must use hydra"
<gchristensen>
travisci was supposed to be a funny "no" option :(
<gchristensen>
I'm not a good pollster
asuryawanshi has quit [Remote host closed the connection]
<maurer>
If you're giving a talk on the concept though, one thing to compare against might be other distros' mechanisms of running buildbots and testing
<maurer>
aiui none of them are super happy with what they have either, it's just "good enough to keep working"
<gchristensen>
indeed
aanderse has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed commit from @Synthetica9 to staging « treewide: removed name from a few pythonpackages defining pname and version »: https://git.io/vhuPh
<gchristensen>
what I _know_ is a lot of people don't see the difference between hydra and travis, or hydra and gitlab's ci
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
FRidh has joined #nixos
<maurer>
sphalerite: ssh-keygen -lf /path/to/key
mightybyte has joined #nixos
<maurer>
gchristensen: Really? I'd think the concept of mass-rebuild alone would be enough to indicate the difference
<sphalerite>
maurer: perfect, thanks!
<gchristensen>
maurer: and here we arrive at the talk idea
<maurer>
This is one of the reasons gentoo has such a hard time fiddling with their compilers
<maurer>
What could break? Uh, everythign.
<maurer>
Can we test everything? Not on one system.
<sphalerite>
maurer: hm, the fingerprint doesn't match
<sphalerite>
I'm not inclined to believe it's actually a MITM though
<mightybyte>
domenkozar: Does cachix push do any checks to see if the thing has already been pushed? Off-hand observation suggests that it does not.
<maurer>
sphalerite: There are two hash algorithms people use for fingerprints
<maurer>
maybe adb uses a different one from ssh-keygen by default
<sphalerite>
I don't know what it's using on the phone :/
<maurer>
sphalerite: Ah, try
<maurer>
ssh-keygen -E md5 -lf /path/to/
<maurer>
evidently -E picks a hash algorithm, and sha256 is default
sbdchd has quit [Ping timeout: 248 seconds]
<sphalerite>
hm, now the length of the fingerprint matches
<sphalerite>
but the content doesn't
<maurer>
rip
<maurer>
I don't have any more tricks, good luck
<sphalerite>
heh
<sphalerite>
awk '{print $1}' < ~/.android/adbkey.pub | openssl base64 -A -d -a | openssl md5 -c
<matthewbauer>
It has been waiting in the PR list for a while & not gotten much interest.
<sphalerite>
why couldn't adb just use ssh as a transport
<gchristensen>
matthewbauer: fwiw in general I'm not a fan of the idea right now, but can't give good quality feedback as to why :/
<maurer>
Something I don't see mentioned there is how testing will be approached - right now, since packages basically have "one configuration" (mostly, there are exceptions), if someone builds them successfully, it's probably OK
<maurer>
If it becomes commonplace that packages will have multiple configurations, how do we handle the variety of different build cases?
<gchristensen>
yes
<maurer>
Also, how do we decide which configurations get cached?
<gchristensen>
yes
<maurer>
(I'm not against this, I'd like use-flag-style configuration, I just want it to land in a completed state rather than a "oh no we inherited the gentoo testing problem" state)
<gchristensen>
yes
<WilliamHamilton>
I seem to have a problem with alsalib: ALSA lib pcm.c:2493:(snd_pcm_open_conf) Either /nix/store/7h7x4pq1dya89h43kpm56shvzi9m7nby-alsa-plugins-1.1.6/lib/alsa-lib/libasound_module_pcm_pulse.so cannot be opened or _snd_pcm_pulse_open was not defined inside. In my nixos system configuration I have pulseaudio enabled, with 32bit support. How could I debug the problem?
<maurer>
WilliamHamilton: Have you upgraded your system but not updated something in your user profile?
orivej has quit [Ping timeout: 264 seconds]
<WilliamHamilton>
maurer: probably, yes! How do I upgrade things in my user profile?
<WilliamHamilton>
maurer: thanks, I was trying the upgrade, but then I encounter:
<WilliamHamilton>
error: attribute 'override' missing, at /nix/store/03cdrr35k9gb7nfzn49ysaiw1nnby1lb-nixos-18.09pre140958.696c6bed4e8/nixos/pkgs/development/compilers/elm/default.nix:43:12
<WilliamHamilton>
and I haven't installed the elm compiler, so I don't know how I could correct that
<fendor>
hi, does it make sense to use something like home-manager on NixOs?
<fendor>
because it sure sounds cool
shapr has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
atu has quit [Ping timeout: 268 seconds]
<__monty__>
fendor: I thought it was designed because of nixos.
<sphalerite>
fendor: yes, it does.
<sphalerite>
The fact that it works on other OSes is just a bonus :p
<zenojis>
I think that a use flag system would not only be great, but necessary in the long run. I don't think testing is actually that complicated. Just identify built packages by their specific use flags. It's better to have use flags than force everyone to create local packages for build configuration
reinzelmann has quit [Quit: Leaving]
matthewbauer has quit [Read error: Connection reset by peer]
nuncanada has joined #nixos
<WilliamHamilton>
is there a way to force the command `nix-env --upgrade` to complete even when it finds errors?
<fendor>
sphalerite, the true question is then, is it also recommended?
<sphalerite>
fendor: sure. I don't use it personally, but it does make sense to use it.
<fendor>
sphalerite, ok, nice!
<sphalerite>
fendor: it's especially useful on multi-user systems where you don't want to put personal config in the system config and irritate other users with your settings
<fendor>
oh no, it does not supprot fish :(
asuryawanshi has joined #nixos
sbdchd has joined #nixos
<fendor>
sphalerite, well, that is not my use case, it just looked nice for managing the installed programs
<sphalerite>
if it's just for managing installed programs, I personally wouldn't use it
<sphalerite>
since you can just install them systemwide, or use a declarative environment with nix-env --set or nix-env -ir
<fendor>
i guess it is kind of overkill?
<zenojis>
honestly i think home-manager is over kill, I'd rather use git and shell scripts to manage those things, especially because I share some of that stuff on different computers that don't have nix or are running old software
hiroshi- has joined #nixos
<inquisitiv3>
Is anyone working on an LSP server for Nix?
matthewbauer has joined #nixos
<fendor>
ok, thanks for the opinions!
Guest6248 has quit [Ping timeout: 276 seconds]
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
luigy has quit [Ping timeout: 276 seconds]
lsix has quit [Quit: WeeChat 2.0]
Sonarpulse has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #41638 → libunistring: re-enable tests w/musl, update seems to have fixed → https://git.io/vhuDy
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
luigy has joined #nixos
Sigma has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
MP2E has joined #nixos
MP2E has quit [Remote host closed the connection]
fresheyeball has joined #nixos
orivej has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
I am having a problem I am unfamiliar with
<fresheyeball>
this morning I have having frequent hash mismatch errors
<fresheyeball>
something is wrong, but I dont know what
<fresheyeball>
I did a `nix-store --gc` and removed all hydras from configuration.nix other than cache.nixos.org
<fresheyeball>
and the hashes are still wrong
<fresheyeball>
is there a fixy fix all I can run?
kiloreux has joined #nixos
<Sonarpulse>
fresheyeball: srhb said delete squlite in /nix/store/var/db
<Sonarpulse>
and it worked for me
Ariakenom has quit [Ping timeout: 276 seconds]
<fresheyeball>
Sonarpulse: I dont have that path
<fresheyeball>
are you sure that is the path
<fresheyeball>
?
sigmundv has quit [Ping timeout: 264 seconds]
<Sonarpulse>
fresheyeball: sorry /nix/var/nix/db
<Sonarpulse>
or at least closer to that
jD91mZM2 has joined #nixos
jperras has joined #nixos
<thekolb>
is there a package that contails basic build tools such as ar?
<ar>
thekolb: I am not a tool. ;)
<jD91mZM2>
binutils
<jD91mZM2>
(lol)
civodul has quit [Ping timeout: 240 seconds]
<ixxie>
this is emaressing but: can someone show me an example of an if-else call in Nix?
<jD91mZM2>
ixxie: I think people are using mkIf, but I don't know
katona has quit [Quit: Connection closed for inactivity]
<bebarker>
Hi, just curious if there's anything else I can do for https://github.com/NixOS/nixpkgs/pull/41610 - having trouble running nox currently, but may be able to fix it
<infinisil>
Noticed the username -> hold on he's just in irc. And to my surprise you even mentioned me in your answer :P
<bebarker>
lol
nixos has joined #nixos
<infinisil>
bebarker: I don't necessarily agree that using a bash script for this is very nice though
shivnshu has quit [Ping timeout: 260 seconds]
<bebarker>
i need to test that solution a bit more (at least the .nix_versions) bit - it was working for a while, then net
<bebarker>
*not
<nixos>
hi, can I somehow search for a substring in *all* packages of my channel?
<bebarker>
infinisil, I agree - not ideal, i think it would be great to have similar functionality baked into a single command
humanoyd has quit [Quit: WeeChat 2.1]
nico202 has joined #nixos
<nixos>
event including hidden packages like haskell packages, but without explicitly stating an attribute like -A haskellPackages
<nixos>
*even
<infinisil>
bebarker: .drv files are really just a realization of nix derivations, which is the result of a nix expression. So to make something reproducible, you can just pin the nix files
shivnshu has joined #nixos
<bebarker>
infinisil, makes sense, I should probably remove the drv bit
philippD has joined #nixos
<bebarker>
nixos, have you tried `nix search` - doesn't work for me, unfortunately
shivnshu has quit [Client Quit]
<infinisil>
bebarker: I hope you don't mind me writing another answer to that SO thread
<bebarker>
infinisil, no, that would be great
kiloreux has quit [Quit: Leaving]
<infinisil>
Oh, it was even you that asked the question! Didn't see that until now :P
<nixos>
bebarker: doesn't help :/ it's still not listing all packages
<infinisil>
nixos: Unfortunately that's not easily possible right now. You'd need to modify nixpkgs to allow for that
<bebarker>
nixos, I saw this just today but again haven't tried it: sadly there is no nixpkg - https://github.com/tazjin/nixfd - but maybe you could make one ... ;-)
sigmundv__ has joined #nixos
nuncanada has quit [Ping timeout: 245 seconds]
<tazjin>
bebarker: I can add a default.nix and then it can be installed via `nix-env -if https://github.com/...`
nuncanada has joined #nixos
<tazjin>
I wasn't planning to do more with it due to `nix search` though
<tazjin>
but some people reported that it just "doesn't work" (i.e. no output) for them
nico202 has quit [Ping timeout: 240 seconds]
Neo--- has quit [Ping timeout: 264 seconds]
<bebarker>
tazjin, yeah, that is my problem. and cool! does nix search also do caching?
<dtz>
i've missed context but `nix edit` is... great LnL mentioned it
matthewbauer has joined #nixos
<bebarker>
tazjin, thanks, i'm really on the fence about learning Rust, but I keep holding out for ATS2/3 - I'm definitely torn. On the one hand, Rust has a largeish community, on the other ATS has more features, but maybe I should get my hands dirty (rusty?)
<infinisil>
nixos: I do `rg 'mypkg = '` in nixpkgs (the same as gchristensen, but locally)
<gchristensen>
and not indexed
<gchristensen>
but yes
<infinisil>
rg is so fast, I don't think that's needed tbh :P
<bebarker>
out of curiosity, reading the docs for nix.useSandbox - does it use chroot under the hood? does chroot actually have a performance effect other than the initial creation of the chroot environment?
<bebarker>
infinisil, i just installed rg today and was blown away ;-)
<tazjin>
bebarker: Rust is one of those languages - like Haskell or Common Lisp - that will teach you "a new way to think" once you really grok it
<tazjin>
whether you actually end up using it for anything doesn't really matter, but it's always good to have more thinking tools in your toolbox :)
<LnL>
bebarker: yeah, using sandboxing is a bit slower
<tazjin>
Rust has support for a sort of "weak form" of linear types in the form of sort-of affine types via the ownership system, that's a cool thing to wrap your mind around because you can use it for all kinds of improved API contracts in libraries
<bebarker>
tazjin, yea, i feel like http://www.ats-lang.org/ has those features already, and I learned them a bit, but i should still give Rust a try sometime
<tazjin>
ATS always feels a bit like Idris to me
<tazjin>
more on the academic side of things than the real-world side of things, as in - very good that the work happens and that we end up knowing new concepts afterwards, but I probably wouldn't *use* it for anything
<bebarker>
tajzin yeah with the dependent types - I try to stay away from those until i need them, but i don't always succeed !
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to staging: https://git.io/vhudf
<bebarker>
LnL, so what is it doing under the hood beyond what chroot does?
jasongro` has quit [Ping timeout: 240 seconds]
<tazjin>
bebarker: my company's whole backend is in Rust (and some sprinkles of common lisp) and we're quite happy with it
JasonGrossman has quit [Ping timeout: 265 seconds]
shivnshu has quit [Ping timeout: 240 seconds]
<tazjin>
it's also relatively easy to hire for
<LnL>
bebarker: builds also run inside of a mount/network namespace
<WilliamHamilton>
I still get `ALSA lib pcm.c:2493:(snd_pcm_open_conf) Either /nix/store/x0wqgcsfbxapwvdqnpl7pvib1gy7k95v-alsa-plugins-1.1.6/lib/alsa-lib/libasound_module_pcm_pulse.so cannot be opened or _snd_pcm_pulse_open was not defined inside` but now my nixos environment and my user environment are both updated on unstable
<gchristensen>
it also has some syscall filtering
<bebarker>
tazjin, cool - yeah, I just wish it was more FPish for starters. Like Scala-Native with a bit of linear typing. But if i'm being honest, i rarely need memory management these days, despite working at an HPC center (to my great surprise)
shivnshu has joined #nixos
<WilliamHamilton>
I wonder: does the fact that I indicated pulseaudio.enable in my nixos config prevent alsa from working correctly?
<ldlework>
pulseaudio depends on alsa iirc
hph^ has quit [Ping timeout: 240 seconds]
<foldingcookie>
it does
<foldingcookie>
it's possible to have situations where alsa stuff stops working in the presence of pulse because pulse takes exclusive control of the audio device, but that doesn't sound like what's happening here (and in those situations alsa client programs can still use the alsa lib to connect *to* pulse, which works fine)
<WilliamHamilton>
but does the error ring any bells?
<bebarker>
LnL, thanks! I'll take a stab at adding that to the docs
<foldingcookie>
"it does" meaning, it does depend on alsa
myshoe has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
<nixos>
infinisil: how would you proceed further? I, for example, got "pkgs/top-level/haskell-packages.nix 88: \n ghcjs = compiler.ghcjs82;" for 'ghcjs ='
<nixos>
infinisil: when looking into haskell-packages.nix I see that it's part of the "compiler" set
<infinisil>
nixos: wait what's your goal?
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<ldlework>
WilliamHamilton: have you turned it off and on again?
<foldingcookie>
WilliamHamilton: it sounds like alsa-plugins is either the wrong version or not installed somehow
<WilliamHamilton>
foldingcookie: I have alsaPlugins in my nixos configuration though
<ixxie>
what counts as tests being long enough to justify disabling tests?
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<WilliamHamilton>
and nothing in my user configuration
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<foldingcookie>
which program are you trying to use? is it installed through your user's nix-env?
epsonscanner has joined #nixos
<nixos>
infinisil: thanks! but how did you find that out?
<nixos>
am I somehow able to find the qualified name using "nix-env -qaP" or "nix search"?
<infinisil>
nixos: Just happen to know it ¯\_(ツ)_/¯
<epsonscanner>
hi all. I followed the scanner guide trying to install my Epson V500, which seems to be supported by epkowa, but xsane still doesn't see it. Any suggestion? :)
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #41641 → haskell infra: Use `self.ghc` rather than closing over initial value → https://git.io/vhuNs
<sphalerite>
After going to the sauna, or fixing the sauna?
<sphalerite>
:p
shivnshu has quit [Ping timeout: 265 seconds]
<ixxie>
hah
<ixxie>
going
<sphalerite>
enjoy
<ixxie>
cheers
shivnshu has joined #nixos
<bebarker>
infinisil, your answer is definitely helpful - for the nix-env bit, I think specification of a particular revision of nixpkgs is missing (e.g. using -I nixpkgs=...) and perhaps a method to record the version, though that is sort of mentioned in my answer
shivnshu has quit [Client Quit]
<infinisil>
bebarker: The fetchTarball does that
<infinisil>
I mean I didn't put it into the bottom file because usually people still want to use nix-channel, but as I said you can use the same pinning from the above file to get a specific nixpkgs
<bebarker>
infinisil, oh right, i guess that can easily be extrapolated to your 2nd example. I guess I like the idea of not using a fixed version unless necessary: pin what was used, but allow updates to the latest nixpkgs
<infinisil>
Ah yes, maybe I should add that, it's easily possible to do that in a single nix file
sbdchd has quit [Remote host closed the connection]
<bebarker>
infinisil, sweet! yeah, would be awesome. and i plead sleep deprivation today, a common occurrence - missed your sentence there at the end
nur0n0 has joined #nixos
<gchristensen>
iirc our dockertools buildImage don't produce OCI-compliant images. anyone have info on that?
<{^_^}>
[nixpkgs] @dtzWill merged pull request #41638 → libunistring: re-enable tests w/musl, update seems to have fixed → https://git.io/vhuDy
<bebarker>
infinisil, i was actually just wondering if that was possible this morning - though I think it answers a different question to what I had in mind. The feature I'm suggesting is basically the part of the bash script I put up that generates .nix_versions (assume current nixpkgs is good, but record it, cause we assume future versions may NOT be good and break our build)
<bebarker>
infinisil, though I guess I might be able to just add that as a shellHook ... hmm
<infinisil>
bebarker: Hmm you mean a script that writes your current nixpkgs version to a file?
<bebarker>
I guess what baffles me is that it is both so easy to do, but isn't the default; it is the default when using yarn/npm (these days)/pipfiles to generate a lockfile (super easy in nix compared to those), but I don't see people doing it "in the wild" - of course if your package is part of the nixpkgs repo, there's no need to do it
<bebarker>
infinisil, yeah
Izorkin has joined #nixos
<infinisil>
bebarker: Not every nixpkgs can be identified with just a version, only the nixpkgs from channels have that set to something reproducible actually
<bebarker>
infinisil, oh, I thought everything in <nixpkgs> was in a channel
<infinisil>
But I guess I understand what you want: You write some package where you use `import <nixpkgs> {}`, then you decide you wanna keep it working for the future, so you'd have to figure out how to get your exact <nixpkgs> and use nix code that uses a pinned version. With -I nixpkgs= this would be transparent
<bebarker>
and I thought <nixpkgs> was basically equivalent to the nixpkgs repo on github
<infinisil>
Nah
<infinisil>
> <nixpkgs>
<{^_^}>
/var/lib/nixbot/state/nixpkgs
foldingcookie has quit [Ping timeout: 276 seconds]
<infinisil>
It looks up "nixpkgs" in your NIX_PATH
<infinisil>
ldlework: Yes, I wrote it not too long ago :)
lopsided98 has quit [Remote host closed the connection]
<ldlework>
I don't think it is working :)
<infinisil>
bebarker: And this nixpkgs can be set to whatever you want, Nix will import that path for resolving <nixpkgs>
lopsided98 has joined #nixos
<infinisil>
This also works: nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz
camsbury has quit [Ping timeout: 256 seconds]
<infinisil>
ldlework: How is it not working?
<bebarker>
infinisil, yeah, your summary describes what I want ; my impression was that i record the string nixpkgs: "18.09pre140731.c29d2fde74d" - the part after the "." is the commit revision I could check out on the nixpkgs repo and pass in to -I nixpkgs=...
<infinisil>
Yeah that works only with channels
<infinisil>
> lib.version
<{^_^}>
"18.09pre-git"
<infinisil>
This is what it looks like on nixbots nixpkgs
<ldlework>
Oh yeah I ignored the bot
<infinisil>
Heh
<ldlework>
Because it announces every commit and such
camsbury has joined #nixos
fresheyeball has joined #nixos
<bebarker>
infinisil, ok - but if i'm basically just doing pkgs = import <nixpkgs> {}; in my nix expressions, i'm only installing things in nix-channels, as i'm not defining other dependant nix expressions elsewhere (and if I am, I'm being good and checking those into git)
<bebarker>
or is that a bad assumption?
<fresheyeball>
hey out there
<infinisil>
ldlework: It's not as bad as previously, samueldr made it so it doesn't announce individual commits anymore
<fresheyeball>
I seem to have bricked my system
<fresheyeball>
kernal panic on boot every time
<fresheyeball>
I have booted successfully off a 17.03 installer usb
<samueldr>
fresheyeball: even on older generations?
<fresheyeball>
and am trying to "enter" my old install so I can rebuild
<fresheyeball>
samueldr: yes, even old ones
<samueldr>
fresheyeball: you probably want a newer usb installer image (18.03) as it has nixos-enter (if I remember the name properly)
<bebarker>
infinisil, what is lib.version - is that a nixos thing, or more general (nixpkgs)?
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #41641 → haskell infra: Use `self.ghc` rather than closing over initial value → https://git.io/vhuNs
<bebarker>
infinisil, almost seems as if it would be simpler/safer to just use a local copy of nixpkgs repo direclty for this purpose - could just grab the commit of nixpkgs. of course, the obvious downside is having to download the nixpkgs repo every time ... ;-)
<fresheyeball>
srhb: failed to run command `run/current-system/sw/bin/bash`: No such file or directory
<bebarker>
though, git clone --depth=1 I suppose..
<infinisil>
bebarker: I mean if you don't need any changes to the nixpkgs version it's totally fine to use fetchTarball directly
danielrf has joined #nixos
<infinisil>
bebarker: I just don't like using a brittle bash script to pin versions, I'd rather do that myself :)
<{^_^}>
[nixpkgs] @Ericson2314 pushed to release-18.03 « haskell infra: Use `self.ghc` rather than closing over initial value »: https://git.io/vhuxj
<bebarker>
infinisil, i'm not a shell script fan myself, but have found myself doing a lot since trying to build fancy containers ... using the lowest common denominator on linux ;-)
<bebarker>
infinisil, yeah i suppose specifying a commit id is nice and easy, and not much more work than running some form of update command
<infinisil>
bebarker: Yup
<infinisil>
It's a bit weird, I think builtins.fetchTarball doesn't output the correct hash when you give it a wrong one
jD91mZM2 has quit [Quit: WeeChat 2.0]
<bebarker>
infinisil actually since it is a tarball, it should be nix-prefetch-url right? though i got a different sha256 in your example on stackoverflow
<inquisitiv3>
Do I understand it correctly that the packages listed on the different rows is the so called constituents?
<Jetien>
Hi! What's a good way to debug if you wan't to figure out why a derivation's hash isn't what you expect it to be?
Fare has quit [Ping timeout: 264 seconds]
<matthewbauer>
Jetien: nix-diff if you have the .drv file for each
<infinisil>
bebarker: I used nix-prefetch-url --unpack, fetchTarball unpacks the tarball as well
<Jetien>
matthewbauer: thanks. i suppose the .drv file name should be equal too?
<matthewbauer>
Jetien: well you should have 2 .drv files & see the difference between the two (you also just diff the two files but nix-diff recurses into its inputs)
<bebarker>
based on this discussion I wonder if I should still keep recording derivations ... for the ultimate in paranoia ;-)
<bebarker>
infinisil, great, that worked, i'm excited to try all this out soon
<infinisil>
bebarker: If you really really want it to be 100% reproducible, Nix 2.0 should have a pure evaluation mode, where actually nothing other than the nix you write can influence the derivation
chreekat has joined #nixos
Fare has joined #nixos
robstr has quit [Quit: WeeChat 1.9.1]
<bebarker>
infinisil, cool - sounds kind of like sandbox
<ixxie>
gchristensen: did you end up picking a name for your thingy?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhujo
<sir_guy_carleton>
infinisil: nix --help works. i'm guess they don't want to write the man page until they've got every down pat.
<ixxie>
!pure-eval
<ixxie>
or how does that work infinisil ?
<Jetien>
matthewbauer: thanks again; that helped :)
<infinisil>
ixxie: ! is gchristensen's bot prefix, mine is ,
<ixxie>
right
<ixxie>
,list
<{^_^}>
ixxie: Did you mean hint?
<{^_^}>
Commands prefixed with , such as ,ask take a nickname as an argument, which you can use to direct the resulting message to that specific user, e.g. ,ask paul
<ixxie>
,hint
<{^_^}>
Commands prefixed with , such as ,ask take a nickname as an argument, which you can use to direct the resulting message to that specific user, e.g. ,ask paul
<ixxie>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<infinisil>
ixxie: You can use #bottest to experiment with it :)
<gchristensen>
should probably delete the !bit
oida has quit [Remote host closed the connection]
<infinisil>
Yeah :)
<bebarker>
infinisil, amazing, would the ideal then for actually using it to be to somehow chain nix-shell --pure after running nix-build --pure-eval? Sorry, not very familiar with using nix-build
<ixxie>
so there is no official cutoff time for tests in nixpkgs?
<bebarker>
to drop into the shell environment created by nix-build
sbdchd has quit [Remote host closed the connection]
<infinisil>
bebarker: I think --pure-eval should also work with nix-shell, along with --pure it would be a rather pure environment :P
<bebarker>
makes sense!
<infinisil>
I should really make the "Did you mean" feature of my bot a bit better..
<infinisil>
Or maybe just output ,help if the lookup fails
<manveru>
slowly conquering the world... one language at a time
justan0theruser has quit [Ping timeout: 240 seconds]
oida has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 265 seconds]
logzet_ is now known as logzet
logzet is now known as logzet_
logzet_ is now known as logzet
<endformationage>
I am working on a NixOS module. I have an option typed as `attrsOf (submodule { ...` and am wondering if there's anything wrong with the idea of using the user defined attr name(s) inside a path?
<endformationage>
Baically I want to create a subdir named by the user defined attr.
<ixxie>
infinisil: will do
<ixxie>
gnight folks
<infinisil>
endformationage: Nope, totally fine
<infinisil>
endformationage: you can define the options however you want
oida has quit [Remote host closed the connection]
oida has joined #nixos
anderslundstedt has quit [Quit: leaving]
<endformationage>
At the moment I have a path default like: /default/path/with/__placeholder__, and then I use replaceStrings to substitute in the user defined attr name.
<endformationage>
Might there be a more direct way to reference the user defined attr in the option declaration?
<infinisil>
Huh
ixxie has quit [Ping timeout: 268 seconds]
<infinisil>
I mean when you defined `my.option` to be of type `attrsOf ...`, then you can get all the attribute names with `builtins.attrNames config.my.option`
<Jetien>
what else does "nix-store -add <file>" depend on other than the contents of <file>?
<LnL>
infinisil: pacakge :p
* infinisil
is confused
<endformationage>
Thus defining services.someService.userDefinedFoo.defaultPath results in the path: /default/path/with/userDefinedFoo
ixxie has joined #nixos
<mightybyte>
domenkozar: Awesome!
anderslundstedt has joined #nixos
<Jetien>
I'm so confused. I have 3 machines and a file. On 2 machines "nix-store --add my_file" results in the same hash. On 1 machine it differs, even tough the md5sum of all 3 files is the same. All machines run nix 2.0. What's going on here?
<gchristensen>
filename the same everywhere?
<Jetien>
yes, just "config"
<gchristensen>
:/
<epsonscanner>
Is there a package in nixpkgs that has something like transset, so change the opacity of a window in compton?
<Jetien>
i think nix finally broke me
<infinisil>
epsonscanner: xprop can do that
justanotheruser has quit [Ping timeout: 240 seconds]
<infinisil>
You might need to configure compton to use that property, but it's fairly standard, I'm pretty sure compton supports it
<Jetien>
Okay, i finally copied the file to the other machine and hash still differs. i just... https://pastebin.com/KXAkeKGM - i'm not making this up
justanotheruser has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
<Jetien>
It was the permissions.
<infinisil>
Jetien: Maybe try with just an empty file, and one that just contains a single letter, just to see if it's the files problem or the systems
<infinisil>
Oh hah
<Jetien>
it seems that nix-store ignores the group and other permissions. these were the ones i modified to test
<Jetien>
not though owner permissions
<{^_^}>
[nixpkgs] @bjornfor pushed to master « lttng-modules: add 'libelf' to fix build against linux 4.14 »: https://git.io/vhzU9
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @bbarker to master « nixos/sandbox: improve documentation. »: https://git.io/vhzkI
<mightybyte>
What's the difference between substituters and binary-caches in nix.conf?
<mightybyte>
I don't see binary-caches mentioned in the docs. Is that an old deprecated name?
chreekat has quit [Quit: quitting]
cfricke has joined #nixos
<obadz>
I think substituters if a way to find you a binary cache (such as some other local partition, some store accessible via ssh, or some binary cache you might hit over http…) but I could be wrong.
nuncanada2 has joined #nixos
sigmundv__ has joined #nixos
nuncanada has quit [Ping timeout: 268 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
cfricke has quit [Quit: WeeChat 2.1]
simukis has quit [Quit: simukis]
sbdchd has quit [Remote host closed the connection]
henrycrutcher has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « androidndk: remove set -x »: https://git.io/vhzIh
kiloreux has joined #nixos
tzemanovic has quit [Ping timeout: 260 seconds]
<kiloreux>
Is there a way to make buildGoPackage more verbose ?
<kiloreux>
I am trying to build a go package but it just stops without any error message
<henrycrutcher>
Anyone have any idea how to make a container able to talk to any machine on any network other than its host. I'm trying to use nixops to configure a container to contain wordpress, and the container has no ability to send packets anywhere. I've tried defining bridges, and it deploys, but no results in ifconfig. Ive tried setting privateNetwork t
<henrycrutcher>
o false, but neither privateNetwork nor networking.privateNetwork exist, documentation be darned. Is this something that nixos container networking can do? If not, how do people use this facility?
i-am-the-slime has quit [Ping timeout: 245 seconds]
ixxie has quit [Ping timeout: 276 seconds]
epsonscanner has quit [Ping timeout: 260 seconds]
<henrycrutcher>
Oh, and I tried networking.nat.enable, networking.nat.internalInterface, networking.nat.externalInterface and that didn't work either
<LnL>
is ip forwarding enabled?
<henrycrutcher>
In the container?
<henrycrutcher>
which options do that, that sounds like what I need
Fare has joined #nixos
Plato[m] has quit [Remote host closed the connection]
PLPD-Bot has quit [Remote host closed the connection]
szicari has quit [Quit: Leaving.]
PLPD-Bot has joined #nixos
<henrycrutcher>
Looking more closely, port forwarding doesn't do what I need since the problem is I can't contact anything from within the container
sir_guy_carleton has quit [Quit: WeeChat 2.0]
myshoe has quit [Quit: Lost terminal]
<henrycrutcher>
bump
samtoday has quit [Ping timeout: 264 seconds]
samtoday has joined #nixos
<LnL>
ah sorry the kernel parameter, let me find it
PolarIntersect has quit [Ping timeout: 240 seconds]
<AntonLatukha[m]>
Ok. As I thought, it is just a basic argument test. If Nix code is right, this assert can be usable only if there is option collisions.
tzemanovic has quit []
PolarIntersect has joined #nixos
<LnL>
it's to avoid having eg. annoying cannot coerce null to a string errors
<AntonLatukha[m]>
This most common types of assert should be specifically explained in a manual. Because I am not alone.
<AntonLatukha[m]>
s/types/type/g
alexteves_ has quit [Remote host closed the connection]
disasm has joined #nixos
<AntonLatukha[m]>
Ok. Thank you. It is a implication that launches logical test after binding of values.
<maurer>
AntonLatukha[m]: If it helps, it is an implication in the classical sense rather than the intuitionistic sense
<maurer>
e.g. (a -> b) translates to ((a and b) or (not a))
<gchristensen>
AntonLatukha[m]: it is an extremely low precedencce opertor too
<henrycrutcher>
Are there any examples of nixops container configurations that have the container able to talk to any endpoints other than the host? Or is that just not done(tm)
xy2_ has quit [Ping timeout: 265 seconds]
<gchristensen>
AntonLatukha[m]: so basically (everything on the left) -> (everything on the right) is implied
<maurer>
henrycrutcher: It can be done, this irc session is running from a nixops container. I don't have the time to examine your situation, but rest assured it's possible
<AntonLatukha[m]>
Yes, @maurer grahamc thanks, now it is certainly fully explained and understood.
<gchristensen>
cool
<henrycrutcher>
If containers cannot talk to anyone other than the host, is there a clean way to forward traffic for one other host to the outside and back?
<shachaf>
I'm pretty frustrated trying to get X running. Whenever I boot without systemd.mask=display-manager.service, the computer completely freezes (doesn't even respond to SysRq) as soon as it tries to start X. On the next boot, `journalctl -u display-manager.service` is empty. Not quite sure how to debug this.
<shachaf>
I've tried services.xserver.videoDrivers = ["vesa"], ["intel"], all sorts of things. And I have hardware.nvidiaOptimus.disable = true; boot.blacklistedKernelModules = ["nouveau"];
<shachaf>
(This is a laptop with nvidia optimus but I'd settle for just getting any pixels on the screen at this point.)
<tazjin>
shachaf: can you gist your services.xserver and potentially related hardware config options?
<shachaf>
Meanwhile it starts up fine in the Ubuntu live CD, not that that tells me much.
<tazjin>
shachaf: also, when you attempt to get the journalctl logs, are you specifying which boot to get them from?
<shachaf>
I thought it showed them from previous boots automatically?
fendor has quit [Read error: Connection reset by peer]
<shachaf>
So lightdm seems to have similar problems. It has the advantage (?) of putting X logs in /var/log/X.0.log instead of systemd.
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
palo has quit [Ping timeout: 264 seconds]
<shachaf>
So if I set services.xserver.videoDrivers to ["intel" "nvidia"] or ["nvidia"], then X still doesn't start up, but the system doesn't freeze. I guess the problem might be the intel driver?
silver has quit [Read error: Connection reset by peer]
<shachaf>
It makes sense that the nvidia driver wouldn't work on its own because the nvidia card isn't connected to the screen directly, it's only meant to be used with optimus.
blankhart has joined #nixos
<shachaf>
Maybe I'm missing something about how to use the intel driver? I wouldn't expect it to be too problematic...