<mellowmaroon>
right, it depends on where bash is installed. Does it run that shell as root?
<clever>
it runs that shell as pid 1 uid 0
<clever>
so the shell entirely replaces your init system
<mellowmaroon>
Ahhh, I get it a bit better now
revtintin has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<clever>
you could then do "exec /nix/var/nix/profiles/system/init" when done, to resume the boot
<mellowmaroon>
neat
<mellowmaroon>
different subject, but I was originally more interested in GuixSD, as I really like Scheme, but the unfree software situation didn't gel with me
<mellowmaroon>
has anyone else looked at it? from what I read, it sounds like it was set up somewhat similarly to NixOS
<clever>
ive heard of it but havent really looked into it
<clever>
i rely on too much unfree garbage
<mellowmaroon>
likewise haha
aneeshusa has joined #nixos
<clever>
the opensource amd drivers crash xorg if i turn on 2 monitors
<clever>
the unfree amd driver crashes xorg if i unplug the 2nd monitor while its active
<mellowmaroon>
yikes. I've had ok luck with the nouveau driver, but it's not perfect
<simpson>
Patches welcome.
<clever>
xfce also tries to help too much, and restores the dual-monitor config on login
<clever>
causing the opensource driver to re-crash every time i login
drakonis has quit [(Quit: Leaving)]
mudri has quit [(Ping timeout: 245 seconds)]
JagaJaga has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has joined #nixos
Nobabs27 has joined #nixos
<Nobabs27>
hi I set the user in the config, but it's not asking me for the password for it
<Nobabs27>
not sure whats up??
vaibhavsagar has joined #nixos
<clever>
Nobabs27: nixos-install will only ask for the root password, you have to either run passwd to set all others, or set something like .initialPassword or.initialHashedPassword
<Nobabs27>
yeah just saw that in the options, thanks
<clever>
and the initial options only apply when nixos initialy makes the user
<clever>
so if you add that setting and reboot, it wont change the pw
cpennington has joined #nixos
s33se_ has joined #nixos
<Nobabs27>
clever: if I go into chroot it says user not found ??
<clever>
normal chroot or nixos chroot?
<Nobabs27>
nixos chroot
<clever>
*looks*
<Nobabs27>
nixos-install --chroot
<clever>
that doesnt run the activation scripts, so the /etc/passwd isnt updated yet
<clever>
it has to boot at least once, then its simpler to just login as root and passwd
<Nobabs27>
or do a temp password?
<clever>
yeah, you can add .initialPassword = "hunter2";
<Nobabs27>
clever ^
s33se has quit [(Ping timeout: 240 seconds)]
<clever>
and nixos will set that when creating it on bootup
<Nobabs27>
kk ty
Nobabs27 has quit [(Quit: Leaving)]
<mellowmaroon>
Heading out for the night, see you all later!
mellowmaroon has quit [(Quit: Leaving)]
Nobabs27 has joined #nixos
<Nobabs27>
clever: incorrect password, please try again
<Nobabs27>
I put it at the bottom of the config file
<clever>
was it inside the users.users.foo block for your user?
<clever>
and was nixos-install re-ran after the change?
hotfuzz_ has joined #nixos
<Nobabs27>
ill check
<Nobabs27>
i did do nixos-install
<Nobabs27>
clever: you mean users.extraUsers ?
<clever>
users.extraUsers is an alias of users.users
hotfuzz has quit [(Ping timeout: 255 seconds)]
<Nobabs27>
ah
<Nobabs27>
no it is not, the option thing on the site does not specify this
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] risicle opened pull request #26198: python.pkgs: hypothesis, pylibmc, ldap, pylint: minor build fixes (master...varied-minor-python-pkgs-fixes) https://git.io/vHcAz
<joepie91>
Nobabs27: yeah, just be aware that everything ships from China and it can easily take 2-3 weeks to arrive to most countries
<joepie91>
and quality will sometimes vary, especially for the very cheapest items
<Nobabs27>
clever: same error
<clever>
joepie91: ah, i could probably find a use for one of those
<joepie91>
Nobabs27: but for the things where this doesn't matter as much, it's great... and if you're willing to pay a bit more than the lowest price they have, you can get extremely good deals for not that much money
<clever>
Nobabs27: can you gist your configuration.nix file?
<joepie91>
Nobabs27: basically, just be aware of 1) sometimes long shipping times, 2) the "send it back at your own cost and we'll replace it" style of warranty handling, and 3) the varying quality for the bottom-of-the-barrel-cheapest items, and then aliexpress is great for a lot of stuff :)
<joepie91>
</ramble>
<Nobabs27>
joepie91: good to know, was wondering about them the other day
hellrazor has joined #nixos
<joepie91>
Nobabs27: I guess that in a way it's a bit like a hybrid between Amazon and eBay, but usually cheaper than both for anything that comes from China :P
<joepie91>
and yeah, they've been becoming more popular and well-known recently
<joepie91>
to the point that even non-techie people are starting to buy stuff there
<clever>
sphalerite: heh, i opened pavucontrol, went to the "output devices" tab, and the built-in audio was on digital output (the optical jack on the back)
<clever>
sphalerite: the instant i plug headphones into the front jack, it says headphones
kmdouglass has quit [(Client Quit)]
schoppenhauer has joined #nixos
<sphalerite>
clever: same
<clever>
and i even loose the option to send the audio back to the digital output
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<clever>
ah, because the profile on the configuration tab changed
<clever>
which mutates all of the routing config within pulseaudio
<sphalerite>
The profiles are the different setups supported by the hardware, right?
<clever>
i have played with that area of pulse before, because my card happens to have 3 pipeliness, and can potentialy drive the front, rear, and digital all at once, with different content
<clever>
yeah, as viewed by pulseaudio
<sphalerite>
nice
<clever>
my card is missing a lot of profiles
<clever>
and nix requires all of pulseaudio to be recompiled to change those config files
<sphalerite>
why is that?
<sphalerite>
on both counts
<clever>
the profiles are stored in the pulseaudio derivation
<clever>
and also, pulse doesnt support a critical feature i needed
<clever>
the card has a mux for every port, so you can switch them between the internal pipelines
<clever>
but every mux has the same name
<sphalerite>
That shouldn't be too hard to split, right?
<clever>
and pulseaudio doesnt support using an index in the profile config
<sphalerite>
ah
<clever>
so i had to patch pulseaudio to even get that working
<clever>
and where did i even leave that patch? ... lol
<LnL>
clever: lol
oever has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to release-17.03: https://git.io/vHCLu
<sphalerite>
Cards where you cna route to multiple different outputs at the same time sounds nice though, could probably do some fun stuff with puredata
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/vHCLg
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<sphalerite>
I wonder how well something like stdenv.mkDerivation { name = pulseaudio.name; buildCommand = "cp -r ${pulseaudio} $out; find $out -type f -exec sed -i s^${pulseaudio}^$out^g {} + ; # further changes"; } would work
<clever>
one of the security patch things can already do that, recursively, to all of nixos
<sphalerite>
what's that?
schoppenhauer has quit [(Ping timeout: 240 seconds)]
vandenoever has quit [(Ping timeout: 260 seconds)]
<sphalerite>
to replace a library reference with a patched one without rebuilding everything I guess?
<clever>
the volume controller in the browser is at 5%, chrome in pulse is at 53%, the master is at 94%, and the external volume on the speakers is at 21
<clever>
the volume in the website only moves in 5% increments
<clever>
one tick lower, and its on mute
<sphalerite>
and you can hear it?
<sphalerite>
wow
<clever>
at 5% its too loud
<clever>
at 0% its just gone
<clever>
and let me do a quick experiment...
<clever>
yeah, i think 100% for extended perioids would wake the neighbors...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] proteansec opened pull request #26202: vagrant_libvirt: init at 1.9.5 (master...pkgs/vagrant-libvirt) https://git.io/vHCLA
NixOS_GitHub has left #nixos []
<sphalerite>
at least you have a lot of headroom :p
<clever>
and thats still with a 53% level in pavu
takle has quit [(Ping timeout: 240 seconds)]
<sphalerite>
09:19 * clever heads to bed
<sphalerite>
Achievement unlocked: distract clever from sleep
ThatDocsLady_nom has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rvl opened pull request #26207: emacsWithPackages: support installing larger packages (master...fix-tide-melpa) https://git.io/vHCza
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 240 seconds)]
juselius has joined #nixos
ericsagnes has quit [(Ping timeout: 272 seconds)]
orivej has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
Rajsun has joined #nixos
Rajasun has joined #nixos
pbogdan has quit [(Ping timeout: 240 seconds)]
Havvy has joined #nixos
juselius has quit [(Remote host closed the connection)]
isHavvy has quit [(Ping timeout: 260 seconds)]
xificurC has joined #nixos
<xificurC>
there's nix-serve to simplify the sharing of a nix store. What is the equivalent for creating a channel for a set of nixpkgs?
lukego has joined #nixos
<lukego>
Is there an easy way to import the contents of a tarball into the store from a URL? Like 'nix-build -E "fetchTarball http://..."' except that nix-build is sad when the tarball does not include a nix expression to build
<tilpner>
lukego - Look at nix-prefetch-url
<lukego>
tilpner: I'd like to import the contents to the store though, not the tar file
BurNiinTRee[m] has joined #nixos
<lukego>
oh --unpack :)
<lukego>
thanks tilpner :)
takle has joined #nixos
seanz has joined #nixos
__Sander__ has joined #nixos
<LnL>
you can do something similar to nix-channel with nix-env nix-prefetch-url
engblom has quit [(Changing host)]
engblom has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
Ivanych has quit [(Ping timeout: 268 seconds)]
<xificurC>
nix-serve --help shows the help for a perl module called starman. That's not cool
pbogdan has joined #nixos
<xificurC>
so this is just for serving the binary cache, but I want to build my own channel, any tool for that?
<gchristensen>
xificurC: a channel is 2 things, a nix expression and a binary cache
<xificurC>
or I can just point nix-serve at a folder with the correct structure for nixpkgs and it will just work?
<gchristensen>
xificurC: `man nix-channel` will tell you how to make a channel w/ a binary cache
<xificurC>
gchristensen: yes I just got that reading the manual again. But nix-serve seems to be for the binary cache only (at least advertised)
<gchristensen>
it is true
<gchristensen>
and you need a binary cache + the channel files
<gchristensen>
see `CHANNEL FORMAT` in man nix-chhannel
<gchristensen>
usually hosted separately
<xificurC>
gchristensen: reading that, thanks :) So it seems I need 2 http servers
<xificurC>
one for the channel and one for the binary cache
<xificurC>
and I can use w/e http server I wish, like nginx, httpd, haproxy, ...
<gchristensen>
you can also use `nix-push` to push nix store paths to a directory, and they'll be in the format of a binary cache
<gchristensen>
you can just expose that over http and it'll work
bennofs has joined #nixos
<LnL>
yeah, I do something like that and sync it to an s3 bucket
peacememories has joined #nixos
<gchristensen>
with that your channel could be at foo.com/ and your cache be at foo.com/cache/
<LnL>
but if you just want a nix-channel command for a git repo you can do this
<NixOS_GitHub>
[nixpkgs] fpletz closed pull request #26094: nixos/xsession: use graphical systemd user target (master...feature/graphical-user-session) https://git.io/vHst5
NixOS_GitHub has left #nixos []
<steveeJ>
pierron: PR on nixpkgs-mozilla is updated
<pierron>
steveeJ: thanks, give me a few minutes.
betaboon has joined #nixos
<steveeJ>
pierron: no rush. I've squashed commits. I'm never sure when github sends out notifications ;-)
<pierron>
steveeJ: I would probably not have seen it anyway ;)
lukego has quit [(Ping timeout: 260 seconds)]
ris has quit [(Ping timeout: 246 seconds)]
mbrock has joined #nixos
<mbrock>
I have a cabal2nix generated .nix file for my package, and then my own .nix that uses `pkgs.haskellPackages.callPackage ./default.nix', but I need to override an attribute in the generated default.nix to provide a certain dependency for testing...
<mbrock>
ah, maybe that's what the second argument to callPackage is for
<xificurC>
can my channel depend on the nixpkgs-unstable channel? So that I can piggyback on it and only store the difference
betaboon has quit [(Quit: This computer has gone to sleep)]
nschoe has quit [(Ping timeout: 272 seconds)]
<pierron>
steveeJ: have you seen the --sysconfigdig option?
<pierron>
steveeJ: --sysconfigdir, couldn't we use that to install the files to the proper location?
<steveeJ>
pierron: I don't think that anything in $out/etc/... is proper
<steveeJ>
let me take a look though, I don't know about the option
<pierron>
steveeJ: Or just do a postInstall to move the bash completion, since this install.sh issue should now be fixed.
<asymmetric>
nix-collect-garbage still doesn't delete the package by the way
<asymmetric>
not sure where it's being required from
<LnL>
asymmetric: use nix-build --check to rebuild
vandenoever has quit [(Ping timeout: 240 seconds)]
<asymmetric>
thx. any idea though how i could get that package removed if i wanted?
<sphalerite>
asymmetric: why do you want to rebuild?
<asymmetric>
because i want to rebuild with sandboxing
<sphalerite>
You can also use nix-store --delete to remove it
<sphalerite>
ah right
<asymmetric>
it's a package i'm going to submit to nixpkgs
<sphalerite>
if nix-store --delete complains about it still being in use you can use nix-store -q --roots to find out which GC roots are still referring to it
reinhardt has quit [(Quit: Leaving)]
katyucha is now known as Guest99708
Guest99708 has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
<asymmetric>
one is the package i'm building (~/code/asymmetric/nixpkgs/result) the other is from nox-review (/tmp/nox-review-yltbqwg6/result)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vHCPc
<mbrock>
how can I force `nix-env -f foo.nix -i foo' to rebuild its source archive instead of reusing the cached code from ten minutes ago before I made my important fix?
<mbrock>
I've tried nix-collect-garbage but that doesn't seem to be it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 3 new commits to master: https://git.io/vHCMr
<mbrock>
right now I can put uncompilable garbage in my source code and nix-env -i still just compiles some old source code stored I don't know where
vandenoever has quit [(Ping timeout: 258 seconds)]
<goibhniu1>
mbrock: --check (I think)
goibhniu1 is now known as goibhniu
takle has quit [(Ping timeout: 240 seconds)]
<goibhniu>
or maybe you need to update the hash for the source
lukego has joined #nixos
<mbrock>
--check doesn't seem to be a valid option, and I don't have a source hash in my default.nix
<lukego>
Revised question: Is there an easy way to import the contents of a tarball into the store, like with 'nix-prefetch-url --unpack', but with the caching behavior of nix-build / fetchTarball ?
peacememories has joined #nixos
<steveeJ>
pierron: PR updates. I'll be AFK for a while
<steveeJ>
s/updates/updated
EffSquared has quit [(Quit: leaving)]
Itkovian has quit [(Ping timeout: 255 seconds)]
Gravious_ has quit [(Remote host closed the connection)]
<eisbaer>
hello, i have a problem with the audio on my notebook. the speakers are working fine but when i connect my headphones all i hear is an interference noise
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vHCDK
<NixOS_GitHub>
nixpkgs/master f469bd8 Pascal Bach: mysql service: change default data directory for 17.09...
<NixOS_GitHub>
nixpkgs/master fde29b2 Graham Christensen: Merge pull request #25931 from bachp/mysql-17.09...
<sphalerite>
Any reason for `let ... in` to exist when one can just use with { ... }; ?
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<goibhniu>
eisbaer: cool, does the output audio device change when you plug in your headphones? (e.g. in pavucontrol)
bennofs has quit [(Ping timeout: 260 seconds)]
<eisbaer>
goibhniu: yes it does it switches between speakers and headphones
<goibhniu>
eisbaer: and the volume is good?
<goibhniu>
(e.g. it doesn't get muted)
seanz has quit [(Quit: Leaving.)]
<eisbaer>
goibhniu: the device isn't muted but i don't have any sound on my headphones
<eisbaer>
i also tried different headphones with no difference
Itkovian has joined #nixos
<mbrock>
when developing a package with `src = ./.`, how do I make nix-build or nix-env let go of their old cached version of the sources, after making some change?
<goibhniu>
eisbaer: have you used this on another linux distro? ... maybe it requires some special kernel parameters
<mbrock>
ahh, all my confusion was from having a `dist/' folder in my source directory
<eisbaer>
the weird thing is that i hear my microphone output although the other sound streams are recognized
<evangeline>
hi, I'm having problems building the e1000 module with the new kernel: http://dpaste.com/1JQ8T90 . This is 17.03 release. Did anybody else have this issue and solved it successfully?
<goibhniu>
eisbaer: does `speaker-test` play loud noise in your headphones?
<eisbaer>
goibhniu: no
willingc has joined #nixos
<eisbaer>
ok i fixed it
<eisbaer>
it was a problem in alsamixer
willingc has left #nixos []
vandenoever has quit [(Ping timeout: 246 seconds)]
<goibhniu>
eisbaer: awesome! what was it?
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<eisbaer>
i was using the wrong soundcard and the headphones where premuted on reboot
<goibhniu>
aha
cpennington has joined #nixos
kmdouglass has left #nixos ["ERC Version 5.3 (IRC client for Emacs)"]
justanotheruser has quit [(Ping timeout: 245 seconds)]
betaboon has joined #nixos
ryantrinkle has joined #nixos
lukego has quit [(Ping timeout: 260 seconds)]
<pierron>
sphalerite: let .. in .. is more common in functional programming languages than with rec { .. }; ..
spinus has joined #nixos
Mateon3 has joined #nixos
takle has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
<sphalerite>
pierron: but they're practically equivalent, no?
<pierron>
sphalerite: and it also has a different binding priority: let a = 1; in with {a = 0;}; a
<pierron>
sphalerite: ^ evaluates to 1, and not 0.
<sphalerite>
ah
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<sphalerite>
Is there any way for me to get more information when I get the message "Value is a function when a set was expected"?
dejanr_ has joined #nixos
schoppenhauer has quit [(Ping timeout: 268 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
schoppenhauer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vHC7i
<NixOS_GitHub>
nixpkgs/master a49c236 Franz Pletz: nixos/firewall: clean up rpfilter rules properly...
NixOS_GitHub has left #nixos []
peacememories has joined #nixos
<sphalerite>
ffs. The whole time, it was me using import <nixpkgs> rather than import <nixpkgs> {}
<sphalerite>
that took me half an hour to work out
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
DrWaste has quit [(Quit: Run away!)]
ertes-w has quit [(Ping timeout: 268 seconds)]
mbrock has quit [(Ping timeout: 240 seconds)]
<garbas_>
anybody from cloud9 here? would it be possible to use nix on your images?
garbas_ is now known as garbas
garbas is now known as Guest32210
Guest32210 has quit [(Quit: WeeChat 1.6)]
<pierron>
garbas: what do you mean by using nix on the images?
garbas_ has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
MichaelRaskin has joined #nixos
ryantrinkle has quit [(Ping timeout: 255 seconds)]
betaboon has quit [(Quit: This computer has gone to sleep)]
civodul has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
MichaelRaskin has quit [(Ping timeout: 260 seconds)]
boxofrox has quit [(Ping timeout: 260 seconds)]
alx741 has joined #nixos
alx741 has quit [(Client Quit)]
alx741 has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ertes has quit [(Ping timeout: 240 seconds)]
<steveeJ>
I run the editor vscode in a pure nix-shell, and I'd like to make it work to click on hyperlinks and open it in firefox thats installed in my system profile. what am I looking for here?
boxofrox has joined #nixos
<dash>
steveeJ: a not-pure nix-shell probably
<bennofs>
steveeJ: you can also set "$BROWSER" to /run/current-system/sw/bin/firefox
<bennofs>
if vscode honors that
<steveeJ>
bennofs: interesting, I've never heard of that variable
arian_ has quit [(Ping timeout: 245 seconds)]
<steveeJ>
bennofs: that thing is not set in my window manager. how can the terminal app (roxterm) figure it out? xdg stuff?
<bennofs>
steveeJ: I think xdg-open honors it if it detects a "generic" desktop
<bennofs>
steveeJ: otherwise, xdg-open has some hardcoded priority list in the generic case iirc
<steveeJ>
maybe xdg-open is what I need in the shell
<steveeJ>
bennofs: xdg-open fails in a pure shell, but it's definitely very helpful, thanks!
phinxy has joined #nixos
kampfschlaefer has joined #nixos
magnetophon has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
peacememories has joined #nixos
hellrazo1 is now known as hellrazor
<magnetophon>
My emacs and libreoffice don't have working spellcheck. Vim and pidgin do work. Does anyone have tips?
<vandenoever>
magnetophon: libreoffice can take dictionaries as addon
<magnetophon>
vandenoever: thanks. how do I do that?
<magnetophon>
vandenoever: this looks like a solution if I wanted to get a non standard language to work (is that correct?). The problem is that EN-US doesn't work.
<vandenoever>
magnetophon: you can use this to get any language, if there is no en_US in the default install, perhaps that should be amended, you can use the extension as a workaround
<magnetophon>
vandenoever: EN-US is the currently selected language in libreoffice
<vandenoever>
magnetophon: sure, but you need the dictionary file
goibhniu has quit [(Ping timeout: 260 seconds)]
marsel has joined #nixos
tokudan has joined #nixos
<magnetophon>
vandenoever: thanks, that works. Seems to me I need to file an issue on this, but I'm not sure. What do you think?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jyp opened pull request #26213: pythonPackages.tensorflow: Don't change the rpath to point to gcc4.9 (master...tf-standard-gcc) https://git.io/vHWe9
NixOS_GitHub has left #nixos []
mudri has quit [(Ping timeout: 245 seconds)]
<vandenoever>
magnetophon: yes, that would be good
<vandenoever>
magnetophon: everyone that installs libreofficefaces that issue
<cmacrae>
Is tehre a means of having declarative configuration on macOS, like NixOS? Even if it's just for packages? Rather than manually installing packages with `nix-env` I'd rather write a file and evaluate that
<cmacrae>
I remember someone even mentioned they were working on a project for managing launchd services and other such things
<cmacrae>
Ah, nix-darwin, by LnL :)
<cmacrae>
Just found it
<LnL>
:D
<cmacrae>
\o/
<cmacrae>
Gunna take this for a spin!
arian_ has joined #nixos
<LnL>
cool!
<tilpner>
cmacrae - Can't you use the usual buildEnv in ~/.config/nixpkgs/config.nix thing?
<cmacrae>
tilpner: Perhaps! I'm not familiar with using nix on macOS outside of `nix-env` :)
<tilpner>
It won't work for services, but it will handle multiple packages without any non-standard tools
<tilpner>
That's the thing I mentioned, but better explained than I would have
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm opened pull request #26214: Google compute image (master...google-compute-image) https://git.io/vHWvz
NixOS_GitHub has left #nixos []
<LnL>
that last example is basically what nixos does, but then just the systemPackages part
<magnetophon>
domenkozar: git blame suggests you put "# TODO: dictionaries" in libreoffice. could you give me a hint as to why this hasn't happened yet, and maybe how I could fix it?
<magnetophon>
viric: similarly it says you put the "--without-myspell-dicts" in there. can you tell me more?
pbogdan has quit [(Ping timeout: 240 seconds)]
<magnetophon>
I figured I'd ask before I start a cycle of try-lengthyCompile-error
faffolter has quit [(Remote host closed the connection)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
JagaJaga has quit [(Quit: WeeChat 1.7.1)]
MichaelRaskin has joined #nixos
Guest48731 has quit [(Quit: WeeChat 1.7.1)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Infinisil has joined #nixos
takle has quit [(Remote host closed the connection)]
peacememories has joined #nixos
pbogdan has joined #nixos
urbain1 has joined #nixos
<ben>
is there a convention for including nix expressions in the repository that the code lives in, like, do you generally just write src = ./.;?
FRidh has joined #nixos
<simpson>
ben: Sure, and there's also builtins.filterSource.
<spinus>
ben: I do that, but having one more subdirectory is little better
mizu_no_oto has joined #nixos
<pie__>
uhh what just happened D:
<FRidh>
attempting to make hdf5 use multiple outputs. I keep getting cycle detected in the references of ‘/nix/store/1srd7pr32pfsj1bzai5rp650kskg1b5c-hdf5-1.8.18-dev’ The folder contains only headers, and have no references to /nix/store
<pie__>
collision between ‘/nix/store/m5a51wch760czwddwskadlagfgxinpbb-mumble-1.3.0-git-2016-04-10/share/man/man1/mumble-overlay.1.gz’ and ‘/nix/store/8siyyd96kp9iqms1vh60p7fvjh4vd66f-murmur-1.2.19/share/man/man1/mumble-overlay.1.gz’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
juselius has joined #nixos
takle has joined #nixos
<FRidh>
pie__: you have two packages that both provide the same file(s)
<pie__>
so do i do what it says?
<FRidh>
did you install one via environment.systemPackages?
<FRidh>
and the other via nix-env?
<pie__>
no, both
<pie__>
sorry
<pie__>
both via nix-env
<pie__>
FRidh,
jensens has quit [(Ping timeout: 255 seconds)]
<FRidh>
pie__: after you installed the first one with nix-env -iA murmur you could have upgraded it with nix-env -u murmur.
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<pie__>
the first one is mumble though
<pie__>
i did nix-env -viA nixos.pkgs.mumble_git and nix-env -viA nixos.pkgs.murmur
<Infinisil>
Is the unstable channel generally okay to use?
<Infinisil>
I'm just gonna try it out and hope for the best
arian_ has quit [(Ping timeout: 245 seconds)]
cmacrae has quit [(Remote host closed the connection)]
<FRidh>
pie__: oh, I misread that. So these are really two different packages?
<pie__>
yeah
<FRidh>
judging from the expressions they're kind of the same
<FRidh>
in any case, they provide the same file. You can follow the message and set priority of one.
juselius has quit [(Read error: Connection reset by peer)]
justanotheruser has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pie__>
i think it migh be the _git one breaking it because nixos.mumble works
<pie__>
nope nevermind still conflicts lol
<pie__>
ok
<pie__>
uh how big do i need to set the number
<pie__>
oh 1
<pie__>
bleh neverming, my mind is all over the place
<pie__>
i set the priority but it still gives the same error
mudri has joined #nixos
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<justanotheruser>
can someone please help with this: sudo nixos-rebuild switch --upgrade \n error: attribute ‘wrapPython’ missing, at /nix/store/rqphb787jhmijpbzngmmpb84kbizkz60-nixos-16.09.1943.25f4906da6/nixos/pkgs/development/libraries/speechd/default.nix:19:35
<pie__>
error: selector ‘nixos.mumble’ matches no derivations
justanotheruser has quit [(Ping timeout: 255 seconds)]
<juselius>
does anyone know how to update the virtualbox guest additions to the latest version of VB (5.1.22)? The guest additions are more or less permanently out of sync with the underlying virtualbox version. I'm able to build and install the latest version by modifying nixpkgs/pkgs/applications/virtualization/virtualbox/guest-additions, but the kernel is not loading the new version at boot.
dejanr_ has joined #nixos
Infinisil has quit [(Ping timeout: 260 seconds)]
<FRidh>
pie__: you're using an attribute
Infinisil has joined #nixos
takle has quit [(Remote host closed the connection)]
dejanr_ has quit [(Ping timeout: 268 seconds)]
<pie__>
FRidh, oh. so thats different. but how do i know the package name?
<Infinisil>
Soooo, a lot of stuff doesn't even build in unstable.. Not gonna do that
<Infinisil>
Don't know why that's the case, I thought things were supposed to build in unstable
judson has quit [(Remote host closed the connection)]
<ben>
does pkgconfig go into buildInputs or nativeBuildInputs?
<ben>
> How Nix and Guix work is that they are traditional "package managers" as such the user or the distributor must have access to the source code to compile it into a package,
<ben>
i've been using nix all wrong
bennofs has quit [(Quit: WeeChat 1.8)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rvl opened pull request #26217: csound: add jack and other dependencies, update version (master...csound-deps) https://git.io/vHWso
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 268 seconds)]
kampfschlaefer has quit [(Ping timeout: 255 seconds)]
<ben>
I mean I got as far as nixpgkgs seemingly not packaging flatpak and the flatpak website only lists distributions that package it and doesnt seem to want to let me download it directly, so i'm a bit unsure
fifo23 has joined #nixos
MP2E has joined #nixos
<makefu>
worst case is always fallback to FHSUserEnv
<ben>
I mean it's nontrivial to find their source code
<ben>
>:U
<ben>
I don't even want to use flatpak, I just wanted to check if it might be the easier way to run gnome-builder, which we also don't seem to package
<makefu>
:D
takle has joined #nixos
<ben>
I tried but I really don't know about all the runtimey pythony dbussy paths it might expect
markus1209 has quit [(Remote host closed the connection)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
krills has joined #nixos
krills has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-17.03: https://git.io/vHWZI
<NixOS_GitHub>
nixpkgs/release-17.03 3005d25 Joachim Fasting: tinycc: 0.9.27pre-20170225 -> 0.9.27pre-20170527...
<NixOS_GitHub>
nixpkgs/release-17.03 569742c Joachim Fasting: tor-browser-bundle-bin: additional download urls...
NixOS_GitHub has left #nixos []
olejorgenb has joined #nixos
<olejorgenb>
I get this peculiar error on nixos-rebuild: "The option value 'environment.systemPackages.[definition 34-entry 3]' in '/nix/var/nix/***/nvidia.nix' is not a package
<olejorgenb>
this is on a old 32bit system
sellout- has quit [(Quit: Leaving.)]
<clever>
olejorgenb: can you gist that nvidia.nix?
<olejorgenb>
I've inspected nvidia.nix and it seems to select packages from kernelPackages (ie. linuxPackages (if i understand things correctly)) based on services.xserver.videoDrivers
<olejorgenb>
I've checked that linuxPackages.nvidia_x11_legacy304 is a derivation
<olejorgenb>
clever: sure, but it's straight from nixpkgs
<clever>
ah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 closed pull request #26099: lldb-4: Patch to fix libedit usage on Linux (master...fix/lldb-libedit) https://git.io/vHsD2
NixOS_GitHub has left #nixos []
<clever>
olejorgenb: can you gist your configuration.nix file?
<kuznero>
When I build my haskell project with `cabal2nix --shell . > default.nix` && `nix-build` it produces `result` symlink to the store. How do I properly install such project into my system such that I can just remove result symlink and still keep package/tool installed?
<LnL>
kuznero: nix-env -i ./result
<kuznero>
LnL: that sounds simple.... Will just try it out, moment ;)
<olejorgenb>
(ah, yeah, and allowUnfree = true in configuration.nix - got different error without that)
<LnL>
kuznero: :)
<kuznero>
LnL: wow! It is _that_ simple! I am falling in love with nix more and more :D
takle has quit [(Ping timeout: 246 seconds)]
<kuznero>
LnL: that means that I don't need to use stack any more
marsel has quit [(Ping timeout: 246 seconds)]
<LnL>
you can also do something like nix-env -i $(nix-build --no-out-link ...)
<kuznero>
Am I missing something or I can just drop using stack for my haskell projects completely?
<LnL>
but it resolves symlinks so using result just works
<kuznero>
LnL: nice trick, thanks!
dejanr_ has joined #nixos
pie_ has joined #nixos
<LnL>
I've never used stack with nix, but it has some integration if you want to keep using it
<kuznero>
LnL: I figured it is not simple to `stack install idris` for example as it fails installing one of its deps - terminfo, that has dependency to ncurses which stack fails resolving in nix
<kuznero>
That is why I tried using Nix properly to get out of this issue
pie___ has quit [(Ping timeout: 240 seconds)]
dejanr_ has quit [(Ping timeout: 268 seconds)]
hiratara has quit [(Ping timeout: 245 seconds)]
<kuznero>
Btw, is Erlang/OTP support in NixOS good?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<symphorien>
I have services.xserver.enabled = false; but something is pulling some xlibs as dependencies when I nixos-rebuild. is there a simple way to know what pulls it without building those libs ?
<boomshroom>
When modifying nixpkgs, do I checkout the commit coresponding to my user channel (unsafe), or the system channel (17.03)?
<sphalerite>
boomshroom: if you're making changes that you want to submit, you'll want to make them against the master branch
<sphalerite>
if they're only for your personal use, you'll probably want to use an overlay insteaed
<sphalerite>
When I'm submitting changes I usually start the branch off the unstable branch then rebase them onto master though
<sphalerite>
that way I get binaries for anything that I haven't changed, which makes developing them a lot faster
<boomshroom>
sphalerite: Thank you. I do plan on submitting the change, but my nixos-version isn't on the same channel as my user packages.
<boomshroom>
I want stability for the core system, and the latest greatest for non-critical user applications.
<sphalerite>
It usually doesn't matter which branch you use, just depends on which versions you want. But if you're already using unstable for your user channels then that's what you should base your change on too
<boomshroom>
How can I get the commit hash for my user channel?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #26219: lib: Move fixed-point combinators out of trivial (master...lib-fix) https://git.io/vHWcx
NixOS_GitHub has left #nixos []
phinxy has joined #nixos
<boomshroom>
A question for once I start editing: what's the standard way of specifying options for installation, like whether or not to build with a given feature or dependency, from both package maintenance and user side?
kuznero has quit [(Quit: leaving)]
Nobabs27 has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
<boomshroom>
Minor amusement: it doesn't seem like nix comes with a function to check if the list contains a value. Here's one implementation if anyone cares:
<boomshroom>
let contains = l: k: if builtins.length l == 0 then false else if builtins.head l == k then true else contains (builtins.tail l) k; in contains [0 3 5] 3
<boomshroom>
huh, it just didn't have the name I searched for.
<clever>
yeah, the docs need work
<clever>
and lib.elem is just an alias of builtins.elem
<boomshroom>
How do I exit out of the repl?
kiloreux_ has joined #nixos
jsgrant__ has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24 hours.)]
<vandenoever>
how does one compile io schedulers in nixos? atm i only have noop and cfq
<makefu>
boomshroom: ctrl-d
<boomshroom>
makefu: Thank you.
atemerev has joined #nixos
<atemerev>
Hi all -- does anybody use DCOS command-line client from Nixos?
<makefu>
boomshroom: for checking if an element is in the list there is elemAt
goibhniu has quit [(Ping timeout: 268 seconds)]
<atemerev>
I couldn't find an easy way to install it -- it doesn't work as curl|sh script, the binary can't be launched as it gives "file not found" error (without saying what file it needs), and compiling from source requires virtualenv, cffi and whatsnot.
<atemerev>
I am stuck somewhat...
<makefu>
boomshroom: ah no, that was for something else ...
<clever>
atemerev: try just curl without |sh, then read the script
<boomshroom>
Really what I wanted was to modify i3blocks so that you can specify which scripts to install and its dependencies would be installed.
<atemerev>
clever: It downloads the pre-compiled binary, which gives this exciting error message: "bash: ./dcos: No such file or directory" (execute flag is set correctly, and the binary is there). From what I could find about it, this can happen in two cases: a) the binary is 32-bit, running from 64-bit Linux, or b) some command is hardcoded into the binary, and the path is not found.
<clever>
atemerev: do you have noexec set on any of your filesystems
<boomshroom>
many of the scripts are written in perl which needs to be available at build time to modify the shebang, and each script calls various system binaries which may or may not be installed.
vandenoever has quit [(Quit: ䷴៚)]
Nobabs27 has quit [(Quit: Leaving)]
<atemerev>
boomshroom: right; unfortunately this is an ELF binary, and I can't see what's in it. Maybe strings ...
<boomshroom>
Sounds like the binary is looking for /usr/lib/ld-x64_64.so.2 or something similar.
<clever>
the binaries provided by nix should expect it to be in /nix/store/
<atemerev>
clever: no, fstab contains only this: /dev/disk/by-uuid/1b49b691-f486-4fcd-9880-6d1240c6ef0a / ext4 defaults 0 1
<boomshroom>
My previous coment was for an unrelated problem.
<clever>
atemerev: the install script will also detect 32bit vs 64bit, and get the right tar
<boomshroom>
Run "patchelf --print-interpreter" on the file and post the output here.
<boomshroom>
I downloaded it myself and got the same output. The download is a dynamically linked binary looking for the linker in its normal location, which doesn't exist on nixos.
<atemerev>
So, should I make a symlink? Or there is a better way of solving this?
<boomshroom>
I'm a newbie with NixOS, but I think the solution involves using patchelf to change the interpreter to the version of ld in the nix store.
<clever>
*looks*
<globin>
srk: we're autogeberating the monitoring targets from nixops machines
mizu_no_oto has joined #nixos
vandenoever has joined #nixos
<clever>
boomshroom: which file did you find that interpreter on?
<avn>
atemerev: as super-fast hack I can suggest use steam chroot, for prebuilt binary.
<drjnovak>
I think my issue might be that I just don't grok the plumbing of all of this well enough, but can anyone explain to me why when I run `ldconfig -p` I don't see anything with anything to do with nix?
<atemerev>
boomshroom: It worked with patchelf --set-interpreter. However, now it says ./dcos: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
<atemerev>
(There is a libz.so.1 in nixstore).
<avn>
or you can patchelf --set-interpreter to rtld of your current generation
<clever>
atemerev: oh, did this problem happen when installing nix, or installing dcos?
<atemerev>
clever: When installing dcos-cli. It looks like a precompiled binary with embedded python, assuming "standard" locations for everything.
<clever>
ah, then you need to use standard patchelf stuff, which is all in the nixpkgs docs
<boomshroom>
From looking at the website, it seems the download is the full application, meaning installation with nix should be as simple as using fetchurl from within nix which I *think* automatically calls patchelf to adjust the interpreter and library paths. That said, you do need to manually specify which libraries it needs linked in as runtime dependencies.
<avn>
dcos looks like python, with requirements.txt, so pypi2nix should work
<clever>
boomshroom: fetchurl doesnt patchelf on its own, ever
<boomshroom>
As I said, I'm a newbie. Everything I know of NixOS has been from the past 3 days.
<atemerev>
clever: Right -- is there a "virtual directory" with shared libs? Or I have to check error messages one by one and add them to --set-rpath?
<avn>
I think "steam chroot" can help
<boomshroom>
atemerev: From the link clever provided: --set-rpath "${lib.makeLibraryPath buildInputs}"
<boomshroom>
where buildInputs is a list of names for the packages dcos depends on. (If you're writing a nix script)
<avn>
well, packaging dcos-cli shouldn't be a rocket science
<atemerev>
boomshroom: I wanted to just patch it manually, but it looks like I'll have to finally read the section of the documentation on how to write a nixpkg...
<avn>
atemerev: for python stuff it relatively easy
<avn>
buildPythonPackage buildPythonApplication and fetchPYPI is relatively straightforward to use
<avn>
just look to pkgs/top-level/python-packages.nix in nixpkgs, and write likewise stuff. Cargo cult programming wins sometimes ;)
hamishmack has joined #nixos
<boomshroom>
The best part is that you're probably not the only one who want dcos and once you have a nix derivation, it's not much more difficult to push it to the main repository.
<atemerev>
avn: I already tried to build it myself, however, virtualenv seems to fail on cffi package, failing to find ffi.h (it's in nix store). Setting CFLAGS and LDFLAGS didn't seem to help :)
<atemerev>
boomshroom: It is now 1 AM here, so I'll look how to do it tomorrow. But right, I'll make a pull request if I manage to do that. :)
<avn>
atemerev: gist your .nix file if you tried ;)
<boomshroom>
Good night atemerev!
<atemerev>
avn: I tried manually, with installing python35 and virtualenv, and trying to run make env. Strangely, it mostly works, except for cffi. Perhaps my old ways of trying to build everything manually before writing a script doesn't work in nixos anymore :)
<avn>
I'll take look on dcos tomorrow as well
<avn>
I think buildPythonApplication for dcos cli, with buildInputs all requirements should works ;)
<atemerev>
avn: OK, let me copy-paste some python app and take a look.. :)
<avn>
gist if you have doubts ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm closed pull request #26216: lib/string: make `isStorePath` total (master...isStorePath) https://git.io/vHW3r
NixOS_GitHub has left #nixos []
<spinus>
I'm trying to create simple package with bunch of bash scripts and I wanted to provide dependencies for them, I tried buildInputs and propagatedBuildInputs, but I'm missing the part how to make the script to have access to them, what am I missing?
<clever>
spinus: buildInputs are only present at build time
<boomshroom>
Arguments?
<clever>
spinus: and propagatedBuildInputs are only present at build-time for things depending on your package
<clever>
spinus: you need to modify the $PATH inside the bash script to include references to the things your running, or embed absolute paths into the bash scripts
<boomshroom>
Nix is a programming lanuage and it can't access values unless they have been passed in as arguments to the function
<clever>
atemerev: doesnt need pkgs. on each refernece
markus1189 has quit [(Ping timeout: 240 seconds)]
markus1199 has quit [(Ping timeout: 240 seconds)]
<avn>
atemerev: for buildInputs better you need to look setup.py for actual list of build dependencies
<avn>
atemerev: s/self/pkgs.python35Packages/ btw
<avn>
because self not defined in your scope
<atemerev>
avn: updated
<clever>
rev = "${version};
<clever>
atemerev: a: you forgot the " at the end, b, you can just do rev = version;
<avn>
atemerev: at least no sseclient and PyJWT, so you need add expression for them (just `let PyJWT = buildPythonPackage ... in ...` on top of your file (after import)
<boomshroom>
When a package provides optional switches, how do I select them when installing the package
<clever>
boomshroom: usualy with .override
<atemerev>
Sorry all, have to go. Hope to fix this tomorrow :)
atemerev has left #nixos []
<boomshroom>
And if I'm installing with nix-env?
<clever>
boomshroom: you can also use an override in ~/.config/nixpkgs/config.nix
<boomshroom>
OK. I haven't touched that file other than to allowUnfree and it's unclear what's allowed in it vs only in /etc/nixos/configuration.nix.
<clever>
config.nix is uses for nix-env/nix-shell/nix-build
<clever>
and nixpkgs.config in configuration.nix can take the exact same values, and is used for any package that configuration.nix refers to (like systemPackages or services)
kiloreux_ has quit [(Read error: Connection reset by peer)]
ericsagnes has joined #nixos
LysergicDreams has joined #nixos
<boomshroom>
Is there a function to check if a list contains any of another list. ie: 2 lists share at least one common value
<clever>
boomshroom: lib.intersectLists i believe
<spinus>
clever: I actually found that wrapProgram can do the job as well (wrapProgram $out/bin/a --prefix PATH : ${pkgs.bla}/bin)
<clever>
spinus: yeah, that will wrap the bash with more bash