Synthetica has quit [(Quit: Connection closed for inactivity)]
slack1256 has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
csingley has joined #nixos
dieggsy has joined #nixos
Judson has quit [(Ping timeout: 240 seconds)]
ison111 has joined #nixos
csingley has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
Arcaelyx has quit [(Read error: Connection reset by peer)]
jgertm has quit [(Ping timeout: 248 seconds)]
csingley has joined #nixos
Arcaelyx has joined #nixos
Itkovian has quit [(Ping timeout: 258 seconds)]
work_ has joined #nixos
<work_>
Hi guys, Am on Live USB NixOS, About to install it for the first time.
Itkovian has joined #nixos
schell has quit [(Quit: schell)]
xelxebar has joined #nixos
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
<xelxebar>
I'm playing around with guix and trying to import a package that requires setting a nixpkgs.config variable.
<xelxebar>
Apparently, one can do this: guix import nix path/to/nixpkgs ATTRIBUTE.
MP2E has quit [(Remote host closed the connection)]
<xelxebar>
And it works fire if ATTRIBUTE is just a simple package name. However, does anyone know the more general ATTRIBUTE syntax? I'm really new to both nix and guix.
thc202 has quit [(Ping timeout: 258 seconds)]
<xelxebar>
I want to do something like '{ nixpkgs.config.permitInsecurePackages = [ "foo-1.0.0" ]; }; foo;' to install foo, but this is clearly wrong
vandenoever has quit [(Ping timeout: 248 seconds)]
slack1256 has quit [(Remote host closed the connection)]
griff__ has joined #nixos
cement has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Ping timeout: 260 seconds)]
griff__ is now known as griff_
<work_>
Guys, I don't understand well this command: `mount /dev/disk/by-label/nixos /mnt` ... shouldn't this be something like: `mount /dev/sda5/nixos /mnt ` ???
<michaelpj>
I'm a bit sad that it doesn't feel like anything comes uptream from the guix folks, but then I have no idea how much of nix/nixpkgs/nixos they're actually using
hotfuzz has quit [(Ping timeout: 255 seconds)]
iqubic has quit [(Ping timeout: 252 seconds)]
<xelxebar>
michaelpj: What kind of things would you like to see upstreamed?
pxc has joined #nixos
<xelxebar>
As far as I can tell, guix the tool is mainly a wrapper around nix along with a canonical libre repo
<xelxebar>
The guix import thing is cool though. Apparently it has plugins to autogen derivations from places like stackage, cpan, etc
<vaibhavsagar>
hey, is there a way to run hydra builds on a schedule?
catch22 has joined #nixos
glenn_ has joined #nixos
glenn has quit [(Ping timeout: 260 seconds)]
<xelxebar>
Okay. So to install foo, I need to set nixpkgs.config.permitInsecurePackages = [...]. Is there a way I can pass this to nix-instantiate directly?
<xelxebar>
I'm trying to get the resulting xml output
dieggsy has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<xelxebar>
I'm guessing that I'm wanting to write some kind of wrapper function or something
Supersonic112 has quit [(Disconnected by services)]
<xelxebar>
clever: Oh... I was setting nixpkgs.config.permittedInsecurePackages...
<xelxebar>
Evidently I don't understand what 'with' is doing?
<sphalerite>
xelxebar: nixpkgs.config in configuration.nix only applies to nixos-rebuild
<sphalerite>
xelxebar: regular nix-build/nix-instantiate/nix-env will use ~/.config/nixpkgs/config.nix
<sphalerite>
and you can also pass in config when calling nixpkgs like clever wrote above
<work_>
Do I need to set the option `boot.loader.grub.device` in `.../configuration.nix` If I already have other system on my hard drive and don't want change my current boot loader?
<ylwghst>
work_: if boot.loader is enabled in configuration.nix then nix-build regenerates /boot/grub/* contents like grub.cfg and update its with new genrations menu entries
sivteck has joined #nixos
<sphalerite>
work_: you may not be able to boot nixos without letting it set up grub
<sphalerite>
work_: what is the other boot loader?
<ylwghst>
but if remember
<sphalerite>
If it happens to be systemd-boot, that would be convenient, since it allows collaboration between different distros a lot more easily
<work_>
sphalerite: Manjaro
<ylwghst>
theres way to disable grub-install while nix-build
<work_>
sphalerite: Grub 2
<sphalerite>
oh yeah no grub is a pain because it relies on a single config file…
<xelxebar>
sphalerite: Thank you. In this case, I was specifically trying to avoid munging nixpkgs/config.nix.
<xelxebar>
Where can I find information on what the 'with' keyword is doing? I'm having trouble searching for it.
<sphalerite>
xelxebar: yeah then you'll want to do what clever wrote
<ylwghst>
work_: you can define your other distro in configuration.nix
<sphalerite>
xelxebar: Do you get what inherit does in a let block?
<ylwghst>
sphalerite: good question. can you explain it? :-)
<work_>
sphalerite: The last time I installed Xubuntu , I didn't install the bootloader, So I manually added after Then grub-update inside Manjaro and it was OK. Can I do the same for NixOS?
<sphalerite>
let inherit (x) foo; binds the value x.foo to the name foo. with x; brings everything in x into scope
<sphalerite>
work_: that probably won't work right since nixos generates lots of boot entries that can't be autogenerated by os-prober
hotfuzz has joined #nixos
<sphalerite>
work_: you can probably do it the other way round — have nixos generate a menu entry for manjaro — though
<sphalerite>
xelxebar: so `with x;` is like `let inherit (x) [every name in x]; in`
<xelxebar>
Oh! That's exceedingly clear and simple. Thank you
<sphalerite>
xelxebar: in the case of what clever wrote it could also just be `(import <nixpkgs> {config.permittedinsecurePackages = …;}).foo`
srdqty has quit [(Ping timeout: 240 seconds)]
<xelxebar>
Your pointers also helped me find the relevant docs. Apparently, the term I was looking for is with-expression
<sphalerite>
but with is handy for quick-n-dirty stuff, or for systemPackages (with pkgs; [a b c] instead of [pkgs.a pkgs.b pkgs.c]) or if you need to use a lot of library functions (with pkgs.lib; …)
<xelxebar>
In the 'inherit (x) a b' syntax, are the parens necessary?
<work_>
Where Should I add `services.xserver.videoDrivers = [ "ati_unfree" ];` in the `configuration.nix` file? anywhere?
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
catch22 has quit [(Remote host closed the connection)]
catch22 has joined #nixos
civodul has joined #nixos
glenn has joined #nixos
alhariel has quit [(Remote host closed the connection)]
alhariel has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
snikkers has joined #nixos
datakurre has joined #nixos
notdaniel has quit [(Ping timeout: 252 seconds)]
glenn_ has quit [(Ping timeout: 260 seconds)]
damke_ has joined #nixos
rogue_koder has joined #nixos
rogue_koder_ has quit [(Ping timeout: 240 seconds)]
<michaelpj>
work_: anywhere in `configuration.nix` will do. It's declarative - there's no ordering
snikkers has quit [(Ping timeout: 240 seconds)]
snikkers has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
<work_>
michaelpj: ok, Thanks
snikkers has quit [(Ping timeout: 240 seconds)]
<xelxebar>
Huh. I'm getting an error when trying to nix-env -u
<xelxebar>
error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/cvd3aydscgyxwrxmjsl50m86z978brsl-nixpkgs-18.03pre118663.0f5eaaf1e9/nixpkgs/pkgs/os-specific/linux/bcc/default.nix:29:27
nixos1022 has joined #nixos
alhariel has quit [(Remote host closed the connection)]
<MichaelRaskin>
And -f '<nixpkgs>' will use NIX_PATH
srodal has joined #nixos
catch22 has quit [(Ping timeout: 248 seconds)]
catch22 has joined #nixos
csingley has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
xelxebar: re: Guix and Nix: Guix uses a Guile-based expression language instead of Nix expression language, and their builders are also Guile-based instead of Shell-based. Guix uses the same store format, though.
reinzelmann has joined #nixos
noobly has joined #nixos
slack1256 has joined #nixos
<work_>
NixOS is taking more than an hour to install, with some endless "CC" and" make"... I'd this how it works?
catch22 has quit [(Ping timeout: 255 seconds)]
<work_>
*Is this...
noobly has quit [(Ping timeout: 260 seconds)]
RayNbow`TU has joined #nixos
<MichaelRaskin>
It depends on how you configure it.
<michaelpj>
work_: normally you should get everything from the binary cache, you should only end up compiling things if you've asked for something it doesn't have
<work_>
Well I added the ati driver which downloaded about 176 mb of data and the xfce desktop
<work_>
Ohhh a torrent of outputs now
pmade has quit [(Ping timeout: 240 seconds)]
iqubic_ has quit [(Remote host closed the connection)]
<work_>
No more "CD"
catch22 has joined #nixos
_habnabit has quit [(Ping timeout: 240 seconds)]
<work_>
*"CC"
dtulig has quit [(Ping timeout: 246 seconds)]
nisstyre has quit [(Ping timeout: 240 seconds)]
Forkk has quit [(Ping timeout: 240 seconds)]
cransom has quit [(Ping timeout: 240 seconds)]
pingveno has quit [(Ping timeout: 260 seconds)]
reinzelmann has quit [(Quit: Leaving)]
<Li[m]>
MichaelRaskin: thanks! that works
<Li[m]>
guess Ill make an alias
<sphalerite>
Yeah nix-env's ui is terrible IMHO
<Li[m]>
nix is a draft
<Li[m]>
like most software
ison111 has left #nixos ["WeeChat 1.9.1"]
<work_>
What's penultimate? it hangs in `/nix/store/xxxxxxxxxxxxxxxxxx-font-penultimate-conf` for like 10 minutes now
<work_>
Oh it's finish
<work_>
Forget to scroll down
<adisbladis>
And nix-env does not even work if you are not using channels..
Forkk has joined #nixos
<MichaelRaskin>
It does, with -f
dtulig has joined #nixos
_habnabit has joined #nixos
pmade has joined #nixos
<MichaelRaskin>
Or if you rewrite ~/.nix-defexpr
<adisbladis>
MichaelRaskin: I meant to say that search is not working
cransom has joined #nixos
pingveno has joined #nixos
<MichaelRaskin>
I think it still works with -f.
<work_>
It just write `Installation finished? `... what's next? Reboot?
<adisbladis>
MichaelRaskin: Oh yeah. It actually does.
<sphalerite>
I almost think some sort of stopgap to improve on nix-env until we get the full redesign with 1.12...
<sphalerite>
work_: yep that should be all
<adisbladis>
It's not super intuitive that you'd have to use -f, it should really work without it.
<adisbladis>
Anyway, I think I'll stick to using grep for search ;)
<sphalerite>
adisbladis: in particular all the other tools accept a file directly without -f
nisstyre has joined #nixos
nisstyre has quit [(Changing host)]
nisstyre has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vFUAT
<NixOS_GitHub>
nixpkgs/master 93cc9b9 Peter Hoeg: kmplayer: add missing X dependencies
NixOS_GitHub has left #nixos []
sivteck has joined #nixos
<work_>
Okay, I just reboot NixOS after fresh install and any of my other systems are in the GRUB except NixOS itself, so what I feared happens now, what's should I do?
<sphalerite>
work_: try enabling OS prober
<sphalerite>
Use the options search to find the exact name of the option, I can't remember it and I'm on my phone
<work_>
sphalerite: but how?
<sphalerite>
nixos.org/nixos/options.html
<sphalerite>
I think that's the search
<sphalerite>
Then put the option in your configuration.nix and nixos-rebuild switch
<work_>
This ting stuck at [OK] Starting X11 server.
<sphalerite>
Flight's about to leave so I need to turn my internet off now, sorry
<work_>
michaelpj: hopefully you can read the output
<michaelpj>
well, is there anything that looks like an error? In particular, X failing to start
<jluttine>
can i specify in configuration.nix what nixos version/channel to use? that is, can i set something to "https://nixos.org/channels/nixos-xx.xx" and change that value to make version upgrades? would it make sense..?
<michaelpj>
work_: there may also be some things in /var/log/X.0.log or similar
<michaelpj>
man configuration.nix for help on options
<work_>
Am sorry but I didn't have to do any thing like that with other didtro so
<work_>
I feel like a complete nooob now
Itkovian has joined #nixos
<michaelpj>
hm, although it looks like we should try a bunch of drivers by default
<michaelpj>
tbh, at this point it's a bit of a case of try and google to figure out what's wrong and then maybe we can work out what we need to do to fix it
<michaelpj>
driver issues are always a massive pain
<work_>
Ok
<work_>
my phone to talk currently
<jluttine>
michaelpj: ok, thanks. though i couldn't get that SO answer to work.. i added this to my nix.nixPath list: "nixpkgs=https://nixos.org/channels/nixos-17.09/" and ran "nixos-rebuild build" but it didn't build anything new (trying to upgrade from 17.03 to 17.09)
<work_>
Can I dd my love USB and put an Ubuntu ISI on it ?
<work_>
*live
<work_>
*ISO
<michaelpj>
work_: perhaps you should try sphalerite's suggestion so you can at least boot back into your other OSs first? it looks like you just need to set `boot.loader.grub.useOSProber = true;` in configuration.nix and `nixos-rebuild switch`
<LnL>
jluttine: I think the channel name has to be nixos for nixos-rebuild
Ivanych has joined #nixos
<work_>
Will The rebuild Takes time?
<michaelpj>
jluttine: try passing the same thing with `-I nixpkgs=...` and see if that does anything? that way we can see if it's the NIX_PATH bit that's wrong or the nixos options
<work_>
michaelpj:
<michaelpj>
work_: should be pretty fast
p4cman has joined #nixos
<michaelpj>
LnL: I thought if you were setting nixpkgs explicitly it worked that way?
<jluttine>
LnL: changed nixpkgs=... to nixos=... but still didn't upgrade
<michaelpj>
jluttine: looks like you're maybe mixing up the two answers in that question? If you're setting nixpkgs= you have to point it at the tarball
<jluttine>
when running nixos-rebuild build -I nixpkgs=https://....
JosW has joined #nixos
<LnL>
ah, NIX_PATH entries should point to a tarball
<jluttine>
michaelpj: very likely that i'm mixing up things..
<jluttine>
but is it nixpkgs that i need to set or something else?
<michaelpj>
the other one is something about setting some nixos option I haven't seen before...
<jluttine>
michaelpj LnL: yep, with that tarball url it seems to start upgrading. i'll try that in configuration.nix
<LnL>
any reason you're not just using nix-channel?
<michaelpj>
shame it doesn't seem to give you a useful error when you put the wrong thing in your configuration
<jluttine>
doesn't do anything when i set it in configuration.nix :/
<work_>
`boot.loader.grub.useOSProber = true;`
<LnL>
what are you setting exactly?
<jluttine>
LnL: i want to control my version in configuration.nix because i'm managing multiple machines. i want to pinpoint the versions in configuration.nix instead of trying to remember what they are using and manually changing channels
<work_>
That's all?
<michaelpj>
assuming you're just trying to enable os prober and see if that fixes your boot menu
<LnL>
ah, did you start a new shell after the rebuild?
sivteck has quit [(Quit: user missing.)]
<jluttine>
LnL: hmm.. nope. now i did and i guess it started upgrading
<work_>
michaelpj: yes
<michaelpj>
work_: then yes, what I suggested should do that
sivteck has joined #nixos
<LnL>
jluttine: environment variables won't update until you bashrc and friends again
<LnL>
load*
sivteck has quit [(Client Quit)]
<work_>
michaelpj: seems like there is no Internet
<work_>
Lot of build failed
<work_>
Mmmm
adamt has joined #nixos
<work_>
Interesting situation
<jluttine>
LnL: yep, thanks!
sivteck has joined #nixos
<michaelpj>
work_: you should be able to use ifconfig to configure networking
damke has joined #nixos
<work_>
michaelpj: saw how to do that in the guide but now
<work_>
With this terminal
<work_>
I have no idea
damke_ has quit [(Ping timeout: 240 seconds)]
<work_>
michaelpj: can you send me how to config the Ethernet
<michaelpj>
well, at this point it's just standard linux networking tools, so you may have to go google a bit
<michaelpj>
I don't know off the top of my head
jgertm has joined #nixos
<work_>
michaelpj:, ok one last question, can I dd my USB key while its live?
<michaelpj>
"while it's live"?
<work_>
Running live NixOS
<work_>
So I can put another ISI on it
<work_>
Iso
<work_>
michaelpj: at this point that's the only option I have left
<michaelpj>
you're booting from the NixOS you installed, right? so you're not running live NixOS from the USB stick, so you can do whatever you want to it
<work_>
Yeah but with a terminal, I'll have to be blindly guided
<work_>
And I don't think you've time for that
<michaelpj>
sorry, it's already past my bedtime :)
<work_>
michaelpj: thanks
<work_>
Good night
reinzelmann has joined #nixos
adamt has quit [(Ping timeout: 240 seconds)]
iqubic has joined #nixos
schell has quit [(Quit: schell)]
notdaniel has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pasqui23 opened pull request #30855: You get:remove duplicate definition (master...you-get) https://git.io/vFUh4
<NixOS_GitHub>
[nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vFUhD
<NixOS_GitHub>
nixpkgs/master 8f17abf Edward Tjörnhammar: greg: init at 0.4.7
NixOS_GitHub has left #nixos []
sary has quit [(Ping timeout: 248 seconds)]
sary has joined #nixos
vandenoever has joined #nixos
hotfuzz_ has joined #nixos
leat has quit [(Quit: WeeChat 1.9.1)]
hotfuzz has quit [(Ping timeout: 258 seconds)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
Fannar has joined #nixos
vandenoever has quit [(Quit: ䷴៚)]
jluttine has quit [(Quit: WeeChat 1.7.1)]
ertes has quit [(Ping timeout: 248 seconds)]
jluttine has joined #nixos
jluttine has quit [(Client Quit)]
jluttine has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vFTeU
<NixOS_GitHub>
nixpkgs/master 2ef36f2 Peter Hoeg: neomutt: minor cleanups...
<NixOS_GitHub>
nixpkgs/master 2542944 Peter Hoeg: Merge pull request #30401 from peterhoeg/u/mutt...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vFTet
<NixOS_GitHub>
nixpkgs/master 0e4be9e Edward Tjörnhammar: bully: 1.0-22 -> 1.1
NixOS_GitHub has left #nixos []
adamt has joined #nixos
goibhniu has joined #nixos
sivteck has quit [(Quit: user missing.)]
sivteck has joined #nixos
khebbie has joined #nixos
khebbie has quit [(Client Quit)]
jgertm has quit [(Ping timeout: 240 seconds)]
glenn has quit [(Remote host closed the connection)]
ertes-w has joined #nixos
FRidh has joined #nixos
<sphalerite>
work_: the nixos manual along with the options search I linked earlier should be pretty helpful
<sphalerite>
(I'm on my next plane now so I don't have much time again)
<work_>
I reinstall the system actually
lissyx has joined #nixos
leat has joined #nixos
roberth has quit [(Ping timeout: 260 seconds)]
Neo-- has joined #nixos
ssmike has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
<joko>
Good morning, all! I'm trying to run nixos-rebuild switch inside a Python program via subprocess.run, any ideas how to make it working?
<sphalerite>
joko: how is it not working?
<adisbladis>
Should be nothing special.
<sphalerite>
(I'm on a plane, will not be able to answer anymore shortly)
slack1256 has quit [(Remote host closed the connection)]
<joko>
sphalerite: subprocess.run("nixos-rebuild switch".split(), shell=False) <- Fatal Python error: Py_Initialize: Unable to get the locale encoding
<sphalerite>
That seems like a Python problem, not a nixos-rebuild problem
<joko>
I think this happens because of Python being wrapped in the shell of the Python script
<adisbladis>
joko: Let me guess, you are running this in a pure nix-shell?
arjen-jonathan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #30857: ocamlPackages.reason: 2.0.0 -> 3.0.0, ocamlPackages.topkg: 0.8.1 -> 0.9.1 (master...reason) https://git.io/vFTfh
NixOS_GitHub has left #nixos []
<sphalerite>
Yeah check LOCALE and LC_ALL. If you just try running something like echo hello using subprocess you'll probably get the same error
<joko>
adisbladis: funny thing is that I do not, but I do have (pkgs.python35.withPackages (ps: with ps; [ json-rpc pika psycopg2 requests sqlalchemy ])) in my environment.systemPackages
<joko>
sphalerite: echo hello works as intended
<sphalerite>
Uh... That's weird
<sphalerite>
Maybe nixos-rebuild involves python at some stage
<joko>
sphalerite: is nixos-rebuild switch running any Python code?
<sphalerite>
I think the main script is perl but I don't really know
<sphalerite>
Anyway time to fly
<sphalerite>
Ttyl
<joko>
Because I had a similar issue when I tried to run a Python 3.6 program on this env
<joko>
Have a nice flight!
<adisbladis>
joko: I think maybe you have PYTHONPATH set to something funky
<adisbladis>
Generally I'd say it's a bad idea to put python in systemPackages
<ertes-w>
in <nixpkgs/pkgs/top-level/python-packages.nix> can i abstract over the python version? i'd like to enable tests for python 2 and disable them for python 3
<adisbladis>
ertes-w: There is a isPy3k thingy you can use
adamt_ has joined #nixos
adamt_ has quit [(Changing host)]
adamt_ has joined #nixos
<ertes-w>
ah, thanks
<joko>
adisbladis: even if I avoid including this to systemPackages, I will have to run nixos-rebuild switch inside a nix-shell, don't you think I will have the same issue?
adamt has quit [(Ping timeout: 248 seconds)]
arjen-jonathan has quit [(Ping timeout: 264 seconds)]
<adisbladis>
joko: I think what's happening now is a strange mix of python versions so I don't think you'll have the same problem.
<joko>
adisbladis: ok then, let me try
mw has joined #nixos
mutagenf1rk has quit [(Ping timeout: 255 seconds)]
<vaibhavsagar>
can I serve a binary cache from S3?
mutagenfork has joined #nixos
<joko>
vaibhavsagar: I think it's doable, isn't this what cache.nixos.org does?
Fannar has quit [(Quit: leaving)]
freusque has joined #nixos
<joko>
adisbladis: I am still getting the same error inside the nix-shell
<vaibhavsagar>
I thought cache.nixos.org uses their own hydra build farm?
<joko>
and there is no Python3 in the systemPackages
<joko>
vaibhavsagar: but they copy them to S3
<vaibhavsagar>
I don't think the binaries are served from S3
<vaibhavsagar>
but if they are I'd love to know how
<jluttine>
i don't understand why /nix is required. why couldn't one have nix store under $HOME/.nix or whatever and still benefit from binary cache? i don't understand
<joko>
jluttine: I think it's because of the way hashes in packages are computated, but I might be wrong
<disasm>
You can, but you have to compile everything from source.
<jluttine>
joko: then i don't understand why the hashes are computed in such a way..
<jluttine>
disasm: why nix doesn't support binary cache for arbitrary store location?
p4cman has quit [(Quit: Connection closed for inactivity)]
kuznero has joined #nixos
sivteck has quit [(Quit: user missing.)]
<kuznero>
Hi All! Is there a separate channel for hydra?
<disasm>
The drv contains paths to dependencies. If you change store path, the hash of derivation changes.
grw has quit [(Ping timeout: 255 seconds)]
<disasm>
kuznero: we try to keep all the nix support in one place, so here is the right place.
<kuznero>
disasm: thanks, plan to try to set it up soonish :) My first impression - it is difficult. Is that just me?
<spacefrogg>
kuznero: Nope. It is. Mainly due to lack of proper documentation.
<joko>
ditto
hamishmack has quit [(Ping timeout: 240 seconds)]
<kuznero>
spacefrogg: are there any alternatives to hydra?
<spacefrogg>
I don't know other CI systems, but now that I have hydra running, I wouldn't want to miss it anymore…
<jluttine>
disasm: ah, ok. would be nice if those store paths could be relative to whatever store path is set. but i understand it's not that easy, if even possible.. :/
sivteck has joined #nixos
notdaniel has quit [(Quit: Leaving)]
<kuznero>
spacefrogg: so, you are completely satisfied with it in the end?
<kuznero>
other than getting it setup in the first place I mean
<spacefrogg>
kuznero: Almost. I have some very special needs that can be accomplished but are not in the scope of hydra right now. So yes, I can do everything I want in the end, but there is room for improvement left.
<kuznero>
spacefrogg: I see
<spacefrogg>
kuznero: These needs are, that I run jobs with extreme memory requirements. Hydra only delegate jobs based on CPU requirements but not memory.
<kuznero>
spacefrogg: ah, interesting. Do you have experience in setting up hydra in docker (swarm or kubernetes)?
<kuznero>
Or maybe you know if it is doable or people do it?
<spacefrogg>
No, no and no. :)
<kuznero>
Why not?
<spacefrogg>
I have a separate VM running hydra-stuff.
<spacefrogg>
My noes were answers to you questions and didn't mean to be judgements…
hamishmack has joined #nixos
<kuznero>
spacefrogg: I see :) thanks for clarifying...
<kuznero>
spacefrogg: do you by chance have a nix configs for setting hydra up that you can share?
<lewo>
kuznero: it's really horrible... so it would be nice to improve it. So let me know if you are really interested about this
<kuznero>
That is massive config...
<grahamc>
Any favorite prepaid SIM cards for DE?
<grahamc>
Cc fpletz
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to release-17.09: https://git.io/vFTqD
<NixOS_GitHub>
nixpkgs/release-17.09 c4db221 Michael Peyton Jones: redshift: allow using geoclue2 loation provider...
NixOS_GitHub has left #nixos []
<fpletz>
grahamc: I looked yesterday but the prices are nearly the same, just a few euros difference… you will find most of them in almost every supermarket, so no rush :)
<grahamc>
Cool! Thanks!
<sphalerite>
So glad intra-EU roaming is free now...
frankqux1 has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Just landed, looking forward to meeting everyone!
<goibhniu>
welcome to munich sphalerite!
<sphalerite>
Thank you :)
frankqux1 has joined #nixos
<kuznero>
Will there be online channel on youtube from the conference?
<sphalerite>
I believe that's the plan
<goibhniu>
kuznero: we'll try, but it looks likely
feepo has quit [(Quit: Connection closed for inactivity)]
adisbladis has quit [(Read error: Connection reset by peer)]
python476 has quit [(Ping timeout: 248 seconds)]
Guest46441 has quit [(Ping timeout: 248 seconds)]
FRidh has joined #nixos
<betaboon>
hello #nixos, another day another problem: i have defined a pythonPackage which contains "requests" in "propagatedBuildInputs". now i have a service that uses python.buildEnv.override to pull that package into environment.PYTHONPATH. now the problem: "requests" is not contained in that pythonEnv oO any thoughts ?
iqubic_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 4 new commits to master: https://git.io/vFTZq
<NixOS_GitHub>
nixpkgs/master 3e29dd0 Franz Pletz: wget: 1.19.1 -> 1.19.2 for multiple CVEs...
<NixOS_GitHub>
nixpkgs/master 4c26199 Franz Pletz: SDL2: 2.0.5 -> 2.0.7 for CVE-2017-2888
<NixOS_GitHub>
nixpkgs/master 5feccdc Franz Pletz: SDL2_mixer: 2.0.1 -> 2.0.2
NixOS_GitHub has left #nixos []
<jluttine>
ArdaXi[m]: ok.. so basically it's quite complicated.. i was just trying to get instructions for a friend, i don't think he'll start compiling nix from source. i thought this could be achieved just by setting some environment variables :/
iqubic has quit [(Ping timeout: 252 seconds)]
sivteck has quit [(Quit: user missing.)]
<ArdaXi[m]>
The location of the nix store is pretty hard-coded, this isn't really something that's possible to make very easy outside of a chroot
<tokudan[m]>
backported firefox-bin 56.0.2 to release-17.09. would be nice to see it merged soon, as the old version of firefox shows nag screens that a new version is available
tv has quit [(Ping timeout: 240 seconds)]
<ArdaXi[m]>
ertes-w: nixos-install _should_ be building with /mnt/nix
<ertes-w>
ArdaXi[m]: i don't know how exactly it works, but my observation suggests that it builds in /nix/.rw-store, and then copies to /mnt/nix/store
<ertes-w>
i don't know how granularly it does that, but i'm running into space issues
iyzsong has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Quit: Leaving)]
tv has joined #nixos
<Li[m]>
could I use some other linux (ie alpine) with nix and try to write a service for a different init system, theoretically?
griff_ has quit [(Quit: griff_)]
<Li[m]>
s/could I/could I theoritically/
proteusguy has quit [(Remote host closed the connection)]
python47` has joined #nixos
<manveru>
Li[m]: sure
<Li[m]>
ya awesome thanks
<hyper_ch>
infinisil: do you autoscrub?
<ertes-w>
Li[m]: i use nix to build docker containers with s6
kiloreux has quit [(Remote host closed the connection)]
<ertes-w>
i even have something like a mini-NixOS for that
<Li[m]>
id love to see it
<manveru>
i have it with runit in docker
<Li[m]>
ertes-w: would love to use it
<manveru>
would love to see s6 too :)
<Li[m]>
and runit too
<Li[m]>
ahah!
<tokudan[m]>
ertes-w: just a guess, but could /tmp be to small for some of your builds? If yes, you could just enable the swap on your harddisk and mount -o remount,size=XXg /tmp to increase the available size in /tmp
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vFT0d
<NixOS_GitHub>
nixpkgs/master 85e79da Tim Steinbach: linux: 4.9.58 -> 4.9.59
<NixOS_GitHub>
nixpkgs/master 2c373d8 Tim Steinbach: linux: 4.13.9 -> 4.13.10
NixOS_GitHub has left #nixos []
<ertes-w>
Li[m]: it's commercial, but if you're patient, i can probably release it as open source
<ertes-w>
i have to ask for permission first
<Li[m]>
lol
<Li[m]>
ppl see software as an asset instead of seeing it as what it really is- cost
<Li[m]>
wed all make a whole lot more money by collaborating
<Li[m]>
anyway its not anybodys fault
<ertes-w>
Li[m]: no, it's really just a legal issue… it's not that my employer wants to keep it behind closed doors, but just an issue of me not being the legal owner, so i can't just release it without permission =)
<Li[m]>
step one: find a small sovereign 'territory' to declare IP illegitimate, and leak/reexport into the public domain everything that any hacker/leaker can push out. done
<Li[m]>
no more proprietary anything
<Li[m]>
well do it
<Li[m]>
matter of time
<Li[m]>
then nobody will care and everybody will just collaborate
<Li[m]>
for truth
<Li[m]>
or correctness
ThatDocsLady has quit [(Quit: Leaving)]
abcrawf has quit [(Remote host closed the connection)]
<ertes-w>
i'm in a lucky position regarding that… we sell service, not software, so there is almost no incentive to keep things closed… just today i contributed paid work to nixpkgs =)
ylwghst has quit [(Remote host closed the connection)]
tgunb has joined #nixos
abcrawf has joined #nixos
FRidh has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vFTuc
<NixOS_GitHub>
nixpkgs/master eae5dfe Tim Steinbach: sbt: 1.0.2 -> 1.0.3
NixOS_GitHub has left #nixos []
freusque has quit [(Quit: WeeChat 1.7.1)]
proteusguy has joined #nixos
FRidh has joined #nixos
kiloreux has joined #nixos
hexamod has joined #nixos
Ivanych has joined #nixos
<infinisil>
hyper_ch: I haven't enable autoscrub, but wanted to do that, thanks for reminding me :P
csingley has joined #nixos
<hyper_ch>
I still don't get how your znapzend entries work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vFTuj
python47` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<ncrashed>
Hi! I want to write down my nixos configuration to iso and burn it to live USB after that. The iso-image.nix works nice, but doesn't support persistent live USB (all changes are dropped after reboot). Does anybody know in which direction I should search to make iso for persistent live usb?
<edef>
ma27: yeah, those are really nice stickers
reinzelmann has quit [(Quit: Leaving)]
<edef>
hmm, I'm fairly sure there's something for having it mount the overlayfs from elsewhere
<edef>
orr you could mount /etc and /home and some other stuff from elsewhere
<ncrashed>
hmm, so it would be less portable and no way to change /nix/store anyway
<edef>
so like, by default it mounts a squashfs and then uses overlayfs with a tmpfs
<edef>
I haven't looked at this code carefully in a while, but I seem to recall there being a facility for using persistent storage for the overlay
<edef>
urgh, okay, fileSystems."/nix/.rw-store" seems to get set to the tmpfs unconditionally but you could mkForce that
<edef>
also welp, why does still use unionfs-fuse when it could be using overlayfs
<ncrashed>
hmm, I tried to replace tmpfs with ext4 and ran into boot problem at stage 1
<ncrashed>
there also sd-image.nix for raspberry, it seems to be persistent, but doesn't have so flexible boot loader as iso-image.nix
<ncrashed>
I think, I can try to merge them somehow
<lebel>
Is there a way to see the list of packages installed system-wide? I'd like to know what's installed when I specify that my desktop environment in plasma5 for example and I need to append in my configuration.nix info to avoid duplicates...
damke_ has quit [(Ping timeout: 240 seconds)]
<lebel>
(the equivalent of yum list on a redhat based distribution)
<infinisil>
lebel: What do you mean by preventing duplicates?
<infinisil>
systemPackages doesn't care about duplicates, you can do systemPackages = [ hello hello hello ] and it will install hello just once
<infinisil>
I'm pretty sure anyways
<lebel>
Well, let say I add a package in environment.systemPackages = with pkgs; [ ... ];
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to release-17.09: https://git.io/vFToG
<NixOS_GitHub>
nixpkgs/release-17.09 31fe38c Piotr Bogdan: mysql55: 5.5.57 -> 5.5.58...
<NixOS_GitHub>
nixpkgs/release-17.09 1a56798 Piotr Bogdan: mysql57: 5.7.19 -> 5.7.20...
NixOS_GitHub has left #nixos []
<lebel>
and that package was already included in the base system of what I requested with a flag like services.xserver.desktopManager.plasma5.enable = true;
<lebel>
(via depencies)
<infinisil>
what you wanna add in systemPackages is the stuff you want to call manually
pie___ is now known as pie_
<infinisil>
enabling this plasma5 option gets you all the dependencies you need for it, but doesn't put it in $PATH generally, so you can't run the binaries it in a terminal
<infinisil>
if you need to run the binaries from a terminal, add it to systemPackages
<Unode>
I've configured mlocate to be the default locate service. After the first indexing seems to work fine. The code however warns: "trace: warning: mlocate does not support searching as user other than root" which doesn't seem to be true (maybe it was in the past). Is this something worth of a bug-report?
mutagenfork has quit [(Ping timeout: 248 seconds)]
<kiloreux>
Is there anyway I stop nix from ignoring my http binary-cache ? It's always opting for the https cache.
<bgamari>
What is the preferred way to make a dependency of an existing nixpkgs derivation optional?
<bgamari>
I see that many packages take enable_* arguments
<bgamari>
but this seems slightly redundant given that you will end up with both arguments for every optional package: one enable flag and another providing the dependency
<bgamari>
other packages appear to just allow dependency arguments to be null
<infinisil>
I don't get it either bgamari, would like to know too
<bgamari>
I'm glad I'm not the only one flummoxed by this
<infinisil>
Oh actually, I think I might just got it
root_ has quit [(Remote host closed the connection)]
root has joined #nixos
<infinisil>
Oh no
root is now known as Guest35975
<infinisil>
since I have all my music running on a server, I can't listen to music on the train to Munich because I don't have cheap internet :(
<sauyon>
rip
<infinisil>
I do have the music locally, maybe I can get a local mpd server running in the 3 hours left until I need to go
<sauyon>
erm
<sauyon>
why not just use a music player
p4cman has joined #nixos
<infinisil>
mpd is a music player?
<infinisil>
It's literally "Music Player Daemon"
<sauyon>
right but why do you need the server when you could just use like
<sauyon>
quodlibet
<sauyon>
or rhythmbox or banshee or like mpv or something
<infinisil>
because then I'd need to set that up too, I know how to set up mpd already
kiloreux has quit [(Remote host closed the connection)]
<sauyon>
I suppose
kiloreux has joined #nixos
<infinisil>
and why use a nasty GUI when I can just use a lightweight daemon!
<infinisil>
Hmm, okay so here's a nix (os module) question: How can I have a single file like `{ config, ... }: { <shared config> } // optionalAttrs (config.someCondition) { <conditional config> }`?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] csingley closed pull request #30850: nixos/rtorrent: add rtorrent tmux service (user and system) (master...rtorrent) https://git.io/vFUbo
NixOS_GitHub has left #nixos []
<infinisil>
Using this gives me an infinite recursion error, which is expected
<infinisil>
Oh I have an idea
<toogley>
this commit https://github.com/NixOS/nixpkgs/commit/8838d8b7e246e46728cb694edde157aed79208b1 was just pushed to to release-17.09 branch. however, when i try to update my nixos laptop, i still receive the error this commit should fix. therefore, i conclude that although i used sudo nixos-rebuild switch --upgrade the commit is not in the 17.09 nix-channel or so. is that true? and if so, when will that happen?
MercurialAlchemi has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
<sauyon>
when the build completes who knows when
<hyper_ch>
makefu: you're there?
<infinisil>
Alright my idea didn't work, still infinite recursion
<sauyon>
to be fair 17.09 is only 3 hours old atm so...?
chris111111 has quit [(Quit: Page closed)]
prietoj has joined #nixos
<infinisil>
Oh I have another idea, testing it
MoreTea has joined #nixos
<sauyon>
maybe let cfga = { ... } in config = config // cfga // optionalAttrs (cfga.condition) { ... }?
<prietoj>
Hello. I'm trying to build dcos-cli in nixos and during the process I get an error: "No package 'libffi' found. Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable"
acarrico has joined #nixos
<sauyon>
erm the first config is probably unnecessary
<prietoj>
I have libffi in my configuration.nix though. How can I find the path to "libffi.pc"?
<infinisil>
Damnit, still infinite recursion
<sauyon>
infinisil: try my thingy?
<infinisil>
sauyon: Nope, this wouldn't work either
<sauyon>
drop config
<infinisil>
I can try
<sauyon>
let cfg = {..} in config = cfa // optionalAttrs (cfg.cond) {..}
tgunb has quit [(Quit: Leaving.)]
tgunb has joined #nixos
<sauyon>
oh is the problem in the //
damke_ has joined #nixos
MoreTea has quit [(Ping timeout: 240 seconds)]
<infinisil>
Nope
<sauyon>
could probably add a let cfg = {}; c = cfg.cond in ...
damke has quit [(Ping timeout: 240 seconds)]
<infinisil>
I also tried imports = optional (cfg.cond) [ <config> ]
<infinisil>
but no luck
arjen-jonathan has quit [(Quit: WeeChat 1.9.1)]
<goibhniu>
hi sphalerite, can I PM you some contact details? ... if you still plan to make it out to the conference location this evening
cement has joined #nixos
<sauyon>
let cfg = {cond=true;}; in { config = cfg // (if (cfg.cond) then {} else { blah = true; }); }
<sauyon>
works fine for me infinisil
<infinisil>
yeah but my condition is from config
<sauyon>
right I'm saying move the config out into cfg
<infinisil>
e.g. cond = config.networking.hostName == "foo"
tgunb has quit [(Quit: Leaving.)]
damke_ has quit [(Ping timeout: 240 seconds)]
tgunb has joined #nixos
orivej has joined #nixos
<tgunb>
is someone here on nixos with xfce who does hear music on his/her machine? what player do you use?
<sauyon>
I use quodlibet
<goibhniu>
hi tgunb, have you enabled pulseaudio?
dieggsy has quit [(Remote host closed the connection)]
<sauyon>
wait are you having audio issues I didn't read that correctly
mkoenig has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
srdqty1 has quit [(Quit: WeeChat 1.9.1)]
phaebz has quit [(Ping timeout: 255 seconds)]
taktoa has quit [(Remote host closed the connection)]
srdqty1 has joined #nixos
acarrico has quit [(Ping timeout: 258 seconds)]
<sauyon>
bah I'm trying to add a file to a derivation via patch and it's telling me that patches doesn't exist
<clever>
ncurses5.out 0 s /nix/store/28bbln4vwh7jhfiq4nbmv4dq12d9gl05-ncurses-5.9/lib/libncursesw.so.5
a6a3uh has joined #nixos
Guest43002 has quit [(Quit: Lost terminal)]
goibhniu has quit [(Ping timeout: 248 seconds)]
<hyper_ch>
how do you use nix-locate?
<clever>
you just run it on a file you want to find
<hyper_ch>
nix-locate: command not found
<sauyon>
install nix-index
<hyper_ch>
thx
<stepheng>
anyone able to help a new nix user? i'm trying to install a specific version of a package (gcc-arm-embedded) that has a `version` argument but i'm not 100% sure how to
ma27 has quit [(Ping timeout: 255 seconds)]
<ee1943>
Anyone else seeing an error with an assertion failed on some python packages on the nixos-unstable stream?
<stepheng>
@hyper_ch a version that isn't cached, so i'm trying to use nix-build, but i'm struggling.
<stepheng>
i've been trying stuff like "nix-build --argstr version "4.7-2013q3-20130916" '<nixpkgs>' -A gcc-arm-embedded --check", but that doesn't seem to be right at all
<stepheng>
also, not sure if the version in that version string is right, just an example
roberth has quit [(Ping timeout: 246 seconds)]
<hyper_ch>
never used nix-build
<sauyon>
hyper_ch: try running nix-index with -f <path to nixpkgs checkout>
<sauyon>
some expression is probably broken
<hyper_ch>
path to nixpkgs checkout?
Itkovian has quit [(Ping timeout: 258 seconds)]
<sauyon>
oh you don't have a clone of nixpkgs yet
<sauyon>
you'll want one of those
adamt has joined #nixos
<sauyon>
.
<hyper_ch>
not really
<hyper_ch>
that sounds like it'll slurp up a lof of space
<stepheng>
yeah, the idea is to run this on travis-ci, so space & clone time get to be an issue
<sauyon>
stepheng: it's probably something you use packageoverrides for
orivej has quit [(Ping timeout: 240 seconds)]
Capprentice has quit [(Remote host closed the connection)]
<stepheng>
ok, gotcha. even if the nix package has a version argument? i understand pinning the nix package to a specific hash if it doesn't have the version string, but i thought with the version string there would be some way to pass the package the formula the version
<hyper_ch>
sauyon: great - error: attribute ‘ghc-events_0_6_0’ missing, at /nixpkgs/pkgs/development/haskell-modules/configuration-common.nix:869:59
Capprentice has joined #nixos
roberth has joined #nixos
<sauyon>
wooo nice
<hyper_ch>
cloning the whole thing now
<sauyon>
:/
schell has joined #nixos
pxc has joined #nixos
<hyper_ch>
btw, why are you still in here and not en route to near-Munich?
<hyper_ch>
even full clone of nixpkgs yields same ghc-events error
<sauyon>
oh the full clone is the same as the depth 1 clone
<sauyon>
you just get history
<sauyon>
I guess the thing to do is to find a tag that works and use it...
<hyper_ch>
could you check where I can find libstdc++.so.6 ?
<sauyon>
isn't that just gcc
a6a3uh has quit [(Quit: Bye)]
<hyper_ch>
no idea
Tehnix has joined #nixos
<sauyon>
yeah looks like gcc has it
<stepheng>
@hyper_ch @sauyon thanks for the help, i have some new things to look at
a6a3uh has joined #nixos
stepheng has quit [(Quit: Page closed)]
<hyper_ch>
sauyon: hmmm...... didn't help
<hyper_ch>
still complaining about lib not found
<Tehnix>
Having a bit of a problem running `nix-shell -p arcanist` on macOS High Sierra :confused: Basically getting an error on building a dependency, and am not quite sure how to continue from `builder for ‘/nix/store/g8sig0qlyr2kxifnwg0yf4wb6hm7pwsp-php-7.1.9.drv’ failed with exit code 2`
hotfuzz_ is now known as hotfuzz
Itkovian has joined #nixos
<sauyon>
hrm
<sauyon>
what are you doing?
leat has quit [(Quit: WeeChat 1.9.1)]
<hyper_ch>
trying to get a .deb file to run
<sauyon>
ah
<hyper_ch>
since I fail to build it
peacememories has joined #nixos
<hyper_ch>
rtorrent: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
cyris212 has quit [(Quit: WeeChat 1.9.1)]
<sauyon>
yeah so nix screws with library paths and stuff
<hyper_ch>
that's what I'm trying to fix with patchelf
<lebel>
Quick question, let say I went to unstable for a while and I'd like to bring back my system to stable, what's the proper way to do it and avoid using anything from unstable?
<ldlework>
rycee by what mechanism does home-manager get automatically updated? Is it from the mere fact of being installed as a Nix package? Or is home-manager using home-manager as a builtInput or something like that?
<sauyon>
have you looked at the rtorrent nix expression
<hyper_ch>
lebel: did you alter the environemnet version var inthe configuration.nix?
<sauyon>
in any case I need to go unfortunately
<hyper_ch>
lebel: system.stateVersion I mean
<hyper_ch>
sauyon: they build it from source
<hyper_ch>
sauyon: it's no use
<sauyon>
ah :/
<hyper_ch>
and I fail to build the rtorrent-ps version myself
MercurialAlchemi has quit [(Ping timeout: 246 seconds)]
<hyper_ch>
libtorrent-ps works though
<sauyon>
hrm well
<sauyon>
I'll take a look later and ping you, perhaps?
<hyper_ch>
sure
<hyper_ch>
if I'm still here
<sauyon>
email?
<ldlework>
What is the best NixOS Option type for accumulating lines of a config file from multiple modules?
<hyper_ch>
I will stay in here
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hyper_ch>
but I might be sleepign
<ldlework>
a list of strings?
<sauyon>
mk
Capprentice has quit [(Remote host closed the connection)]
<ArdaXi[m]>
So… I'm turning an old Solaris box into NixOS, and I had to replace one disk, so the zpool is currently resilvering, is it going to be safe to run a nixos-install? I'm obviously not going to reboot it until it's done
srdqty1 has quit [(Client Quit)]
<lebel>
I'll test that... I don't think I did that specifically. Anyway, the thing is, something broke between two generations on my system, and I don't see anything major that was changed in my configuration.nix.
srdqty1 has joined #nixos
<gchristensen>
ArdaXi[m]: I mean, its zfs, soo it shouldbe able to handle the write volume while resilvering, but I'd not just too avoid tempting fate
lebel has quit [(Remote host closed the connection)]
srdqty1 has quit [(Client Quit)]
<ArdaXi[m]>
Yeah… it's a raidz2 and only one disk, I'm very happy I decided to go from z1 to z2, makes this a lot less nerve-wracking
srdqty1 has joined #nixos
<gchristensen>
ouch yeah if you want to keeep data on it ... I'd wait :)
<ArdaXi[m]>
Only 13 more hours to go
<gchristensen>
juuust to be sure
<rycee>
ldlework: If you are using the home-manager module and have `programs.home-manager.path` set to a http(s) path then that will result in Nix downloading the repo whenever you do a home-manager switch or build (modulo some caching). So you'll always use up-to-date modules and since the home-manager module installs the home-manager tool it will also be kept up-to-date.
<ldlework>
👍 I want to try to replicate this for home-manager-helper
<ldlework>
thanks for the reply
<gchristensen>
ArdaXi[m]: oh it already is z2... probably fine
FRidh has joined #nixos
<cransom>
ArdaXi[m]: there are settings to tweak if you want resilvering to go faster. the defaults iirc are very restrained as it assumes a working system that it doesn't want to steal to much io from
nh2 has joined #nixos
<ArdaXi[m]>
It's already going at 90 MB/s, I doubt it's going to get much faster tbh, though I'll look into that
srdqty1 has quit [(Client Quit)]
<rycee>
ldlework: Well, in the end it is pretty simple. The home-manager tool adds home-manager=$path to NIX_PATH and then the rest of the code refers to files within the HM project using this, e.g., <home-manager/modules/blah.nix>.
srdqty1 has joined #nixos
<ldlework>
I see
<ldlework>
I guess you have the advantage that you could always inject a module that includes programs.home-manager.path set to the url and you could always add home-manager to home.packages
lebel has joined #nixos
<ldlework>
since you're the one eval'ing the packages
<ldlework>
err modules
tgunb has quit [(Quit: Leaving.)]
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
leat has joined #nixos
tgunb has joined #nixos
<FRidh>
Is there a single-user installer for Nix that does not require root? I am looking for a solution not using proot, and am thus willing to rebuild everything.
<ben>
are there still no non-root ways to set up a user-local bind-mount for /nix?
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
kiloreux_ has joined #nixos
<makefu>
hyper_ch: yes i am here :)
<hyper_ch>
makefu: too late.... well.... got that question solved... but still struggling with rtorrnet-ps :(
<makefu>
what are you trying to achieve?
kiloreux has quit [(Ping timeout: 260 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
makefu: compiling rtorrent-ps
<hyper_ch>
this is driving me nuts... it should be working
<makefu>
do you have a wip derivation?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hyper_ch>
wip?
schell has quit [(Quit: schell)]
<hyper_ch>
makefu: the two expressions... libtorrent-ps.nix works... but rtorrent-ps.nix complains
<Twey>
FRidh: Basically just compiles Nix with --with-store-path=$HOME/nix/store
<makefu>
hyper_ch: work-in-progress
adamt_ has joined #nixos
adamt_ has quit [(Changing host)]
adamt_ has joined #nixos
<hyper_ch>
makefu: maybe I should also go to Nixcon and keep everyone hostage until it's fixed ;)
srdqty1 has joined #nixos
<makefu>
not sure if this will work out ;)
<hyper_ch>
still got my army rifle
<makefu>
btw i have rutorrent running, this works well enough for me
srdqty1 has quit [(Client Quit)]
<hyper_ch>
it always fails at command_pyroscope.cc:31:38: fatal error: sigc++/adaptors/bind.h: No such file or directory
<hyper_ch>
makefu: forget rutorrent
<hyper_ch>
rt-ps looks nice and lets you automate just about everything
<Twey>
FRidh: The script is pretty old, but so long as you don't mind rebuilding everything I see no reason why the approach shouldn't work. Might require a little tweaking.
srdqty1 has joined #nixos
adamt has quit [(Ping timeout: 252 seconds)]
nschoe has quit [(Quit: Program. Terminated.)]
frankqux2 has joined #nixos
<makefu>
hyper_ch: do you have a derivation description for rt-ps which should build from source in a pastebin?
<hyper_ch>
and it's not even a symlink -r--r--r-- 3 root root 135396 1. Jan 1970 /nix/store/4ysajg908l835nlp4w67z6zmqqfrcblp-libsigc++-2.10.0/include/sigc++-2.0/sigc++/adaptors/bind.h
<makefu>
mhh yes
<makefu>
maybe you need to add it somewhere in the configure flags so it gets included
tgunb has quit [(Quit: Leaving.)]
<makefu>
because it does not seem to be included in the last gcc call
<hyper_ch>
how to do that?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<makefu>
hyper_ch: maybe make it part of configureFlags, i check this real quick
jtojnar has joined #nixos
<ahstro>
yorick: Cool, thanks!
<infinisil>
Or lib.concatStringsSep ", " [ "a" "b" "c" ] -> "a, b, c"
<ertes-w>
i'm building a live-USB system using <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-base.nix>… is there a way to include the closure of some derivation in that image without actually adding it to the live system itself?
<makefu>
hyper_ch: seems you are not using sigcpp as buildInput
<hyper_ch>
tried with libsigcxx
Acou_Bass has quit [(Read error: Connection reset by peer)]
<infinisil>
ertes-w: Um, that makes no sense, the live usb needs the closure to run correctly
<infinisil>
ertes-w: What do you really wanna do?
<infinisil>
the closure of the system are all the runtime dependencies
Acou_Bass has joined #nixos
<ertes-w>
infinisil: i will install a NixOS system with a certain configuration from that particular image, and i would like to reduce the number of downloads it needs to make
<hyper_ch>
makefu: but I'll retry again with libsigcxx
<infinisil>
ertes-w: Then make a separate image for each configuration
roberth has quit [(Ping timeout: 240 seconds)]
<ertes-w>
in other words: i want to build the live system as well as most of the target system, and then include the closure of the target system, so it needs to fetch much less
<makefu>
why doesnot the aur package depend on libsigcpp ?
srdqty1 has joined #nixos
<ahstro>
infinisil: I just wanted my code to look a bit neater, and to learn more about Nix
<hyper_ch>
makefu: I have no idea
<pie_>
anyone know how to get xclip to work with plasma? :/ or something like that
MichaelRaskin has joined #nixos
roberth has quit [(Ping timeout: 240 seconds)]
<infinisil>
ahstro: I see, got an example of something you think could be done better?
<infinisil>
I'm on my way to Munich \o/
<makefu>
hyper_ch: this is some seriously fucked up shit. you may be able to add the include path via makeFlags somehow ...
<hyper_ch>
makefu: thx for looking at it
[0x4A6F] has joined #nixos
<hyper_ch>
infinisil: so you're going?
damke_ has joined #nixos
<infinisil>
I've said it a number of times, yes!
<gchristensen>
infinisil: yes!
dejanr has quit [()]
<infinisil>
🎉
<hyper_ch>
but you're still here
damke_ has quit [(Read error: Connection reset by peer)]
<infinisil>
Nixcon is tomorrow
<infinisil>
And I'm on my way now
FRidh has quit [(Ping timeout: 240 seconds)]
damke_ has joined #nixos
<hyper_ch>
:)
<infinisil>
Are you serious, the train has power outlets, but they don't have power --.--
<hyper_ch>
ICE?
<infinisil>
I think so
<ben>
I've never not had power on ICEs
<infinisil>
These better start working soon, I'll be here for a while
<hyper_ch>
maybe that outlet is defect
<ben>
I've never not had them work the moment I got on
<LnL>
worked fine for me
<hyper_ch>
tried another one?
<ben>
tried another device?
<ben>
have you tried turning the train off and on again?
alhariel has joined #nixos
ertes-w has quit [(Ping timeout: 240 seconds)]
<infinisil>
There's loads of people, can't get a different seat
erictapen has joined #nixos
<hyper_ch>
good that you have a power pack with you, right?
damke_ has quit [(Ping timeout: 240 seconds)]
lissyx has joined #nixos
<ldlework>
I'm confused, it seems fetchzip is supposed to fetch a zip, and then unpack it, and then it resolves to a path in the store of the unpacked contents
<ldlework>
but it appears I'm getting a path to the zip file
<infinisil>
Ah, that should be pretty easy actually
<ldlework>
I don't know how to move things into the profile proper..
<ldlework>
I've only ever used Nix to move things into my home directory 🤣
<infinisil>
make a derivation where this application is in $out/Applications
<infinisil>
then add that derivation to home.packages
<ldlework>
oh duh
<ldlework>
oh ok
<ldlework>
I think I understand why
<infinisil>
I think this should just work (tm)
<ldlework>
because those contribute to the derivations that HM itself will build with the output directory set to the thing that gets set as the profile
<ldlework>
IE that's how things get to .nix-profile/bin afterall
<ldlework>
thank you
jensens has quit [(Ping timeout: 255 seconds)]
<ldlework>
hell I can just add the fetchzip to the home.packages right?
ylwghst has joined #nixos
<ldlework>
heh I wonder if name = "Applications/Hammerspoon.app"; will work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vFkIX
<makefu>
maybe you also need to define to add the lib in configure libs in the linker
<makefu>
but this should do the trick
nipperstick has joined #nixos
lebel has joined #nixos
tdc has quit [(Read error: Connection reset by peer)]
tdc has joined #nixos
alhariel has quit [(Remote host closed the connection)]
alhariel has joined #nixos
mizu_no__ has joined #nixos
griff_ has joined #nixos
adamt_ is now known as adamt
goibhniu has joined #nixos
Itkovian has joined #nixos
<adamt>
Hi. I'm trying to make a module with a systemd-unit, but I can't figure out how to set environment variables in the service section. Can anybody point me in the right direction?
glenn has joined #nixos
bitchecker has quit [(Ping timeout: 252 seconds)]
alhariel has quit [(Quit: Leaving)]
jensens has joined #nixos
ertes has joined #nixos
a6a3uh has quit [(Quit: Bye)]
alhariel has joined #nixos
endformationage has joined #nixos
alhariel has quit [(Remote host closed the connection)]
<adamt>
So apparently I can do systemd.services.myservice.serviceConfig.Environment = [ "a=b" "c=d"];, but it seems a bit silly that i cannot be defined as a set instead
<adamt>
alp, yes, but the same doesn't seem to work when creating the module, not using it
ahstro has quit [(Ping timeout: 260 seconds)]
<adamt>
''Environment = { foo = "bar"; };'' results in ''error: cannot coerce a set to a string, at /etc/nixos/nixpkgs/nixos/modules/system/boot/systemd-lib.nix:88:10'' =/
<adamt>
(same with lowercase 'environment')
a6a3uh has joined #nixos
<alp>
adamt, well this would be part of the implementation. can you paste your module's code somewhere?
<alp>
adamt, right so I think you just need to move it one level up
<alp>
and with the lowercase 'e'
<adamt>
oh, why isn't it on the serviceConfig-level? That's where it belongs in the generated systemd-unit
<adamt>
alp, that works. Thanks. Still not really intuitive (since you can also use serviceConfig.Environment and set it to a list of strings containing the env vars)
ylwghst has quit [(Quit: Lost terminal)]
<cransom>
adamt: nothing stops you from using serviceConfig, but as your comment says 'works but is ugly'. `environment` is how the module writer worked it out
<alp>
adamt, I think both are available to you. the one in serviceConfig probably just gives you a raw interface to systemd's Environment config thingy, while the other one, one level up, is a more "Nix-y" interface to this. but maybe there are subtle differences that I'm not aware of.
trevorriles has joined #nixos
adc has quit [(Ping timeout: 240 seconds)]
trevorriles has quit [(Client Quit)]
trevorriles has joined #nixos
drakonis has joined #nixos
<adamt>
alp, it must be something like that. I also noticed that using serviceConfig.Environment, things are added to the bottom of the list of env vars in the unit file, while vars created with the upper level version create the vars along with the auto generated ones (PATH, TZDIR, ..). Hmm.
<adamt>
cransom, that's cool, it's just a weird design. Is there any documentation covering things like these, or is it mostly a matter of digging through the source?
<adamt>
cransom, as a newbie it's not really intuitive that that also applies for module writing though. :P
<alp>
adamt, I'm thinking that if the "ugly" one is still there, there must be a reason. But can't find that anywhere, maybe you'll want to ask about this on the mailing list if you really want to know, questions don't get lost as easily there.
<cransom>
adamt: knowing if a package works after writing an expression is easy. writing a module is far more art than science
<betaboon>
i propose refactoring the nixos logo to a simple asterisk, as it has exactly the same amount of lambdas :P
<adamt>
betaboon: "'*' <= Can you count the number of lambdas? 92% of all people get the answer wrong!" :P
<betaboon>
funny enough my font shows asterisk with only 5 arms xD
<betaboon>
so to be more specific, a 6 arm asterisk
<ldlework>
maybe later I'll builds some options for building a config dynamically
<kiloreux_>
When generating a directory for binary-cache through nix-push. How can I specify the directory by nix-serve ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ekleog opened pull request #30870: clamav module: make services.clamav.daemon.enable actually work (master...clamav-cleanup) https://git.io/vFksk
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<adamt>
fpletz: basically I'm having a hard time even figuring out how to get it to start, since it seems impossible to avoid the PID-file (does Kea fork? =/), and the current way it's built with --localstatedir=/var causes kea to try and write the PID-file to something like '/var/kea/jl8gngsvx4jacz5dw24izc8vh3yylh6c-kea.kea-dhcp4.pid'. Do you know of any workarounds?
<ldlework>
how am I supposed to copy `release` to $out if I can't refer to it?
<ldlework>
oh its complaining about referring to release
<ldlework>
erm
<clever>
ldlework: pkgs.writeText
<ldlework>
clever what's the difference?
<clever>
ldlework: toFile cant have any dependencies, and it works at a nix level during the eval so its platform independant
<clever>
ldlework: writeText is just a wrapper around "echo ${foo} > $out", so it runs in a sandbox, and the $out hash depends on what build of echo you use
<clever>
ldlework: but writeText can do files within $out, it can +x things, and it can depend on things
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ldlework>
clever I'm guessing I do not just replace toFile with writeText given that writeText returns a derivation
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
<clever>
ldlework: writeText accepts 2 strings, a name, and the text to be written
<ldlework>
Right, I get that..
<clever>
infinisil: and it has variants line writeScript (+x's the file) and writeScriptBin (puts it in $out/bin/), that have the same API
<clever>
this uses some of nixpkgs to setup the derivation
<clever>
but the derivation itself, makes no use of the stdenv
<ldlework>
why does my pkgs argument missing the writeFile attribute?
<clever>
if you could provide a staticly linked shell, and you put that builder in a normal file and did ./builder.sh, this derivation can run entirely without nixpkgs
<clever>
its writeText
<ldlework>
oh jeeze
<clever>
it is a bit confusing, there is also a writeTextFile, with a different api
<clever>
and several others
<fpletz>
adamt: I have a hacky systemd service definition somewhere but am currently at a restaurant... will send you a link
erictapen has quit [(Ping timeout: 264 seconds)]
<adamt>
fpletz, thanks, no hurry, i'm hitting the sack soon, enjoy your dinner. :-)
ssmike has quit [(Ping timeout: 255 seconds)]
ssmike has joined #nixos
taktoa has joined #nixos
slack1256 has quit [(Ping timeout: 248 seconds)]
simukis has quit [(Quit: simukis)]
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to python-unstable: https://git.io/vFkWt
<NixOS_GitHub>
nixpkgs/python-unstable d8297ad Frederik Rietdijk: FIXUP
<NixOS_GitHub>
nixpkgs/python-unstable d8b3a9b Frederik Rietdijk: FIXUPS
NixOS_GitHub has left #nixos []
<kiloreux_>
When generating a directory for binary-cache through nix-push. How can I specify the directory by nix-serve ?
<kiloreux_>
Or does nix-serve work differently and independently from nix-push ?
bennofs has quit [(Client Quit)]
<clever>
kiloreux_: nix-serve just serves everything in /nix/store/
<kiloreux_>
Even if there's no NAR files ?
<kiloreux_>
nor manifest
<kiloreux_>
I thought we use nix-push to generate those.
<clever>
kiloreux_: it will dynamicaly generate the NAR on-demand, compressing up the storepaths your using normally
<clever>
nix-push will generate nar's of the given paths, and make a directory suitable for a static website, just upload it anywhere
<clever>
nix-serve is dynamic, and will look in /nix/store/ for every request, and generate the NAR on the fly
elasticdog has quit [(Ping timeout: 248 seconds)]
<kiloreux_>
Great, so I think nix-push is the best for my use-case.
<kiloreux_>
So nix-push is to be used with just standard web-server ?
<kiloreux_>
since I am putting the generated content on the local machine.
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
<ldlework>
but when I just do home-manager build, I don't see any evidence of hammerspoon in the result/ directory
<kiloreux_>
From the nix-manual I can see that nix-push has no --add-root. yet when I execute it, I get "warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector"
kiloreux_ has quit [(Quit: Leaving)]
<ldlework>
I do see building path(s) ‘/nix/store/q8jxcn2jnqkzj2wf8jmx5nvp3232r5aa-Hammerspoon-0.9.57’
<ldlework>
so it is building that derivation...
kiloreux_ has joined #nixos
kiloreux_ is now known as kiloreux
kiloreux is now known as kiloreux_
<clever>
ldlework: just use runCommand, not builder
<ldlework>
clever you mean runCommand over mkDerivation?
<ldlework>
it seems to set the whole Applications folder to be a symlink to itself?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFkli
<NixOS_GitHub>
nixpkgs/master 7ce8483 Frederik Rietdijk: python.pkgs: updates
NixOS_GitHub has left #nixos []
<clever>
ldlework: thats just how buildEnv works, let me see
<kiloreux_>
How can I install python with `nix-env`. I don't want to use nix-shell neither nix-build? (Looking to use SimpleHTTPServer module from python to test some things) ?
<clever>
ldlework: in the case of bin, lib, and share, there are multiple things providing those directories
<clever>
ldlework: so buildenv has to make a bin directory, then symlink each item within
<clever>
ldlework: but only 1 thing provides Applications, so the whole thing is linked
<ldlework>
clever so that means our derivation is just broken
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vFklQ
<NixOS_GitHub>
nixpkgs/staging 8634a2e Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
<ldlework>
and not outputting to Applications
<clever>
ldlework: check the nix-build output and find the path for hammerspoon, when it re-built it with the new script
<clever>
ldlework: and ls that
<ldlework>
└── Applications
<ldlework>
└── Hammerspoon.app
<ldlework>
Hammerspoon.app has all the data too
<ldlework>
so the cp worked
<ldlework>
Why isn't this build's $out getting merged with the rest of the packages?
<ldlework>
I'm adding it to home.packages
<clever>
unknown
bennofs has quit [(Ping timeout: 258 seconds)]
<ldlework>
rycee eeeeeeeee
<Dezgeg>
maybe Applications just isn't in pathsToLink ?
<clever>
Dezgeg: then how did the emacs one get symlinked?
<ldlework>
ignore the "poop" lol, just an echo statement to change the derivation to get it to build again
Capprentice has joined #nixos
ahstro has joined #nixos
<ahstro>
My `$EDITOR` is still `nano`, even after setting `environment.variables = { EDITOR = "nvim" }` and rebuilding. What am I missing?
<ldlework>
it failed to create an alias to Hammerspoon because the nix-profile/Applications is still an Emacs symlink
<ldlework>
126:131: execution error: Can’t make file "MacintoshHD:nix:store:qgnj58776a3syzpjn99yiax67hfqa6lk-emacs-with-packages-25.3:Applications:Hammerspoon.app" into type alias. (-1700)
<ldlework>
But you can see in the tree output, that Hammerspoon was written to Applications just like Emacs
<ldlework>
ahstro check the actual rendered config file
<ldlework>
maybe editor is set by something else later
<ldlework>
taking out my activation script fixed it
[0x4A6F] has quit [(Quit: [0x4A6F])]
<ldlework>
I think my activation script is happening too soon?
<ldlework>
and since it fails, my home directory never gets updated
<ldlework>
and so the old profile stays
<rycee>
Change linkGeneration to installPackages in the dagAfter
<rycee>
installPackages installs the packages in home.packages, linkGeneration links the files in home.file
<rycee>
So you want to run it after installPackages.
<rycee>
Right, that is correct. The script ran to quickly
<rycee>
s/quickly/early/
Lisanna_ has joined #nixos
<c0bw3b>
good evening everyone
<ldlework>
🎉 !!!
<ldlework>
rycee thank you so much
<rycee>
No, problems. Glad we figured it out :-)
<c0bw3b>
i wondered: what's the current process to deprecate a package in nixpgs? do we just mark it as broken and wait for some time ?
Lisanna has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
Is it actually broken?
Lisanna has joined #nixos
goibhniu has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
I guess putting a comment into the expression is also a good idea (in addition to marking as broken)
<Lisanna>
Python has a function called "join", used like ".".join(list) - is there a Nix equivalent of this? I looked through lib/strings.nix and lib/list.nix but couldn't find anything
<Lisanna>
(sorry, got disconnected, not sure if prev message sent)
<MichaelRaskin>
concatStrigsSep
<MichaelRaskin>
concatStringsSep
<Lisanna>
where is that?
<Lisanna>
Oh, strings
<MichaelRaskin>
It is a builtin.
<Lisanna>
Oh, even better
<c0bw3b>
MichaelRaskin: yes source URL is gone _and_ it's been replaced by another package already in the tree
<c0bw3b>
acpi "pmtools" provided 2 commands that are now part of "acpica" (or nixos.iasl)
Lisanna_ has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
Hm. Is it a good idea to drop the package and add an alias?
<adamt>
While hacking on my module, nix once in a while ends up building the nixos-manual, among others. Is it possible to disable that temporarily? It takes ages.
<c0bw3b>
dropping it seems legit since the source is not available anymore but keeping an alias pointing to the new one is a good idea indeed
<srhb>
adamt: Not short of commenting it out, I believe.
<MichaelRaskin>
I think you can disable manual in the system configuration.
<srhb>
nixosManual.enable, yes, but that's just the service.
<srhb>
(I guess that will do if you're nixos-rebuilding)
<adamt>
srhb: Hiya \o/. Do you know where i should go comment it out, then? :-)
<srhb>
adamt: Try what MichaelRaskin suggested if you're building with nixos-rebuild :)
<adamt>
Ah, I'm a slow typer and reader. Thanks guys.
<rycee>
I think services.nixosManual.enable = false should stop the building all together.
<adamt>
srhb: I'm updating a nixops managed VM
<srhb>
ooo
<srhb>
Yeah, makes sense then :)
<srhb>
I thought you might be building release.nix
<adamt>
Nope, but apparently i'm wasting time building release notes and everything :P
<srhb>
Takes a while :P
<work_>
michaelpj: sphalerite: Hi, I finally install NixOS Succefully... Now How to get back my other system on my hard drive from the GRUB without having to remove NixOS?
<srhb>
work_: You can just reboot into them then, with any luck :)
<srhb>
The void thingy sounds fun...
<srhb>
work_: Any idea what ought to be on sda3?
<adamt>
srhb: Void is a Linux distribution
cement has quit [(Ping timeout: 240 seconds)]
<srhb>
Oh!
<srhb>
Well, that makes a lot more sense then :-P
xelxebar has joined #nixos
tdc has quit [(Ping timeout: 246 seconds)]
<work_>
srhb: They are back:)
<work_>
srhb: "The void thingy sounds fun..." Sending this msg from it :D
<srhb>
Ah, good!
<work_>
srhb: That was ScaryEasy
<srhb>
work_: Well, glad it worked! You can extract that config and make it static if you want, or just keep osproper on.
<work_>
srhb: Shouldn't this be added on the "wiki/manuel" ... unless I missed it.
<srhb>
work_: can you double check? It would be nice to PR it if it's missing :)
<work_>
srhb: Make it static? Like what? I don't understand well
<srhb>
work_: I mean, right now the other boots are auto detected when you rebuild. You may want to simply "hard code" them -- that was the first suggestion here earlier, but you didn't have the definitions. It's also fine to use OS prober, if you prefer. In that case, don't change anything :)
<MichaelRaskin>
Most likely it is in NixOS manual. Because option list is autogenerated.
<srhb>
MichaelRaskin: It might be worthy of a specific note in the install section though.
<srhb>
MichaelRaskin: "If you wish to be able to boot another system ..."
<work_>
MichaelRaskin: Yeah defenitely
<MichaelRaskin>
Appendix A options does contain useOSProber.
<MichaelRaskin>
A note in the install section is probably a good idea.
<MichaelRaskin>
I dunno, I don't use that part of NixOS anymore.
ahstro has quit [(Ping timeout: 260 seconds)]
<work_>
I think it would be great to add it in `part 11` in `Chapter 2. Installing NixOS` ... something like, "If you have other system in your hard drive... "
Ivanych has quit [(Ping timeout: 248 seconds)]
orivej has joined #nixos
<srhb>
work_: Can you perhaps open an issue with your suggestions? I'll be happy to work from that. :)
<work_>
srhb: huuu Do I need to read the gideline too?
<srhb>
work_: They're really short :-P
<aristid>
I arrived in Munich/Unterföhring for NixCon!
<srhb>
work_: But they mostly relate to pull requests.
<aristid>
Excited
<srhb>
aristid: I jelly. Have fun :-)
<aristid>
Thanks!
<work_>
srhb: huuu does it have an TL;DR?
<srhb>
work_: No, because it's not TL. ;-)
ylwghst has joined #nixos
<aristid>
Lol my hotel WiFi is throttled to 500 kbit/s
<work_>
srhb: , Okay, filling :)
<infinisil>
aristid: I just did too!
<infinisil>
aristid: The K?
<aristid>
infinisil: yay!
<aristid>
infinisil: no, i'm at Hotel Lechnerhof
<Dezgeg>
I am at The K
<infinisil>
\o/
<aristid>
i wonder if i'm the only one who chose this particular hotel :D
<infinisil>
Dezgeg: Do you happen to know how to get the wlan to work with wpa_supplicant 😅
<aristid>
Dezgeg, infinisil: did you guys arrive in time for the dinner a few people apparently organised? cause my plane landed way too late for that :/
<infinisil>
Well i just arrived, and usually people don't eat dinner at 23:30 lol
<aristid>
haha, so no
<Dezgeg>
I was kinda late for that too
<Dezgeg>
I connected with network-manager
<gchristensen>
I'm at the leonardo hotel next to the wombat
<infinisil>
Damnit, that's the thing that totally broke for me last weeke
<aristid>
hi gchristensen !
<gchristensen>
hiya :)
<aristid>
infinisil: for laptops i think network manager is worthwhile, for better or worse :)
<Dezgeg>
I suppose wpa_supplicant isn't needed since it's an unprotected network
Neo-- has quit [(Ping timeout: 255 seconds)]
<adamt>
fpletz: I got Kea running finally, with my module. If you aren't in progress of making a module, i'll clean it up and create a PR with it.
<adamt>
So I don't think you need to find that systemd unit for me. Have a nice evening. :-)
<infinisil>
wpa_supplicant still needs the ssid, and i need to enter the password and login somehow when it connects
<work_>
First thing I notice is NixOS is very RAM friendly in my -24h experience (XFCE here). Installing package ain't fun though, I sometimes have to logout-login to see the package I installed (Am probably doing it wrong), - Installing package are slow too specially when I add it in `configuration.nix` or Compared to Void Linux.
akaWolf has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
work_: for mere installation of packages you don't need to relogin
<infinisil>
Ohhh, there's wpa_supplicant nixos options now :O
<MichaelRaskin>
Environment variables are different story.
<michaelpj>
if it's the XFCE menu, I think there's a known issue about that not refreshing when you install new stuff
<MichaelRaskin>
Ah.
<michaelpj>
but things should be on your path etc. immediately
voiceftp has quit [(Remote host closed the connection)]
<infinisil>
MichaelRaskin: wpa_cli gives me "could not connect to wpa_supplicant"
<michaelpj>
work_: I think you can do something like `xfce-panel -r` to restart the xfce panel without having to log out and in again, that usually cleared things up for me
voiceftp has joined #nixos
<MichaelRaskin>
infinisil: wpa_supplicant needs to be running, and needs to have the control socket enabled.
<infinisil>
Oh and i got the wlan working btw, all i needed was a key_mgmt=NONE for the ssid, then login with firefox
<work_>
michaelpj: Ohh I hate Plasma now because of XFCE, am totally addicted now XFCE+Windowck plugin :)
<infinisil>
Ah this option: networking.supplicant.<name>.userControlled.enable MichaelRaskin
<work_>
michaelpj: Plasma feels soo irresponsive. And the thin icons are really exagerated
frankqux1 has joined #nixos
<MichaelRaskin>
infinisil: yeah, I think more in terms of wpa_supplicant.conf, I use only parts of NixOS. For wpa_supplicant it is just easier to write the file by hand.
<work_>
MichaelRaskin: You're on Plasma?
<MichaelRaskin>
Nope. Nope. Nope.
<MichaelRaskin>
I use StumpWM, and I think it has the right amount of window decoration.
<nico202>
hi guys, I'm trying to setup hydra under NixOS, but there's a problem. Every link redirects to localhost:3000 instead of hydraURL
<michaelpj>
idk, it used to be slow and ugly, but even on my old machine it's just as fast as XFCE and quite a bit prettier
<fpletz>
adamt: awesome, please do open a PR!
<MichaelRaskin>
I find most of such prettiness net negative.
<MichaelRaskin>
It always ends up like with the iOS calculator, sooner or later.
<infinisil>
While this is really wasteful, I really like running my live wallpaper
<fpletz>
adamt: very much looking forward to a real module! thanks!
<MichaelRaskin>
infinisil: but do you ever see the desktop background??
<MichaelRaskin>
(I do run XScreenSaver with hacks enabled)
<infinisil>
That's what the tranparent windows are for
<infinisil>
:D
<MichaelRaskin>
Well, I run compton anyway. But transparency lowers text contrast!
<infinisil>
Sometimes I turn it off when it gets annoying for some tasks (just added a hotkey for that a few days ago), but mostly i have transparency on, makes the experience so much better in general imo :)
<adamt>
fpletz: Thanks, i'll look into it. Do you plan on upgradring Kea to 1.3 anytime soon? The config was split into more files, so it probably makes most sense to just target the new format in the module.
<mitchty>
out of curiosity, i'm running nix on osx but just updated to the latest staging commit and hit this
<mitchty>
error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /Users/me/src/github.com/NixOS/nixpkgs/staging/pkgs/os-specific/linux/bcc/default.nix:29:28
<disasm>
I use transparency too, but have tiled/full screen i3 windows transparent to the rear background instead of interim windows. then set enough shading it isn't annoying
<fpletz>
adamt: makes sense, do you want to upgrade it? I'll probably won't have time for another week due to nixcon but can review and test your module
<mitchty>
it looks like the read function has a $ in the string used, if I switch it to $$ all is well, I can't be the first to hit this I'd hope, did something change recently how nix evaluates things?
<adamt>
fpletz: I'm not sure how much I have myself in the coming week, but it would be fun getting my feet even more wet and update the pkg myself. Shouldn't be too difficult.