<disasm>
iqubic: yeah, the answer to your questions, is with existing nixos code,I don't see anyway to change the splash screen with systemd-boot whereas grub has a splashImage, font and fontSize attrs, so if this is about cosmetics, with nixos at least I would say just use grub.
<iqubic>
disasm: What are the other differences between grub and systemd?
notdaniel is now known as _notdaniel
dkh has joined #nixos
_notdaniel has quit [(Client Quit)]
<sphalerite>
iqubic: Grub is a bootloader and systemd does everything
<disasm>
sphalerite: I think he was talking about systemd-boot :)
<sphalerite>
disasm: it's not just nixos, systemd-boot is very limited in general and just plain doesn't support stuff like fonts
<Unode>
I use lightdm and awesomewm as login and window manager. Every once in a while, when I login right after boot, I get sent to a 'fallback' session where I see a term (xterm I think) and no window decorations. Has anyone ever experienced this and do you have any suggestions on how to fix/workaround it? Most often logging out and back in fixes it but it's annoying...
<disasm>
sphalerite: well, arch and other distros have the ability to set a splash screen :)
<sphalerite>
disasm: and as a result its code is tiny. Especially compared with grub
<sphalerite>
With systemd-boot?
<iqubic>
Effing hell. I keep mixing up systemd and systemd-boot
<Unode>
iqubic: nixos works fine with grub. save yourself some time and just use it.
<disasm>
although I'm not taking the effort to add that to nixos, I care very little for aesthetics of my boot manager, lol
<iqubic>
disasm: I dn't want to do that either.
<sphalerite>
Yeah same, I just care that it boots my system
<iqubic>
I might submit and FR though.
<Unode>
I'm with disasm on that. For something I see less than 2 seconds a day.
<disasm>
Unode: I have triple boot, doesn't mean I ever leave nixos, lol :)
<sphalerite>
disasm: make a configuration.nix with imports = [<nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix>]; boot.supportedFilesystems = [ "zfs" ]; then nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage
<disasm>
osx/nixos/arch :)
<sphalerite>
disasm: that's from memory and typed on my phone so it may have some mistakes
<infinisil>
I don't think other distros have it as easy to build a custom iso
<sphalerite>
I'd be really impressed if that actually worked as I wrote it though
<sphalerite>
That I actually managed to remember it right
<disasm>
haha, if I knew it was this easy, I wouldn't have procrastinate for months, lol
<disasm>
sphalerite: so that should have the wifi modules the minimal nix live cd has too right?
<avn>
sphalerite: btw, why we haven't zfs in default install media?
<disasm>
avn: legal reasons
<avn>
it make iso non-redustributable?
<infinisil>
the same reason ZoL isn't in linux
<sphalerite>
disasm: yeah I think si
<sphalerite>
avn: yep. Zfs (CDDL) is GPL-incompatible so bundles of software under both licences aren't redistributable
<Unode>
sphalerite: this systemd timers stuff is interesting. Thanks for the reference
<avn>
sphalerite: damn. So always "rescue media" with recent zfs version -- is a dances with building fresh image on notebook :/
<Unode>
on nixos if I want to monitor why lightdm (or X) defaulted to a bare xterm, what file/log should I look at?
<Dezgeg>
you can nixos-rebuild in the live cd
<Unode>
Is this something that would also end up on systemd journal?
<sphalerite>
Unode: NP :) timer stuff would, yes. Lightdm is broken and doesn't log to the journal
<sphalerite>
avn: yeah as Dezgeg says you can use the regular iso and just build the zfs module on there
<sphalerite>
It's just if you want to avoid the extra effort and have a zfs-capable install medium immediately available
<Unode>
sphalerite: so... any suggestion as alternative to lightdm? I don't mind going old-school with login on console and startx (that's how I still have it on gentoo)
<avn>
sphalerite: I think about writing expression to build install media with zfs+git+... and add it to standard configuration for all machines in my home. So each update will update image as well
<disasm>
sphalerite: can't seem to get that syntax to work...
<sphalerite>
Unode: I use sddm. xinit might work too but I don't know anything about that, particularly how it behaves logging-wise
<sphalerite>
disasm: details?
<Unode>
sddm, will check.
takle has joined #nixos
<disasm>
sphalerite: error: file ‘nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/sam/nixos-vm-config/usb.nix:2:14
dkh has quit [(Ping timeout: 258 seconds)]
<disasm>
command I'm running is nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=/home/sam/nixos-vm-config/usb.nix
<disasm>
oh... ls: cannot access '/home/sam/nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix': No such file or directory
<disasm>
got it
* Unode
scratches his head
<disasm>
it's installation-cd-minimal.nix
<Unode>
is lightdm the default nixos login manager?
<disasm>
no, slim is
<sphalerite>
Unode: no, slim is
<iqubic>
Why are we using slim?
<Unode>
ah so that's what I'm using. Though it was lightdm. :S
<sphalerite>
disasm: so close!
<disasm>
sphalerite: thanks for the help :)
<iqubic>
slim is no longer being maintained.
<Unode>
sphalerite: so rephrasing what I asked before. journalctl for slim?
<sphalerite>
Unode: that explains why it does the xterm thing
<Unode>
sphalerite: please do tell more :)
<sphalerite>
It'll do that if you got your password wrong
<Unode>
really? xD
<sphalerite>
Idk why but yeah
<disasm>
iqubic: i think because there's no light weight alternative yet and it just works :)
<Unode>
what the heck...
sophiag has joined #nixos
<sphalerite>
You can change it back by pressing f1 iirc
<Unode>
ok sddm then
<sphalerite>
But sddm is better :p
<infinisil>
sddm looks way too fancy for me
<sphalerite>
disasm: just works... Apart from the bits that don't :p
<disasm>
but... kde, lol :)
<Unode>
oh so sddm is also the kde default?
<sphalerite>
disasm: glad I could help
<sphalerite>
Unode: yes
<iqubic>
Unode: Yes
<sophiag>
wow, so after crashing due to upgrading to 17.09 i tried disabling my graphics card in bios as MichaelRaskin suggested and learned i cannot do that on this machine...i have no options to disable either the card or integrated, only the memory allocated to integrated :p
<Unode>
wasn't this kdm or something?
<sphalerite>
Jeez, it's 1:30am?
<Unode>
I haven't used kde in a while.
<sphalerite>
Unode: previously, yes.
<Unode>
sphalerite: 2:30 here :x
<disasm>
sphalerite: nah, it's only 8:30 PM, your in the wrong timezone :)
<sphalerite>
I should sleep.
<Unode>
and now I feel like disabling the whole X thing and login from terminal. But I'm guessing systemd is going to get in the way
<sphalerite>
No, systemd-logind should actually cause that to work in spite of X not being setuid :)
<sphalerite>
I think.
<sphalerite>
Anyway
<sphalerite>
Gnight all!
<Unode>
sphalerite: cheers sphalerite thanks for all the help
orivej has quit [(Ping timeout: 248 seconds)]
<disasm>
night sphalerite!
<disasm>
sophiag: sounds like a crappy laptop...
dkh has joined #nixos
<disasm>
there's a reason I went with the intel variant when I got my macbook :) and it wasn't because it was cheaper
<disasm>
well, see ya'll on the flip side! time to destructively wreck my laptop :)
dkh has quit [(Read error: Connection reset by peer)]
<Unode>
reading on the nix cheatsheet, "nix-store --query --referrers $(which emacs)" is mentioned as the command to find reverse dependencies of a 'package'. The command actually takes a file from a package. Is there any other variant that accepts a package name or attribute?
<iqubic>
disasm: Are you actually going to destroy your laptop?
<Unode>
With the update to 17.09 I had to create a security exception for old samba. I'm trying to figure out what depends on it.
sigmundv__ has joined #nixos
<sophiag>
disasm: fancy gaming laptop i got from a friend :(
<sophiag>
much more confusing is after building 17.09 i've lost a ton of packages
<sophiag>
like the build succeeded, but a bunch of packages are nowhere to be found...
<sophiag>
removing my password manager was a nice touch :/
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<iqubic>
sophiag: You have a password manager?
<iqubic>
What is called
<sophiag>
pass
<iqubic>
Ah. I hear a lot of people like using pass.
<iqubic>
I use LastPass. Is that the same thing?
<iqubic>
I mean is it the same program.
<iqubic>
?
dieggsy has joined #nixos
<sophiag>
no, but it does the same thing
<sophiag>
i may switch to LastPass because i'm trying to get everyone in my company to use it as policy
<disasm>
iqubic: well, wipe out the main disk (btrfs) and replace with zfs
<disasm>
but I'm going to eat dinner first to think of anything outside of home and /etc/nixos I might care about
<iqubic>
disasm: Why are you telling me what to do?
<iqubic>
I have already switched to nixos.
<iqubic>
I'm using ext4
<sophiag>
ah, i suspect my issue with pkgs missing after upgrading to 17.09 was because i foolishly set allowBroken to true
<sophiag>
or not? changing that didn't fix it :(
ryantrinkle has joined #nixos
Enzime has joined #nixos
<dieggsy>
Hmm... I had a custom exa nix expression to track exa master, and I also had a custom rust-packages.nix to help this, but recently I've been getting 'failed to load source for a dependency on ...' (usually either `datetime` or `zoneinfo_compiled`). anyone know anything about this?
<kkini>
I'm trying to install nix on a machine behind a firewall, so a proxy is necessary. I've set and exported $all_proxy in my shell, but the install fails during what seems to be a `nix-channel --update` call. Am I missing something?
fader_ has quit [(Read error: Connection reset by peer)]
dieggsy has quit [(Remote host closed the connection)]
<iclanzan>
Hi all, I upgraded to 17.09 and now I am encountering a couple of bugs that seem to be related to Xorg. Does anyone know how I can use an older version?
<iclanzan>
And older version of X that is
Ivanych has quit [(Ping timeout: 260 seconds)]
<sophiag>
iclanzan: welcome to the club :p
<iclanzan>
sophiag: are you having trouble with X too?
<sophiag>
i'm not sure tbh. i very much thought that at one point but now i think it's a video driver issue
<sophiag>
also, this has been happening since i upgraded to 17.03 so hopefully not at all similar to what you're dealing with
<iqubic>
I have no X issues at all.
<iqubic>
Using ASUS Zenbook UX305FA and NixOS 17.09
<iclanzan>
The problems I am dealing with where not present in 17.03
<iqubic>
iclanzan: What problems are you getting exactly
<iclanzan>
iqubic: first issue is that the power button is not triggering an event with a keysym anymore so I can’t bind to it in i3. The second problem is the cursor when hovering over links is the grabbing cursor instead of the pointer. I am on a Macbook Retina 2015.
<iclanzan>
these problems did not exist in 17.03
<iqubic>
Those seem like minor issues.
<iqubic>
I never use the power button to turn off my machine,
<iqubic>
I just issue poweroff from the command line.
<iclanzan>
I use it to lock the computer
<iclanzan>
but now it doesn’t work :(
hiratara has quit [(Ping timeout: 255 seconds)]
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<iqubic>
looks like the power button shuts off my machine.
<iqubic>
Can I have it lock my machine instead?
hiratara has joined #nixos
<iqubic>
And to be clear, this isn't a setting I set in my WM config. This binding was set by nixos somehow.
<iclanzan>
iqubic: to have the power button do something else you first have to make it not turn off the machine by adding `services.logind.extraConfig = "HandlePowerKey=ignore"`
<iclanzan>
and then you can bind to it using the "XF86PowerOff" sym and make it do whatever you want
<kkini>
Unode: thanks, I'll try it
<iqubic>
iclanzan: can I use services.logind.extraConfig to run a screen locker program?
<iclanzan>
Oh, good question... that would solve my problem. Lemme look into it
lambdamu_ has joined #nixos
csingley has joined #nixos
lambdamu has quit [(Ping timeout: 240 seconds)]
<iqubic>
Are there any options I can set in configuration.nix to handle screen locking?
hellrazo1 has joined #nixos
<iclanzan>
not that I know of, you have to use an external package, like i3lock
<kkini>
Hmm, didn't seem to work.
<kkini>
In fact, I can't find any reference to CURL_NIX_FLAGS on github at all, which is odd
<iqubic>
Not sure what screen locker I want to use.
<clever>
kkini: one passes it to curl, the other tells nix to let it into the sandbox
hellrazor has quit [(Ping timeout: 260 seconds)]
<kkini>
clever: thanks. I guess github's code search isn't very thorough...
<clever>
yeah
Wizek_ has quit [(Ping timeout: 248 seconds)]
thc202 has quit [(Ping timeout: 260 seconds)]
iclanzan has quit [(Quit: WeeChat 1.9.1)]
csingley has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 258 seconds)]
Arcaelyx_ has joined #nixos
mbrgm has joined #nixos
Arcaelyx has quit [(Ping timeout: 246 seconds)]
mrkgnao has joined #nixos
<kkini>
Hmm, does `nix-channel --update` actually use fetchurl, though? I traced the error to nix-prefetch-url which seems to be a C++ program
<kkini>
Or actually wait, I see a curl call in nix-channel which is for some reason *before* it prints the message about downloading nix expressions
<kkini>
lol, this is extra confusing since apparently nix-channel was rewritten in C++ in august, which I guess hasn't made it into the latest nix release (?)
<clever>
kkini: which version of nix are you using?
Supersonic112 has quit [(Disconnected by services)]
<iqubic>
rosa: What problems are you running into?
<kkini>
I see the "downloading Nix expressions from" message, which leads me to believe the error is coming from the call of `nix-prefetch-url` on the following line, but maybe I'm wrong?
<rosa>
no wifi
<clever>
kkini: ah, thats where it downloads the actual channel
<clever>
kkini: its downloading it with just bare curl
<clever>
oh wait...
<clever>
it uses curl to query the redirect, the nix-prefetch-url to download, fun
<kkini>
ah, the --head
<kkini>
I was skimming that line looking for -I and didn't see it, but I guess --head is the long form of -I, haha
<clever>
it does funny things like this, because the directory on the server is a symlink
<clever>
and it wants to atomicly download 2 things from the same directory
<clever>
gchristensen: lol, i already have you added as a remote!
<gchristensen>
oh hehe cool!
<gchristensen>
I'll wait for you to test, then
<iqubic>
Does systemd have a screen locker service?
<rosa>
if i set nixos to use boot flag will that cause its grub to be loaded instead of fedora's grub?
<kkini>
From what I can tell it seems like it's trying to check for the presence of the .xz file on the server and then falling back to .bz2 if the .xz didn't exist
<iqubic>
rosa: nixos has no control over what grub is run. You need to set that up via the bios.
<rosa>
how do i do that
<gchristensen>
clever: ok I'm going to bed, let me know what you think :)
<clever>
gchristensen: ive got output for 2 machines
<ldlework>
but now I want to switch to an org-mode based config, so I need to run emacs with a few commandline options against a file init.org to produce the init.el that should be eventually symlinked
<kkini>
I guess nix-prefetch-url doesn't call the curl executable, but rather uses libcurl
<clever>
grahamc: at a glance it all looks correct
<kkini>
Does it still obey the same proxy environment variables? And if so, is nix correctly propagating the environment variables to nix-prefetch-url...? hmm
<infinisil>
which is correct
<grahamc>
infinisil all correct?
<grahamc>
Cool!
<ldlework>
infinisil basically, instead of using home.file directly, how can I execute emacs on one of the files and then add the output?
<grahamc>
Thank you both for testing!
<kkini>
oh wow, I might have been missing something important -- the error actually says "SSL connect error" rather than a timeout
<ldlework>
infinisil ugh I don't quite understand this syntax
<grahamc>
Clever does anything stick out as very important, basic info needed for helping people on IRC? If not I think it is ready to merge and replace the issue template.
<clever>
grahamc: where the config.nix comes from
<grahamc>
Oh? :o
<infinisil>
grahamc: NIX_PATH?
<infinisil>
ldlework: Read through the nix syntax section in the nix manual
<ldlework>
I have!
<ldlework>
are your quote right?
<infinisil>
maybe a bit off, i didn't run this
<rosa_>
I meant as in can the nix live graphical cd boot entirely in ram leaving the cd drive or usb free to use for other purposes
<clever>
rosa_: both the kexec and netboot images run 100% from ram
<clever>
rosa_: this build of nixos, contains just a kernel, initrd, and the kernel cmdline
<clever>
rosa_: and all you need to add, is a way to boot that, and then it can run without the boot media
<clever>
my kexec script just runs that via kexec
<rosa_>
Ok
<ldlework>
infinisil I don't understand what the first argument to run command is
<infinisil>
ldlework: The name of the derivation, can be anything
<ldlework>
I see
<ldlework>
infinisil so I guess this is run once emacs is already installed?
<ldlework>
or do I use the set (second arg) to set builtInputs?
<ldlework>
(also where is runCommand documented?)
<eqyiel[m]>
how can I prevent gdm from restarting every time I run nixos-rebuild switch? afaict, this is the cause of it: https://github.com/NixOS/nixpkgs/pull/28053#issuecomment-325196778 but I don't think gnome would work at all in its current state if I just got rid of all instances of config.system.path
<ldlework>
Will the derivation inherit the buildInputs of the parent derivation
<ldlework>
like if I've "enabled" the Python package with home-manager, will this derivation use the installed emacs?
<clever>
nope
<ldlework>
So I do need to add emacs as a build input if I'm going to run emacs in this derivation
<rosa_>
Does nix just use symlinking?
<clever>
infinisil: yeah
<rosa_>
Or does it take advantage of unionfs
<clever>
rosa_: symlinks as far as the eye can see!
<ldlework>
Nix with Union filesystems would be neat
<rosa_>
Lol
<clever>
rosa_: nix can also use hardlinks to handle dedup
hexamod has joined #nixos
sigmundv__ has quit [(Ping timeout: 240 seconds)]
serhart has joined #nixos
<infinisil>
I just used hardlinks today to organize my ripped movies into a folder structure like ./quality/{bluray,dvd} ./format/{mp4,mkv} ./language/{ger,eng,jpn}
<infinisil>
works rather well
<ldlework>
infinisil do you have a blog
roconnor has joined #nixos
roconnor_ has joined #nixos
roconnor has quit [(Ping timeout: 248 seconds)]
<infinisil>
I do not
marusich has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
<Drakonis[m]>
remember that nixpkgs fork that tried to support freebsd? they dropped freebsd and now focuses on linux
paraseba has quit [(Remote host closed the connection)]
<infinisil>
lol, link?
roconnor_ has quit [(Quit: Konversation terminated!)]
taktoa has joined #nixos
rosa_ has quit [(Quit: rosa)]
<ldlework>
Hmm somehow my shell got messed up and I can't run home-manager switch anymore
<ldlework>
it says that NIX_PATH is not set
<ldlework>
what happened?!
<ldlework>
what even set NIX_PATH in the first place...
<ldlework>
This fails unless I comment out the line 22
<ldlework>
It says "/private/tmp/nix-build-init.drv-0/.attr-0: line 1: /nix/store/svkr5myyqvygznm0s5nid3k65kcvr9lx-init/init.el: No such file or directory"
<infinisil>
ldlework: Does this emacs command output the compiled version to stdout?
<infinisil>
and you need to mkdir -p $out too
<ldlework>
yeah it does
<ldlework>
that got me further
<ldlework>
:)
<infinisil>
ldlework: Oh and you can also do `readFile ./.emacs.d/init.el` instead of the sting thing there
<ldlework>
now it says that it can't find assets/org-build.el during the init derivaition build
<ldlework>
does the inner build not have access to the files relative to this nix file?
<infinisil>
It does not have access to the actual files, but you can use ${assets/org-build.el} instead of "assets/org-build.el" in the build command to make it work
<ldlework>
what does that do exactly?
<infinisil>
this will import assets/org-build.el into the nix store, and put the path /nix/store/<hash>-org-build.el at ${assets/org-build.el}'s place
ivanivan has joined #nixos
<ldlework>
huh
<infinisil>
where assets/org-build.el is right next to the nix file you've written this in
<ldlework>
right
<infinisil>
That's why you can also do `home.file.".emacs.d/init.el".source = ./init.el; where an init.el is next to that nix file
<ldlework>
yeah
<ldlework>
infinisil what if I want to import a file into that build without referring to it?
<ldlework>
like I don't have a bash command that needs that file denoted at the cli
<ldlework>
but that file needs to exist
<infinisil>
i don't get that
<ldlework>
like we used the "${ }" syntax to ensure that the file referred to was copied int othe build and made available
<ldlework>
how can I get another file into the build without referring to it in the build script?
<infinisil>
You can't
<infinisil>
Nix lives in a sandbox
<ldlework>
IE without using the "${ }" syntax
<ldlework>
lol
<ldlework>
Sure, but I can't import a file with something in the env set?
<infinisil>
the builtins commands are the only thing that can talk to the environment, which are evaluated pre-nix-evaluation
<ldlework>
I have to do `touch ${init.org}` just so it exists?
<srhb>
Does anyone else experience the vim nix syntax support tends to count indents in comments and screw up everything? Is there a workaround?
<ldlework>
infinisil but you see how that's inconvinenet right?
<srhb>
(like, say you had a comment such as # foo = { ... -- it will actually count the { as increasing the indentation of the following non-comment-line_
hamishmack has joined #nixos
<infinisil>
ldlework: Nix can't write files
<infinisil>
to ~ or so
<iqubic>
Why is it that my computer goes suspends itself after being idle for some time? Is that a native property of the linux kernel, or a NixOS thing.
<ldlework>
infinisil I just mean whatever happens to with "${ }" to make that file available!
<ldlework>
obviously nix does ^
<iqubic>
Because this also happened on Gentoo too.
<ldlework>
we just went over it
<infinisil>
ldlework: Nix isn't made for that, it's not a general purpose language
<ldlework>
I have no idea what you're talking about lol
<ldlework>
in the bash
<ldlework>
the derivation build script
<ldlework>
I did `emacs somefile.el`
<ldlework>
and you were like the file isn't there
<iqubic>
ldlework: You can't write games in nix.
<ldlework>
but wrap it in "${somefile.el}"
<infinisil>
ldlework: It can only put stuff in /nix/store, and only with the correct hash via derivations
<ldlework>
and it'll be there
<ldlework>
yes!
<ldlework>
so
<ldlework>
there should be a way to add a file to the store for a runCommand build
<iqubic>
why are we talking about emacs? What is the issue here?
<ldlework>
without having to refer to the file in a string template in the build script
<ldlework>
via ${} syntax
<srhb>
... why?
<infinisil>
ldlework: Why do you want to include a file in a build if you're not going to use it?
<ldlework>
because I don't need to actually DO anything to that file in the bash script
<ldlework>
something ELSE already expects that file to exist
<ldlework>
something ELSE already expects that file to exist
<ldlework>
so doing
<ldlework>
''touch ${somefile.el}; somescript"
<iqubic>
Why do you need somefile.el to exist?
<infinisil>
I don't get it
<ldlework>
its stupid
<ldlework>
infinisil I am going to use the file
<ldlework>
I just don't need to refer to the file as a command line argument
<ldlework>
holy shit
<infinisil>
Can you make a concrete example with a usecase?
<ldlework>
this is mind bending lmao
<ldlework>
infinisil we -literally just went over an example-
<ldlework>
and you said use "${}" to get the file into the build
<ldlework>
I just so happened to need to pass that filename as a commandline argument to that script
<ldlework>
I have another script which DOES NOT ACCEPT AN ARGUEMNT
<ldlework>
but nonetheless relies on another file with a known filename
<ldlework>
just like the first file we imported with "${}" I need that file in the build
<ldlework>
so when I run script_with_no_args
<ldlework>
it can find it...
* ldlework
headdesks
<iqubic>
This is not a concrete example, but rather an abstract explanation.
<infinisil>
then you do cp ${./somefile.el} .
<infinisil>
then you do cp ${./somefile.el} somefile.el *
<ldlework>
infinisil doesn't referring to the file already copy it there?!
<infinisil>
nope, referring to it just inserts the /nix/store/<hash>... string there
<ldlework>
Aha
<infinisil>
if you need it in the current directory you need to copy it manually
<ldlework>
neat OK that makes sense
<infinisil>
actually symlinking would be better
<ldlework>
OK
<ivanivan>
I'd like to use NixOS at work, but haven't figured out how to write custom nix expressions for some of our internal tooling.
<ivanivan>
Is it feasible to introduce the nix package manager on Ubuntu and continue using things like apt-get and pip for some things, while using nix for others?
<srhb>
ivanivan: Yeah, absolutely.
<iqubic>
Sure.
<ivanivan>
My end goal is to switch to NixOS, but I need to make it a gradual transition.
<iqubic>
There are instructions on how to do that on the nix home page.
<srhb>
ivanivan: What I've done is mostly package up things for myself (for consumption on my NixOS laptop) and eventually I just snuck the expressions into the repos themselves, making them immediately supported for nix on other OS'es.
<srhb>
That's just random for-work tooling.
<infinisil>
srhb: Regarding your vim nix problem, you could try out the other vim nix plugin, there are at least 2 out there :)
<srhb>
infinisil: Oh, I didn't realize that.
sigmundv__ has joined #nixos
<iqubic>
ldlework: Why do you need emacs and somefile.el?
<iqubic>
What are you doing?
<ivanivan>
srhb: great advice, thanks!
<ldlework>
infinisil you are seriously one of the most helpful people I've run into in a long time its crazy ❤️
<infinisil>
Heh thanks ;P
<ldlework>
iqubic I'm building my init.org file into init.el before adding to my home directory with home-manager
<vaibhavsagar>
ivanivan: we run NixOS in production and my boss (the head of the DevOps team) runs Nix on Ubuntu and refuses to switch
<ldlework>
using runCommand I'm doing that inside of an inner-derivation build and the nature of the environment is just foggy to me still since I'm very new
<srhb>
vaibhavsagar: People are weird :-)
<ivanivan>
vaibhavsagar: what's his reason?
<vaibhavsagar>
he has a setup that he likes a lot
<ivanivan>
ah, yeah that can be hard to let go of
<ivanivan>
i've been transitioning from mac to linux, and jumping straight into NixOS was too big a leap all in one go
<vaibhavsagar>
I think it's a net benefit to Nixpkgs because he tries to fix breakages with Nixpkgs on Ubuntu
<vaibhavsagar>
same here, I have a NixOS laptop (this one) and an Ubuntu laptop with Nix on it
<vaibhavsagar>
my solution to changing computing environments: get a new laptop and transition incrementally
<infinisil>
I went from mac to nixos in one leap, took me while until I felt comfortable with it though
<ldlework>
I'm using Nix on OSX!
<infinisil>
Occasionally I still have to use macOS because some programs don't (yet?) run on NixOS
<srhb>
ugh, nixifying my home config is a looot of work.
<ivanivan>
the biggest hurdle I hit with nixos so far was trying to build a python application
<infinisil>
That is, android-studio, which doesn't work on my nixos, possibly due to not having any DE because it works in a VM with KDE. And matlab, which is pretty big and would take a while to package
<srhb>
ivanivan: Oh?
<srhb>
ivanivan: In my experience, the python buildPackage and friends are very neat.
<ivanivan>
yeah, could be the fact that I know very little python
* srhb
nods
<vaibhavsagar>
I've had a couple of dealbreakers resolve as I've gotten better at Nix
<ivanivan>
vaibhavsagar: that's encouraging to hear
<vaibhavsagar>
my current one is that my external audio DAC doesn't seem to work on NixOS
<ldlework>
srhb are you using home-manager?
<ldlework>
its pretty awesome
<ldlework>
Oh you're probably on NixOS
<srhb>
ldlework: Just started using it the other day. I only have git config and a few others so far. Now starting with Vim.
<vaibhavsagar>
don't really think I can fix that one with more Nix
<srhb>
ldlework: home-manager is still relevant on NixOS.
<srhb>
Especially networking.networkmanager.enable
<rosa_>
is there a reason it is not enabled by default?
<srhb>
rosa_: Yes, there are other possible choices.
<srhb>
rosa_: You might want wpa supplicant, or connman, or (...)
<srhb>
And network-manager is only a typical choice for laptops and desktops, really, not servers.
<rosa_>
so do i add it in the nix config then re run nixos-install
<srhb>
rosa_: Are you inside your booted system or on the installer iso?
<rosa_>
installer iso
<srhb>
rosa_: Then yes, you can just rerun nixos-install
<rosa_>
ok
<srhb>
On your booted system it will be nixos-rebuild switch, just for reference.
<rosa_>
what happens if i change grub version to 1
<srhb>
rosa_: It won't support efi boots, for instance.
<srhb>
There are probably other version differences between grub 1 and 2.
<rosa_>
would it be possible to boot grub2 from grub legacy
<srhb>
No idea.
<rosa_>
<rosa_>
ok
notdaniel has quit [(Quit: Leaving)]
jgertm has joined #nixos
roi_du_silence has joined #nixos
<rosa_>
it says i cannot use networking.networkmanager with networking.wireless
<srhb>
rosa_: Which is true, networking.wireless is the wpa_supplicant driven wifi.
<rosa_>
ok
<iqubic>
That's a really stupid name for that option.
<srhb>
Yes.
<iqubic>
I ran into that pitfall when getting NixOS up and running myself
<srhb>
iqubic: It shouldn't be too hard to make a PR changing that :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #30428: docbook: put DTDs in $out/share/xml instead of $out/xml (master...f/docbook) https://git.io/vd1SC
NixOS_GitHub has left #nixos []
<srhb>
It should probably come with a proper deprecation warning though.
<iqubic>
srhb: I don't really care all that much to be honest
<srhb>
OK.
<rosa_>
"Created 21408 symlinks in environment" lol
<srhb>
rosa_: yay nix. ;-)
<rosa_>
Lel
isHavvy has joined #nixos
<rosa_>
could u make it so nixos-install skips all packages if they are already installed rather then attempting to install then skipping
<rosa_>
including downloading
<srhb>
It will skip anything that's already downloaded, afaik.
Havvy has quit [(Ping timeout: 248 seconds)]
<rosa_>
But it still downloads every package
<srhb>
Only the needed ones.
<rosa_>
when nix os install is ran again after a installation where does it read it is progress from
<rosa_>
its*
<srhb>
It's installing into /mnt/nix/store usually, anything that's already present need not be updated.
<rosa_>
if i installed nix then rebooted then attempted to install nix again on the exact same partition i installed nix why does it download all the packages again
riclima has quit [(Ping timeout: 255 seconds)]
<srhb>
rosa_: Oh, hm, I didn't think it did. It might actually do some bootstrapping things.
<rosa_>
it should have an install log that lists all installed packages in the same location as it is config file then skip downloading packages that are already present
<srhb>
rosa_: My approach is to just set up things for booting and networking connectivity and then boot the new system as soon as possible, meaning I can use nixos-rebuild switch instead.
<srhb>
I doubt that's a priority as that functionality is already offered by nixos-rebuild.
<srhb>
And the log approach would probably not be deemed very nixy.
<rosa_>
what does nixos rebuild do that nixos install doesnt
<srhb>
Exactly what you're requesting.
<srhb>
No redownloads of anything already present.
<rosa_>
Why not make the install able to do that aswell?
<srhb>
I'm not saying it's a bad idea.
<rosa_>
or if the install detects a already present nix use nix rebuild instead of continuing
riclima has joined #nixos
<srhb>
It can't use it *instead* since it needs to do more things than nixos-rebuild to bootstrap the system.
<srhb>
Otherwise it would be trivial to fix.
Mateon1 has quit [(Ping timeout: 240 seconds)]
<rosa_>
Ok
<rosa_>
Wait if that is the case then why does it even skip installing packages already present
<srhb>
rosa_: There's two different mechanisms at play. One part is bootstrapping done by nixos-install, as far as I know, and apparently (per your tests) that does not skip packages
<srhb>
rosa_: The other is nixos-install calling nixos-rebuild
<srhb>
rosa_: nixos-rebuild uses the regular nix mechanisms to avoid doing work twice.
<srhb>
rosa_: (That is, skip already present store paths)
<ldlework>
srhb :( I am executing the emacs that gets installed and I don't get any packages :(
<ldlework>
open -n -a ~/.nix-profile/Applications/Emacs.app
<ldlework>
where would those site packages even be installed?
<srhb>
ldlework: In the store
<ldlework>
How is emacs accessing them though?
<rosa_>
then why cant is check for existing packages before it attempts to download them
<srhb>
ldlework: In my case, my `which emacs` contains an export EMACSLOADPATH containing that store path
<rosa_>
as it basically downloads them for nothing
<ldlework>
what do you mean `which emacs` contains it?
<rosa_>
also why doesnt xorg auto start when booting nix os
<srhb>
rosa_: You can check nixpkgs/nixos/modules/installer/nixos-install.sh to figure it out if you're interested in fixing it :)
<srhb>
rosa_: It does if you enable it.
<rosa_>
How do i enable it
<srhb>
rosa_: Check man configuration.nix or the nixos options page
<srhb>
rosa_: It has a rather spiffy search feature
<srhb>
ldlework: Are you sure home-manager sets up loading of the packages? I mean, doesn't it just make it available?
<iqubic>
srhb: I only install stuff system wide.
<srhb>
rosa_: Did you nixos-rebuild switch with that?
<srhb>
iqubic: Then it's normal, yes.
<ldlework>
srhb nah it uses emacsWithPackagesNG
<ldlework>
whatever that is
<ldlework>
srhb and afterall the packages are there
<ldlework>
and it does seem that I can require them now
<ldlework>
I'm super confused haha
<srhb>
OK, so everything is working as intended. :-P
<ldlework>
maybe its too late for nix
<srhb>
rosa_: Oh, I just noticed the error at the bottom.
<srhb>
rosa_: That doesn't look good!
<srhb>
rosa_: Do you perhaps require special drivers for your graphics card?
<srhb>
rosa_: We might need to see some logs from X
<rosa_>
ill try booting with nomodeset
jgertm has quit [(Ping timeout: 248 seconds)]
<srhb>
rosa_: OK :) If you want to persist that, it's boot.kernelParams = [ "nomodeset" ];
<rosa_>
ok
<rosa_>
By the way how do u auto patch executables
<srhb>
patchelf and friends.
<neonfuz>
anyone here use wayland on nixos?
<neonfuz>
can I just make it a new lightdm entry? or no
<fearlessKim[m]>
I've got a failing python test "out = subprocess.check_output(['ps', 'xo', 'pid,cmd'], stderr=DEVNULL)", I think it fails because it can't find the "ps" binary. How can I get the path to "ps" ? pkgs.ps is the wrong package it seems
<rosa_>
although i just realized that uses -f instead of -e
<rosa_>
is their an alternative to nix-env -i
spacekitteh[m] has quit [(Changing host)]
spacekitteh[m] has joined #nixos
spacekitteh[m] has quit [(Changing host)]
spacekitteh[m] has joined #nixos
<srhb>
rosa_: What do you mean an alternative?
<srhb>
rosa_: What do you want it to do?
<rosa_>
install git
<srhb>
As your user? On your system?
<srhb>
What's wrong with nix-env -i ?
<srhb>
For all I know, firefox is an alternative to nix-env -i, without more criteria :-P
<rosa_>
lol
<srhb>
How is it that often, systemctl status unit or journalctl -f unit is missing lines, but if I run the ExecStart manually, those lines really are sent to stdout/stderr ?
<srhb>
So mysterious...
<srhb>
er, journalctl -u unit
rosa_ has quit [(Quit: rosa)]
odi__ has joined #nixos
jbgi has quit [(Ping timeout: 260 seconds)]
<mcicon>
:q
mcicon has quit [(Quit: leaving)]
rosa_ has joined #nixos
<rosa_>
It took 6 mins to install git ._.
<srhb>
rosa_: Time spent where?
<srhb>
Downloading?
odi_ has quit [(Ping timeout: 248 seconds)]
roi_du_silence has quit [(Read error: Connection reset by peer)]
kkini has quit [(Remote host closed the connection)]
<rosa_>
no
kkini has joined #nixos
<srhb>
Perhaps you want gitMinimal
<rosa_>
doing nothing, probably 1 min spend downloading and installing
<rosa_>
spent*
<srhb>
Is your disk with the /nix/store partition slow?
<rosa_>
i dont know
<srhb>
Oh well. I do not experience slow installs.
<srhb>
But /nix is also SSD backed here.
<rosa_>
weird, 26 seconds to display "installing kate"...
<rosa_>
45 seconds to start the actual download
<srhb>
Oh ok
<srhb>
I think I know what's going on
<srhb>
try nix-env -iA nixos.kate
<srhb>
When you use -i all packages have to be evaluated up to their name
<srhb>
By using -iA you're going by attribute path.
<srhb>
Which means less evaluation.
<rosa_>
ok
<srhb>
At least, that cuts down on the first time before it even picks the derivation :)
<rosa_>
Ok
zraexy has quit [(Quit: Leaving.)]
CHIPPY has joined #nixos
zraexy has joined #nixos
<rosa_>
why doesnt it just background download them
<srhb>
It downloads once it knows what to download. What would background downloading help?
<rosa_>
1second downloading and 1 second fetching is 2s per package
<srhb>
You can download multiple at a time, if you want
<rosa_>
How
<srhb>
Let me look up the options for you...
<rosa_>
at the moment yum is the only package manager that has background downloading of packages (although it is 3 max background per package
<srhb>
This should affect parallel downloads as well.
<srhb>
And no, yum is not the only one. :-)
<rosa_>
ok
<rosa_>
how do i aquire virtualbox on nix
<srhb>
nix-env -qaP | grep virtualbox
<rosa_>
ok
<srhb>
That searches for packages with virtualbox in them
<srhb>
It might be unfree.
<srhb>
In which case you'll want to enable unfree packages
<rosa_>
god i really need to unclutter my repo
<rosa_>
47237 files total in my git repo
<srhb>
Ouch!
<rosa_>
x.x
<srhb>
1472 in my config repo and going down.
<rosa_>
28% 127mb
ambro718 has joined #nixos
leat has joined #nixos
<rosa_>
70% 180gb
<fearlessKim[m]>
I've just added an outputs = ["out" "man"] and "cp file $outputMan" but then I get "failed to produce output path '/nix/store/z52vkx4ndwc7nabxbnh1553z6rfzmygr-alot-0.6-man' ?!
<rosa_>
mb*
iqubic has quit [(Remote host closed the connection)]
<srhb>
fearlessKim[m]: Does man actually exist in the original result?
<rosa_>
82% 202mb
<fearlessKim[m]>
srhb: id est ? there is no man folder created if that's what you are asking
<rosa_>
86% 250mb
<srhb>
rosa_: What is this you're spamming us with? :)
<srhb>
fearlessKim[m]: I think we need more context on what you're doing.
<fearlessKim[m]>
I created $out/man and the error disappeared :s
<rosa_>
89% 329mb
<srhb>
fearlessKim[m]: Ah, good.
<rosa_>
100% 347.70 mb total in my git repo (◉-◉)
<rosa_>
omg wtf was i boot into the live iso the entire time?
<srhb>
rosa_: Why?
<srhb>
rosa_: That would certainly explain the slowness...
<adisbladis>
rosa_: What graphics hardware do you have?
<sphalerite>
hyper_ch: yeah dhcp wouldn't cause those hung task warnings.
<hyper_ch>
sphalerite: the inner workings of computers are unbeknownst to us mere mortal human beings
<sphalerite>
srhb: lscpu is shorter to type than `/proc/cpuinfo` and doesn't replicate the same info for each core ;)
<srhb>
sphalerite: Oh, thanks.
<hyper_ch>
didn't know about lscpu either
<sphalerite>
rosa_: I mean which laptop model? (assuming it is a laptop by pictures)
rosa_ has quit [(Ping timeout: 258 seconds)]
rosa_ has joined #nixos
sophiag has quit [(Ping timeout: 248 seconds)]
<rosa_>
installing kate takes 4:44 mins
<sphalerite>
with nix-env -iA nixos.kate?
<rosa_>
no
<srhb>
With what, then?
<sphalerite>
because that's how you should install it if you're using imperative installation
<rosa_>
installing git takes 1:14 mins
<srhb>
rosa_: *how* are you installing things?
<rosa_>
nix-env -i
<sphalerite>
Use nix-env -iA
<sphalerite>
nix-env -i is slow because it evaluates all packages. Someone mentioned this to you earlier as well.
<rosa_>
but then it might install the wrong package
<srhb>
What, why?
<srhb>
Only if you give it the wrong package.
<rosa_>
because it doesnt evaluate them
<srhb>
In fact, -i is more likely to give you something unpredictable.
<srhb>
That's nonsense.
<sphalerite>
it's more likely to install the wrong thing without -A
<srhb>
-iA specifies an exact attribute path.
<rosa_>
ok
<srhb>
But four minutes still seems slow (I got about 30 seconds on kate with a lot of X stuff already installed)
<srhb>
We will need to know more about your hardware to figure out if your timings are normal.
<sphalerite>
rosa_: nixpkgs is like a dictionary/hashmap/map, with strings as keys and lazily evaluated packages as values. If you use nix-env -i it will go over *all* the values and evaluate them. If you use nix-env -iA it will get the particular entry you specified and evaluate only that.
<srhb>
If it's a laptop, you can just tell us the model name, otherwise you will need to run some of the suggested commands and paste their output
pie_ has joined #nixos
jbgi has quit [(Ping timeout: 248 seconds)]
<rosa_>
ok
<srhb>
Hm, do my user overlays not use "upstream" packageOverrides from the global nixpkgs.config ?
rosa_ has quit [(Quit: rosa)]
<srhb>
That's... Unintuitive.
rosa_ has joined #nixos
<rosa_>
konversation should appear in kde applications menu but it doesnt
rosa has joined #nixos
<rosa>
hi
<rosa>
wtf /sysinfo isnt working
<rosa>
;-;
<srhb>
What's /sysinfo?
<srhb>
Never heard of it.
<rosa_>
This
<rosa_>
System Info: Model: iPad 4 · iOS: 10.3.3 · RAM: 987 MB · Disk Space: 26.72 GB · GPU: PowerVR SGX 554 · Screen Resolution (Portrait): 1536x2048 · Battery: 64% · Uptime: 3d · Theme: Midnight · Font: System Default/16pt · Client: Mutter 1.18 (Build 1725900)
<srhb>
Is it a mac thing?
takle has quit [(Remote host closed the connection)]
<rosa_>
i think nix is making conversation run slow ;-;
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vd15f
<NixOS_GitHub>
nixpkgs/master 4eb6e84 Vincent Laporte: ocamlPackages.javalib: 2.3.3 -> 2.3.4
NixOS_GitHub has left #nixos []
takle has joined #nixos
<srhb>
Unlikely.
<srhb>
Nix doesn't do anything when you're not installing or removing things.
<tilpner>
You can configure automatic optimise and gc, but that probably doesn't apply
<rosa_>
well konversation is lagging when it shouldnt be
<srhb>
Am I understanding this correctly: System wide nixpkgs.config.packageOverrides do not modify the package set used as nixpkgs for a user?
<srhb>
rosa_: Couldn't that be caused by the X server issues you're experiencing?
<srhb>
rosa_: Or did you fix that?
<rosa_>
apparently so is the kde start menu itself
<srhb>
rosa_: Here's my suggestion: Give us the logs from the x server. Give us the information of your laptop make/model or hardware info, specifically GPU information. Fix the xserver. Then see if things are still slow.
<LnL>
sphalerite: srhb: yeah that's my plugin
<srhb>
rosa_: Without this information, we can't help you.
takle has quit [(Remote host closed the connection)]
<rosa_>
ok
<rosa_>
n ill just deal with the lag for now i guess
<srhb>
That sounds... Unfuriating :-)
<srhb>
Infuriating*
<rosa_>
Lol
<sphalerite>
srhb: yes, that's correct
<rosa_>
seems that both cpu's spike to 100 when it lags
<srhb>
sphalerite: can I alter this behaviour?
<srhb>
rosa_: You'll drive me up the walls if you keep giving us the wrong debug information when I've requested the right debug information :P
<sphalerite>
srhb: not really. Best way I can think of is to have a file just for the packageOverrides and import it from both the nixos config and your user nixpkgs config
<srhb>
sphalerite: Yeah, making that as we speak. Sadface! I think it's weird that the system nixpkgs isn't what my user uses, somehow.
<sphalerite>
Or do nixpkgs.config = import /home/srhb/.nixpkgs/config.nix :)
orivej has quit [(Ping timeout: 258 seconds)]
<srhb>
I don't know why I expected that though.
<srhb>
sphalerite: Hm, yes...
<rosa_>
fk terminal is lagging on auto completion
<srhb>
Actually, I can live with that, yes. Thanks. Hadn't considered that. :)
<rosa_>
even*
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd158
<NixOS_GitHub>
nixpkgs/staging b1d32c0 Vladimír Čunát: aegisub: fixup build with icu-59...
NixOS_GitHub has left #nixos []
* srhb
flails
<sphalerite>
rosa_: we get it, it's slow. Please stop complaining or help us help you.
<rosa_>
wtf i cant execute my executable
<sphalerite>
Also consider not working in X until you've fixed it
<rosa_>
Fk bash doesnt have "file"
<sphalerite>
rosa_: did you build it on nixos?
<sphalerite>
nix-env -iA nixos.file
Oida has quit [(Ping timeout: 260 seconds)]
<sphalerite>
Executables built for non-nix systems will not work out of the box on nixos because of how its filesystem is organised
<rosa_>
;-;
asdfoiawe has joined #nixos
<rosa_>
how do i make it work without recompiling the executable
Oida has joined #nixos
<srhb>
The easiest way is recompiling the executable, however, look into patchelf if you *cannot* do that.
CHIPPY has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Using patchelf shenanigans or running it in a FHS user env. Both are nasty solution and you should prefer rebuilding it.
ma27 has quit [(Quit: WeeChat 1.9)]
<rosa_>
somehow aria2 works on nix out of the box
ma27 has joined #nixos
<rosa_>
even though it shouldnt as i am assuming application compiled on nix onlynwork on nix
<rosa_>
Even as static
<rosa_>
although it seems like my other application still work ._.
<rosa_>
Or at least SOME of them
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd15M
<NixOS_GitHub>
nixpkgs/staging 7cdbc8b Vladimír Čunát: firebirdSuper: fixup build by using older icu again
NixOS_GitHub has left #nixos []
asdfoiawe has quit [(Ping timeout: 246 seconds)]
<rosa_>
guessing because it is dynamically linked instead of statically linked
<rosa_>
if i compile an application as statically linked on nixos will or work on non-nix os's
<rosa_>
wait i cant because the graphical cd is 64 bit
<srhb>
rosa_: Generally it will not work on another system.
<rosa_>
;-;
<adisbladis>
Of course a static application will work.
<adisbladis>
But generally you don't do that.
<rosa_>
Lol
<rosa_>
how do i get gcc to compile for 32 bit os on a 64 bit os
<srhb>
Do people actually bake in libc and friends when statically linking? I wasn't aware.
<adisbladis>
srhb: Typically not with glibc
<adisbladis>
More common with musl & friends
* srhb
nods
<adisbladis>
I do it all the time with go applications. But static linking with go is super easy
<rosa_>
go can be compiled? (◉-◉)
<adisbladis>
I even do some .deb and .rpm packaging on nix for a client project :3
<rosa_>
though go was just a scripting language
<adisbladis>
rosa_: No. Go is a compiled language.
<rosa_>
(◉-◉)
<adisbladis>
Thanks to static linking I don't have to use either distribution :)
rosa has quit [(Ping timeout: 255 seconds)]
<srhb>
adisbladis: Yeah, I can't even imagine what it would do to make it work on Haskell...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1dO
<NixOS_GitHub>
nixpkgs/staging 21034a4 Vladimír Čunát: mailcore2: fixup build by using older icu again
NixOS_GitHub has left #nixos []
<srhb>
Lots of work.
<rosa_>
how do i configure nix for a 32 bit os instead of a 64 bit os
<rosa_>
like as an additional config in grub2
takle has joined #nixos
<rosa_>
like rebuild
<adisbladis>
srhb: Yeah static linking tends to be a bit of a pain with most languages
<adisbladis>
srhb: Another thing with go which is great when it comes to packaging is cross compilation. Provided you are not using cgo it's just an environment variable which os/arch you want to target
<srhb>
adisbladis: I've had to build a few go projects at work and noticed that that part was very easy and nice.
<rosa_>
how do i recompile nix config for 32 bit os
<sphalerite>
rosa_: gcc compiles for 32-bit with -m32 I beliebe
<sphalerite>
Believe
<rosa_>
ok
<sphalerite>
rosa_: nixpkgs/nixos is generally losing support for 32-bit
<srhb>
I think nixpkgs.system = "i686-linux" will theoretically get you there.
<srhb>
But I'm not sure how much will break if you just switch it.
<rosa_>
Why would it break?
<sphalerite>
So I wouldn't recommend it on a 64-bit capable machine
<srhb>
I'm not sure it will. I just think the amount of tests and testers compared to 64 bit is very low indeed.
<LnL>
that or run nixos-rebuild with --argstr system i686-linux
<adisbladis>
And nowadays you won't get any binary packages on i686.
<sphalerite>
Yes, and it's not very well maintained simply due to lack of people who need it and care to maintain it
<rosa_>
wtf
<sphalerite>
adisbladis: that's not quite true, quite a bit of stuff is still built
<rosa_>
it doesnt have gcc (◉-◉)
<sphalerite>
But yeah, far from everything
hotfuzz_ has joined #nixos
mortum5 has joined #nixos
<adisbladis>
sphalerite: Ah. I was under the impression it was no longer happening.
<sphalerite>
rosa_: nix-shell -p gcc will get you a shell with gcc available
<rosa_>
what is nix's version of gcc
<adisbladis>
Anyway. Why would you ever build for i686 on an amd64 machine.
<LnL>
the default is 6 but you can get a bunch of different versions
<srhb>
rosa_: We have several, The default on unstable 6.4.0
rosa has joined #nixos
<sphalerite>
adisbladis: I think it is, just not everything
<rosa_>
o god it is downloading gcc
hotfuzz has quit [(Ping timeout: 240 seconds)]
<srhb>
Well, of course... You have to rebuild everything.
<rosa_>
ill just do nix-env -i gcc
<srhb>
What are you trying to achieve?
<srhb>
Everything you've said in here today makes very little sense without (and perhaps even with) context.
<srhb>
Perhaps we can help you achieve what you're actually trying to do a little easier.
<srhb>
Otherwise I will venture that this will be a short jaunt in nix-land indeed.
<rosa_>
how closely will gcc "emulate" 32 bit if the -m32 flag is given compared to actually compiling on a real 32 bit os
<sphalerite>
rosa_: installing gcc will likely not behave the way you want it to when it comes to linking against libraries.
<sphalerite>
All that -m32 does is generate 32-bit code. It likely won't work with linking against libraries (including the libc I think) because you need 32-bit versions available
<LnL>
you can install 32bit versions of packages without building them yourself
<clever>
hyper_ch: authorizedKeys must be a list of strings
<clever>
as the error says
<rosa_>
so basically nixos just compiles everything just like GoboLinux does?
<hyper_ch>
ohs... so I can't just readfile it and out put :(
<clever>
hyper_ch: you need to put that whole string inside a list
<clever>
hyper_ch: add [ and ] around it
<sphalerite>
rosa_: it's vaguely similar
<hyper_ch>
cool :=
<sphalerite>
rosa_: except everything has its output path determined by a hash of the complete build specification, rather than just the name and version number
<rosa_>
lol
<rosa_>
xD
<hyper_ch>
Mic92: cp: cannot stat '/run/keys/initrd-ssh-key': Permission denied --> I tried 0644, 0666 and even 0777 on that file - still Permission denied
<Mic92>
hyper_ch: is the directory readable?
<clever>
Mic92: nix sandboxes
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1b4
<NixOS_GitHub>
nixpkgs/staging 3932a91 Vladimír Čunát: mapnik: fix build with new icu via upstream patch
NixOS_GitHub has left #nixos []
<hyper_ch>
Mic92: 0750 for root:root fro whom must it be readable?
<Mic92>
clever: makes sense
<hyper_ch>
changed it to 0754 - still Permission denied
<clever>
hyper_ch: the problem is that the nix builds happen in a sandbox, and lack access to any files on the host
<Mic92>
hyper_ch: remove the quotes around the filename
takle has quit [()]
<hyper_ch>
Mic92: I have no quotes around the filename
<hyper_ch>
oh wait
grumble2 has left #nixos []
<hyper_ch>
that worked
<clever>
that will copy the private key into /nix/store and make it world-readable
<clever>
rosa_: did you set networkmanager to manual ip or automatic ip?
<rosa_>
i dont know
<sphalerite>
clever: did you see that rosa_ also has issues with X hanging and stuff? I suspect it might be just general hardware interaction problems that are causing the downloads to fail
<clever>
rosa_: what IP does "ifconfig" say you have?
<sphalerite>
indeed. rosa_ still hasn't told us what their hardware is though so no progress on that front
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<clever>
sphalerite: the network failures feel like an IP address collision to me
<sphalerite>
oh?
<rosa_>
even rm is slow
<clever>
sphalerite: randomly, the other machine gets a reply for a connection it wasnt expecting, and tells the server to go away
<clever>
sphalerite: then when this box retries, the server says the connection is already dead
seanparsons has joined #nixos
<sphalerite>
fair enough
asdfoiawe has joined #nixos
mortum5 has quit [(Ping timeout: 240 seconds)]
mortum5 has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
ericsagnes has joined #nixos
<srhb>
rycee: Are you using the taffybar module in home-manager? I only see your name in the commit log for the file. The unit simply fails for me with no log output.
<hyper_ch>
Mic92: I can't get it to wrok... after reboot at zfs password, I can't ping nor ssh into the computer
<srhb>
rycee: Nevermind that, I clearly did something wrong. It's working now.
<rosa_>
what is 'lc' in C/C++
<clever>
mono.out 233 x /nix/store/2ks0wgl55pxfil5yxdz93si65k945b14-mono-4.0.4.1/bin/lc
<rosa_>
also nix-env -iA nixos.firefox fails aswell
<clever>
rosa_: still waiting for the IP stuff i asked above
<rosa_>
mono seems to be downloading altho it 83 mb x.x
<sphalerite>
rosa_: we can't help you if you don't answer our questions. This applies both to the hardware question to work out why it keeps hanging, and to the networking question to resolve the download failures.
<rosa_>
i dont know
<Mic92>
hyper_ch: I cannot help you here, you should be able to udhcpc in the boot in the log. your server might get a different ip depending on your dhcp setup
simendsjo has joined #nixos
<rosa_>
i am trying
<clever>
2017-10-15 07:18:01 < clever> rosa_: what IP does "ifconfig" say you have?
<rosa_>
but if i cant re compile my application then i cant help
<sphalerite>
rosa_: what brand is the laptop? Is there a label on the bottom that has a model number?
<sphalerite>
rosa_: why not?
<rosa_>
asus
<TimePath>
if `ifconfig` is missing, `ip a`
<rosa_>
downloading mono did not fix it
<hyper_ch>
Mic92: server should provide dhcp according to the mac address
<Mic92>
hyper_ch: "should"
<hyper_ch>
maybe I just ping the whole network ;)
<hyper_ch>
gotta get something to eat now
<rosa_>
even though mono contains bin/lc
<TimePath>
are you sure you didn't mean `-lc` or `ld`?
<simendsjo>
I have a Roccat mouse, and I'm an old closed PR as the source for my hacky roccat-tools package. Is anyone else using roccat-tools with nixos and have a better package?
<Mic92>
hyper_ch: it is also printed on the screen
<TimePath>
rosa_: example.c is not a valid C program for starters
<rycee>
srhb: Glad it worked out for you. I do indeed use the taffybar module, it is quite simple. In particular it doesn't do anything about configurations so anybody using it would have to create the `.config/taffybar/taffybar.hs` file themselves.
<srhb>
rycee: So I noticed. I'm not sure what went wrong exactly, but I'm still puzzled by the lack of logs.
<sphalerite>
rosa_: why are you trying to build a package manager anyway? You have nix :p
<srhb>
(As in, nothing in journalctl --user-unit=taffybar)
<clever>
sphalerite: half of line 127 belongs in a different function, 100 lines away from it
<TimePath>
especially one that has glaring compilation issues
<sphalerite>
heh
<clever>
sphalerite: ctrl+f for lc and youll find a batch of similar function calls in the 50s
<rosa_>
should not be corrected (do not even know how that line got fked up)
<TimePath>
sphalerite: it looks more like an IRC client...
<rosa_>
now*
<sphalerite>
The repo looks like a bit of a disastrous attempt at something like Linux From Scratch tbh
<rosa_>
i know, i need to clean it up lol
<sphalerite>
UPM/C/Documents and Settings/Jonathan Ezekiel Cornflour/My Documents/My Music/My Personal Rips/2007/Technological/Operating System Symphony Orchestra/The GNOME Musical Men/I Married Her For Her File System/test_32_bit
<rycee>
srhb: Hmm, yeah that's a bit odd.
<sphalerite>
What
<srhb>
rycee: Yo're seeing the same thing?
<TimePath>
oh, now I see the bigger picture
<rosa_>
ohh that is why it gave the lc error
<rycee>
srhb: It does log a bit for me. Well, it's mainly gtk warnings :-)
<sphalerite>
and the commit messages are all "-a" :(
<rosa_>
as if i fix the line the error no longer appears
<srhb>
rycee: Hm, okay. It _should_ log something for me.
seppellll has joined #nixos
<LnL>
rycee: does home-manager have support for man outputs? somebody was having trouble with that yesterday, and I didn't see anything that configures it
<rycee>
srhb: At least something like this should show up for you: Oct 15 11:42:23 beta taffybar[1551]: Launching custom binary /home/rycee/.cache/taffybar/taffybar-linux-x86_64
<srhb>
rycee: Nope, nothing. Ugh, is my journalctl bork...
<rycee>
LnL: Hmm, no I haven't paid any thought to man outputs. Haven't noticed any man pages missing, though.
ris has joined #nixos
<rycee>
srhb: What about `Oct 15 11:42:23 beta systemd[1468]: Started Taffybar desktop bar.`?
<LnL>
stuff that doesn't have a separate man output probably works
prietoj has joined #nixos
<TimePath>
sphalerite: everything about this repository makes me cringe
<rosa_>
why does it say "cannot find -lc" when i use -static
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
rosa_: because there's no static libc available
<TimePath>
so just don't built it statically then?
<rosa_>
ffs where is bash
<clever>
rosa_: "which bash"
<srhb>
rosa_: *everything* is in /nix/store
<rosa_>
how do i paste from clipboard in nano
<rosa_>
wait no ill just symlink instead
<clever>
rosa_: middle click in xorg will paste the selection buffer
<rycee>
LnL: Yeah, I guess I have mainly used man pages for packages without separate man output. I'll have a look at fixing it. Thanks for pointing it out :-)
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
<LnL>
I know how to fix it, did it a while back for nix-darwin
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vd1xT
<NixOS_GitHub>
nixpkgs/release-17.09 8d5f2ae Matthew Bauer: sqitch: fix on Darwin...
NixOS_GitHub has left #nixos []
<rycee>
LnL: I will copy paste solution from nix-darwin ;-)
<srhb>
rycee: Got it. All user units were unviewable due to some ACL shenanigans.
Arcaelyx has joined #nixos
<rosa_>
for some reason my client keeps spamming it is input when it should not be
<rosa_>
its*
<fearlessKim[m]>
a package can not write anything in /etc ? I've got a hook postInstall = ''
<rosa_>
i dont even WANT to figure out why as it is highly likely that it is due to nix os
erictapen has joined #nixos
<rosa_>
and at the moment i am not willing to make it work on nix os
<TimePath>
sure, blame nixos, that's definitely the reason your code isn't working /s
leat has quit [(Ping timeout: 240 seconds)]
<srhb>
rosa_: If I may be so blunt, why are you on NixOS at all? You don't seem to know anything about it, and you're trying explicitly to work around in rather than with it, so I'm curious about your motivations.
<sphalerite>
srhb: well that's a bit of an exaggeration
<srhb>
I know.
<LnL>
lol
<srhb>
I'm trying to make it very, very clear.
<sphalerite>
the "nothing works the way it usually does" bit
<srhb>
Because they're currently going down a road that will bring lots and lots of pain :-P
<sphalerite>
true
<rosa_>
working WITH nix os to fix my irc client compatibility with nix os will be a nightmare since i dont even know what is causing the spamming
<sphalerite>
rosa_: spamming?
<rosa_>
although it might be that a fifo is continuously being sent data when it should not be
<gchristensen>
what is your irc client?
<srhb>
rosa_: Possibly the same issues that's causing your system to be, in a normal sense, in complete disrepair? broken https, broken xserver, choppiness, 14 minute startup time...
<rycee>
srhb: Whew, glad you found the issue :-)
<rosa_>
yup it is being continuously sent data
<rycee>
LnL: Thanks!
<sphalerite>
rosa_: it's normal for an IRC client to receive data all the time. It's getting messages.
<rosa_>
i know but it is recieving data on its INPUT fifo
<rosa_>
wich should not happen continuously
Mic92 has quit [(Quit: WeeChat 1.9)]
mrkgnao has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]>
rycee: I was the one having problem with weechat manpage yesterday (using home-manager)
<rosa_>
and i cant even start kate as a non root user
<ebzzry>
I have a rogue package named “wacomtablet” that I can’t uninstall. Any clues?
<srhb>
rosa_: Normal users can't usually write to other users' sessions like that.
<sphalerite>
ebzzry: in a user profile with nix-env?
<clever>
rosa_: only root can connect to the gui
<TimePath>
the test user needs to access .Xauthority
mrkgnao has joined #nixos
<rosa_>
;-;
<LnL>
rycee: you could just add extraOutputsToInstall = [ "man" ]; to the buildEnv if you don't want to add options for it
<TimePath>
by default, /root is 700
<rosa_>
how do i start kate as root
<sphalerite>
by not launching it from a shell running it as the test user
<sphalerite>
but you should really not be running everything as root either!
<ebzzry>
sphalerite: Yes. It provides bin/kde_wacom_tablet
<sphalerite>
ebzzry: what does nix-env -q say about it?
<TimePath>
sphalerite: or within a shell spawned by sudo with default settings for that matter
<ebzzry>
sphalerite: it says that the version is wacomtablet-2.1.0
<TimePath>
you don't get asked to authenticate for sudo within that shell
<sphalerite>
ebzzry: and `nix-env -e wacomtablet` doesn't remove it?
<sphalerite>
TimePath: I don't see any use of sudo there.
<TimePath>
sphalerite: just expanding on risks of root+sudo
<ebzzry>
sphalerite: that works, now. odd.
Mic92 has joined #nixos
Mic92 has quit [(Client Quit)]
leat has joined #nixos
Mic92 has joined #nixos
<prietoj>
Hello! I'm having issues compiling GHCJS in a project that uses stack, exactly the ones described here: https://github.com/NixOS/nixpkgs/issues/28037 . Does anyone know what's the status of the issue?
<bgamari>
does anyone have an example of a simple usage of an overlays to define a set of project-specific packages?
<sphalerite>
rosa_: I believe you just revealed your nickserv password
<sphalerite>
Might want to change that ASAP
<rosa_>
eh
<rosa_>
i can always make a new one
Isorkin has joined #nixos
<gchristensen>
you should do that now, rosa_
<TimePath>
this room is logged publicly, too
<rosa_>
lol
<rosa_>
yall can have it
<TimePath>
so you must use unique passwords everywhere then
<gchristensen>
"NickServ (NickServ@services.): You may not ghost rosa_." I'll assume you already changed it :)
<bluehorizon>
I have a newbie question about package updates, if I may. I "nixos-rebuild switch" my system yesterday and still have Firefox 55.0.3. FF 56.0 exists in nixpkgs on github for over a week now. Aren't packages upgraded during a nixos-rebuild?
<TimePath>
how did you install firefox?
<TimePath>
nix-env, or in systemPackages?
csingley has joined #nixos
<bluehorizon>
in /etc/nixos/configuration.nix : environment.systemPackages = with pkgs; [ ... firefox ... ]
<Yaniel>
You need to add —upgrade to fetch new package lists
<gchristensen>
bluehorizon: what channel are you on? the channels are delayed due to build problems, but FF 56 should be out in most channels soonish
<Yaniel>
Else it won’t notice that it’s outdated
MerelyAPseudonym has joined #nixos
<rosa_>
unless it could be the binary file itself...
<bluehorizon>
Yaniel: So, if I want package upgrades I always need to run "nixos-rebuild switch --upgrade"
<gchristensen>
17.09 is a bit out of date right now, and it is being resolved right now :)
<gchristensen>
yes
<Yaniel>
Yep
mrkgnao has quit [(Ping timeout: 264 seconds)]
<bluehorizon>
Thanks! I just saw I can also use "system.autoUpgrade.enable = true;" in configuration.nix. If I wanted to upgrade to a new release (like 18.03) i'd still have to add the "18.03" channel for that right?
<gchristensen>
right, it will keep your channel updated, and won't select a newer channel
mrkgnao has joined #nixos
<bluehorizon>
Nice, thats just how I want. Thank you all. This IRC is simply amazing
<gchristensen>
<3
<bgamari>
Is there a nice example of how to cross-compile a simple nixos image?
* bgamari
has an embedded board which needs a fairly barebones environment
<TimePath>
it's not nixos, but it uses the same files
<rosa_>
ok i fixed it
<bgamari>
sure
<bgamari>
it looks like a good model
<bgamari>
thanks!
<rosa_>
It was an error in the source code that caused it to repeatable write to the input
sirkha has quit [(Ping timeout: 264 seconds)]
<clever>
bgamari: the main goal of not-os, was to create a heavily stripped down OS that could still be built with nix, and reuse some nixos logic
<clever>
bgamari: it has automated x86 testing, and i have previously ran it on a raspberry pi
<bgamari>
so I don't have particularly tight resource requirements
<bgamari>
so I'll try to replicate a full nix environment
<bgamari>
but seeing the basic setup is helpful
tazjin has joined #nixos
<hyper_ch>
Mic92: ok, a bit closer.... I needed to enable useDHCP in networking and disabling network manager... problem ist, udhcpc: siocgifindex: no such device.... and only lo seems to have ben brought up
<Mic92>
hyper_ch: you also need the network driver for you card in initrd
<hyper_ch>
Mic92: ok, thx
<rosa_>
so what file do i need to... acquire for the ip info and hardware info
Code has joined #nixos
mortum5 has quit [(Ping timeout: 246 seconds)]
<rosa_>
oh god even the irc is slow on nix
<clever>
rosa_: what does "ifconfig" say?
schoppenhauer has quit [(Read error: Connection timed out)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1hO
<NixOS_GitHub>
nixpkgs/staging 75e4191 Vladimír Čunát: libreoffice(-still): fixup build by using older icu...
NixOS_GitHub has left #nixos []
<fearlessKim[m]>
is there a way to create a folder without creating a stub file as in >environment.etc."ipsec.d/toto".text = "";
stabbmesiter has joined #nixos
<symphorien>
you migt want to use systemd-tmpfiles.d
stabbmesiter has quit [(Client Quit)]
<TimePath>
apparently I enabled flash at some point :)
<rosa_>
ffs why is wgetpaste deciding to shit itself
<fearlessKim[m]>
symphorien ok thanks
stabbmesiter has joined #nixos
<hyper_ch>
Mic92: and how do I find out which kernel module that is? I mean nixos has detected my network card by itself... didn't need to configure anything
<bgamari>
clever, I guess this doesn't use the new cross compilation infrastructure?
<sphalerite>
rosa_: you shouldn't need to symlink anything yourself
Ralith_ has quit [(Ping timeout: 240 seconds)]
<clever>
bgamari: correct, not-os is purely based on native compiles
<sphalerite>
rosa_: if you `nix-env -iA nixos.wgetpaste` you should get wgetpaste installed into your user profile, which should be on your PATH
<clever>
bgamari: so an arm build would require an arm build slave
<rosa_>
ffs which bin do i need to symlink it to to be able to call wget without any relative or absolute paths
<bgamari>
right
<sphalerite>
i.e. you get a symlink ~/.nix-profile/bin/wgetpaste which points to /nix/store/<hash>-wgetpaste-<version>/bin/wgetpaste
* bgamari
would like to try to bring up a cross compiled image
<gchristensen>
rosa_: you should not do any symlinking, nix does the symlinking
<bgamari>
since apparently I am a masochist
<adisbladis>
hyper_ch: The dropbear stufF? :)
<hyper_ch>
adisbladis: yes
<sphalerite>
rosa_: just don't symlink it yourself. Install it using nix-env -iA nixos.wgetpaste and it'll be on your PATH and you should be able to run it with just `wgetpaste`.
<adisbladis>
Cool
<rosa_>
i did
<rosa_>
but i want wget itself to be available in $PATH
<rosa_>
not wgetpaste
<sphalerite>
ooh right
<clever>
bgamari: ive found that the cross-compile stuff is still a bit spotty and cant do an entire OS
<sphalerite>
then do nix-env -iA nixos.wget
<bgamari>
clever, oh?
<rosa_>
ok
<bgamari>
clever, you've tried then?
<clever>
bgamari: ive used it to compile some things, and not everything builds right away
<bgamari>
hmm, that is slightly disappointing
<rosa_>
wtf why does my irc keep timing out after 248 seconds
<Mic92>
hyper_ch: I added the hint regarding the kernel module.
<clever>
rosa_: is the client responding to pings?
<adisbladis>
hyper_ch: I have started customizing it to use openssh instead of dropbear
<rosa_>
it should be
<hyper_ch>
rebooted the wrong machine... not my old notebook but this one :)
<hyper_ch>
adisbladis: why alter openssh
<hyper_ch>
adisbladis: why alter openssh?
<adisbladis>
hyper_ch: Because I want to use some of the extra features that come with openssh
<rosa_>
how do i manually ping it
<hyper_ch>
adisbladis: for early crypto unlocking?
<rosa_>
like send it ping freenode.net
<hyper_ch>
adisbladis: dropbear is only in the initrd... once the system is up, openssh runs
<gchristensen>
rosa_: fwiw you've not lost a connection as far as I can see
<clever>
rosa_: the irc server sends you pings at regular intervals, the irc client must respond with pongs
<adisbladis>
hyper_ch: Yes. I track key revocations and equivalence for one. This is using AuthorizedKeysCommand in openssh
<clever>
gchristensen: his other client
<gchristensen>
I'm so confused
<adisbladis>
hyper_ch: I don't think this could be done easily with dropbear
<hyper_ch>
adisbladis: actually, I modified it that way that it takes the authorized_keys from /root/.ssh/authorized_keys
<hyper_ch>
and copies those authorized_keys into the initrd
fendor has joined #nixos
<hyper_ch>
but why you want key revocation if the data is still encrypted?
prietoj has quit [(Ping timeout: 260 seconds)]
<adisbladis>
hyper_ch: So that a compromised key cannot be used to gain access to the early boot process
<hyper_ch>
adisbladis: up to you
<hyper_ch>
as said, I read out the authorized_keys file from root
erictapen has quit [(Ping timeout: 240 seconds)]
bluehorizon has quit [(Quit: Page closed)]
fendoer has joined #nixos
<adisbladis>
hyper_ch: That's fine for my home setup but for the work setup we want to use ecdsa keys and track revocations & recovery in a smart contract on ethereum
ShalokShalom_ has joined #nixos
fendor has quit [(Ping timeout: 240 seconds)]
<Unode>
does anyone have speedcrunch running on nixos 17.09? I'm getting "Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)" and it fails to launch.
jbgi has joined #nixos
<hyper_ch>
adisbladis: if you find some ethereum that belong to nobody... well, they are mine ;)
<rosa_>
it recieved a ping but it didnt reply to it ._.
ShalokShalom has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
remote unlocking works :) sweet
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
<symphorien>
Unode: I tried "nix-shell -p speedcrunch --run speedcrunch" and it works, and on 17.09
<symphorien>
but I am not a heavy qt user so that may have an influence
<Mic92>
hyper_ch: probably this dependency on host dhcp could be dropped
csingley has quit [(Ping timeout: 264 seconds)]
<Mic92>
but defacto this is true
<hyper_ch>
Mic92: and shall I concatenate that authorizedKeys variant to one line?
<Unode>
symphorien: I could swear this was running yesterday. As far as I can tell the only thing I did was install sddm which pulled some qt stuff. But this should interfere right?
<Unode>
symphorien: that same command fails here
<symphorien>
IIRC Qt is not pure : it still depends on an environment variable being set right at runtime
<symphorien>
so pulling sddm would have done anything :/
<Mic92>
hyper_ch: I don't have sandbox enabled on this machine
<hyper_ch>
Mic92: neither have I
<palo>
I try to use overrideAttrs but it does not work, means it downloads the version 2.1.3
<clever>
Mic92: bootloader?
<hyper_ch>
`build-use-sandbox = false`
<Mic92>
hyper_ch: the key is populated by nixops
<Mic92>
systemd-boot
<rosa_>
something about nix just refuses to work with scripts that work on non nix systems
<hyper_ch>
rosa_: you need #!/usr/bin/env bash (or other shell) as shebang
<hyper_ch>
there's no /bin/bash
<ma27>
you might want to use `patchShebangs .` when placing this into a derivation
<Mic92>
clever: does nixops add /run/keys/ to the build sandbox somehow?
<clever>
Mic92: nope
rosa_ has quit [(Quit: rosa)]
<clever>
Mic92: i think thats something to do with the bootloader, when generating the /boot files, it will read that path
rosa_ has joined #nixos
<Mic92>
clever: is building initrd not independent from the bootloader code?
Ralith_ has joined #nixos
<clever>
Mic92: the problem is more about generating the initrd content in a secure manner, because the pure nix side of things leaks secrets in the store
riclima has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMee
<NixOS_GitHub>
nixpkgs/master f7d308d Nikolay Amiantov: plyfile: init at 0.5
NixOS_GitHub has left #nixos []
<palo>
Hmm made it work.
<palo>
I have to overwrite a lot more :D
<rosa_>
where do i specify "/bin/bash"
<rosa_>
did*
<symphorien>
in the shebang of the script
<symphorien>
(the first line)
<rosa_>
where
<rosa_>
show me
<symphorien>
the first line of the script must look like : #!/bin/bash
Oida has quit [(Ping timeout: 260 seconds)]
riclima has quit [(Ping timeout: 240 seconds)]
<clever>
it needs to be changed to #!/usr/bin/env bash
ma27 has quit [(Quit: WeeChat 1.9)]
<rosa_>
show me what script it is in
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #30433: CUDA-related updates and cleanups (master...cudatoolkit) https://git.io/vdMeY
NixOS_GitHub has left #nixos []
<clever>
rosa_: all of them
ma27 has joined #nixos
<tazjin>
on a system using the stable channel normally, how can I install specific packages from unstable in configuration.nix?
<rosa_>
What you mean
Oida has joined #nixos
<hyper_ch>
rosa_: what script are you trying to run?
<rosa_>
hopefully it should now reply to pings
<Unode>
when I click on a URL inside Thunderbird (Earlybird) nothing happens and I don't see any errors on the terminal. Is there any way to know what's causing this and how to fix it?
<Unode>
I'd like to see a pop-up window prompting for which software to use when opening the URL but nothing is shown.
Code has joined #nixos
<freeman42x>
is there a package for `pipreqs` ? hehe
<rosa_>
!me waits for a ping
* Code
waits for a ping
<joepie91>
Unode: starting thunderbird from a terminal might leave you with errors about this on the terminal
<rosa_>
meant to do /
<joepie91>
Unode: alternatively, it probably uses xdg-open, so try `xdg-open <your URL here>`
<joepie91>
and see if that produces an error
<rosa_>
instead of !
<joepie91>
Unode: if you happen to be on KDE: KDE does some weird stuff with "download the URL as a file first and then show it to the user" and that has a tendency of breaking for me
<joepie91>
I haven't yet worked out how to fix that
<Unode>
joepie91: xdg-open works fine. Running from terminal gives no error.
<Unode>
In settings I had http->always ask. which I thought was correct. Removing the whole http target seems to have helped.
<Unode>
no clue why it didn't work the way it was before.
<Unode>
thanks for the help joepie91
<tazjin>
followup: how can I set `allowUnfree` for packages from an imported channel in configuration.nix?
<hyper_ch>
Mic92: you also use wireguard?
<tazjin>
+ side-note: how come firefox-beta-bin is considered unfree?
<Unode>
on another note, seems like I'm still using gtk2 mostly everywhere, including with thunderbird. Is there any way to specify that I'd like to use gtk3 instead?
<MichaelRaskin>
The package modifies an official-branding build of Firefox in a way not authorized for redistribution.
<Unode>
I just noticed that the "default application" picker is different from what I'm used to.
<bgamari>
does anyone recall where crossDrv is supposed to be defined?
<Unode>
(used to = other distro)
ivanivan has joined #nixos
<ivanivan>
If I'm running Gnome shell on NixOS, does it make any kind of sense (would it even work) to try running the gnome software updater?
<symphorien>
or at least to add a warning above "unfree packages are not listed, use github search to find them, sorry" ?
<ivanivan>
gchristensen: would I instead update my nix channel and rebuild?
<tazjin>
@symphorien it's got free software like firefox that is considered unfree by nix
<tazjin>
so there doesn't seem to be a technical limit like that
Ivanych has joined #nixos
<aminechikhaoui>
hello, trying to install nixos on a machine and getting "Failed to probe partition scheme "/boot": Input/output error"
seppellll has quit [(Ping timeout: 248 seconds)]
<aminechikhaoui>
any idea what can be the issue
cfricke has joined #nixos
<clever>
aminechikhaoui: does dmesg say anything interesting?
Oida has quit [(Ping timeout: 264 seconds)]
<aminechikhaoui>
I partionned with gdisk btw, so maybe something wrong with the boot partition ?
<aminechikhaoui>
clever: nothing interesting, should I look for something specific
<clever>
aminechikhaoui: what did you set the grub device to in the configuration.nix?
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #30434: Build Tensorflow from source (master...tensorflow) https://git.io/vdMe9
NixOS_GitHub has left #nixos []
<aminechikhaoui>
clever: /dev/sda, but I'm getting the issue in nixos-install btw
<clever>
aminechikhaoui: what partition number is /boot on?
<aminechikhaoui>
sda1
<disasm>
aminechikhaoui: is /boot vfat?
<clever>
aminechikhaoui: what does "blkid /dev/sda1" say?
<aminechikhaoui>
type vfat yeah but SEC_TYPE="msdos" is weird
<Unode>
:/ so it seems like nixos sets "LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib" on my default user environment. If any app doesn't propagate this across binaries fail. Does nixos provide any mechanisms to avoid relying on LD_LIBRARY_PATH like this?
<Unode>
I kind of hate this variable... about as much potential for fixing something as it has to break it the next second.
<gchristensen>
opengl in particular
<clever>
Unode: the main use of that variable, is to avoid re-compiling 90% of gui apps when you switch from nvidia to ati
<Unode>
symphorien: and speedcrunch is back. Seems like I had a mix of nixos-17.09 (system) and nixos-unstable (user) interfering on QT libraries.
<Unode>
clever: In this machine I don't see that ever happening :)
<Unode>
clever: couldn't this simply be patchelf'ed ?
<clever>
Unode: and also the secondary issue, that hydra would have to build 3 copies of everything
<aminechikhaoui>
clever: should the SEC_TYPE be gpt maybe?
<clever>
Unode: such changes have to occur when the package is being built
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdMeN
<NixOS_GitHub>
nixpkgs/master 26db832 Vladimír Čunát: qt56.qtwebkit: fix with icu-59 by upstream patch...
NixOS_GitHub has left #nixos []
<Unode>
clever: then I may be misunderstanding something
<clever>
aminechikhaoui: what does blkid say about sda?
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<aminechikhaoui>
clever: for /dev/sda PTTYPE="gpt"
<clever>
aminechikhaoui: what if you umount and then re-mount the boot partition?
<Unode>
clever: from what I gathered over the years, LD_LIBRARY_PATH is a way to override the location where libs should be searched. It affects binaries both at compile-time and run-time. Once a binary is created, you could simply modify it to point to the location specified by LD_LIBRARY_PATH, therefore removing the requirement to have it set in the environment.
<clever>
Unode: the issue, is that every single gui app in nix would have to be re-compiled, either with a thin patchelf wrapper, or fully rebuilt, to point to the right GPU drivers
<Unode>
clever: I've done something similar with some manual compilation on a different system. There I used patchelf to have a single binary work on different machines that provided the same set of libs but on different locations.
<aminechikhaoui>
clever: doing umout /mnt/boot then mount /dev/sda1 /mnt/boot results in the same output
<clever>
aminechikhaoui: and what if you umount and run fsck.fat over it?
<rosa_>
oh well, as long as it can upload it shouldnt matter if one of its commands is faulty
<Unode>
clever: that something that is planned to happen? Right now I have software failing because it "unsets LD_LIBRARY_PATH" before spawning subprocesses. This is done for "safety" reasons since the software itself uses LD_LIBRARY_PATH to load some of its bundled libs.
<rosa_>
anyway i needed ifconfig and what else
<aminechikhaoui>
clever: same :/
<clever>
Unode: that would have to be patched to restore the library path
<rosa_>
proc/cpuinfo?
<clever>
aminechikhaoui: can you gist the entire output of nixos-install?
<Unode>
clever: sounds awfully contrived
<rosa_>
hyper_ch
<rosa_>
hyper_ch: i need ifconfig and /proc/cpuinfo right?
Code has quit [(Ping timeout: 255 seconds)]
<disasm>
aminechikhaoui: how big is sda1?
<aminechikhaoui>
clever: will try to paste it
<aminechikhaoui>
disasm: 500M
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdMvc
<NixOS_GitHub>
nixpkgs/master 8619ae3 Franz Pletz: unifi: 5.6.16 -> 5.6.18
<NixOS_GitHub>
nixpkgs/master 5190b05 Franz Pletz: fastd: disable aes128-ctr, fix build with new libsodium
<jluttine>
can i concatenate paths somehow in nix? or are they just strings and concatenated with + ?
ma27 has quit [(Ping timeout: 264 seconds)]
<aminechikhaoui>
huh just saw that warning "Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
<rosa_>
That link doesnt work
<aminechikhaoui>
verification and recovery are STRONGLY recommended."
<aminechikhaoui>
but not sure if it matters
thblt has joined #nixos
<clever>
aminechikhaoui: that implies that something corrupted your GPT tables
<rosa_>
it fails to load
<aminechikhaoui>
clever: hm
<jluttine>
i have a path option and i want to get the path to a subdirectory under that path
<aminechikhaoui>
interesting
stanibanani has joined #nixos
<infinisil>
tazjin: I'm using home-manager (https://github.com/rycee/home-manager) to manage my $HOME files/packages/systemd services, works really well, similar to configuration.nix. There's nothing that can do that in nixos (well there is, but it's not very nice)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdMfO
<NixOS_GitHub>
nixpkgs/master 9b2af18 Bjarki Ágúst Guðmundsson: astroid: 0.9.1 -> 0.10.2...
<NixOS_GitHub>
nixpkgs/master 28b0dfa Joachim F: Merge pull request #30417 from SuprDewd/astroid-0.10.2...
<infinisil>
tazjin: You could use an activationScript in configuration.nix, which is the not really nice but working thing without any additional software
<infinisil>
Some people here shared their activationscripts to do that some time ago
<LnL>
don't do that
stanibanani has quit [(Ping timeout: 264 seconds)]
<LnL>
the activation scripts also run during boot and you don't have network access there
<LnL>
IIRC
<tazjin>
@infinisil oh interesting, what's the order in which things are run? My other problem is that I'd like to run `nix-channel --add ...` before the "body" of `configuration.nix` is evaluated (to add the unstable channel & install a package from it)
<clever>
LnL: ive even seen somebody try to do network there, and it entirely broke the ability to boot
<tilpner>
ivanivan - History works for me in nixUnstable "nix repl"
rosa_ has quit [(Quit: rosa)]
<LnL>
clever: yeah I know
<infinisil>
LnL: Oh right
thblt has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<tilpner>
My activation script just links everything into the right places, the git repo lives in the store
<infinisil>
Hmm..
<tilpner>
No actual cloning is done at activation time
p4cman has joined #nixos
<clever>
yeah, just pkgs.fetchgit
<clever>
then it wont be an issue
<ivanivan>
tilpner: hmm... I'm on stable. I wonder if I just need to touch the file
<tilpner>
ivanivan - FWIW, I have no .nix-repl-history
<LnL>
I think you need to touch ~/.history for nix-repl
<rycee>
fearlessKim: If you update your home-manager (assuming you use the master branch) then you should get your man pages now :-)
<ivanivan>
tilpner: it preserves command history for you across repl sessions?
<fearlessKim[m]>
I think unstable creates the folder while stable doesn't: I had not history until I tried nixUnstable. and it kept working after reverting to nixStable
<tilpner>
ivanivan - What code are you looking at?
<infinisil>
rycee: I mean something like the nixpkgs.overlays option in configuration.nix
<rycee>
infinisil: Something like `disabledModules` would be neat I guess, I haven't had a need for it myself, though. If I felt a module wasn't very good I just changed it in master ;-)
<Yaniel>
can I convince nix to build my package with debug symbols?
<infinisil>
rycee: Usecases I'm thinking of: Overlay for lib, so that there's no need to awkwardly import ../lib { inherit pkgs lib; }
riclima has quit [(Ping timeout: 240 seconds)]
<Yaniel>
said package uses cmake for building and I'm setting cmakeBuildType = "Debug" in the expression
<infinisil>
rycee: And an xdg overlay (which I've been wanting to do for a while), which wraps programs with certain options/env vars set so they write to the xdg locations
<infinisil>
rycee: Pretty much a declarative ~/.config/nixpkgs/overlays[.nix]
<ivanivan>
tilpner: also, turns out the nix-repl package is built from a commit that pre-dates the addition of history support
<rycee>
infinisil: Ah, right. I've been meaning to do something like nixpkgs.overlays (and nixpkgs.allowUnfree, etc.).
iyzsong has quit [(Ping timeout: 255 seconds)]
fendoer has quit [(Ping timeout: 240 seconds)]
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<lejonet>
gchristensen: I've now implemented an activation script that makes the /bin/bash and /bin/zsh symlinks, are they globally available? Because I'm getting a "/bin/bash: No such file or directory" when trying to login as a LDAP-only user :S
markus1189 has joined #nixos
<lejonet>
and makeHomeDir doesn't seem to work, I've set security.pam.services.sshd.makeHomeDir = true (and the same with services.login.makeHomeDir) but its not creating that either
<lejonet>
I must be doing something wrong, but I don't know what
<rycee>
infinisil: It's a bit fiddly though, I don't have much insight into the overlay mechanisms but it seems like HM would need to write a function (or multiple functions) to the ~/.nixpkgs/config/overlays dir that loads the HM configuration to be able to read out and return the function(s) in the `nixpkgs.overlays` option.
<srhb>
lejonet: No, they are not globally available.
<wmertens[m]>
Hah, came here to ask about overlays :) Has anybody come up with a nice way to manage nixos config + nixpkgs version + own overlays?
<lejonet>
srhb: how do I make it so that every user get those symlinks? I have defined the script as a system.activationScripts
<srhb>
wmertens[m]: I've resorted to using overlays.nix, the same for system and my user
Oida has quit [(Ping timeout: 240 seconds)]
<srhb>
lejonet: Sorry, I don't know that.
<infinisil>
rycee: Going to look into how configuration.nix does it, import <nixpkgs> { overlays = [ ... ]; } works though
<clever>
Leo`: and the setup hooks in many things can accept more
<srhb>
It's not super clean. I wish instead my user would inherit the system nixpackages after overrides and overlays.
<srhb>
But that seems nonobvious to achieve.
ma27 has quit [(Quit: WeeChat 1.9)]
<elvishjerricco>
Hm is there no way to make `nix-build` recurse down a tree? It's nice that you can do `nix-build` on, say, `{ a = drv1; b = drv2; }`, but if `a` is a nested attribute set of derivations, it won't recurse into it
<srhb>
elvishjerricco: I wonder if this is what recurseIntoAttrs does.
<copumpkin>
it is
<srhb>
Well, what a tantalizingly proper name, then!
oida has quit [(Ping timeout: 255 seconds)]
<elvishjerricco>
I do not know anything about that function =P Does it just produce a flattened attribute set? What are the field names?
<copumpkin>
nix-build and friends look for a magic attribute on attrsets called recurseForDerivations
<copumpkin>
or something like that
Oida has joined #nixos
<elvishjerricco>
Oh. Gross, but it works =P
<copumpkin>
if that is set, it'll look for more derivations in that attrset
<copumpkin>
yeah pretty gross :)
mudri|srcf is now known as mudri
<srhb>
aha, so recurseIntoAttrs is simply attrs : attrs / { recurseForDerivations = true ;}
<srhb>
Simple!
<srhb>
(And gross, but...!)
<rycee>
infinisil: For an "xdg" overlay (which sounds like a good idea btw), though, it should be enough to do something like `home.file.".config/nixpkgs/overlays/xdg.nix".source = overlays/xdg.nix;`
<elvishjerricco>
copumpkin: srhb: thanks!
stanibanani has joined #nixos
<infinisil>
rycee: Hmm right, but that does feel rather sluggyish, and also it doesn't apply to the home-manager's pkgs immediately, only on the next build
<infinisil>
i think
<rycee>
Indeed.
<tilpner>
infinisil - Is there a downside to using xdg-compliant locations? Is updating actual nixpkgs for compliance an option?
<mudri>
I'm trying to get started with Rust using the Mozilla overlay. I'm building a library, but it fails with “error: could not exec the linker `cc`: No such file or directory (os error 2)”. Is there a package to provide that? I've tried some likely candidates, but they didn't work.
<infinisil>
tilpner: What do you mean by updatingc nixpkgs?
<infinisil>
I don't think there's any downside
<elvishjerricco>
copumpkin: Hm what about having a nested *list* rather than an attribute set? I'm guessing that's just actually not possible?
<sphalerite>
mudri: add gcc to your nix-shell
<tilpner>
infinisil - Only users of the overlay would benefit from it. If you instead put those fixes/patches into nixos/nixpkgs, everyone would have them
<tilpner>
Unless there's a lot of cost associated with fixing these paths, like we discussed some time ago (you asked about bubblewrap)
<infinisil>
Well, if we patch pkgs in nixpkgs to use Xdg by default, then everyones dotfiles break, right?
<lejonet>
srhb: it would seem like it was actually the fact that the user didn't have a homedir that was the problem, not the links :)
<infinisil>
tilpner: and since home-manager manages your dotfiles, it shouldn't be a problem with it
<tilpner>
Is that a problem? NixOS doesn't promise perfect backwards compatibility, and it would be mentioned in the release notes
<srhb>
lejonet: Oh o_o
<infinisil>
tilpner: Then everybody would have to manually move e.g. .zshrc to ~/.config/zsh, and that for all packages
<lejonet>
srhb: my guess is that because it didn't have a homedir, it couldn't setup a path and thus it couldn't find the links, or something along those lines lol
<tilpner>
infinisil - One could start with applications that not everyone customizes, but yes, I don't think I would mind
<mudri>
sphalerite: I thought I'd tried that, but maybe not...
<tilpner>
(Obviously that's a policy thing and might just not be okay)
<infinisil>
tilpner: I think maybe it could be an option though, something like nixpkgs.enableXdgOverlay
<tilpner>
No, that just duplicates effort during packaging and support
voiceftp has quit [(Quit: Leaving)]
<infinisil>
Ah you mean because the overlay would have to modify each package individually
voiceftp has joined #nixos
<tilpner>
That too
<infinisil>
Okay how about this: Every package can specify something like meta.dirs = { config = ".ssh"; data = ".sshdata"; }
<infinisil>
Then the overlay uses this to wrap everything with bubblewrap that translates these dirs to xdg variants
stanibanani has quit [(Ping timeout: 240 seconds)]
<sphalerite>
seems like a lot of fuss about a pretty small issue
<tilpner>
I was expecting config arguments to override, but that would result in losing binary caches if it's an overlay
<infinisil>
sphalerite: This could also protect the user from programs accessing stuff they shouldn't in $HOME
<sphalerite>
infinisil: that sounds more like something to use proper sandboxing for
<infinisil>
sphalerite: Hmm maybe
<tilpner>
Sandboxing is good, and I would like to have it by default for nixpkgs, but that's a much bigger project than what you initially proposed
<infinisil>
Just having every program have it's own home with only certain files being mapped to the actual home sounds nice thougg
<sphalerite>
fadenb: ^
<sphalerite>
It still wants my non-public email addresses :(
<tilpner>
infinisil - Better than having config arguments for those locations?
<tilpner>
(Which could be pretty hard for some applications)
<infinisil>
tilpner: Not sure what you mean, an example?
<tilpner>
infinisil - You would wrap or patch an application so that it doesn't try to write to non-compliant paths anymore, but that's a lot of effort
<infinisil>
ohhh yeah, i don't think that's feasible
<tilpner>
For some applications simple search-and-replace would work, but others might be more involved
<sphalerite>
android-style isolation (every app gets its own uid) would also be cool :p
<MichaelRaskin>
I actually run every Firefox _instance_ under a fresh UID and fresh homedir
cfricke has quit [(Quit: WeeChat 1.9.1)]
<tilpner>
MichaelRaskin - With an empty profile every time?
<MichaelRaskin>
Nope, clones of a single pre-initialised profile
<wmertens[m]>
how do you update the profile?
<wmertens[m]>
or do you just log in a lot? :)
<MichaelRaskin>
Mostly by editing the prefs js and rerunning profile initialisation.
<bgamari>
LnL, Is there any way to get a backtrace in the output of builtins.trace?
<Leo`>
What's the difference between buildInputs and nativeBuildInputs?
<bgamari>
Leo`, nativeBuildInputs are those that need to be present on the build machine
<LnL>
don't know that
<bgamari>
buildInputs are run-time dependencies
<bgamari>
AFAIK
<Leo`>
Ok.
<elvishjerricco>
Leo`: bgamari: not quite. It's all about cross compilation
<bgamari>
LnL, I'm pretty sure there isn't a way
<MichaelRaskin>
Not exactly
<Leo`>
But run-time dependencies must also be present on the build machine right?
<Leo`>
elvishjerricco: Ha?
nh2 has joined #nixos
<elvishjerricco>
buildInputs are dependencies that should run on the host of the derivation
<MichaelRaskin>
for cross-compiling, buildInputs are libraries to link, and nativeBuildInputs are tools to run.
<elvishjerricco>
that is, if I'm writing a derivation that cross compiles to arm, buildinputs are dependencies that should also be cross compiled to arm
<MichaelRaskin>
In the sense that buildInputs are in output arch, and nativeBuildInputs are in build-time arch
<Leo`>
Ha, I see.
<elvishjerricco>
nativeBuildInputs are tools that you need during build time, like a C compiler that runs on the build machine.
sigmundv has quit [(Ping timeout: 240 seconds)]
<Leo`>
So for example I'm writing a nix expression for a package that builds with CMake and uses libevent. CMake should be a nativeBuildInput and libevent a buildInput.
<Leo`>
Correct?
<elvishjerricco>
Sounds right
<MichaelRaskin>
Yes
<Leo`>
Got it. Thanks!
sigmundv has joined #nixos
<Leo`>
For now it works with everything in buildInputs but I assume that it would break if someone ever tries to cross-compile it.
<elvishjerricco>
This is a pretty widespread problem in nixpkgs currently: there are thousands and thousands of misuses of `buildInputs`, when `nativeBuildInputs` is actually required
<Leo`>
I see.
<elvishjerricco>
But yea, since not many people are cross compiling many things, it never really comes up
<Leo`>
That's what I was about to do.
<Leo`>
Glad I asked. :p
* bgamari
is currently trying in vain to cross-compile
<bgamari>
and feeling exactly this sort of issue
xdelv has joined #nixos
<bgamari>
it's unfortunately quite tricky to even track down where things go awry
nh2 has quit [(Ping timeout: 240 seconds)]
<elvishjerricco>
John Ericson (SonarPulse / Ericson2314) had to write some really insane splicing code to make it so that if you ever gave a derivation from your host nixpkgs as a nativeBuildInput, it would automatically find the corresponding build derivation, just because the preexisting state of cross compilation was so poor.
<elvishjerricco>
It's gotten a ton better though.
* bgamari
must be doing something terribly wrong; even trying to build shadow triggers an assertion
erictapen has quit [(Read error: Connection reset by peer)]
<elvishjerricco>
I _think_ that looks like the old style cross compilation stuff. I believe glibcCross is no longer a thing people should be using directly.
<elvishjerricco>
Not sure how relevant that is to you
<bgamari>
it very well may be
<bgamari>
I'm actually using John's branch at the moment
<elvishjerricco>
Which one? =P There are quite a few. It's hard to keep track of which work is where.
<bgamari>
which is ultimately forced because the line that you point out (or rather, the assertion above it) forces glibc
<bgamari>
through a non-trivial dependency chain
Alling has joined #nixos
<elvishjerricco>
Yea, I think the `glibcCross` that `shadow/default.nix` has host, build, and target all equal to those of the `shadow` derivation you are trying to build
<bgamari>
I'm waiting to see if things build after removing that preBuild bit
<Alling>
How would I go about installing borgmatic (or a Python package in general) on NixOS?
<elvishjerricco>
bgamari: So ultimately, I think that if you have a `nixpkgsCross` with host=Android and target=Android, then `nixpkgsCross.glibcCross` will attempt to be built with `nixpkgsCross.gccSomethingOrOther`
<elvishjerricco>
Because `glibcCross`, I believe, is a sort of special thing that's meant to run one stage later than the `nixpkgs` it is a part of
<Leo`>
Another question: If the package I'm building is a library that provides a .pc file, how can I make sure it will be in PKG_CONFIG_PATH if I nix-shell with my package?
<Leo`>
It's not, for the moment.
<bgamari>
elvishjerricco, I see
<elvishjerricco>
Leo`: Sorry, I have no idea =/
Itkovian has quit [(Read error: Connection reset by peer)]
<elvishjerricco>
bgamari: That's why people aren't supposed to reference glibcCross anymore. It's only meant to be used when defining nixpkgs cross compilation stages, in order to provide the cross compilation stage with the glibc it needs, which has to be built by the previous stage
<elvishjerricco>
That said, my confidence that I'm correct in all of this is only like 70% =P If you really wanna be sure, you probably need to ask John.
<bgamari>
right I do wish he were around today
Isorkin has quit [(Read error: Connection reset by peer)]
Isorkin has joined #nixos
erictapen has joined #nixos
<Alling>
bgamari: Thank you! Haven't read the entire chapter, but I tried this: environment.systemPackages = with pkgs; [ (python35.withPackages(ps: with ps; [ borgmatic ])) ];
<Alling>
bgamari: But: error: undefined variable ‘borgmatic’ at /etc/nixos/configuration.nix:59:41 (use ‘--show-trace’ to show detailed location information)
<elvishjerricco>
Alling: sounds like borgmatic hasn't been added to the nixpkgs python package set.
<elvishjerricco>
Not sure where to check for that
<bgamari>
indeed it does
<Alling>
I'm not a Python dev, but does this mean I have to build it myself or something?
<Unode>
what package provides aclocal?
<bgamari>
Unode, autoconf perhaps?
<Unode>
tried it but doesn't seem to. Google tells me autotools but I can't find that on nixpkgs
<bgamari>
automake?
<bgamari>
iirc automake provides it on debian
bennofs has joined #nixos
<Unode>
bgamari: thanks automake is the right one
<Unode>
all of these auto* :) confusing stuff
<elvishjerricco>
Alling: there's probably a way to add it to the python package set yourself. But I'm not familiar with nixpkgs's python infrastructure
<bgamari>
Unode, indeed
<bgamari>
How are packages supposed to find the build environment compiler if one is needed?
<bgamari>
e.g. flex's configure script seems to be looking for a C compiler for the build environment
<elvishjerricco>
bgamari: There's a `buildPackages` attr in `nixpkgs` that refers to the previous stage.
seccus has quit [(Ping timeout: 240 seconds)]
<bgamari>
I've added stdenv.cc to nativeBuildInputs thinking that might do the trick
<bgamari>
but alas
<elvishjerricco>
So `buildPackages.stdenv.cc` might be right
<elvishjerricco>
Not totally sure the implications of that
SaganMan has joined #nixos
<bgamari>
hmm
<bgamari>
yeah, seem to hit an assertion if I add buildPackages.stdenv.cc
erictapen has quit [(Ping timeout: 240 seconds)]
<SaganMan>
639 people, woah, how come I not even heard of nixos
<SaganMan>
I heard good things about nix package manager
<elvishjerricco>
bgamari: Strange. That’s supposed to be the stdenv used by that entire package set, so it should be functional
<bgamari>
oh, it's not in stdenv
<bgamari>
my bad
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<bgamari>
ahh, a bit farther
<bgamari>
yay
<bgamari>
one package down
<fadenb>
sphalerite: yes, can only be changed by github. Every scope that has access to configured emails has access to all configured email addresses
<infinisil>
Hey SaganMan :D
<SaganMan>
hey infinisil
<sphalerite>
SaganMan: with good reason ;)
Wizek_ has quit [(Ping timeout: 240 seconds)]
<SaganMan>
btw infinisil, does nix need some special kind of compiler or some sort to run the nix binaries in other distros?
<infinisil>
It does not
<infinisil>
Um, I actually just need to go eat, may the others here answer you for now :)
<infinisil>
*cough* sphalerite *cough*
<sphalerite>
lol
<sphalerite>
SaganMan: if you use nix on a non-nixos distro it'll use its own glibc and stuff, if that's what you mean?
<Unode>
does anyone know of nice documentation to work with python+virtualenv on nixos? I'm trying to run something that uses twisted gtk and currently fails to find gobject. Tried adding it to the system profile but the virtualenv doesn't know it should look there.
<SaganMan>
sphalerite: yeah
<SaganMan>
so that's how nix is doing
<bgamari>
Unode, I'm afraid I have no idea
<sphalerite>
Unode: use nix-shell instead of virtualenv
<Unode>
sphalerite: easier said than done. One of the dependencies is not on nixpkgs.
Alling has quit [(Ping timeout: 260 seconds)]
<Unode>
I'm not sure how to handle that one.
<sphalerite>
Unode: usually pypi2nix can fix that for you
<Unode>
not on pypi either :P
<sphalerite>
ah right
<Unode>
github maybe
<sphalerite>
I've often found that packaging that sort of thing is easier than trying to fudge it into using a non-nix-packaged version
<Unode>
currently on a local dir. with pip install it worked fine.
<sphalerite>
And it has a setup.py?
<Unode>
yes
<Unode>
it works 'the python way' just not quite the 'nix way'.
seccus has joined #nixos
<sphalerite>
Then you should be able to nix it with something like `pythonPackages.buildPythonPackage {name = "foo"; src = lib.cleanSource /path/to/local/dir;}`
<zarel>
I would like to debug an issue: since I have swapped to 17.09 I cannot see the LUKS prompt anymore. If I boot the old system profile, it works. Any hint?
<aminechikhaoui>
on a custom hydra server deployment, is it possible to see logs of narinfo requests from other clients ?
<aminechikhaoui>
I want to basically check the timestamps of requests done by remote "nix-store -r <path> --option binary-caches <cache-server>`
<aminechikhaoui>
on the <cache-server>
markus1189 has quit [(Ping timeout: 255 seconds)]
<aminechikhaoui>
hm actually nevermind, the unit hydra-server should show that I guess, but somehow I'm not seeing that
Isorkin has quit [(Read error: Connection reset by peer)]
serhart has joined #nixos
<tilpner>
I don't think single-user Nix has stable channels
markus1189 has quit [(Ping timeout: 260 seconds)]
markus1189 has joined #nixos
Isorkin has joined #nixos
<MichaelRaskin>
Well, it can use stable channels just as well
Isorkin has quit [(Client Quit)]
<tilpner>
But why would it use NixOS specific channels?
<Unode>
Does anyone here know why the extensions folder in tor-browser's user profile folder is a symlink to nix/store? It makes it impossible to install addons inside tor.
Isorkin has joined #nixos
<bgamari>
hmm, it seems that the binutils-wrapper package doesn't expose an `ar` wrapper
<bgamari>
how is one supposed to use ar in this case?
<ivanivan>
tilpner: I don't understand why single-user nix would default to the unstable channel.
<ivanivan>
I can see how it's less risky to default to unstabl for single user than for multi-user, but it still seems... bold :)
<sphalerite>
Unode: probably to allow setting extensions via nix. Not sure though
<tilpner>
ivanivan - IIRC nixpkgs-unstable is the only supported channel for Nix on systems that are not NixOS or Darwin
<ivanivan>
tilpner: fair enough. i'm about to install it on my ubuntu system, so i was looking at the install script(s)
markus1189 has quit [(Ping timeout: 246 seconds)]
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<Unode>
sphalerite yeah that's also what I'm getting at. Although, is it common practice to break functionality for such a goal?
<sphalerite>
I don't think so, usually that sort of setup would be behind a .configure function or something. AFAIK.
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
<elvishjerricco>
bgamari: That definitely does not sound like the intended behavior. `ar` is definitely used in the cross compilation setup that `reflex-platform` uses.
joepie91 has quit [(Ping timeout: 246 seconds)]
<bgamari>
elvishjerricco, I think I worked it out; you need to use $crossPrefix-ar
joepie91___ is now known as joepie91
<elvishjerricco>
Ah yea, that's definitely needed
markus1189 has joined #nixos
sigmundv has quit [(Quit: Leaving)]
<DIzFer[m]>
how would one make a derivation depend on an overriden version of another derivation? I just found out the reason Civilization Beyond Earth isn't running is because of a lack of gnutls support in curl. I know how to make steam depend on curl, but not how to have it require gnutlsSupport = true
jbgi has joined #nixos
fendoer has joined #nixos
<infinisil>
DIzFer[m]: you use (curl.override { ... }) in buildInputs
<infinisil>
or wherever it's needed
<DIzFer[m]>
gotcha, testing right now
orivej has joined #nixos
joepie91 has quit [(Quit: Konversation terminated!)]
ixxie has joined #nixos
<DIzFer[m]>
I was missing the parenthesis and the syntax checker was screaming at me, that looks better
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<sphalerite>
DIzFer: it may also just work in the steam FHS environment — if you nix-env -iA nixos.steam-run and then steam-run path/to/executable
<sphalerite>
If the curl override doesn't help
Isorkin has quit [(Read error: Connection reset by peer)]
<DIzFer[m]>
I had to also disable openssl support, but it's now building. And didn't have to rebuild half my system, so victory for nix and hashed outputs. Let's see if Civ notices the change...
joepie91___ is now known as joepie91
<Unode>
sphalerite: on sddm. do you know how I can customize the keyboard layouts listed on the interface? US is not my default but it's the only one displayed.
<iqubic>
Anyone able to answer a few EXWM questions?
<sphalerite>
Unode: I don't have a list, and it uses the right keyboard layout for me… do you have one set like services.xserver.layout = "gb"; ?
<iqubic>
Why is it that NixOS creates a seperate emacs init file to use for EXWM?
jbgi has quit [(Ping timeout: 248 seconds)]
<joko>
Hello, could anyone help me with optional dependencies?
<Unode>
sphalerite: yes. I have exactly 'gb'. But sddm still shows 'US'
<Unode>
sphalerite: although the keyboard actually seems to have behaved like GB.
<Unode>
sphalerite: the list is on the top left corner. Next to the kind of session. (can't see it now since I'm logged-in :) )
jb55 has joined #nixos
<sphalerite>
I'm just trying to take a screenshot of it but don't know how xD
<Unode>
sphalerite: did you customize anything on sddm?
<Unode>
I enabled it and got all of what I mentioned.
<sphalerite>
no, but I do have plasma enabled, and I think that affects the greeter
<sphalerite>
hang on, I'll just take a photo of the screen xD
<dgpratt>
pardon the noobish question (and more likely to follow), but running "nix-env -iA nixos.firefox" produces an error "attribute `nixos` in selection path `nixos.firefox` not found" -- I suspect something's not set up right, any ideas?
<elvishjerricco>
dgpratt: You probably are using the wrong channel name. By default, nix's package repo comes from "channels," which you add to your system and name. When you use `-A`, you have to reference what channel you want by the name you gave it.
<Unode>
sphalerite: oh wow, that looks nothing like what I have
<sphalerite>
Unode: right, it's probably a different greeter then
<elvishjerricco>
dgpratt: So your channel probably just wasn't named nixos. You can check your user's channels with `nix-channel --list`
<elvishjerricco>
sphalerite: Yes but that's a tad annoying and not super beginner friendly =P
<Unode>
with different colors and such
<sphalerite>
infinisil: I use scrot usually, the issue is I don't know how to screenshot the display manager. I tried just scrot with DISPLAY=:1 as root, but it seems to be missing an Xauthority and I don't know where to look for it
<dgpratt>
ok, thanks elvishjerricco et al -- "nix-env -qaP firefox" suggests it's under "nixpkgs"
<iqubic>
And I'm sitting here using plain LightDM
<sphalerite>
elvishjerricco: nix-env is a tad annoying and not beginner-friendly :p
<iqubic>
sphalerite: That is the truth.
<Unode>
sphalerite: xset can workaround that, or is it xauth... There's one that opens up an X session publicly. i.e. all users on local machine.
<sphalerite>
Unode: yeah, but that's a bit of a bootstrap problem… xhost also needs to auth to the X server xD
<Unode>
oh heh, right
<iqubic>
pie_: I think it should work. What issues are you having?
<pie_>
lags out my whole browser
<dgpratt>
more noobish questions as promised: suppose I have nix installed on Ubuntu running gnome, is there a straightforward way to install firefox from nix and run it in the desktop environment?
<pie_>
well the UI anyway, the pages themselves seem to stay mostly working
<pie_>
idk if it does something that makes it break when you have a lot of tabs open maybe?
* pie_
tries with a smaller session
<infinisil>
sphalerite: Ah i see, wouldn't know that either
<Unode>
I'm getting some really weird graphical glitches with chromium... After some minutes new tabs become garbled and only a browser restart fixes it.
<sphalerite>
infinisil: :)
<Unode>
sphalerite: so about sddm, any suggestions on how to customize the layouts? I saw something on the web but the files mentioned don't exist on nixos (or maybe they live elsewhere).
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vdM37
<NixOS_GitHub>
nixpkgs/master 8f95aef Yegor Timoshenko: meson: do not strip RPATH...
<joko>
Hello, could anyone help me with optional dependencies? I'm talking about "? null" on top of nix files
<sphalerite>
Unode: `sddm-greeter --theme /run/current-system/sw/share/sddm/themes/breeze` gets me the same greeter as for my actual login screen
<Alling>
hodapp: Exactly.
<Unode>
sphalerite: I don't have any themes
<Unode>
I mean ..sw/share/sddm doesn't exist
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<hodapp>
Alling: you can use something like buildPythonPackage to just define the package (local to a specific expression, even)
<Alling>
infinisil: Thanks. I'm not a Python dev, but I am a programmer, so I can probably figure it out if you could point me in the right direction. Is "9.11.1.2. Developing with Python" what I want?
<sphalerite>
Unode: the plasma desktop module sets sddm's theme to that
* bgamari
has a cross-compiled build up to openjpeg
jbgi has joined #nixos
<Alling>
hodapp: How does that snippet fit into configuration.nix?
<hodapp>
Alling: you can treat that buildPythonPackage definition as you would any other Python package
<hodapp>
what existing system-wide Python stuff do you have in your configuration.nix?
jb55 has quit [(Ping timeout: 248 seconds)]
Dunkelkriegerin is now known as edef
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cocreature closed pull request #30214: ghcjs/ghcjsHEAD: Use separate patch files to fix build of ghcjs (master...ghcjs) https://git.io/vdz6L
NixOS_GitHub has left #nixos []
<dgpratt>
I installed nix to play around with isolated environments for dev, but then I thought nix being so great, maybe I should install other apps with it also, e.g. firefox, but maybe that's not what folks do? Maybe I shouldn't expect such things to work "out of the box" if I'm not running NixOS?
<ArdaXi[m]>
That should work fine, why wouldn't it?
<infinisil>
What folks do is switch to NixOS :P
<ArdaXi[m]>
Sure, but Nix should work fine as a drop-in replacement for a package manager
athaller has quit [(Remote host closed the connection)]
<dgpratt>
ArdaXi[m]: I'm not sure, I suspect I'm doing (or did) something silly. Might've been me installing the Gnome desktop environment through apt and then expecting that I could install e.g. "firefox" through nix and expect them to play nice together
thblt has joined #nixos
<ArdaXi[m]>
What's not working?
<dgpratt>
infinisil: that's an option; this is all running in a VM and historically I've had the best luck running Ubuntu in VirtualBox
<adisbladis>
dgpratt: That should be fine.
<joko>
ArdaXi[m]: it is a bit difficult for me to set up graphics for nix packages outside of nixos; besides that, I don't think there is anything wrong using non-dev packages
ixxie has quit [(Quit: Lost terminal)]
nschoe has joined #nixos
<ArdaXi[m]>
I've only used nix as a package manager on OS X but everything worked fine there
<dgpratt>
maybe I'm just not launching FF the right way. Suppose I "nix-env -iA nixpkgs.firefox", how do I run it in the graphical environment?
mrkgnao has quit [(Quit: WeeChat 1.9.1)]
<adisbladis>
dgpratt: Oh are you expecting the desktop entries to be pointing to your nix installed version?
<dgpratt>
if I run firefox from a non-graphical tty, I get "GDK_BACKEND does not match available displays"
Isorkin has joined #nixos
riclima has joined #nixos
zarel has quit [(Quit: Leaving)]
JosW has quit [(Ping timeout: 248 seconds)]
<ArdaXi[m]>
A non-graphical tty?
<dgpratt>
rather than make a further idiot of myself, let me just ask (again): Given "nix-env -iA nixpkgs.firefox", how do I run firefox from the Gnome desktop?
<ArdaXi[m]>
You'd have a .desktop file in your current profile, would be `/run/current-system/sw/share/applications` on nixos
<ArdaXi[m]>
Not sure where it would be in user mode
<ArdaXi[m]>
But really, you should just be able to run `firefox`, in a terminal for example
bennofs has joined #nixos
<ldlework>
Does anyone here use the MacPort of emacs distributed by Nix?
JosW has joined #nixos
<iqubic>
ldlework: What issues are you running into?
<ldlework>
iqubic When I switch to Mission Control spaces that have emacs running, even if it is the only app on that space, mission control focuses Finder, everytime
<ldlework>
And I have to click into emacs. Its a minor issue, but I am a heavy Mission Control user and its starting to grate my nerves
<Alling>
hodapp: OK. My configuration.nix now looks like this: let borgmatic = buildPythonPackage rec { ... } in { ... environment.systemPackages = with pkgs; [ (python36.withPackages(ps: with ps; [ borgmatic ])) ]; }
<Alling>
error: undefined variable ‘buildPythonPackage’ at /etc/nixos/configuration.nix:11:15 (use ‘--show-trace’ to show detailed location information)
<iqubic>
ldlework: That doesn't seem like a nix issue.
<Alling>
So I guess I'm missing some boilerplate.
<ldlework>
iqubic it doesn't happen with the brew installed emacs
<iqubic>
But I'm not a Mac user, so I wouldn't know.
<ldlework>
or the one I built myself
<ldlework>
I guess this is the point I stop using GUI emacs lol
<iqubic>
ldlework: That should not be the conclusion you jump to.
<ldlework>
I guess I can try the GTK vesion
<dgpratt>
ArdaXi[m]: your mention of .desktop files was the hint I needed, thanks
<infinisil>
Alling: { pkgs, ... }: let borgmatic = pkgs.pythonPackages.buildPythonPackage rec { ... }; in { environment.systemPackages = with pkgs; [ (python36.withPackages (p: [ borgmatic ])) ] }
<dgpratt>
btw, this is a barebones Ubuntu install, so no terminal emulator installed (yet)
<infinisil>
Something like that ^^
<infinisil>
Alling: Maybe you need python3Packages instead though, not sure
<iqubic>
dgpratt: I think Ubuntu ships with a terminal emulator.
<iqubic>
But you can always use a TTY if needed.
Wizek has quit [(Quit: Connection closed for inactivity)]
<ArdaXi[m]>
Trying to launch X programs from a TTY isn't easy, though
<iqubic>
No, it isn't
fendoer has joined #nixos
<ldlework>
just a matter of exporting the right DISPLAY right?
* ldlework
can faintly remember being in such situations before
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lejonet closed pull request #30025: sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd (master...master) https://git.io/vdc19
<iqubic>
ldlework: How do I make sure that the right tools and library dependecies are in scope?
<lejonet>
symphorien: well, I need it during the build phase :)
<symphorien>
so call it by hand before
<ldlework>
iqubic by writing them into the derivation as per the documentation for derivations
<lejonet>
because the build phase calls a perl script to generate bash completion
<lejonet>
symphorien: that is exactly what I'm gonna do
<ldlework>
IE, by passing { buildInputs = [ whatever ] } to the derivation
<symphorien>
:)
<infinisil>
Actually, you probably just need to put ninja in the build inputs iqubic and it should do the ninja thing
sigmundv has joined #nixos
<ldlework>
Yeah exactly
<ldlework>
put ninja in there, then just call whatever normal ninja build scripts you would call if you were using ninja to install this project to your host or whatever
<Alling>
infinisil: "1 dependencies couldn't be built" so I guess I need something in buildInputs ... but what?
<ldlework>
Nix isn't like alpine with a unique Clib and a whole different tool chain and stuff
<iqubic>
infinisil: I'll try that.
<ldlework>
It is all your normal tooling, and it all works the same
<Alling>
infinisil: So it does say something about wrong hash.
ris has joined #nixos
<lejonet>
I guess I should double check what --enable-systemd means for the project and see if its any that I will need anyway (my guess is that it "only" triggers to put a unitfile somewhere and such)
tempeh has joined #nixos
<clever>
lejonet: some services link into systemd for sd_notify
<clever>
and you would obviously not want that if you lack systemd headers
<infinisil>
Alling: Replace the hash 07zvw... with 1zass...
<lejonet>
well, I've thrown in systemd in the buildInputs, so it should have what it needs for that part, but it seems like the install phase tries to put stuff in /lib/systemd/system, and my guess is unitfiles
<iqubic>
Do I need to set-up a docker container for this project, or is that too over the top?
<Alling>
infinisil: I don't think 07zvw is anywhere in my configuration.nix. I have this, though: src = pkgs.pythonPackages.fetchPypi { inherit pname version; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; };
<Alling>
And that hash may very well be totally wrong. I don't know what hash I should put there.
<clever>
Alling: just put in any hash, nix will tell you the right one when it fails
<infinisil>
Alling: Hmm not sure about that then, I haven't done much python stuff
<infinisil>
clever: See his gist
Nobabs27 has joined #nixos
<ldlework>
iqubic only if you want the execution of that project to be isolated from the rest of the system
<ldlework>
Nix doesn't do process isolation
mortum5 has joined #nixos
<ldlework>
All the processes running in a given profile are sharing the filesystem, etc
chreekat has quit [(Quit: quitting)]
<iqubic>
ldlework: This project won't mess with my system too much, I don't think.
<clever>
iqubic: systemd does have some sandboxing options, and there are also nixos containers
<ldlework>
Using Docker and Nix together is a thing because they do entirely different things.
<ldlework>
s/Docker/containers
elasticdog has quit [(Ping timeout: 246 seconds)]
<iqubic>
How hard is it to set-up a docker container for nix?
elasticdog has joined #nixos
jb55 has joined #nixos
simukis has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
<ArdaXi[m]>
Depends slightly on what you mean by "a docker container for nix"
<ldlework>
iqubic do you mean Docker on NixOS, or NixOS as the image OS
<ldlework>
hehe yeah
<ldlework>
they're both trivial really
<iqubic>
ldlework: Docker on NixOS.
<iqubic>
I think.
<iqubic>
I'm not too sure really.
<ldlework>
I'm guessing if you did nix-env -i docker it would work
<iqubic>
What would that do?
<ldlework>
iqubic do you want to use docker on your NixOS machine? Or do you want to construct a Docker container that is running NixOS inside which is the environment for some software you want to deploy as a container?
<LnL>
you can enable the dockerd in your configuration
<ArdaXi[m]>
Docker is slightly more than a binary, I think
<ldlework>
`nix-env -i docker` does the former
<ArdaXi[m]>
On NixOS you'll really want to do `virtualization.docker.enable`
<ldlework>
Sure, its also a daemon and a number of binaries
<iqubic>
I have no idea what I want to do.
<LnL>
^ nix-env would only install the client
<ldlework>
Really?
<iqubic>
I hardly know what docker even is.
<ldlework>
I figured that nix pkgs could be more complex than deploying a single binary
<ldlework>
iqubic then I wouldn't worry about it and just focus on Nix
<ArdaXi[m]>
I think you might be trying to do a few too many new things at once, yeah
<iqubic>
Alright. I'm going to read up on how to write a derivation then.
<ldlework>
read chapters 15 and 8, 9 and then finally 14
<ldlework>
👍
<iqubic>
I will.
<ldlework>
make sure you read 8 and 9 too tho
<ldlework>
because they explain how the symlinking and stuff works
<ldlework>
You'll understand that Nix is actually a typical linux distribution, but with a layer of indirection
<ldlework>
afaict
Alling has quit [(Ping timeout: 260 seconds)]
riclima has joined #nixos
<infinisil>
ldlework: Ah you left a comment on HN :)
<ldlework>
yup
<hodapp>
my favorite is Bocker, most of Docker's functionality implemented completely in bash
<infinisil>
Ah and taktoa is there too
<elvishjerricco>
Has anyone tried to get memtest86+ working with systemd-boot? There's a nice nixos option for enabling it in grub, but not for systemd-boot.
<lejonet>
clever: from what I can see, it was only used to install systemd stuff, so I'm just going to remove that flag, because I'll have to write a nix service for it anyway
riclima has quit [(Client Quit)]
<hodapp>
elvishjerricco: oh, I feel like I did this on my desktop somehow, but on Arch... but I think it hangs around in my boot menu
* hodapp
digs
<hodapp>
huh, well, there, I did it with efibootmgr & bootctl, along with Shellx64.efi
<tilpner>
LnL - dockerd would be installed too, but I think it shouldn't be
<tilpner>
(There will be no service set up for you though)
<elvishjerricco>
hodapp: Hm there does seem to be a lot of content on the internet about doing it in Arch linux. Can't be too hard to port to NixOS =) Thanks!
<ldlework>
"nix-env -i docker" should probably result in a fully working installation of Docker
riclima has joined #nixos
riclima has quit [(Client Quit)]
<LnL>
well if you configure and start the daemon yourself it would work
<iqubic>
hodapp: What did you do in with efibootmgr & bootctl?
<ldlework>
A thing that's starting to bother me with Nix though, is everytime I try to google "Nix <thing I want to know about>" the first 5 or so results on google are source code
<ldlework>
😂
<tilpner>
ldlework - No. nix-env should never configure and start services for you
<ldlework>
tilpner no?
<hodapp>
iqubic: I set up the EFI boot menu to have a couple things like Shellx64.efi and memtest86.efi.
<hodapp>
alongside my normal Linux boot, of course.
<iqubic>
What are those things?
goibhniu has joined #nixos
mithsv has quit [(Read error: Connection reset by peer)]
mithsv has joined #nixos
Itkovian has joined #nixos
<hodapp>
iqubic: Shellx64 is some sort of minimal EFI shell, IIRC (I believe it allows me to do some NVRAM configuration and possibly to have it load other things - partitions perhaps); memtest86+ does some extensive RAM testing to find errors, and memtest86.efi is just a version of this compiled to an EFI binary.
<Acou_Bass>
my znc config works fine without the bindhosts
<Acou_Bass>
its the bindhosts i want though :P
goibhniu has quit [(Ping timeout: 248 seconds)]
<tilpner>
ldlework - Currently it won't, and changing it to do that... would be hard. How do you setup Docker portably on NixOS, Darwin and Ubuntu?
<infinisil>
Acou_Bass: I see, haven't used those
<Acou_Bass>
basically so i can connect to my ZNC via a subdomain
<Acou_Bass>
rather than an internal IP
civodul has joined #nixos
nschoe has quit [(Ping timeout: 255 seconds)]
endformationage has joined #nixos
<ldlework>
tilpner with three different derivations?
<ldlework>
You can't really install Docker on OSX anyway
<tilpner>
ldlework - That's not what I meant. How are you going to configure and start a service with just Nix? NixOS was built to also handle services, but Nix can't do that
<ldlework>
Ah
<ArdaXi[m]>
With a bunch of hacking you could have Nix do that, but then… you're really just reimplementing NixOS and I don't think anyone would bother
<ArdaXi[m]>
But it is certainly possible
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdMlu
<NixOS_GitHub>
nixpkgs/master 19997f0 Tim Steinbach: linux-copperhead: 4.13.6.a -> 4.13.7.a
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdMlz
<NixOS_GitHub>
nixpkgs/release-17.09 d76720f Tim Steinbach: linux-copperhead: 4.13.6.a -> 4.13.7.a...
NixOS_GitHub has left #nixos []
<tilpner>
Exactly, which is why we should leave that sort of management to NixOS, not try to cram it into nixpkgs
<ldlework>
I mean I guess that's what home-manager is doing
<ArdaXi[m]>
You'd end up basically rebuilding something like nixos-rebuild
<ldlework>
And what NixUP want's to be
nschoe has joined #nixos
Itkovian_ has joined #nixos
Itkovian_ has quit [(Client Quit)]
<tilpner>
ldlework - Hold on, now you're changing the argument. We were talking about nix-env, and home-manager needs more than nix-env
<tilpner>
I'm not saying there can't be a way to configure Docker on Ubuntu with Nix, just that nix-env shouldn't do it
<BlessJah>
disasm: you around? it seems that nixos-17.09-small was downgraded from 17.09.1535.1fdca25ee8 to 17.09.1716.68ef4b14bc
Itkovian_ has joined #nixos
<BlessJah>
disasm: regular 17.09 channel points to 17.09.1547.2231575a7d
k2s has joined #nixos
<ldlework>
til, sure I get what you're saying - nix-env is firmly a store management utility. home-manager uses native bash in order to manage OSX.
k2s has quit [(Client Quit)]
<ldlework>
like services
Itkovian has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
<infinisil>
What are the advantages of NixOS?
<infinisil>
Writing a comment, I already have the module system and generations
<srhb>
infinisil: Over plain nix?
<infinisil>
Over other distros
<srhb>
Ah.
<srhb>
I think those encapsulate it pretty well, but it also hides a lot of the awesomeness (eg. declarativeness)
<ldlework>
infinisil the problem is that those features are available on any OS which Nix is available
<infinisil>
Hmm, right, I'll add something about not having to run a bunch of odd commands when you set up a new machine
<srhb>
ldlework: Modules not so much.
<ldlework>
I'm using modules with home-manager though I thought
<srhb>
Right, home-manager modules only.
<ldlework>
Yeah but that's just a library issue
<ldlework>
So you should frame it with that nuance if you are going to mention it
<tilpner>
infinisil - Ehh, we still have to do partitioning manually, when many others use graphical installers. It might not be such a good point to bring up?
<srhb>
I wouldn't want to try and do the manual cleanups required to allow this to exist in a non-NixOS system
<srhb>
You'd be fighting everything.
<ldlework>
"allow this"?
<srhb>
Ripping out the existing systemd, for instance.
ma27 has quit [(Quit: WeeChat 1.9.1)]
<srhb>
You're left with - well, NixOS.
<infinisil>
tilpner: True, but that's rather small of a price to pay for what nixos can set up
<ldlework>
I dunno what you're saying, sorry
<srhb>
ldlework: Remember when you have a file lying around that prevents home manager from applying your configuration?
<srhb>
ldlework: And you have to get rid of it manually.
taktoa has quit [(Remote host closed the connection)]
<ArdaXi[m]>
Honestly, I've always seen NixOS more as an Ansible replacement
<ldlework>
I mean that's what you want
<srhb>
ldlework: Now imagine this in a tightly interlocking distro scale.
<srhb>
ArdaXi[m]: hissss :)
<ldlework>
I don't know what strawman you're attacking...?
<tilpner>
infinisil - Absolutely, but installation is not really one of the best features of NixOS, so you shouldn't get anyones hopes up. Focus on declarativeness :)
<ldlework>
Did I say something about this that you're disagreeing with?
<srhb>
ldlework: Uh, I'm not trying to attack you or a strawman at all, sorry if I'm not explaining it well though.
<ldlework>
All I said was that the module system is available in Nix, there just are not the same amount of modules.
<ArdaXi[m]>
What? On my own time I can get really excited about purity and such, but when I just want to get things done I don't care so much about the OS and far more about config management ^.^
<srhb>
ldlework: I'm agreeing with you that it's a "library issue" and disagreeing that there's anything "just" about that.
<ldlework>
So you shouldn't present the module system as something that NixOS has over Nix because Nix has it too.
<tilpner>
Nix doesn't have modules
<LnL>
infinisil: one other cool feature is that you can test configuration changes in a vm with a single command
<ldlework>
I don't get it.
<infinisil>
tilpner: Alright, I'll say "If you have a new *nixos* machine, blablabla not bunch of commands blablabla declarative"
<infinisil>
LnL: Ohh good point
<infinisil>
tilpner: nix can use the module system in nixpkgs, which is what home-manager does
<tilpner>
infinisil - nixpkgs has modules, nix itself doesn't
<infinisil>
yeah
<tilpner>
(We're already being pedantic here, might as well make that distinction too)
<ldlework>
The point stands, NixOS doesn't have "modules" as an advantage to not using NixOS
<ldlework>
ya
<ldlework>
its good
<ldlework>
the only reason I understand anything is infinisil's patience is explaning all that pedantry, its valuable
<infinisil>
home-manager is pretty niche niche, modules haven't been used for something like that very often
<ArdaXi[m]>
NixOS doesn't exclusively have the idea of modules, but nixos' modules are pretty valuable in their own right
<tilpner>
(And technically, <nixpkgs/nixos> has modules, <nixpkgs> only does insofar as it contains <nixpkgs/nixos>)
<ldlework>
ArdaXi[m] that's the way it should be presented
<infinisil>
ArdaXi[m]: Agreed, there's tons of them
<infinisil>
tilpner: Actually, the modules are in nixpkgs/lib
<bgamari>
/nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/z8sqw1qc8jhfapsy7gibj1rrsan0pib2-linux-pam-1.2.1-arm-unknown-linux-gnueabihf/lib/libpam_misc.so, not found (try using -rpath or -rpath-link)
jb55 has quit [(Ping timeout: 240 seconds)]
<bgamari>
the .so's in question appear to exist
<bgamari>
and objdump says that the RUNPATH in libpam_misc.so is sane
<srhb>
ldlework: You're not referencing it anywhere, are you?
<ldlework>
its a lazy language!
<srhb>
ldlework: Right, exactly. :-)
<ldlework>
eh
nschoe has quit [(Ping timeout: 255 seconds)]
<ldlework>
heh
<BlessJah>
disasm: me cannot into math, sorry for that
<BlessJah>
I've seen no upgrades recently and when I saw change from xx47 to xx16 I immidiately jumped to conclusion that was downgrade
<disasm>
BlessJah: no problem :)
<BlessJah>
be vigilant ;)
jb55 has joined #nixos
<disasm>
tilpner, infinisil: I'm not sure nixos is well suited for anyone that is scared of manually setting up their partitions. I think infinisil point still stands. After your disks are setup the way you want them and mounted, it's 2 commands and a reboot
<samueldr>
I'm looking through the nixos-homepage issues, there's a need for triage there as many bugs are either fixed or outdated
<Unode>
I'm having some issues with GTK3 apps and several warnings on the logs about inability to save dconf settings. I tried adding dconf to the system but it was insufficient. I still can't save dconf settings with my user. Is there any service that provides proper dconf behavior? (I'm not running KDE nor GNOME).
jb55 has quit [(Quit: WeeChat 1.9)]
jb55 has joined #nixos
<Unode>
every time I try to do a change I get "The name ca.desrt.dconf was not provided by any .service files"
<infinisil>
Unode: I actually got that error too while i was using konsole, I couldn't resolve it though, I just switched to a different terminal
p4cman has quit [(Quit: Connection closed for inactivity)]
dieggsy has quit [(Read error: Connection reset by peer)]
<disasm>
Not yet lejonet, so I'll get to do this again in a year or so lol
<lejonet>
disasm: xD
<infinisil>
iqubic: Because it's so much better than conventional FS's
<sphalerite>
disasm: welcome to a new world!
<gchristensen>
I'm presently cursing ZFS, but only because my rescue OS doesn't support it on a busted system
<sphalerite>
A world that's kind of like that of btrfs
<lejonet>
I'm going to wait a bit for the native encryption to get some more review, then I might consider switching back to ZFS
<sphalerite>
But with z instead of btr
<pbogdan>
gchristensen: am I correct in assuming the timestamps in https://channels.nix.gsc.io/*/history are AuthorDate of the respective commit?
leat has quit [(Ping timeout: 240 seconds)]
<iqubic>
What is the rescue OS gchristensen?
<samueldr>
pbogdan: yes, UTC
<hodapp>
iqubic: Sun Microsystems put in a huge amount of good research and design into it, and as a result it's likely the best combination you'll find anyplace of stability, speed, and overall capability.
<infinisil>
Will want to use ZFS encryption too, maybe once it's in the next stable release
<pbogdan>
samueldr: thanks
<gchristensen>
iqubic: the one from Packet.net when your server appears to be busted
<lejonet>
hodapp: too bad that it will never be merged with the kernel :/
<iqubic>
hodapp: Better than ext4?
<sphalerite>
iqubic: snapshots, compression, raidz, and the multiple dataset thing
<hodapp>
iqubic: depending on what you're using it for, yes.
<sphalerite>
iqubic: ext4 does none of those
<gchristensen>
no inode limit is nice
<hodapp>
though I still use ext4 as my root FS
<infinisil>
hodapp: Why so?
<iqubic>
When I get a new laptop I will look into all the different filesystems and decide what to use for each partition.
<hodapp>
infinisil: why use ext4 for my root FS?
<infinisil>
yeah
<hodapp>
infinisil: so, there's a very complicated reason that it will take me a bit of time to explain here, as it involved a lot of research.
<hodapp>
infinisil: ah, wait, no there's not, it's just because I'm lazy.
<infinisil>
Heh lol
<sphalerite>
iqubic: the only things ext4 has over zfs is simplicity, (much easier to set up) and better fragmentation and near-capacity properties, and GPL licencing (so installer images that support it are redistributable)
<infinisil>
Yeah I know it, once i have a working setup, I'll take me some convincing to change it again
<lejonet>
Where are config.ids.uids defined? And how would I get about fixing a uid in there, for a service I'm adding?
<ldlework>
infinisil so I'm a bit confused. At the top they define "cfg = config.programs.emacs" but then they define an "options" set which defines the same "config.programs.emacs" structure. Is this the options/module merging at work?
<ldlework>
Like are the extending the emacs module options?
<hodapp>
iqubic: to give an example of some things that are pretty central to ZFS, one is the ability to make snapshots of a filesystem, while it's live, with no delay and minimal slowdown. You can then browse these snapshots as you could any other filesystem (read-only, of course), you can merge them back in, and you can trivially get differential changes between two snapshots.
<sphalerite>
^ and you can copy the snapshots to another pool for backup
<hodapp>
iqubic: snapshots are fast enough that you can (for instance) do them hourly, and then expire older ones (leaving enough so that you have daily snapshots, then weekly, then monthly), without the slowdown ever being visible to people using the filesystem.
<ldlework>
is zfs a unionfs?
<infinisil>
ldlework: cfg is just a convention to refer to the final relevant config, config.programs.emacs in this case
<sphalerite>
Or even send them to tape if you have the backup-to-tape sort of daya
<sphalerite>
ldlework: no
<hodapp>
these snapshots only take up space for what's changed, as well - so they're very efficient in terms of space
<ldlework>
infinisil sure, I just mean, it appears that config.programs.emacs already exists before the options set is defined?
<infinisil>
ldlework: the config attribute at the top are the values of all merged options, the final resolved config in a sense
<ldlework>
Do the options defined in this file get "merged" with whatever what there before?
<infinisil>
Kinda hard to explain
<ldlework>
no kidding
<sphalerite>
ldlework: its the magic of lazy evaluation and recursion
<hodapp>
with zfs send/recv, you can send just the changes between two snapshots and keep two ZFS filesystems in sync very efficiently (once witnessed a case where rsync would take 15+ hours just to reconcile the local & remote volumes, not even to start the copy, but zfs send/recv could do it all in a mattre of hours)
<infinisil>
hodapp: Ohhh, that's nice to hear, I didn't know what was faster
<infinisil>
ldlework: It's really just loeb and moeb
<hodapp>
infinisil: the main difference is that ZFS was tallying up all the changes as they happened, and then the snapshot already had all that - whereas rsync had to compute those changes each time
<sphalerite>
infinisil: of course it is. Zfs already knows what's changed, rsync has to check
<ldlework>
infinisil would you do me a solid and fork the gist to show how you'd use emacsWithPackages in the "docs" runCommand derivation, with the package set to emacs25-nox ?
<hodapp>
I've heard that some folks make extensive use of snapshots when they put their root filesystem on ZFS
<hodapp>
but I've never done this
<hodapp>
seems a little superfluous with NixOS
b has quit [(Quit: Lost terminal)]
<sphalerite>
Yeah I snapshot my home and my /etc/nixos and /var/lib if I have anything there but the rest of the stuff is already handled
Wizek_ has joined #nixos
<hodapp>
sphalerite: this was impressive to see. Two offices, 60 miles apart, kept two ~16 TB volumes at each site in sync daily across a slow (probably single-digit megabits) DSL link
Wizek has joined #nixos
<gchristensen>
nice
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ldlework>
infinisil also what is that syntax at the end?I would expect you would pass a set to emacsWithPackages, how can you specify a key like epkgs in a parens like that?
<infinisil>
ldlework: Yeah you can pass that to buildinputs
<hodapp>
lejonet: it wasn't foolproof, but the way they worked around this was just to start the send/recv and if it didn't complete by 7 AM the next day it would fire off an alert and dump the incremental changes to a drive for someone to physically take (some people would be in the remote office one day a week or something)
<sphalerite>
hodapp: that is cool!
b has joined #nixos
<lejonet>
hodapp: Mhm, that is the usual way to handle that
<infinisil>
ldlework: emacsWithPackages is a function that accepts a function f, where f takes the emacs packages and outputs an array of the selected ones
<sphalerite>
lejonet: re efficient binary format — rsync has that too
<lejonet>
"Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
leat has joined #nixos
<lejonet>
sphalerite: but it uses SSH as a transport, which adds a lot of unneeded overhead
<sphalerite>
lejonet: same for determining what to copy. Just that determining what to copy is a lot quicker if you don't have to read all the data in to do so
<lejonet>
sphalerite: indeed
Arcaelyx_ has joined #nixos
<hodapp>
in this case I think zfs send was going over an SSH link anyway
<hodapp>
it has some heuristics to speed this up I think, but kind of iffy
<infinisil>
like modify time of the files?
<sphalerite>
gchristensen: neat!
<sphalerite>
Yeaj
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<infinisil>
gchristensen: Why not just tail -c8 /etc/machine-id ?
<gchristensen>
I dunno
<infinisil>
I never understood why such a complicated function is used
<infinisil>
I have no idea what hostId is even used for
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<gchristensen>
zfs
<infinisil>
Heh yeah
<infinisil>
i mean concretely
<sphalerite>
infinisil: identifying which machine has a pool imported
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<sphalerite>
Right, I should sleep. Don't want a repeat of yesterday.
<sphalerite>
Gnight!
<infinisil>
Me too actuall, night!
<disasm>
gchristensen: thanks :)
<ldlework>
infinisil thanks
jb55 has quit [(Ping timeout: 246 seconds)]
Itkovian has joined #nixos
Alling has joined #nixos
<Alling>
Having problem adding Python packages that are not in the NixOS pkgs. Apparently one is supposed to do something like ` src = pkgs.pythonPackages.fetchPypi { inherit pname version; sha256 = "07zvwfs1r7q8hgplr8plnzrva0cjmx5drr8czad5ms2fqq7lrb0k"; };` but I don't understand how to know what sha256 should be.
<Alling>
(That code snippet goes into buildPythonPackage rec.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jamesthompson opened pull request #30450: kubectl: init at v1.8.1 (master...kubectl) https://git.io/vdM0M
NixOS_GitHub has left #nixos []
dejanr_home has joined #nixos
jkolp has joined #nixos
<jkolp>
Is it possible to create a live nixos disk that runs from ram?
goibhniu has quit [(Ping timeout: 255 seconds)]
jbgi has quit [(Ping timeout: 255 seconds)]
<samueldr>
it should, since the installation media now allows it
<bgamari>
clever, would you happen to know how the binutils wrapper's rpath mangling is supposed to work?
Nergal has quit [(Remote host closed the connection)]
<bgamari>
or anyone else for that matter
Nergal has joined #nixos
* bgamari
is seeing configure checks fail with missing -l dependencies
<bgamari>
adding, for instance, -ldl to the failing command line allows the thing to proceed
<bgamari>
however, I don't see why this should be necessary
ma27 has joined #nixos
<jkolp>
samueldr: thanks, but doesn't that item point list refer to ". If you cannot use dd for a UEFI installation, you can also mount the ISO, copy its contents verbatim to your drive, then either: ", meaning its UEFI only? Or it works in MBR?
<samueldr>
I'm referring to the `copytoram` option
<jkolp>
yes, but it always works? UEFI, MBR?
<jkolp>
the way the manual is formatted it looks it only applies to UEFI, but I think it's just the manual being unclear
<jkolp>
btw that kernel parameter list link is dead
iqubic has quit [(Remote host closed the connection)]
ambro718 has quit [(Ping timeout: 255 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rardiol opened pull request #30451: doc/installing-usb.xml: fix dead kernel parameter link docs. (master...patch-1) https://git.io/vdME6
NixOS_GitHub has left #nixos []
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
<samueldr>
:(
<samueldr>
:)
<samueldr>
I'm too slow it seems
<jkolp>
:P
<jkolp>
but copytoram doesn't show up in the kernel docs. Is that something special for nixos? And does it work on any nixos system or only on the special installer?
<samueldr>
see one of the two commits I linked
<samueldr>
it's used by the stage 1 script to know it should copy the iso to ram
jb55 has joined #nixos
<bgamari>
Sonarpulse, ping
<Sonarpulse>
bgamari: hi
<samueldr>
I don't think it will work as-is without being a disk image
<bgamari>
Sonarpulse, I have a few questions for you if you have a bit
<bgamari>
I've been working on cross-compilation
<Sonarpulse>
bgamari: sure!
<bgamari>
I nearly have systemd built
<Sonarpulse>
glad to hear it!
<bgamari>
Sonarpulse, first, I've been using your elegant-cross branch
<bgamari>
is this the right thing to be working off of?
<Sonarpulse>
bgamari: ios-refresh2 has a bit more stuff
<Sonarpulse>
less cleaned up
<samueldr>
jkolp: even though the modules build installation disks by default, it is possible work off of installation-cd-base.nix and make your own image for anything
<Sonarpulse>
but what we actually use for haskell
<bgamari>
Sonarpulse, I see
<bgamari>
alright
<Sonarpulse>
cross-elegant is great if you can get away with it
<bgamari>
It seems to be working out thusfar
<Sonarpulse>
cool
<bgamari>
other than a bunch of fixes
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<Sonarpulse>
was nixpkgs-unstable channel a few days ago
<Sonarpulse>
I got some WIP stuff on that
<bgamari>
lovely
<Sonarpulse>
I was trying to build binutils and libbfd separately
<bgamari>
so I'm quite confused about how ld interacts with rpath and the wrapper
<Sonarpulse>
ah ok
hiratara has quit [(Ping timeout: 246 seconds)]
<Sonarpulse>
the wrapper does some crude guess where -lfoo will be resolved
<Sonarpulse>
then adds an -rpath for each pseudo-resolved -l
sirkha_ has quit [(Ping timeout: 248 seconds)]
<Sonarpulse>
(if only a .a could resolve it, the pseudo resolution will fail and no rpath will be added)
<bgamari>
perhaps answer this:
<bgamari>
if libssl.so depends upon libdl
<bgamari>
should a package which links against libssl.so need to link with -ldl
sirkha has joined #nixos
<bgamari>
it seems in practice the answer is "yes"
<bgamari>
but I suspect something is wrong
<Sonarpulse>
bgamari: that does seem off
<bgamari>
for instance, I see
<bgamari>
/nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/bn42y6zd01s4f2b4ag8959gbfbxmk9a1-openssl-1.0.2l-arm-unknown-linux-gnueabihf/lib/libssl.so, not found (try using -rpath or -rpath-link)
<bgamari>
when I try to link against libssl.so
<Sonarpulse>
bgamari: the "cross adapter" in pkgs/stdenv/adapters.nix
hiratara has joined #nixos
<Sonarpulse>
had some big note about making all buildInputs propagated
<bgamari>
libssl.so has
<Sonarpulse>
and rpath-link
<bgamari>
NEEDED libdl.so.2
<bgamari>
as well as
<bgamari>
/nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/bn42y6zd01s4f2b4ag8959gbfbxmk9a1-openssl-1.0.2l-arm-unknown-linux-gnueabihf/lib/libssl.so, not found (try using -rpath or -rpath-link)
<Sonarpulse>
ldd-tree? I forget exact name, can find
<Sonarpulse>
recursively resolves shared object
<Sonarpulse>
and prints out tree
<bgamari>
hmm
<Sonarpulse>
lddtree in pax-utils
<bgamari>
alright, cool
<bgamari>
Sonarpulse, so does the wrapper propagate these dependencies?
<Sonarpulse>
bgamari: ld-wrapper?
<bgamari>
yep
<Sonarpulse>
I don't think it propagated dependencies
<ldlework>
How can I set some global data that can be later used in an imported module?
<bgamari>
Do you know whether ld is supposed to respect the RUNPATH of shared objects that it links against?
<bgamari>
Sonarpulse, so ld-wrapper doesn't add any -l flags?
<Sonarpulse>
bgamari: I would have thought so
<Sonarpulse>
yeah
<Sonarpulse>
just -L
<ldlework>
maybe home.sessionVariables?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMzc
<NixOS_GitHub>
nixpkgs/master 50ef776 Nikolay Amiantov: python.pkgs.Keras: remove default backend...
NixOS_GitHub has left #nixos []
<Sonarpulse>
but no that you mention it, I recall having trouble on mac with not looking at children's -rpath
<bgamari>
ahhh
ebzzry has joined #nixos
<bgamari>
Sonarpulse, ld(1) says this:
sirkha_ has joined #nixos
<Sonarpulse>
bgamari: I have a branch for cleaning up the linux kernel, btw
<bgamari>
The linker uses the following search paths to locate required shared libraries:
<bgamari>
...
<bgamari>
6. For a native ELF linker, the directories in "DT_RUNPATH" or "DT_RPATH" of a shared library are searched for shared libraries needed by it. The "DT_RPATH" entries are ignored if "DT_RUNPATH" entries exist.
<bgamari>
note the "for a native linker" bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #30452: modemmanager: rename ModemManager.service to modem-manager.service (master...modem-manager) https://git.io/vdMzB
NixOS_GitHub has left #nixos []
<bgamari>
Sonarpulse, oh, which branch would this be?
<Sonarpulse>
about moving away from this rpath trickery
mkoenig_ has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
bgamari: unfortunately I need to step out to get dinner
<Sonarpulse>
I stopped pushing so hard on upstremaing lately
<Sonarpulse>
mainly cause other work
<Sonarpulse>
+ getting my NY haskell talk up
<bgamari>
sure
<Sonarpulse>
+ nixcon around the corner
<Sonarpulse>
in hopes that with better conveying what I was doing I could get more input
thc202 has quit [(Ping timeout: 248 seconds)]
<Sonarpulse>
so sorry yet again there's like pieces just waiting to be put into the puzzle
<bgamari>
heh
<bgamari>
quite alright, thanks for everything you've done so far
<bgamari>
it's a bit project
<bgamari>
big*
<Sonarpulse>
indeed!
<Sonarpulse>
and thank you for going the distance to try it out
<Sonarpulse>
ttyl!
<ldlework>
How can I make a module importable globally like <foo>?
bennofs has quit [(Ping timeout: 258 seconds)]
<ben>
gotta have a foo= entry in your NIX_PATH env var i think
<ldlework>
I see yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #30451: doc/installing-usb.xml: fix dead kernel parameter link docs. (master...patch-1) https://git.io/vdME6
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMau
<NixOS_GitHub>
nixpkgs/master d549243 Nikolay Amiantov: epson-escpr: 1.6.12 -> 1.6.16
NixOS_GitHub has left #nixos []
csingley has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #30453: robotfindskitten: install req'd data and put bin in $out/bin (master...fix/robotfindskitten) https://git.io/vdMaD
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
iqubic has joined #nixos
<disasm>
Laptop is hung with us 2-3 device not accepting address after entering passphrase for luks
<ldlework>
which is basically building my init.org into an init.el
<ldlework>
I would like (mostly for learning sake) to understand how to change the code here so that I can take replace init.org and init.el filenames with variables.
<ldlework>
(after adding two new parameters to the function of course)
<gchristensen>
joepie91: fwiw my kernel is still not compiled, despite a `-j40`
<iqubic>
gchristensen: How many cores do you have?!?!? Hot Damn.
<iqubic>
ldlework: Why do you need to be able to build org files?
<iqubic>
How are you building org files?
<ldlework>
gchristensen its because for a name to be a path it has to have a slash right?
<gchristensen>
yeah
<ldlework>
so just ${init} is not interpreted as a path, but the variable "init"
<iqubic>
That's right.
<iqubic>
ldlework: use ./${init} if you need to.
<iqubic>
That will get you the file in the current working directory with the name ${init}
<gchristensen>
`/` isn't a valid character inside variables
markus1189 has quit [(Ping timeout: 240 seconds)]
<iqubic>
Are we trying to put a whole path into a variable?
<ldlework>
we're good :)
<iqubic>
Oh, did you get the thing to work?
<disasm>
iqubic: about 5 minutes it hangs on that. Playing with remove some usb kernel modules to fix it.
<ldlework>
the choice of ; as the keyval delimeter is fucking up hard
<iqubic>
Ah. Why nt just try making an initramfs?
<ldlework>
fucking me up*
<iqubic>
ldlework: Can you change the delimeter?
<gchristensen>
oh the other thing is nix doesn't have a `/` operator
<ldlework>
its nix syntax so I doubt it
<ldlework>
gchristensen its the ` / ` operator right?
<gchristensen>
nix doens't have `/` as an operator
<ldlework>
I have spaces
<gchristensen>
what is wrong with `/`?
Ivanych has quit [(Ping timeout: 260 seconds)]
<ldlework>
gchristensen I have spaces in mine
<gchristensen>
no, to divide you have to do builtins.div
<ldlework>
hmm I thought I read somewhere that spaces worked
<ldlework>
ohwell
<gchristensen>
sorry, I meant
<gchristensen>
what is wrong with `;`?
<ldlework>
oh usually its ,
<iqubic>
Why is it that I can only fire up a nix-shell if I have a default.nix in the current working directory?
<ldlework>
so I keep typing ,
<gchristensen>
iqubic: you can also do it if you have a shell.nix
<gchristensen>
iqubic: but most importantly, nix-shell creates a shell with packages available, and without passing `-p`, or having a ./default.nix or a ./shell.nix, it has nothing to do
<gchristensen>
so you could do `nix-shell -p ghc` for example to have a shell withghc
<iqubic>
Oh, I get it
<iqubic>
Is there a certain format default.nix needs to be in?
<ldlework>
relative paths are relative to the file right?
<ldlework>
the file the code appears in
<iqubic>
yes.
<iqubic>
That's why ./foo works to give you a file named foo in the same dir as the nix file.
dtzWill has joined #nixos
<iqubic>
What does nix-shell -p do?
jkolp has quit [(Ping timeout: 258 seconds)]
<iqubic>
It just tried to install some stuff onto my machine, so I cancelled it.
Arcaelyx_ is now known as Arcaelyx
<ldlework>
how do you call a function that you want all the defaults from?