<disasm>
wiped entire system to switch to zfs... after restoring /etc/nixos (except the btrfs disk config) and /home I have a fully working system again!
data has joined #nixos
data is now known as Guest75129
<disasm>
iqubic: installs any packages that are arguments to -p in a temporary shell great for installing one off things for quick usage.
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdMKI
<NixOS_GitHub>
nixpkgs/master 800f751 Simon Lackerbauer: abella: 2.0.2 -> 2.0.4
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMKq
<NixOS_GitHub>
nixpkgs/master 7bf1913 Nikolay Amiantov: opencv: use BLAS and eigen by default...
NixOS_GitHub has left #nixos []
<Unode>
is it normal that nixos creates broken symlinks in /etc ?
<Unode>
currently wgetrc, security and environment are all broken symlinks.
<Unode>
i.e. point to paths in the store that do not exist.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #30457: Update XML paths (master...xml-paths) https://git.io/vdMKC
NixOS_GitHub has left #nixos []
iqubic has joined #nixos
csingley has joined #nixos
athan has joined #nixos
jkolp has left #nixos []
csingley has quit [(Ping timeout: 248 seconds)]
csingley has joined #nixos
sigmundv has joined #nixos
Guest75129 has quit [(Read error: Connection reset by peer)]
LnL has quit [(Quit: exit 1)]
LnL has joined #nixos
<dgpratt>
what's a reason why "nixos-generate-config --root /mnt" would not set the "root file system"? nixos-install generates an error about the fileSystems option not setting the root file system
<gchristensen>
did you mount something to /mnt?
<dgpratt>
gchristensen: I thought I did, but might've missed a step, what's a way to check?
<gchristensen>
type `mount`
<gchristensen>
and see if it says something for /mnt :)
<dgpratt>
gchristensen: thinking you got it out of the gate
<fearlessKim[m]>
samueldr: sry it was gpgme look into pkgs/development/libraries/gpgme/default.nix
<ldlework>
How can I pass data into my modules from the outside with home-manager? Such as secrets like github tokens and so on?
<samueldr>
n/p found `signing-party` which too has a couple
<fearlessKim[m]>
"license = with licenses; [ lgpl21Plus gpl3Plus ];"
riclima has joined #nixos
<fearlessKim[m]>
ldlework: have home manager register them in a keyring ? and let modules access the keyring
<ldlework>
how to let them access the key ring?
<ldlework>
also is there just a way to pass in arbitrary information?
<slack1256>
samueldr: yes, I am using plasma5.enable
<slack1256>
also those two line defining the phonon backend were pushed on oct 10 . My build it atleast from 3 week ago
<slack1256>
I will wait for the binary cache to "catch-up" and then try again. Maybe it already works
riclima has quit [(Ping timeout: 255 seconds)]
<samueldr>
this should be in 17.09 already
<samueldr>
or at least, the gstreamer backend
ivanivan has joined #nixos
<fearlessKim[m]>
ldlework: msmtp can retrieve your password directly from the keyring. the archlinux wiki had the command on how to register it. I am not sure how a module would retrieve the info though as accessing the keyring might tirgger a prompt which is impure
riclima has joined #nixos
<ldlework>
yeah is a problem I need to figure out :(
<ldlework>
I would like some way to also know how to just pass arbitrary data into home-manager
<ldlework>
wherein modules can access it
<ldlework>
like an email address that can be used by all the modules, etc
<ldlework>
without having to edit the nix expressions
slack1256 has quit [(Remote host closed the connection)]
endformationage has joined #nixos
<ldlework>
like an environment variable input
ivanivan has left #nixos ["WeeChat 1.9.1"]
<ldlework>
oh getEnv
<ldlework>
nice
marusich has quit [(Ping timeout: 252 seconds)]
<ldlework>
of course home-manager clears the env
<ldlework>
ugh
marusich has joined #nixos
<ldlework>
oops nm
<ldlework>
niiiiice
<adisbladis>
ldlework: In my opinion secrets are state so I would not use home-manager for that
<adisbladis>
ldlework: Have you considered using the passwordeval option in msmtp?
<ldlework>
Some things need secrets so I don't know what to say
<ldlework>
during my nix build I want to push a web-export of my configuration to github pages
<ldlework>
I need a secret for that no bones about it
<ldlework>
getEnv worked perfectly
ma27 has quit [(Ping timeout: 255 seconds)]
<ldlework>
I have no idea what msmtp is other than an smtp client
<ldlework>
What I will probably do is have the file encrypted, and the wrapper will prompt me for a password, unencrypt the file, source it, then run home-manager
<ldlework>
seems like a pretty OK way to do it
iqubic has quit [(Remote host closed the connection)]
andrew_d has quit [(Quit: Page closed)]
requisitebits has joined #nixos
<ldlework>
With home-manager I know my modules can define imports, options and config... but is there anyway to contribute to an overall buildstep with it? I'm using run-command to get the job done, but I am thinking that I would like to create some of my own options, then in the config set those options, but then.... how do I handle them and do some actual work? I only know how to do work with runCommand while defining my options or config or during
<ldlework>
related let clauses.
<fearlessKim[m]>
wish there was a way to install some package only if a subsitute is available
<fearlessKim[m]>
arf I don't know what happened but I nixos-rebuilded and the "Advanced settings" section in "IPsec settings" of network manager disappeared 😘
<rosa>
error: attribute ‘make’ in selection path ‘nixos.make’ not found
<rosa>
[root@nixos:~/UPM/kik-bot-python-example]# nix-env -i make
<rosa>
error: selector ‘make’ matches no derivations
<ldlework>
maybe in stdenv
<ldlework>
so like
<ldlework>
do you really need make system wide?
<ldlework>
or just in the dervation defined to build some source
<ldlework>
ala buildInput
<rosa>
OMFG NIXOS DOESNT HAVE PIP EITHER
<rosa>
GRRRRRRRRRRRRRRRRRRRRRRRRRR
<samueldr>
make is gnumake
<samueldr>
and as for pip, there is python27Packages.pip and python36Packages.pip
<rosa>
so its named python2.7-pip-9.0.1 instead of pip -_-
<rosa>
collision between ‘/nix/store/kx4ycwl42aj4hv43d96xvbrkc9dmn07b-python2.7-bootstrapped-pip-9.0.1/bin/pip’ and ‘/nix/store/0j54nrbbay28axqn4fvn4ni9wwra3v7b-python2.7-pip-9.0.1/bin/pip’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<hodapp>
oh crap, Nix was on HN? nothing on HN is good >_>
rosa_ has joined #nixos
Mateon3 has joined #nixos
Mateon3 is now known as Mateon1
leothrix has quit [(Ping timeout: 240 seconds)]
<quesker>
you are confusing hn with reddit
ma27 has joined #nixos
jcarr has quit [(Remote host closed the connection)]
Wizek_ has quit [(Ping timeout: 252 seconds)]
riclima has quit [(Ping timeout: 240 seconds)]
iqubic has joined #nixos
<iqubic>
What DE/WM do you guys use? Why
<disasm>
iqubic: playing with sway today :)
<disasm>
not sure if I'll stick with it or go back to i3
<iqubic>
Isn't that the Wayland DE?
<disasm>
yup, sway is wayland version of i3
<samueldr>
awesome, because I'm used to it
<iqubic>
I see.
<iqubic>
Is it better than i3?
<samueldr>
couldn't tell
<samueldr>
never tried i3
<disasm>
so far everything works the same as i3 with the caveat that there are no tray icons implemented yet, and if I use i3status in my bar config, reloading config crashes it.
<disasm>
samueldr: I used awesome for a good while :) before i3 my favorite was scrotwm
<disasm>
xmonad is pretty cool too if your into haskell
leothrix has joined #nixos
<disasm>
dwm was fun to if you don't mind compiling c code every time you want to make a change :)
<isHavvy>
hodapp: Everything ends up on HN eventually.
<hodapp>
NOOOOOO!
rosa_ has quit [(Quit: rosa)]
<rosa>
0.0
pie_ has quit [(Ping timeout: 255 seconds)]
Mateon1 has left #nixos []
<fearlessKim[m]>
I rebuild nixos and the "advanced settings " section of the "IPsec settings" of network manager applet disappeared :/ (though it's the same applet version)
<fearlessKim[m]>
I'll never make this VPN work xD
<hyper_ch>
which vpn?
<rosa>
LEL
<rosa>
lel*
<rosa>
where is the nix bot hosted
<fearlessKim[m]>
l2tp. I've fixed nearly everything, I just need to add old cyphers to the VPN config . I thought I would do it via the interface but... guess I can sudoedit some config files :/
<hyper_ch>
why not use a sane vpn?
<hyper_ch>
*smile*
<ldlework>
Does anyone know the list of things that Nix on OSX installs? Like profiles scripts and stuff?
<hyper_ch>
been running openvpn for years and just managed yesterday to run wireguard
<fearlessKim[m]>
and the network manager # nm is not as lively as this one
<fearlessKim[m]>
hyper_ch: can openvpn run l2TP ?
<rosa>
where is this hosted "[06:23] [Notice] -NixOS_GitHub to #nixos- [nixpkgs] sigma opened pull request #30458: ghq: 0.7.4 -> 0.8.0 (master...pr/ghq-0.8.0) https://git.io/vdMDI"
<Guanin>
hi, i am having a problem with PAM: I try to use the Gogs (something like gitlab) module to authenticate with PAM, but it only works when /etc/shadow is readable for the user running it. There exists a helper binary unix_chkpwd which bypasses this problem (SETUID is set), but it seems to not be used
b has quit [(Quit: Lost terminal)]
<Guanin>
The pam service used by gogs is configured by security.pam.services."gogs".unixAuth = true;
<srhb>
I'm so confused. I have a packageOverrides that modifies the haskellPackages set and I have an overlay that also modifies the haskellPackages set. It seems like the latter makes the changes by the former invisible. ie. the packageOverrides create a haskellPackages.foo package, but the overlay makes this disappear. Is this correct? And if so, why?
<fearlessKim[m]>
any advice for a VNC clients ? just tried tigervnc but it gave me a really strange hybrid AZERTY/QWERTY layout
<srhb>
Maybe something else is going on and I'm just confused...
endformationage has quit [(Ping timeout: 255 seconds)]
jbgi has joined #nixos
<srhb>
I think I'm just (very) confused.. >>
<jack[m]>
Guanin; I had similar problems with the radicale service. I've had good experience with using reverse-proxy-authentication with gogs.
<rosa>
how do i install kde partition manager
<jack[m]>
... and I feel a *bit* putting apache or nginx facing the web.
<jack[m]>
rosa: there is gparted...
mbrock has quit [(Ping timeout: 246 seconds)]
<JosW>
fearlessKim[m]: ever looked at X2Go?
gaqzi has quit [(Ping timeout: 255 seconds)]
nz has quit [(Ping timeout: 255 seconds)]
sjanssen has quit [(Ping timeout: 255 seconds)]
adulteratedjedi has quit [(Ping timeout: 255 seconds)]
akl has quit [(Ping timeout: 255 seconds)]
ericbmerritt_ has quit [(Ping timeout: 255 seconds)]
rizary has quit [(Ping timeout: 255 seconds)]
adelbertc has quit [(Ping timeout: 246 seconds)]
angerman has quit [(Ping timeout: 255 seconds)]
scott has quit [(Ping timeout: 255 seconds)]
gridaphobe has quit [(Ping timeout: 255 seconds)]
mgdelacroix has quit [(Ping timeout: 264 seconds)]
gleber_ has quit [(Ping timeout: 264 seconds)]
dgonyeo has quit [(Ping timeout: 264 seconds)]
monad_cat has quit [(Ping timeout: 264 seconds)]
dgpratt has quit [(Ping timeout: 246 seconds)]
manveru has quit [(Ping timeout: 246 seconds)]
rgrinberg has quit [(Ping timeout: 255 seconds)]
stasku has quit [(Ping timeout: 255 seconds)]
codedmart has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 264 seconds)]
<jack[m]>
fearlessKim: IIRC, keyboard layout is handled both by your local X server and by the Xvnc server tigervnc is connected to...
JoJoen has quit [(Ping timeout: 246 seconds)]
<rosa>
ok
<jack[m]>
(I use tigervnc client/server quite a bit, besides being a bit crashy, I've not had keyboard mapping problems)
stasku has joined #nixos
rizary has joined #nixos
akl has joined #nixos
scott has joined #nixos
angerman has joined #nixos
<fearlessKim[m]>
JosW: I don't have a choice here as X is not launched
philips has joined #nixos
mgdelacroix has joined #nixos
srk has quit [(Ping timeout: 260 seconds)]
codedmart has joined #nixos
sjanssen has joined #nixos
adulteratedjedi has joined #nixos
wavewave has joined #nixos
gridaphobe has joined #nixos
nikivi has quit [(Ping timeout: 269 seconds)]
nz has joined #nixos
mbrock has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdMHw
<NixOS_GitHub>
nixpkgs/master 02a23b7 Peter Hoeg: sddm: theme background images use a relative path which breaks sddm-kcm
NixOS_GitHub has left #nixos []
monad_cat has joined #nixos
<fearlessKim[m]>
jack: I've tried gtkvnc and realvnc, tigervnc seems indeed the best
adelbertc has joined #nixos
gaqzi has joined #nixos
dgonyeo has joined #nixos
ericbmerritt_ has joined #nixos
manveru has joined #nixos
MichaelRaskin has left #nixos []
andymandias has quit [(Ping timeout: 260 seconds)]
alp has quit [(Ping timeout: 240 seconds)]
<jack[m]>
fearlessKim: I've previously used xev and xmodmap to debug/tweak problems with x events, but that's a bit of a rat-hole.
jbgi has quit [(Ping timeout: 248 seconds)]
nikivi has joined #nixos
rmarko has joined #nixos
<fearlessKim[m]>
like for instance if I type the key where there is "1" (same on azerty/qwerty), it inputs 7 :s
alp has joined #nixos
<fearlessKim[m]>
the remote part is a nixos installer
andymandias has joined #nixos
rgrinberg has joined #nixos
<sphalerite>
infinisil: sleeping at night? Are you alright? :p
<hyper_ch>
hey Mic92, you also use wireguard, right?
riclima has quit [(Quit: riclima)]
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
dejanr_home has joined #nixos
dejanr has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]>
hum shouldn't "loadkeys us" work ? I can't load an alternative keymap, they all seem gzipped "Couldn't get a file descriptor referring to the console"
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdM7n
<NixOS_GitHub>
nixpkgs/master 4cec2d6 Vincent Laporte: ocamlPackages.qtest: 2.6 -> 2.7
NixOS_GitHub has left #nixos []
<MasseR>
Is there an up to date documentation for 17.09? The release notes say that programs.gnupg.agent is a new service, but there is no mention of it in the docs. It also says that services.xserver.synaptics is disabled and should be replaced by libinput. However there is no documentation for any of the other libinput configuration variables except for input
<jluttine>
if i want to write a text file /var/lib/foobar.txt with content "john doe 42" in nixos configuration, how can i do that?
<ixxie>
One of the comments mentioned a strategy for combining Nix and Docker, using Nix to build the Docker image
<jluttine>
(i would also like to set the text file ownership and permissions)
<fearlessKim[m]>
jluttine: not sure that would work for /var/lib, It's more for modules to write there IMO but for /etc you can do environmen.etc."myfile".text = '' helo world'';
<ixxie>
anybody tried building docker images with Nix?
<jluttine>
ixxie: yep :/
<adisbladis>
ixxie: I have
<srhb>
I need some psychic debugging. I renamed a user and now nix-env -qaP has no results. NIX_PATH has a nixpkgs entry pointing to a git checkout of nixpkgs correctly. What more could be missing?
<srhb>
ixxie: Yup.
<srhb>
ixxie: It's very nice :)
<ixxie>
the docker images themselves don't contain Nix right?
<ixxie>
(I am not very familiar with Docker so bare with me)
<srhb>
They contain the store paths mentioned, but not nix itself (unless you specify that)
<ixxie>
so the hosts need Nix
<srhb>
The hosts running it? No.
<ixxie>
just the ones building it
<srhb>
Usually you'll be baking in a minimal /nix/store needed for executing whatever you image is supposed to do.
freusque has joined #nixos
<ixxie>
okay so a ministore will be on the image
<srhb>
Right.
<ixxie>
cool
<ixxie>
good to know
jensens has quit [(Ping timeout: 240 seconds)]
<ixxie>
it would make a nice deployment option then
<adisbladis>
ixxie: It's pretty nice for projects you have to give to clients
<ixxie>
srhb: I assume you renamed the home directory too?
<srhb>
ixxie: I did, yes.
<srhb>
Hmm, my new nix-profile looks very empty.
<srhb>
That's probably the culprit, but I wonder why.
ebzzry has joined #nixos
<srhb>
Uh oh..
<srhb>
I added a channel. nix-env -iA nixos.vim (error: '/nix/var/nix/profiles/per-user/sarah' is not a symlink)
<srhb>
Oh, I think I see what's going on
<srhb>
It's actually that /nix/var/nix/profiles/per-user/sarah/profile is missing
<ixxie>
its impossible to install multiple python environments with Nix right?
<srhb>
ixxie: Install, pretty much yes (but why would you?)
a6a3uh has quit [(Client Quit)]
<srhb>
It's possible, but pretty messy. You'd have to wrap up the environments with differently named run wrappers or something like that, which ends up being approximately the same work as maintaining the shell files for this and that environment, or running your different environments with nix-shell
<ixxie>
running with nix-shell is what I had in mind really
<ixxie>
the situation is a bit strange
<ixxie>
the machine in question will run CentOS and be shared by a team developing a python analytics tool
a6a3uh has joined #nixos
<ixxie>
for that goal its simple to have a shell.nix file or a shebang and just use that to run the script
<srhb>
That's no problem. Just don't install the different environments into the same profile at the same time.
<srhb>
Yes, that's perfectly doable (and pretty much "the right way")
<ixxie>
I don't see a reason to install an environment for this purpose
<srhb>
Indeed :)
<ixxie>
but the machine also serves as a jupyterhub server
<ixxie>
and for that function I think an environment could be handy
<ixxie>
that is where I would have liked the possibility of providing different environments for different needs
<srhb>
I don't know about jupyterhub, but I assume its python can be overridden however you like without having to install anything in a profile anyway.
metaphysician has quit [(Ping timeout: 255 seconds)]
<ixxie>
srhb: well I could just run the jupyterhub process inside a nix-shell
<ixxie>
but I think there might be potential for something even cooler
<srhb>
OK :)
<ixxie>
because jupyter is a notebook interface, i.e. it serves a web application where you can write markdown notes intermixed with commands in some language (python, julia, R, scala, haskell, etc)
<ixxie>
while jupyterhub is the server for multiple users, and it spawns different notebook processes
<ixxie>
so it may be possible to write a custom spawner that uses nix-shell to set up a custom environment
<ixxie>
I will need to ask FRidh[m] what they think of this ^^
<ixxie>
I think they are involved with some of the jupyter packaging
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #30464: bb: init at 1.3rc1 (master...bb) https://git.io/vdDed
NixOS_GitHub has left #nixos []
sigmundv has joined #nixos
<Guanin>
okay, I've looked a bit more into that PAM problem. it seems that unix_chkpwd is called (strace shows a line with execve() = 0), but i still can't explain why it wont work
orivej has joined #nixos
pie_ has joined #nixos
metaphysician has joined #nixos
ThatDocsLady has joined #nixos
tilpner has quit [(Read error: Connection reset by peer)]
riclima has quit [(Quit: riclima)]
nslqqq has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
tilpner has joined #nixos
nslqqq has joined #nixos
tilpner has quit [(Read error: Connection reset by peer)]
<flyx>
libreoffice does not run on NixOS. I get: /nix/store/72vrmkbc6zx6rxnin37p1j4yqbv9jcwr-libreoffice-5.1.5.2/lib/libreoffice/program/soffice.bin: symbol lookup error: /run/opengl-driver/lib/libgbm.so.1: undefined symbol: drmGetDevice2
<ixxie>
flyx: making sure, of course, to have the right channel setup on the system
<fearlessKim[m]>
I believe nixops can play badly with the system. Like I had this new version of strongswan just rebuilt but networkmanager restarted with the old one because nixops had a dependancy on it. I wish networkmanager would have restarted with the latest version. I am not 100% sure though
<flyx>
after switching channels, I get some strange errors: error: file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
<flyx>
do I need to keep the nixpkgs channel in the list?
<tilpner>
Yes
<tilpner>
What did you do instead?
<flyx>
I added nixos-17.09 and deleted the nixpkgs
<ixxie>
why is it necessary to keep it? I have run NixOS many times with the nixpkgs channel
<flyx>
so when I re-add the nixpkgs channel, how do I tell nixos to use the nixos-17.09 channel by default?
<sphalerite>
it uses the nixos channel
<sphalerite>
you can add nixos-17.09 under the name nixos to have it use that
<flyx>
ah yes, adding the channel with the name nixos works
<flyx>
that's what I was missing
m0rphism2 has joined #nixos
<sphalerite>
tilpner: nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs is on NIX_PATH by default so you don't need it
<seanparsons>
Has pulseaudio been busted in 17.09? Since upgrading it doesn't appear to be running at all.
<tilpner>
Oh
m0rphism1 has quit [(Ping timeout: 240 seconds)]
<flyx>
sometimes I think I really should get to know nixos and its setup in more depth
<tilpner>
Guess I shouldn't try to answer channel-related questions anymore :c
chpatrick has joined #nixos
<flyx>
so I switched to nixos-17.09, but libreoffice still fails to start with the same error message
<sphalerite>
seanparsons: did you upgrade with switch or did you reboot?
taktoa has joined #nixos
<seanparsons>
I've rebooted since updating.
<flyx>
ah wait, libreoffice is one of these things still installed via nix-env, no wonder
<sphalerite>
Huh, then I don't know
<seanparsons>
It might've in fact been broken more recently than I updated.
<sphalerite>
works for me :/
<TimePath>
I've moved my systemPackages to overlays, but now I'm wondering if there's a way to install an overlay globally
a6a3uh has joined #nixos
<TimePath>
if not, a symlink to root's overlays ought to do
<seanparsons>
sphalerite: Yeah, I thought it did for me too, but I noticed this morning that my volume control keys aren't working anymore and it's because pactl wasn't on the path.
erictapen has quit [(Read error: Connection reset by peer)]
<sphalerite>
ah right
<sphalerite>
TimePath: the symlink thing, or you can add nixos-overlays to the global NIX_PATH
<sphalerite>
the former has less potential to confuse, so I'd go for that
<TimePath>
already done :)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<TimePath>
I was hoping I could import it from configuration.nix or something though
erictapen has joined #nixos
<TimePath>
the reason I ask this is that I regularly use two users in a single X session
<flyx>
thanks folks, my libreoffice works again. probably wasn't really a channel problem, but the fact that it was installed via nix-env.
<TimePath>
with systemPackages, both users had the same packages
riclima has quit [(Quit: riclima)]
<TimePath>
with overlays, only my primary user had anything
<seanparsons>
Hmmm, enabling `systemWide` for pulseaudio doesn't create the service.
ma27 has joined #nixos
<jophish>
I have two derivations with the same store path (so identical), however the build fails on one machine and not on another
<jophish>
This is a haskell package, and one build fails with the "shadowed dependencies" problem
<jophish>
however I've no idea where GHC/Cabal could be looking~
<domenkozar>
jophish: sandboxing enabled?
<jophish>
domenkozar: sadly no
<jophish>
so it's probably not a nix bug :)
erictapen has quit [(Read error: Connection reset by peer)]
<sphalerite>
TimePath: oh you just want systemwide overlays?
<TimePath>
sphalerite: it works as intended if I append this to systemPackages: `++ (lib.mapAttrsToList (k: v: v) pkgs.timepath)`
Thra11 has joined #nixos
m0rphism3 has joined #nixos
<TimePath>
perhaps my intention is different to the intended intention :P
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<sphalerite>
TimePath: oooooh so it's not the overlay that's the issue, just that it's not a package
<TimePath>
I guess
<TimePath>
I borrowed a gist I saw here yesterday
<TimePath>
it had a handy `nix-rebuild` script
m0rphism2 has quit [(Ping timeout: 255 seconds)]
seanparsons has joined #nixos
<tilpner>
!m hyper_ch
<[0__0]>
You're doing good work, hyper_ch!
<hyper_ch>
tilpner: oO
<tilpner>
The wiki entry looks good, I'll probably be using that later
<hyper_ch>
tilpner: well, can't test it fully yet but it should work... wanted to test with multiple peers and stuff but nixos keeps failing to rebuild :(
<tilpner>
It's been blocking channel updates apparently
<tilpner>
But master has it reverted, so it should go back to normal soon
<hyper_ch>
ok, thx
<tilpner>
If you just want it to work, you can manually downgrade it
<hyper_ch>
I'll wait
xd1le has joined #nixos
<hyper_ch>
what about my issue report?
iqubic has quit [(Remote host closed the connection)]
<seanparsons>
sphalerite: I had to add the enable option in my pulseaudio nix config inside the pulseaudio element in the end.
<tilpner>
Close it with a reference to 29784
<hyper_ch>
did so
<fearlessKim[m]>
hyper_ch: cool job editing the wiki ! I will do the L2TP once it works (if ever)
<hyper_ch>
why l2tp if you have openvpn and wireguard ;9
taktoa has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 258 seconds)]
erictapen has quit [(Read error: Connection reset by peer)]
ma27 has joined #nixos
<sphalerite>
seanparsons: aah right, yeah if you don't enable pulseaudio it won't be enabled :p
a6a3uh has joined #nixos
a6a3uh has quit [(Client Quit)]
a6a3uh has joined #nixos
ThatDocsLady has quit [(Quit: Leaving)]
<seanparsons>
sphalerite: Never needed it before now... :)
ma27 has quit [(Quit: WeeChat 1.9.1)]
ma27 has joined #nixos
glenn_ has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
<fearlessKim[m]>
I am trying to substitute "${LLVM_INCLUDE_DIRS}" in a cmake file "substituteInPlace CMakeLists.txt \ --replace 'foreach(inc $\{LLVM_INCLUDE_DIRS})' 'foreach(inc ${llvmPackages.clang})'" but the substitution doesn't happen. Can the escape $\{ be reponsible for it ? If I remove it nix complains LLVM_INCLUDE_DIRS doesn't exist
m0rphism4 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ArdaXi opened pull request #30468: wpa_supplicant: fixes for KRACK (master...krack_supplicant) https://git.io/vdDq5
NixOS_GitHub has left #nixos []
m0rphism3 has quit [(Ping timeout: 255 seconds)]
a6a3uh has quit [(Quit: Bye)]
<mpickering>
How can I debug a "cannot coerce set to a string" error message?
<mpickering>
there is no trace with --show-trace
<tnias>
news tell me wpa2 is broken. how and when does nixos provide patches?
proteusguy has quit [(Remote host closed the connection)]
<fearlessKim[m]>
I am trying to get to clang headers but it's weird that it's in the man outpuit: http://nixpaste.lbr.uno/EeTekRvU?nix (btw love nix-index/locate) ?
ma27 has quit [(Ping timeout: 255 seconds)]
__Sander__ has joined #nixos
<gchristensen>
clever: I have a silly idea for a nixos reinstaller :)
<clever>
gchristensen: i have a crazy idea i'm planning, setup a dhcp server on eth0 of a laptop, with a complete netboot setup
<gchristensen>
:o
<clever>
gchristensen: so i can just plug in an ethernet cord, and force nixos onto the nearest machine
<gchristensen>
nice
<clever>
let it spread!!
ssmike has joined #nixos
keta_suki has joined #nixos
<clever>
gchristensen: ok, that should give me dhcp
<clever>
now i need tftp and bind
ma27 has joined #nixos
<clever>
ok, now i need a tftp root, and a netboot config\
glenn has joined #nixos
<Mic92>
clever: I though, you already had this setup?
<clever>
Mic92: i have that setup on the router in my house
<clever>
Mic92: i'm now making it entirely self-contained to a laptop, so i can just plug it into a second laptop and let nixos spread :P
<clever>
the setup in the house involves at least 2 machines, maybe 3
<Mic92>
clever: can a android phone run tftp?
<Mic92>
ok dhcp will be the dealbreaker in existing networks
<clever>
Mic92: as long as you can bind to udp port 69 and control dhcp, you can do everything
<Mic92>
maybe in a private wifi
<clever>
Mic92: without dhcp, you need a usb stick that contains a copy of ipxe
<Mic92>
that is also possible with android
<clever>
but in either case, netboot over wifi needs the initrd to load before wifi comes up
<clever>
yeah, your better off making the phone emulate mass-storage, or a usb ethernet
<TimePath>
clever: ARP poisoning
<Mic92>
I don't think the motherboard will handle usb-ethernet well.
<Mic92>
*firmware
<clever>
Mic92: yeah, it would also need mass-storage to load a capable ipxe
<clever>
[clever@amd-nixos:~]$ ls /nix/store/i6i48x2r4iggvmzwxh6b7l1dww58lmzv-ipxe-20160831-827dd1b/ -l
<clever>
-r--r--r-- 1 root root 1441792 Dec 31 1969 ipxe.usb
<hyper_ch>
Mic92: as for the DNS - can't the systemd unit file be changed to wait that dns is up?
<Mic92>
hyper_ch: there is no target, where this could be reliable attached to. You could restart wireguard forever until it succeed.
<clever>
ive had similar problems with toxvpn
<clever>
but one issue that remains, is suspend/hibernation
<Mic92>
it would be much cleaner, if this would be fixed in wireguard tools itself
<clever>
once it does sucessfully start, systemd cant restart it upon disconnection
mortum5 has quit [(Read error: Connection reset by peer)]
<Mic92>
suspend is not a problem for wireguard
<hyper_ch>
Mic92: well, I thought systemd has such a target
ShalokShalom_ has joined #nixos
<hyper_ch>
still can't test wireguard speeds though :(
<clever>
Mic92: what about the IP changing due to moving to a different network?
mortum5 has joined #nixos
erictapen has quit [(Ping timeout: 246 seconds)]
<ixxie>
clever, that is neat :) now you can become Nixvangelist Galore
<Mic92>
clever: wireguard supports this. The only problem is changing from a network with v6 support to one without.
<clever>
Mic92: ah
<hyper_ch>
(I omitted all the ipv6 stuff in the wiki)
<hyper_ch>
nobody really uses ipv6
<clever>
ixxie: ok, now the fun part, i only have a spare 32bit machine for testing the netboot
madknight has joined #nixos
<Mic92>
hyper_ch: I am nobody?
<clever>
ixxie: and release.nix is hard-coded to only make 64bit images
<hyper_ch>
Mic92: :)
<fearlessKim[m]>
I've setup cmake with a valid "-DCMAKE_SHARED_LINKER_FLAGS=-L${clangLib}" yet it producesixxie
<fearlessKim[m]>
"/nix/store/2423dd9xm6gmjsxc1k4z23nvbgqk47b3-binutils-2.28.1/bin/ld: cannot find -lclangFrontend" . Should I use NIX_CXXFLAGS instead ?
ShalokShalom has quit [(Ping timeout: 240 seconds)]
<ixxie>
srhb: I am just trying to figure this sort of thing out myself ^^
<srhb>
ixxie: Yeah, I guess I'll do that instead. withPackages is just so nice and concise :-P
<Mic92>
hyper_ch: do you use systemd-resolve?
<Mic92>
*resolved
<hyper_ch>
Mic92: on the client that failed to bring up the wg interface?
<Mic92>
hyper_ch: yes
<hyper_ch>
I guess so
<ixxie>
srhb: I guess that answers my question from earlier about whats the difference.... buildEnv allows more beyond python but pythonWithPackages is a quick and clean way to get.... well just python and packages
<sphalerite>
srhb: does withPackages not work with non-pytjon packages?
<Mic92>
hyper_ch: if you have not changed anything, it should be the glibc resolver
<hyper_ch>
it's nixos... uses systemd... didn't set any resolver
<hyper_ch>
how to find out?
<Mic92>
hyper_ch: also network manager?
<hyper_ch>
yes, network manager
<Mic92>
hyper_ch: /etc/nsswitch.conf
<Mic92>
hyper_ch: does it run a local dnsmasq? ps aux | grep dnsmasq
<Mic92>
hyper_ch: which ip do you have in /etc/resolv.conf
<sphalerite>
Also withPackages is just a tiny wrapper for buildEnv, see pkgs/development/interpreters/python/with-packages.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee opened pull request #30470: nixos/resolved: clean up option descriptions (master...cleanup/nixos/resolved) https://git.io/vdDnA
NixOS_GitHub has left #nixos []
<Mic92>
hyper_ch: now zx2c4 is asking the same questions
Phillemann has joined #nixos
<hyper_ch>
Mic92: posted there
<Phillemann>
I have a precompiled library that depends on, for example, libXcursor. Is there a comfortable way to pull these libs into the LD_LIBRARY_PATH, so I can start the application?
<clever>
Mic92: dang!, i havent rooted my phone yet
<clever>
Mic92: and mass-storage emulation needs root
<Mic92>
clever: I don't buy any phone I cannot root anymore.
<Mic92>
Actually this is true for every device.
<clever>
i can probably root this one, its just a samsung
<clever>
i just never got around to it
<Mic92>
hyper_ch: maybe you can check if disabling avahi fix the problem
<srhb>
sphalerite: .. it does, apparently!
<Mic92>
Or at least shows why the error is returned
<sphalerite>
srhb: :)
<hyper_ch>
Mic92: if the system builds again I can check
<sphalerite>
Anyone know why network-manager would take a full 10 seconds to start? It makes my boot so much slower
<sphalerite>
Oct 16 13:38:43 sudoku systemd[1]: Starting Network Manager... Oct 16 13:38:53 sudoku systemd[1]: Started Network Manager.
<hyper_ch>
still doesn't build
<Mic92>
clever: the problem is, once you have data on it you cannot reliably backup it before you root your phone.
<Mic92>
rooting is the only option to have proper android backups.
Neo-- has joined #nixos
<clever>
Mic92: i have been able to root some devices without data loss
<clever>
Mic92: the S3 and the kindle both allowed rooting without formatting
<Mic92>
That's why I also root every device of my family
<Mic92>
clever: without unlocked bootloader?
<clever>
for the S3, i was able to install a new recovery without a wipe
<clever>
and that was able to then root and backup
<Mic92>
sphalerite: maybe it waits for dhcp
<clever>
for the kindle, there was an exploit in the backup restore process, that allows writing to root-only files, which tricks the OS into thinking its inside an emulator
<clever>
causing adb to just give root
<sphalerite>
Mic92: no, it has some messages from dhclient in the unit's logs but they're all after the "Started Network Manager" message
<Mic92>
I used the same trick on intel-based android tablets
civodul has joined #nixos
<Mic92>
sphalerite: I though networkmanager now uses its own dhcp implementation
<clever>
ixxie: if you take this derivation, and throw the 3 key files up onto any http server, you can then write an ipxe script with just "chain http://example.com/netboot.ipxe" and it will boot the installer
<clever>
ixxie: the nixos module i just wrote, will setup the dhcpd, tftpd, ipxe, and nginx, to do everything at once
<clever>
ixxie: i add this to the imports list of the configuration.nix on one laptop
<clever>
then i just plug a second laptop into it over ethernet, f12 and network boot
<clever>
and boom, nixos is on the 2nd machine
<ixxie>
so you just plan to use it locally for the moment
<clever>
yeah
<sphalerite>
clever: can it also do https?
uptime has joined #nixos
<clever>
i have used a different form before, to setup servers remotely, without network control
<clever>
sphalerite: ipxe does support https, but you have to embed the trusted ca's and the cert chain into the binary
<clever>
make bin/ipxe.iso TRUST=/path/to/ca1.crt,/path/to/ca2.crt
<clever>
The full root certificates are generally too large to be embedded into the iPXE binary, and so only the SHA-256 fingerprints will be included by default.
<sphalerite>
The cert chain too..?
<clever>
either the whole chain, or run a crosscert daemon that can provide certs at runtime
<dgpratt>
installed nixos on a VM, rebooted, logged in as root, opened terminal, entered "adduser foo", got "bash: adduser: command not found", what did I mess up?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdD43
<NixOS_GitHub>
nixpkgs/master 00669df Tim Steinbach: linux: 4.14-rc4 -> 4.14-rc5
NixOS_GitHub has left #nixos []
Myrl-saki has quit [(Ping timeout: 248 seconds)]
<disasm>
dgpratt: useradd adduser is a debianism
<dgpratt>
oh
<dgpratt>
what should I be looking for?
Thra11_ has joined #nixos
<dgpratt>
useradd it appears, thanks disasm
<clever>
sphalerite: ah, your using grub over pxe
Thra11 has quit [(Ping timeout: 240 seconds)]
ma27 has quit [(Ping timeout: 240 seconds)]
<clever>
and dnsmasq, rather then bind + dhcpd + nat
<sphalerite>
clever: yeah
Capprentice has joined #nixos
<sphalerite>
dgpratt: or configuring users declaratively, see installation instructions
<clever>
sphalerite: there was also a security problem with dnsmasq recently
Myrl-saki has joined #nixos
<sphalerite>
there was?
Capprentice has quit [(Max SendQ exceeded)]
<clever>
sphalerite: its already been fixed in nixpkgs master
<Myrl-saki>
clever: (Either way, this is really just for fun.)
<clever>
2 just runs the halvm unikernel under linux userland, but it fails to setup the halvm heap
amunier has joined #nixos
anderslundstedt has quit [(Quit: leaving)]
<clever>
cant find the gist for option 3, but i was patching qemu to directly support the xen hypercalls
markus1189 has quit [(Ping timeout: 246 seconds)]
markus1189 has joined #nixos
<amunier>
hi, i'm trying to write a nix expression to build a package. It depends on cmake and the CMakeLists has some DOWNLOAD operations which fail (couldn't resolve host). Do I need something in particular in my buildInputs for that?
<Myrl-saki>
clever: Thanks, I'll try out the gist.
<clever>
amunier: you will need to pre-download those files to the right spot, and potentially disable the download operation if it doesnt auto-detect the file
<clever>
amunier: pkgs.fetchurl and then cp it in the preConfigure phase
<amunier>
oh ok
<amunier>
why is that ?
<amunier>
i mean, is there a particular reason cmake can't download it itself ?
<clever>
amunier: nix disables all network during the build
<clever>
amunier: to ensure things remain pure
sheyll has quit [(Ping timeout: 240 seconds)]
<amunier>
ok, thanks a lot :)
cement has joined #nixos
Thra11_ has quit [(Ping timeout: 248 seconds)]
sheyll has joined #nixos
<Myrl-saki>
clever: I think I get-ish this.
<Myrl-saki>
clever: How does one run the program itself in opiton 1?
<clever>
Myrl-saki: option 1 is currently setup to do everything under nix-build, including booting the halvm and running a test script against it
<clever>
Myrl-saki: but it could be modified to just open a qemu window and leave it interactive
<Myrl-saki>
clever: Also, do you have your code which uses online?
<Myrl-saki>
uses halvm*
<clever>
havent actually done anything with halvm myself, was mostly helping a friend with automated testing of their code
<Myrl-saki>
Oh
<amunier>
clever: would you recommend any particular .nix file as an example of how use fetchurl to grab some extra file needed for the compilation?
<clever>
amunier: in this case, it was a git sub-module, but the same basics apply
<clever>
amunier: line 4 fetches from github (you can also use fetchurl), and then 24 copies it over
<amunier>
i thought this kind of dependency should be needed in buildInputs
<amunier>
thanks
<Myrl-saki>
clever: If I understand correctly, option 1 also runs NixOS, or?
<clever>
Myrl-saki: yeah, option 1 runs full nixos under the qemu
<clever>
xen requires an OS in dom0, and option 1 uses nixos for that
<infinisil>
Ohh my god, I need to use osx for university, and what happens? kernel takes 100% CPU for no obvious reason. Stuff like that is exactly the reason I switched away from it, gosh
<Myrl-saki>
clever: Ah.
<Myrl-saki>
clever: A bit of a question, can I, say, use TCL for dom0, and pretty much just go wild with HalVM, and use it as "the OS"?
<clever>
tilpner: ah, thats a nice idea, provide overlays that can fix security holes, to quickly fix things
k2s has joined #nixos
anderslundstedt has joined #nixos
<tilpner>
I agree. Having security fixes block on unimportant build failures would be a shame
<tilpner>
Is there a way to build just a small subset of nixpkgs on hydra, to quickly generate substitutes for this?
<Myrl-saki>
clever: How do you add the HalVM program to Xen?
<Myrl-saki>
clever: (Sorry if that makes no sense)
<gchristensen>
ideally we don't require it, but instead get access to embargoed patches so we can prepare a channel version ahead of time (which is what most distros do)
szicari has quit [(Ping timeout: 264 seconds)]
Supersonic112 has quit [(Ping timeout: 255 seconds)]
<clever>
Myrl-saki: and that spawns a domU
<clever>
Myrl-saki: `xl create` is ran inside the dom0, pointed to a config file that refers to the halvm unikernel
<clever>
Myrl-saki: ah, thats missing from the gist, line 29-ish
<clever>
Myrl-saki: the gist just prooves xen is working, and doesnt spawn a domU
<Myrl-saki>
clever: Ah. Is this how spawning is done declaratively in NixOS?
<clever>
Myrl-saki: you would want to comment out the shutdown on 31 (already done) and then manually run one of the qemu scripts (either line 46 or 64)
<Myrl-saki>
clever: `nix-build` will run line 64 immediately, right?
<clever>
yeah, 64 would try to run it within a nix sandbox
<clever>
so you want to build qemu-script and then manualy run testit outside of the sandbox
<clever>
which will give you a fully interactive qemu window, so you can manualy do xl create
<Myrl-saki>
clever: Makes sense. How do I add the application to the disk?
<clever>
Myrl-saki: use environment.etc to add files to dom0_config
<tilpner>
gchristensen - Ideally? But that didn't happen, right? What needs to be done for that?
<Myrl-saki>
clever: Thanks. :D
Supersonic112 has joined #nixos
<clever>
Myrl-saki: then they will land in /etc/ of the dom0
k2s has quit [(Remote host closed the connection)]
Itkovian has quit [(Ping timeout: 260 seconds)]
keta_suki has quit [(Ping timeout: 248 seconds)]
<gchristensen>
tilpner: it isn't a matter of "didn't" happen, we haven't asked
<gchristensen>
we're still progressing towards it
<gchristensen>
responding quickly to incidents (like we have today) is a prerequisite for it
jb55 has quit [(Ping timeout: 240 seconds)]
qtness[m] has left #nixos ["User left"]
<tilpner>
Who would you ask, and are there other prerequisites?
<tilpner>
"Be a participant and preferably an active contributor in relevant public communities" is a hard one, depending on what contribution means here
<gchristensen>
there are several hard ones
cfricke has joined #nixos
nixer has joined #nixos
stabbmesiter has quit [(Ping timeout: 252 seconds)]
<nixer>
How can I pretty print drv files, I've seen references to ppaterm but I can't seem to find the package?
amunier has quit [(Ping timeout: 260 seconds)]
<gchristensen>
indent does a good job
xdelv has quit [(Ping timeout: 246 seconds)]
<disasm>
nixer: we're taking pull requests to improve the pills as well if you want to update them to not use ppaterm.
xdelv has joined #nixos
Thra11_ has quit [(Ping timeout: 246 seconds)]
<nixer>
disasm: You mean lethalman's nix pills? Where is the source for them?
<Sonarpulse>
it's kind of a grab-bag of random attributes
<Guest17>
@ekleog I'm a total noob. I thought there were two things, nix the package manager and nixos the os. Since the urls path has nixos I assumed this referred to nixos packages, and not macOS-specific nix packages. Am I wrong?
Neo-- has joined #nixos
<tazjin>
when using `xrandr` to activate an external screen one of the screens (seems to always be the left one) freezes up (looks like contents are not redrawn) but the mouse pointer can still move there, this only happens when extending the workspace and not when mirroring 🤔
<tazjin>
(I use `i3`)
<ekleog>
this is for all packages, nixos-specific stuff is in nixos.org/nixos/options.html ;)
<tazjin>
Has anyone encountered something like that before?
<Guest17>
I see
<Guest17>
thanks
<clever>
Guest17: there are mostly 3 parts, nix itself, nixpkgs (a set of packages written in nix), and then nixos (a set of packages that build a linux distro)
ebzzry has quit [(Ping timeout: 252 seconds)]
<ekleog>
then if you try to install eg. linuxKernel or such it won't be really useful, but you'll have a kernel somewhere in your store
thaega has quit [(Remote host closed the connection)]
ThatDocsLady has quit [(Remote host closed the connection)]
thaega has joined #nixos
nckx has quit [(Ping timeout: 255 seconds)]
tempeh has joined #nixos
nckx has joined #nixos
keta_suki has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
Thra11 has joined #nixos
kyby64 has left #nixos []
mingc has quit [(Quit: Ping timeout (120 seconds))]
pxc has quit [(Ping timeout: 252 seconds)]
mingc has joined #nixos
ertes-w has quit [(Ping timeout: 260 seconds)]
ma27 has joined #nixos
Thra11 has quit [(Ping timeout: 248 seconds)]
Thra11_ has joined #nixos
<Guest17>
Is anyone familiar with the llvm/clang packages on NixOS? If so, do you know how to find the clang cindex.py?
<Guest17>
I have run a find on my nix store, having installed clang_5 and llvm_5, and am not able to find the cindex python module.
<copumpkin>
will the module system merge the entire serviceConfig entry for a systemd service? I.e., if the original service provides a bunch of stuff in serviceConfig and I just want to change ExecStart, leaving the rest alone, can I do that?
__Sander__ has quit [(Quit: Konversation terminated!)]
<Guest17>
More generally: how do I access the original source tree that produced the package being used? i.e. for llvm, I would expect to be able to find the llvm source tree somewhere in the store. Or am I understanding wrong?
<copumpkin>
if you built it locally, you'll often find the tarball in the store
<copumpkin>
but the extracted tarball will usually only be in the temporary build directory
<copumpkin>
which gets cleaned up after successful builds unless you ask it not to
<fearlessKim[m]>
Guest17: I recommand you to install nix-index/nix-locate
<disasm>
ldlework: what repo is that?
<fearlessKim[m]>
Guest17: and then run nix-locate cindex.py
<copumpkin>
but also, if you didn't build it locally (the common case), you won't even have the source tarball in your store
<Guest17>
ok
<Guest17>
thanks for these answers
pxc has joined #nixos
erictapen has joined #nixos
<copumpkin>
Guest17: it's also possible that we might not currently bundle up cindex.py with our package
Guest17 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ryantrinkle has quit [(Ping timeout: 255 seconds)]
jb55 has joined #nixos
Guest17 has joined #nixos
Guest17 has quit [(Client Quit)]
<ldlework>
disasm then I guess feel free to ask -me- anything :)
<justin-sleep>
I'm trying to get my chromebook going with nixos, but it requires custom kernel patches (from GalliumOS) to get some of the hardware working. Is there a way to cleanly do this in NixOS? I'm pretty unfamiliar with NixOS at this point, and my googlefu is failing me.
erictapen has quit [(Ping timeout: 240 seconds)]
<justin-sleep>
coming from gentoo, where it was fairly straightforward
<copumpkin>
ah, serviceConfig is attrsOf so it's good
jbgi has joined #nixos
asymmetric has left #nixos ["WeeChat 1.9.1"]
goibhniu has quit [(Ping timeout: 255 seconds)]
LysergicDreams has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lsix pushed 2 new commits to master: https://git.io/vdDHq
<bgamari>
Sonarpulse, do you know how the toolchain is supposed to find crt1.o and crti.o?
<Sonarpulse>
bgamari: not in the slightest
<Sonarpulse>
I suspect it's something gross
<Sonarpulse>
elvishjerricco would know about this better
<Sonarpulse>
from his GHC webasm stuff
hotfuzz_ has joined #nixos
ssmike has quit [(Ping timeout: 246 seconds)]
<elvishjerricco>
bgamari: I'm pretty sure it just looks wherever it expects to find libc. At least, that's what worked for me.
<Sonarpulse>
(one sec, IO weirdness logging out and in)
Sonarpulse has quit [(Remote host closed the connection)]
Guest17 has joined #nixos
<bgamari>
elvishjerricco, hmm
Capprentice has quit [(Ping timeout: 258 seconds)]
<elvishjerricco>
with clang, there's some command line flag that you can use to tell it where to find libgcc, but I don't know if this also tells it where to find crt*
<justin-sleep>
the example value for boot.kernelPatches is pkgs.kernelPatches.ubuntu_fan_4_4, does that mean I need to create a package for the patches I want to apply?
<justin-sleep>
sphalerite
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 3 new commits to master: https://git.io/vdDFm
<NixOS_GitHub>
nixpkgs/master 38e6ae8 Bjørn Forsman: at: fix permission errors with "batch" on NixOS...
<NixOS_GitHub>
nixpkgs/master 943730f Bjørn Forsman: nixos/tests: add basic test for services.atd
<sphalerite>
justin-sleep: nah you should be able to just put a path in there. If that doesn't work, an attrset like those in pkgs/os-specific/linux/kernel/patches.nix, i.e. {name = "foo"; patch = ./foo.patch;}
<elvishjerricco>
I don't know how many bits and pieces of that you can carve out. I'm fairly confident it will use that argument to find libs like libc and libgcc, and I'd wager it does not require a working GCC to exist there.
* bgamari
is seeing a build fail to find these objects for the native compiler
<elvishjerricco>
bgamari: is this for the same cross compilation stuff as last time? Why would it be looking for the native objects instead of the cross compiled ones?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 3 new commits to release-17.09: https://git.io/vdDF5
<NixOS_GitHub>
nixpkgs/release-17.09 87ea1a5 Bjørn Forsman: at: fix permission errors with "batch" on NixOS...
<NixOS_GitHub>
nixpkgs/release-17.09 123fa92 Bjørn Forsman: nixos/tests: add basic test for services.atd...
<BlessJah>
disasm: this time I've checked that with calculator, nixos-17.09 was downgraded from 17.09.1716.68ef4b14bc to 17.09.1547.2231575a7d, current number is lower by 169 than one I have seen earlier!
jb55 has joined #nixos
<gchristensen>
BlessJah: you're a good monitor
<gchristensen>
I've caught it happen a few times as well
<tilpner>
Huh? What downgraded?
<gchristensen>
the channel
<gchristensen>
it periodically goes back in time
<tilpner>
Why?
<gchristensen>
the short answer is "a bug"
<gchristensen>
the long answer is
<BlessJah>
yesterday I've seen jump from 1547 to 1716 after a long period of no updates
<gchristensen>
the channel is based on the newest build of hydra which has completely finished building. if you restart jobs, the newest to completely finish goes back to an older build. the channel update tool has code to guard against going back in time, but it seems to be broken
<BlessJah>
I had brainfart and thought that change from xx47 to xx16 is downgrade
<tilpner>
In what locations does that downgrade happen? Just nixos.org/channels, or nixos/nixpkgs-channels too?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 3 new commits to release-17.03: https://git.io/vdDbB
<NixOS_GitHub>
nixpkgs/release-17.03 1aab607 Bjørn Forsman: at: fix permission errors with "batch" on NixOS...
<NixOS_GitHub>
nixpkgs/release-17.03 b1f5ef7 Bjørn Forsman: nixos/tests: add basic test for services.atd...
<BlessJah>
I think I know how to monitor that with prometheus and mtail
<hyper_ch>
srhb: howdy
glenn has quit [(Ping timeout: 258 seconds)]
Guest17 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<justin-sleep>
another (probably silly) question, but is there a way to get a newer kernel than 4.9.53? Or is that the latest version supported by NixOS?
<hyper_ch>
hmmm, when I use a nix expression to build something from source, how can I tell it to copy a file into the extracted source folder before compiling?
glenn has quit [(Remote host closed the connection)]
<sphalerite>
(sorry, not really nixos-related) Anyone know stuff about video encoding and could advise on codec choice? I want something that will preserve quality pretty well, doesn't need to be lossless though, and most importantly is fast to encode (I want it to encode 4k in realtime).
<Judson>
sphalerite: How can I trigger that in the context of `nix-shell -p python35Packages.bootstrapped-pip` ?
m0rphism has quit [(Ping timeout: 255 seconds)]
<nliadm>
4k in realtime? not happening
m0rphism has joined #nixos
<sphalerite>
nliadm: I don't need an extremely space-efficient thing, just an intermediate thing I can encode more efficiently later on
metaphysician has joined #nixos
<dgpratt>
noobish question: why does gnome 3 on nixos look distinctly different from gnome 3 on Ubuntu? am I confusing desktop manager and window manager?
iamrecursion has joined #nixos
<iamrecursion>
has anyone had experience installing NixOS on VMWare using EFI?
<sphalerite>
dgpratt: how do they look different?
<iamrecursion>
Once I boot from the minimal install .iso I see a brief flash of the boot process before the screen goes entirely black.
<iamrecursion>
if I put the VM in BIOS mode it works fine.
<sphalerite>
Judson: what exactly are you trying to do?
<nliadm>
sphalerite: I only know about encoding for final delivery, not really any intermediary formats
<sphalerite>
iamrecursion: try booting with nomodeset. It's probably graphics driver screw-uppery. What kind of graphics does the machine have?
<nliadm>
just don't fuck with the colorspaces too badly
fendor has quit [(Ping timeout: 252 seconds)]
<sphalerite>
nliadm: … actually now that I think about it I can scale it down before encoding as well
<iamrecursion>
@sphalerite Thanks for the tip. I'll give that a go.
<sphalerite>
I don't really need this to be top-quality stuff
<iamrecursion>
@sphalerite That was it, thank you. It's NVidia externally, but the VM isn't accelerated by default, so what that translates to as far as Nix is concerned I have no idea at all.
<sphalerite>
iamrecursion: oops, didn't see the VM part
<Judson>
spalerite: I'm trying to quickly install roca-detect to test some keys. I don't really want to build a whole nix-expr to get that going
juriq has joined #nixos
<sphalerite>
iamrecursion: any particular reason to use EFI, since this is just a VM?
<nliadm>
then I'd probably do h264 yuv420 with aac audio, with forced keyframes if you're streaming
<MichaelRaskin>
hyper_ch: run cp in postUnpack
<MichaelRaskin>
maybe using overrideDerivation.
<Judson>
And nix-shelling with package managers was a trick of clever's
<iamrecursion>
sphalerite: more curiosity than anything! I wondered if it'd work, and it didn't picking the default option.
<iamrecursion>
but your intuition was spot on
<hyper_ch>
MichaelRaskin: I tried with prePatch hook.... that seems to work except I don't have the right env variable for the unpacked source location
<MichaelRaskin>
I think it is . in postUnpack and prePatch
<sphalerite>
iamrecursion: alright. Probably best to stick with BIOS if it's not a physical machine though :)
<sphalerite>
nliadm: alright, thanks :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vdDj1
<NixOS_GitHub>
nixpkgs/staging e1e7251 Vladimír Čunát: libdrm: 2.4.83 -> 2.4.84
<NixOS_GitHub>
nixpkgs/staging d392f4b Vladimír Čunát: systemd: no need to use older gperf anymore...
<NixOS_GitHub>
nixpkgs/staging 3d1dee3 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
<nliadm>
just don't rice the settings too much and you'll be fine
<srhb>
LnL: Okay, so I am reading the output correctly. Great. :)
m0rphism1 has joined #nixos
<LnL>
keep an eye on the channel bot, it'll probably post something soon :)
* srhb
gets popcorn
<hyper_ch>
what will it post?
m0rphism has quit [(Ping timeout: 252 seconds)]
<srhb>
nixos-unstable bump. The i686 tests were made non-critical for release of it.
<hyper_ch>
unstable or unstable-small?
<srhb>
unstable.
<hyper_ch>
maybe I should switch back to it then
<gchristensen>
probably shouldn't use nixos-unstable
<gchristensen>
but that's just my own $0.02
stabbmesiter has quit [(Ping timeout: 246 seconds)]
<woffs>
btw, on i686, which channel should I use?
<gchristensen>
nixos-17.09 will be the last release to support i686 as a bootable system
<woffs>
I'm on unstable atm to have at least some essentials precompiled
<gchristensen>
I'm not sure why, nixos-unstable doesn't support i686 as a bootable system, and builds less i686 stuff than 17.09 would
<gchristensen>
(and this will continue to become more true over time)
Thra11_ has joined #nixos
<tilpner>
hyper_ch - wiki/vpn formatting around listenPort is broken. Would fix it myself but am not sure why I need to give up private mail addresses to login
<gchristensen>
you don't need to give up your private mail addresses, just your github email address
<pxc>
is anyone here involved in organizing NixCon? I asked a question of the NixCon Helpdesk last week and haven't heard back. Their webpage appears to be the default Apache page for Ubuntu
<sphalerite>
hyper_ch: :p
<hyper_ch>
sphalerite: haven't done there anything for ages
<pxc>
it's nbd but I just want to confirm something before I buy plane tickets
<ixxie>
any tips for rebuild nixos on a system with only 512MB of RAM xD
<hyper_ch>
MichaelRaskin: the file was not copied it seems
<tilpner>
hyper_ch - nixos-unstable-small seems to have wireguard substitutes O.o
<woffs>
ixxie: don't include firefox and qtwebengine :-)
<MichaelRaskin>
hyper_ch: well, I would try "cp -v" then
<woffs>
ixxie: define distributedBuild with other hosts
<sphalerite>
ixxie: swap! :D
<hyper_ch>
tilpner: not sure what you mean
stabbmesiter has joined #nixos
<tilpner>
hyper_ch - wireguard is available and builds on nixos-unstable-small. Is that not the problem you mentioned?
<hyper_ch>
no, the problem I have is that something else isn't building for me so I couldn't test it
<tilpner>
Oh, still libinput?
<hyper_ch>
yep
<hyper_ch>
last updated: 13h ago
<hyper_ch>
lipinput reversal on master < 13h
<tilpner>
You can still downgrade libinput :/
<hyper_ch>
I can't
<tilpner>
Do you require new features of libinput?
<hyper_ch>
I can't = I don't know how and I don't see a reason why I should do so when unstable small is to be updatd soon
<tilpner>
Then you can downgrade just libinput, while the rest of your system stays where it is
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdyJf
<NixOS_GitHub>
nixpkgs/master 38ffe0e Nikolay Amiantov: steam-run-native: init...
NixOS_GitHub has left #nixos []
<hyper_ch>
as said, I can't
<tilpner>
gchristensen - That's another mail, I don't really use it
<hyper_ch>
you could have authenticated with github account
<tilpner>
(I should probably remove it, I never check it anyway)
<ixxie>
sphalerite: swap? is there a setting for that?
<hyper_ch>
the wiki is smart and allows that
<ixxie>
woffs: distributed build is a nice idea
<tilpner>
hyper_ch - That still leaks your mail
<hyper_ch>
don't you just generated email aliases for all kinds of services?
<hyper_ch>
so if you get spam, you just kill the alias
<tilpner>
gchristensen - And my concern wasn't about the mail you uncovered in the patch or my profile. It's just not clear what mail addresses are considered private. I have more addresses registered with GH than just these two
m0rphism2 has joined #nixos
<tilpner>
gchristensen - Like e.g. my university mail for GH education
<gchristensen>
ah
m0rphism1 has quit [(Ping timeout: 248 seconds)]
<gchristensen>
I have no idea
stabbmesiter has quit [(Ping timeout: 264 seconds)]
<tilpner>
hyper_ch - The permision prompt for nixos.wiki explicitly mentioned access to private mail addresses, so I assume not
<hyper_ch>
MichaelRaskin: copying seems to work but I still get make errors that say the file is missing
<sphalerite>
ixxie: do you have a swap partition?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] danharaj opened pull request #30479: singularity-tools: Only copy into /bin what is specified in contents (master...singularity-tools) https://git.io/vdyJl
NixOS_GitHub has left #nixos []
<sphalerite>
ixxie: you may already have swap set up (check `free -h`)
<MichaelRaskin>
hyper_ch: We-ell. You can stat after copying. Then check if the file is actually searched in src and not some subdir
<ixxie>
sphalerite: no partitions, this is a digital ocean droplet
<hyper_ch>
MichaelRaskin: not really sure what you mean
<sphalerite>
ixxie: if not the quickest way is probably to create a swap file (something like truncate -s 1G /root/swap ; mkswap /root/swap ) and activate it with swapon /root/swap
<MichaelRaskin>
hyper_ch: there is a command called stat. That gives you information about the file. Just to make sure it exists where you expect it.
<sphalerite>
ixxie: not sure how suitable the storage on those is for swap, but you might as well try
<ArdaXi[m]>
tilpner: It's just a side-effect of requesting the `user` scope, to get something to uniquely identify a github user that isn't GH-specific
<MichaelRaskin>
But it is quite easy to miss some minor difference in the path. Like a version in the file name or something.
<hyper_ch>
but there's a wall of text following from compiling... so how to "safe" that stat info?
<MichaelRaskin>
nix-store -l gives you the entire log.
<MichaelRaskin>
Also, you could just exit 1 after stat.
<hyper_ch>
ok
<Judson>
Has anyone set up a roca-detect expression already?
<hyper_ch>
MichaelRaskin: problem found: '/nix/store/6hm62mciq2hilqkp03z9xj7jp8gb6nk1-command_pyroscope.cc' -> 'rtorrent-0.9.6/src/6hm62mciq2hilqkp03z9xj7jp8gb6nk1-command_pyroscope.cc' --> it should just be named command_pyrsocope.cc :)
<hyper_ch>
ok, that seems now simple
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy opened pull request #1605: Pull nix-profile-daemon from 1.11 (master...nix-profile-daemon) https://git.io/vdyUk
NixOS_GitHub has left #nixos []
<sphalerite>
Judson: not that I know of. But did you try the pypi2nix thing I wrote earlier?
<ixxie>
sphalerite: looks like I managed to 'brick' that vm xD
<ixxie>
or at least block access to it
<hyper_ch>
MichaelRaskin: so cp "$commandPyroscope" "$sourceRoot/src/command_pyroscope.cc" helped :)
keta_suki has quit [(Remote host closed the connection)]
<sphalerite>
ixxie: using swapon?
hotfuzz_ has quit [(Quit: WeeChat 1.9.1)]
<ixxie>
sphalerite: no, I was in the process of rebuilding while you recommended that
<hyper_ch>
next compile error
keta_suki has joined #nixos
<sphalerite>
ixxie: or by running nixos-rebuild xyz after enabling swap?
<ixxie>
maybe something stupid in my config
<sphalerite>
in the latter case, it may just be running very slowly right now.
<sphalerite>
As in so slowly that it can't currently respond to network requests
<ixxie>
I am also not sure nixos-rebuild switch is a good idea for a VM
<sphalerite>
but give it an hour or so before writing it off, unless you have better things to do :p
<ixxie>
sphalerite: I will
<sphalerite>
ixxie: as opposed to building the image somewhere else and then booting that?
<ixxie>
sphalerite: maybe I am best off going for distributed build
<ixxie>
yeah maybe its stupid to try and rebuild on a 520mb vm with a single (probably slow) thread
<ixxie>
I should also have really more carefully vetted the config
<ixxie>
I pretty much just copied my laptops config
<ixxie>
(ofcourse that ran into memory limits so I removed all the modules except the core one, but I think even there I should have had a more careful look)
ris has joined #nixos
MichaelRaskin has quit [(Ping timeout: 252 seconds)]
MichaelRaskin has joined #nixos
<sphalerite>
evaluating nixos is also fairly memory-intensive I think just because it loads all the modules
<ixxie>
sphalerite: besides distributed build, I could also use NixOps and build on my laptop right?
<sphalerite>
yes, I think that would also solve it
<sphalerite>
or you could build images with everything there and boot into those :p
Itkovian has joined #nixos
<ixxie>
so sphalerite - this may be improved in the near future, based off what Eelco wrote
erictapen has quit [(Ping timeout: 240 seconds)]
<ixxie>
anyway thanks
<ixxie>
Ill put this aside for the evening
<ixxie>
have a good one
ixxie has quit [(Quit: Lost terminal)]
riclima has joined #nixos
iamrecursion has quit [(Quit: Page closed)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<tilpner>
Mic92 - How do you manage wireguard? Do you run the netns thing manually?
<Mic92>
tilpner: systemd-networkd and wg-quick at the moment. Also I am not done yet with pull request for the latest wireguard protocol. update. This netns this is not really needed anymore
<Mic92>
wg-quick just does the right think, if you do AllowedIPs = 0.0.0.0/0
<tilpner>
Hmm, so with networkd you would not use wg-quick anymore? I'm currently trying to use the NixOS module, I'll try out wg-quick
MP2E has joined #nixos
<lassulus>
¯\_(ツ)_/¯
<lassulus>
ups
<gleber_>
What's the best, preferably lightweight, network manager for NixOS? Any recommendations?
<gchristensen>
I use nmcli
<MichaelRaskin>
wpa_supplicant, because you _have_ to run it, and it can replace the rest.
<sphalerite>
gchristensen: not really lightweight since network-manager pulls in nm-applet :/
<gchristensen>
I have no idea what I'm doing
<sphalerite>
:D
<gleber_>
sphalerite: that's my concern too
<gchristensen>
you should probably just use wpa_supplicant
<sphalerite>
I use it too though, because it's easy :D
<gchristensen>
MichaelRaskin is right on these things
<MichaelRaskin>
Scripting wpa_cli for the win.
<sphalerite>
what I really don't understand is why connman exists
<MichaelRaskin>
It may be a bit faster in choosing the network than raw wpa_supplicant, I guess.
<MichaelRaskin>
If it is done correctly.
<srhb>
I think I dropped before this message got through: Why do overlays overwrite packageOverrides? I have a haskellPackages override and some haskellPackages overlays, and the overlays seem to completely overwrite the packageOverrides.
<srhb>
It makes them seem mutually exclusive, which is not the picture I get from the docs.
<srhb>
Specifically I have both overrides and overlays for haskellPackages, and the latter seems to shadow the former entirely.
<srhb>
I suspect it's the same for the system though.
<disasm>
if you don't need wpa2 enterprise, just configure your networks via configuration.nix (uses wpa_supplicant for wifi), otherwise your stuck with network manager
<MichaelRaskin>
Well, or writing wpa_supplicant.conf
<steveeJ>
does someone know the package to make the default icons work in thunar? I've set gtk2 and gtk3 icon themes but thunar isn't affected and displays no icons
<MichaelRaskin>
I have written enterprise-setup-client config in wpa_supplicant.conf, it is not that bad.
<srhb>
sphalerite: Are you sure network-manager pulls in nm-applet?
<srhb>
sphalerite: That makes networkmanagerapplet seem rather.. Redundant.
<gchristensen>
I have nmtui and nmclibut no nm-applet
<gchristensen>
at least, not in the path
<sphalerite>
gchristensen: yeah it's probably there in the store though
<sphalerite>
iirc some plugin for nm depends on the gui
civodul has joined #nixos
<srhb>
LnL: It's especially interesting since a package _created_ in packageOverrides just goes missing when there's an overlay defining haskellPackages too.
<srhb>
but I suppose that's expected.
<LnL>
well looking at impure.nix it seems like it should work
<LnL>
no in the pkgs stages that apply the config/overlays
<sphalerite>
srhb: no I wanted to highlight gchristensen and you and riot is a bit buggy when it comes to editing completed names
<srhb>
Ah!
<sphalerite>
s/when.*//
<srhb>
LnL: Eek.
<srhb>
Then I should be able to reproduce it outside as well I guess
<gchristensen>
riot does funny things sometimes :P
<sphalerite>
gchristensen: also great fun when it just freezes up completely for several seconds
<LnL>
hmm, that also looks ok at first glance
<disasm>
`*cough* weechat :)
<sphalerite>
and every time I open it, Firefox offers to kill it because it's making everything slow
<LnL>
srhb: doesn't look intentional, probably a bug
<sphalerite>
disasm: not enough convenience for sending and viewing images and stuff
<srhb>
Ok, here's something interesting, perhaps. haskellPackages= super.haskellPackages.override {}; in an overlay does not shadow the packageOverrides
<srhb>
but ...override { overrides = self: super: {}; }; does
<disasm>
sphalerite: ah, yeah, that's a downside, but usually 1 in 100 images people send I actually want to click on to look at :)
<LnL>
wait, I just tested with foo = ... and bar = ... and that didn't seem to work
<srhb>
uuuh.
<sphalerite>
disasm: lol
colabeer has joined #nixos
<srhb>
LnL: Not sure how you tested that actually.
<LnL>
srhb: ah it does, but the overlays get applied after config and I didn't use the fixpoint
<srhb>
Yeah, that seems okay.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thblt has quit [(Ping timeout: 246 seconds)]
<LnL>
you probably ran into something similar by using super.
ma27 has quit [(Ping timeout: 252 seconds)]
<srhb>
Well, anything else would be infinite recursion.
ma27 has joined #nixos
<LnL>
I think haskellPackages has it's own fixpoint separate from pkgs
<srhb>
riclima: In that case, the python you're executing doesn't even know about it
<srhb>
riclima: Try using nix shells for this kind of thing instead
<riclima>
Right
<ldlework>
if they installed it into their profile why wouldn't the python in that profile know about it?
hexamod has quit [(Client Quit)]
c0bw3b has joined #nixos
<srhb>
ldlework: Not as far as I know.
<ldlework>
what?
<srhb>
Why would it?
<ldlework>
because its in the same profile
<LnL>
nix-env only works for binaries not libraries or headers
<ldlework>
woah what?
<ldlework>
I'm confused.
<LnL>
you could make it work, but that's not really the nix way
<srhb>
riclima: even just spawning a nix-shell with nix-shell -p python36Packages.certifi should give you a shell with a python that knows the module :)
<dash>
well you can install stuff with nix-env but it's not gonna set LD_LIBRARY_PATH or PYTHONPATH for you
<srhb>
riclima: (Which disappears cleanly once you exit the shell)
<dash>
nix-shell will do that though.
<ldlework>
ah
<infinisil>
LnL: srhb: But libraries do end up in ~/.nix-profile/lib
<srhb>
Yup.
<infinisil>
just nobody uses those
<LnL>
well IMHO they shouldn't :)
<riclima>
srhb alright, I'll give it a try. Cheers
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<jack[m]>
Usefule for weird LD_PRELOAD stuff, though.
<srhb>
riclima: (and you can specify -p multiple times as well, but if this is a dev environment, you might want to write a shell.nix file)
<ldlework>
I seems strange that Nix can work if it can't change what libraries are present
ssmike has joined #nixos
<infinisil>
LnL: You think ~/.nix-profile should only contain bin and maybe etc?
<riclima>
It's just for a one liner under a config file for an application
<justin-sleep>
is there a way for me to select kernel 4.12 in kernelPackages? tried setting boot.kernelPackages to pkgs.linuxPackages_4_12, but no dice.
<jack[m]>
infinisil; prolly share too.
<jack[m]>
For man pages.
<infinisil>
Ah right
<jack[m]>
justin-sleep; 4.12 was deprecated, IIRC.
<jack[m]>
s/deprecated/EOL'd/
<justin-sleep>
jack[m]: ah, rats. might have to update the patchset I'm using, then.
<Guest17>
hi again. When I use a nix-shell and type 'ls', I see no colours. How can I get colours? ;) (I'm on macOS, btw)
<riclima>
@srhb that worked, cheers
<srhb>
riclima: Neat :)
<infinisil>
justin-sleep: I think it might be possible to import linuxPackages_4_12 from another nixpkgs version though, not sure what this brings with it though
[0x4A6F] has quit [(Quit: [0x4A6F])]
JosW has quit [(Quit: Konversation terminated!)]
<LnL>
infinisil: yeah basically nothing that would typically end up in a *-dev package on other distributions
<infinisil>
but then again, if something gets f**ked up, you can always rollback ;)
<justin-sleep>
true. I'll try to get the GalliumOS patchset working on 4.13 first, I think.
<sphalerite>
Guest17: ls --color
<riclima>
srhb wow this is really cool: `nix-shell -p python36Packages.certifi --run 'python3 -m certifi'` does exactly what I want, but no need to keep the package installed on my profile
<sphalerite>
Guest17: you can put alias ls='ls --color' in your shell rc or something if you want it everywhere
<srhb>
riclima: Yes, nix shells are *awesome* :D
joelpet has quit [(Quit: No Ping reply in 180 seconds.)]
<riclima>
Now, if I could only figure out how to make emacs on OS X use my bash environment
<riclima>
¯\_(ツ)_/¯
earldouglas has joined #nixos
<infinisil>
#emacs would know, probably
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
tempeh has joined #nixos
<Guest17>
@sphalerite obviously --color and -C is something I tried ;)
<Guest17>
FYI I'm using iTerm, not sure if that affects things...
<sphalerite>
Guest17: try eval "$(dircolors)" then use ls --color again
<catern>
oh, nice! nix-daemon.sh has been merged with nix.sh?
<LnL>
riclima: like a bunch of stuff in nixpkgs, emacs has a emacsWithPackages helper to configure stuff with nix
<infinisil>
catern: wait, what are these
<pxc>
catern: where did you see this?
<pxc>
infinisil: they're the Nix environment initialization scripts for non-NixOS
<catern>
gchristensen: can you explain what's going on with nix-profile-daemon.sh.in? :) it looks like you added this new feature only to the released branches!
<gchristensen>
cc shlevy
<gchristensen>
and the PR he just put in
<sphalerite>
Guest17: That looks like you didn't `eval "$(dircolors)"`
<sphalerite>
heh, ripgrep is amazing. Accidentally grepped through everything in ~ rather than just nixpkgs, and didn't notice the speed difference
<riclima>
So now I'm running on another interesting problem
<riclima>
I've installed gnutls
<riclima>
And when running a command, I get
<riclima>
"gnutls-cli --x509cafile error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied -p %p %h
<sphalerite>
whaaat…
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
colabeer has quit [(Remote host closed the connection)]
<catern>
gchristensen: and I'm also really confused by nix-profile.sh.in :)
<catern>
the one in default seems to be much larger and more functional than the one in 1.11-maintenance!
<LnL>
riclima: looks like NIX_REMOTE is not set
<sphalerite>
riclima: could you send a screenshot or something? I'm a bit confused as to what you're doing
<catern>
in fact the one in default seems like it supports multi-users already so I'm very very confused :)
<riclima>
Man I'm gonna use that for my backup script
<ldlework>
build scripts too, tests, etc
<ldlework>
also you can start your editor from inside it
<riclima>
It feels like such a dirty hack, but also so elegant
<riclima>
The more I learn, the deeper it goes
<ldlework>
of course you have to install your editor first...
<ldlework>
:P
sheyll has quit [(Quit: sheyll)]
<riclima>
LnL probably
<ldlework>
(this would give you language facilities for your langauge, compared to say deving with Docker)
<riclima>
LnL since my emacs isn't running under a shell
<riclima>
LnL but I can configure it to inherit that variable from a shell
<infinisil>
Although, nix-shells within themselves don't work well afaik
<copumpkin>
that was a minorish bug
<infinisil>
It's resolved?
<copumpkin>
yeah it wasn't using bashInteractive
<copumpkin>
not sure if the fix is in the 1.11 branch
<copumpkin>
but it's definitely fixed in the 1.12
<infinisil>
Oh lol
<riclima>
Is remote the only var Ineed?
<ldlework>
🎉
<infinisil>
So nix-shell nesting is without problems now?
<LnL>
riclima: you'll want that and NIX_PATH if you want to use nix inside of emacs
<copumpkin>
nesting should work after the fix
<copumpkin>
not sure if you have a version with the fix
<riclima>
cool, cheers
<infinisil>
Nice
Itkovian has joined #nixos
<dash>
how do y'all usually diagnose an expression that gives the "very large path" warning
<dash>
not sure what i changed to make mine turn pathological
<LnL>
copumpkin: oh! that was caused by the bash impurity?
<infinisil>
dash: Check everything that refers to a path
<copumpkin>
LnL: I htink so
<copumpkin>
the messed up shell prompt definitely was
<copumpkin>
well, I might be misremembering :)
<LnL>
it would make sense
<infinisil>
Related: Use sqliteInteractive if you want command history and completion.. Discovered that way too late
<catern>
gchristensen: btw, why don't you just export PATH=@coreutils@ like nix-profile.sh.in does? then you wouldn't have any worries about platform-specific utilities since you'd just use coreutils always
<catern>
seems a bit more reliable
<catern>
(or just execute "@coreutils@/bin/thing" instead of "thing")
<dash>
infinisil: check it for... what?
<LnL>
catern: I don't think coreutils is part of the installer tarball, is it?
<riclima>
LnL worked great, thanks!
<riclima>
I inherited all NIX_* variables
<sphalerite>
riclima: if you want something vaguely less hacky you can make a tiny expression for your script and install that to your environment as well :)
<infinisil>
dash: paths in nix expressions that get expanded to stings, that's how stuff gets imported and what triggers the warning
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] samueldr opened pull request #30482: vagrant: Adds bash-completion to the proper folder. (master...pr/vagrant-complete) https://git.io/vdyWP
NixOS_GitHub has left #nixos []
<sphalerite>
Something like with import <nixpkgs> {}; writeScriptBin "backup" "#!${stdenv.shell}\n${borgbackup}/bin/borgbackup create stuff"
<catern>
LnL: oh, if that's the case then... well, then I think coreutils probably should be made part of the installer tarball :)
<catern>
it's relatively small...
tilpner has quit [(Ping timeout: 258 seconds)]
<catern>
bash is already in there...
<LnL>
sure, but it makes the tarball bigger and test works just fine
<symphorien>
which user executes build-remote.pl ? is it possible to specify it special ssh option with a ~whateveruser/.ssh/config ?
ertes has joined #nixos
<catern>
LnL: test works fine sure, but who knows what other problem will happen in the future? it seems kind of not-in-the-spirit-of-nix to rely on coreutils from the user's environment
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to master: https://git.io/vdylU
<NixOS_GitHub>
nixpkgs/master 6e1f864 John Ericson: sc2-headless: License is unfree...
NixOS_GitHub has left #nixos []
tempeh has quit [(Ping timeout: 240 seconds)]
<infinisil>
catern: coreutils is 6.5MB fyi
<catern>
wow
<infinisil>
bash is only 768KB
<catern>
that's larger than I expected I suppose
<catern>
still, I mean, that's not that much...
<infinisil>
yeah
<infinisil>
glibc is 15MB
<catern>
I mean, we are already using coreutils
tempeh has joined #nixos
<infinisil>
But not the nixpkgs version, right?
<catern>
right
<catern>
who says we even need bash, for that matter?
<catern>
is there something that needs bash?
<infinisil>
let's compile it to some tiny rust binary!
<catern>
nix-shell could just use the one from the environment :)
<catern>
infinisil: that's what I was coming to :)
<catern>
I don't think that's a good idea though
<infinisil>
yeah it's not crossplatform
<infinisil>
Hmm, how about python
<catern>
Python is even larger
keta_suki has quit [(Quit: WeeChat 1.9)]
<infinisil>
oh right
<infinisil>
Is there a good interpreted language that's small though?
<catern>
isn't the lua interpreter pretty small? (never used it)
<catern>
I mean I guess it would be nice if we could completely avoid interpreted languages
* infinisil
checks the size of lua
<catern>
maybe we don't need to generate etc/profile.d/nix.sh unless bash is installed?
<MichaelRaskin>
Yeah, just compile everything on the fly.
bennofs has quit [(Quit: WeeChat 1.9.1)]
<catern>
MichaelRaskin: I mean in the Nix install tarball :)
<infinisil>
catern: You mean to distribute binaries for every arch/platform?
<infinisil>
or jit or something?
<catern>
infinisil: eh? no I just mean that we could completey drop bash from the Nix closure
<catern>
if we could just expunge all bash
thblt has joined #nixos
<infinisil>
how though? what to use instead?
tilpner has joined #nixos
<catern>
well, why do we need bash in the first place? :)
<catern>
the installer can run with the host environment's bash
simukis has quit [(Ping timeout: 248 seconds)]
<LnL>
it used to
<infinisil>
Ahhh
<sphalerite>
What about dash?
ma27 has quit [(Ping timeout: 240 seconds)]
<c0bw3b>
hi everyone
<dash>
:O
<catern>
I would rather use bash than dash
<infinisil>
LnL: Why not anymore?
<catern>
dash being a mere POSIX shell was a huge pain
<LnL>
catern: nix-shell now uses the nix version of bash solving the issue with nested shells (and some other issues)
<dash>
replace bash with awk
<catern>
but yeah, if we can get rid of bash, get rid of dash too
<dash>
:-C
<c0bw3b>
on a single output derivation with no exec, how could I avoid the $out/bin being even created? since it would remain empty..
<dash>
i don't wanna go
<catern>
LnL: which means Nix depends on bash... maybe nix-shell should be a separate program/derivation :)
p4cman has quit [(Quit: Connection closed for inactivity)]
<tilpner>
Mic92 - Sorry for late reply, I couldn't get wireguard to work with my firewalls. wg-quick looks like the way to go though, so thanks for that :)
ma27 has joined #nixos
<infinisil>
c0bw3b: $out/bin shouldn't be created by default
<catern>
dash: sorry friend, you can stay! it's some other mean dash that we are bashing :)
<infinisil>
i mean all of nix depends on bash a whole lot
<infinisil>
like a LOT LOT
<infinisil>
which i don't like
<infinisil>
nixpkgs*
<LnL>
the stdenv does not nix itself
<Mic92>
tilpner: corporate firewall?
<c0bw3b>
Infinisil : mokay so it's the default 'make install' that would be creating it i guess
<infinisil>
c0bw3b: That could be it, yeah
<tilpner>
Mic92 - No, actually just NixOS firewall. And then I changed something for the server config and nixops lost connection mid-activation when the wireguard service came up
<catern>
LnL: actually wait a second, separating nix-shell out from Nix proper (and maybe moving it into nixpkgs) does sound like a pretty good idea to me :)
<catern>
since it already has a huge dependency on nixpkgs
<tilpner>
Mic92 - Inbetween it said something about invalid source IPs, not getting a keep-alive handshake, and other things
<catern>
and is way intertwined with nixpkgs
<catern>
infinisil: yeah like LnL said, Nixpkgs' stdenv and Nix itself are separate
<Mic92>
tilpner: probably the nixos module should implement ExecReload
<Mic92>
but this is not my domain now, I am working on the replacement
m0rphism2 has quit [(Quit: WeeChat 1.9.1)]
<tilpner>
I subscribed to that issue, but I'll also try wg-quick again, I just don't want to disable my server again right now
<sphalerite>
infinisil: one day maybe we can switch it all over to oil :p
<Mic92>
tilpner: restartIfChanged = false; for the service that setups wireguard
<Mic92>
you can restart manually if you change something in the VPN
m0rphism has joined #nixos
<Mic92>
*set up
ma27 has quit [(Ping timeout: 260 seconds)]
tempeh has quit [(Ping timeout: 255 seconds)]
thblt has quit [(Ping timeout: 240 seconds)]
<dash>
catern: not sure why they named a shell after me
<dash>
infinisil: what don't you like about depending on bash
<sphalerite>
dash: can't speak for infinisil, but posix shell is kind of an awful language and bash adds more awful to it
<catern>
well, I prefer bash over POSIX sh
<dash>
sphalerite: well, yes... but you could say the same about posix/linux in general
<catern>
but yesh, both are completely awful
<catern>
I mean, bash is clearly superior to POSIX sh
<MichaelRaskin>
Shell is nice for a lot of tasks.
<catern>
vide: set -o nounset -o errexit
<dash>
you start trying to get rid of sh, where you gonna stop
<catern>
nowhere
<catern>
or rather: stop once sh is gone
<MichaelRaskin>
Then you should just switch to Guix and gain a lot of ground in that journey to remove shell scripting.
<dash>
the things that make sh bad make the rest of unix bad
<dash>
nixos mitigates a lot of them, but only so much you can do
<hodapp>
MichaelRaskin: ahh, interesting. I knew it used Guile, but didn't know it used it to that extent.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #30484: bfd, opcodes: Init separate derivations for binutils libraries (master...libbfd) https://git.io/vdyBj
NixOS_GitHub has left #nixos []
_habnabit has quit [(Ping timeout: 240 seconds)]
<infinisil>
MichaelRaskin: That does sound pretty nice, so it uses guile for both where nixpkgs uses nix and bash?
<MichaelRaskin>
It uses Guile both fot build scripts and for package definitions.
<MichaelRaskin>
With different libraries, of course.
* infinisil
should seriously look into guix
<hodapp>
clearly, we should be using Idris so that we can..... something something something verify at compile time mumble mumble
<infinisil>
!m hodapp
<[0__0]>
You're doing good work, hodapp!
<sphalerite>
xD
<hodapp>
:P
<MichaelRaskin>
hodapp: something something scare away people afraid of learning a new language more efficiently
<infinisil>
I mean, I totally agree, I mean you get only more power with idris
<ldlework>
infinisil so basically you stick stuff into home.activation during script by calling dagEntryBefore or dagEntryAfter, naming an existing node, and providing a bit of bash?
<ldlework>
during config*
Guest17 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil>
correct
<infinisil>
or dagEntryAnywhere, but that's usually not what you want
<infinisil>
or dagEntryBetween I guess
<catern>
sphalerite: that's what I was saying earlier - nix-shell should already be split out into a separate package, because it's highly tied to nixpkgs
drakonis has joined #nixos
<sphalerite>
catern: oh right. I missed that, sorry
<catern>
though I guess it's nice to be able to assume nix-shell is present if nix is present, since then you can do nix-shell shebangs
<catern>
though... that's really a separate feature...
_habnabit has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
hiratara has quit [(Ping timeout: 252 seconds)]
k2s has joined #nixos
hiratara has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
k2s has quit [(Remote host closed the connection)]
kp__ has joined #nixos
kp__ has quit [(Client Quit)]
kp__ has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ambro718 has quit [(Quit: Konversation terminated!)]
hamishmack has quit [(Quit: hamishmack)]
Khetzal has quit [(Ping timeout: 248 seconds)]
oida has quit [(Ping timeout: 255 seconds)]
<ldlework>
that's nice
oida has joined #nixos
<ekleog>
rycee: being curious looking at https://github.com/rycee/home-manager , section “Keeping your ~ safe from harm”, how does home-manager know the file it's about to erase is not the one generated by the previous generation of home-manager?
<ldlework>
oh rycee is in here - HM is awesome!!
<ldlework>
seriously!
<ekleog>
(also, what's the current state of home managers in nix? I seem to remember at least nixup, nixuser, nix-home, now home-manager -- how many are dead and what are the alternatives to your home manager? I've been putting back using a nix-based home manager for way too long ^^)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy pushed 2 new commits to master: https://git.io/vdyzN
<NixOS_GitHub>
nix/master 6a037a7 Shea Levy: Pull nix-profile-daemon from 1.11
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #30486: Compton (master...compton) https://git.io/vdya5
NixOS_GitHub has left #nixos []
<rycee>
ekleog: On my phone right now so can't give you an essay but as far as I know NixUP and HM are the only ones that have ambition to go beyond just putting dotfiles in your $HOME. I've had some discussions with ts468 (the NixUP guy) and hopefully he'll get NixUP running again so we can merge the projects.
<jack[m]>
rycee; awesome!
<iqubic>
What is NixUp?
<iqubic>
Oh, I'd like a merger.
<rycee>
Unfortunately I haven't heard from him in some time though but I believe he's scheduled for presenting at nixcon.
serhart has quit [(Remote host closed the connection)]
kp__ has quit [(Quit: WeeChat 1.9.1)]
<rycee>
iqubic: Me? I was hoping to since I'm not terribly far away but unfortunately I'll miss it.
<iqubic>
Where isit rycee?
<rycee>
Munich
serhart has joined #nixos
<michaelpj>
anyone seen this before? happens when I switch on sandboxing: `error: cannot change ownership of ‘/nix/store/wbivfy4c1xk79i2q2f0s4j20jk6lg01s-tzupdate-1.2.0.tar.gz.drv.chroot’: Operation not permitted`
<michaelpj>
this is single-user nix, so everything should be as my user, I would have thought
<iqubic>
Define "single-user" michaelpj?
<michaelpj>
as in, not multi-user. No nix daemon
<michaelpj>
so afaik everything should be happening as my user
<michaelpj>
hence why I'm confused about the permissions error
Khetzal has joined #nixos
<Ralith>
is it just me or is the chrome flash player broken in nixos-17.09?
serhart_ has joined #nixos
serhart_ has quit [(Remote host closed the connection)]
serhart_ has joined #nixos
<MP2E>
just to make sure, have you enabled pepperflash in the chrome/chromium derivation? it isn't installed by default
<MP2E>
if not, here is the relevant lines from my config
CrazedProgrammer has quit [(Remote host closed the connection)]
dustmote has joined #nixos
earldouglas has left #nixos []
dustmote has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] berdario opened pull request #30489: BerkeleyDB 5.3 is under the Sleepycat license, not AGPL (master...db-license) https://git.io/vdyw9
NixOS_GitHub has left #nixos []
serhart has quit [(Read error: Connection reset by peer)]
<jack[m]>
michaelpj; Does the sandboxing still use chroot()? Maybe there is a better way to do that with containers/namespaces...
<jb55>
anyone try ostree? looks pretty cool
<ekleog>
rycee: OK great, thanks for the heads-up! Having a merge of the two major home managers based on nix sounds great for increase of module amount, and maybe who knows, someday inclusion in the main nixpkgs repo? (actually maybe it'd be better to keep it a split repo in the official org so that commit access is not merged with the main one... and maybe even the nixos subfolder should go in a separate repo :))
elninja44 has joined #nixos
zetok has quit [(Ping timeout: 248 seconds)]
ona has quit [(Quit: ...)]
serhart has joined #nixos
<edef>
jack[m]: no, it uses a fresh mount namespace
serhart has quit [(Client Quit)]
<edef>
jack[m]: actually, wait, no, i'm mistaken
riclima has joined #nixos
serhart has joined #nixos
schoppenhauer has quit [(Ping timeout: 258 seconds)]
zetok has joined #nixos
<dgpratt>
I decided to try enabling the sddm display manager. The login screen comes up fine, but once I log in, I'm greeted by a black screen. Does anyone know if that should/shouldn't work?
erasmas has quit [(Quit: leaving)]
schoppenhauer has joined #nixos
Guanin has quit [(Remote host closed the connection)]
<Ralith>
MP2E: specifically, the download from adobe.com 404s
<MP2E>
ohh i see
isolier has joined #nixos
qepl has joined #nixos
qepl has left #nixos []
markus1199 has joined #nixos
dieggsy has joined #nixos
markus1189 has quit [(Ping timeout: 258 seconds)]
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
csingley has quit [(Ping timeout: 255 seconds)]
voiceftp has quit [(Quit: Leaving)]
serhart has quit [(Quit: serhart)]
serhart_ has joined #nixos
serhart_ has quit [(Remote host closed the connection)]