<{^_^}>
[nixpkgs] @xeji pushed commit from @danieldk to master « samba4: 4.7.9 -> 4.7.10 (#48787) »: https://git.io/fxKAG
<pie___>
well...i /seem/ to have gotten it down to: systemctl start network-interfaces.target network-addresses-tinc.iaacluster.service
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
mayhewluke has joined #nixos
mekeor has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxKA9
pie___ is now known as pie_
thc202 has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos
justan0theruser has quit [Ping timeout: 252 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 264 seconds]
Cale has quit [Ping timeout: 260 seconds]
carlosdagos has joined #nixos
Mr_Keyser_Soze has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Lears has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camsbury has joined #nixos
fragamus has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
camsbury has quit [Ping timeout: 264 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
o1lo01ol1o has joined #nixos
Mr_Keyser_Soze has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<pie_>
i think i figured out my problem but im not sure what to do about it
<pie_>
im using this to set up my interface properties https://bpaste.net/show/f905cf0633e0 and i think its having issues because its getting run before the tinc service
<pie_>
so i need to get systemd to run tinc.iaa_cluster.service before whatever that is
<pie_>
dont really know how to do that
fragamus has joined #nixos
jperras has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<pie_>
but those services specify After=sys-subsystem-net-devices-tinc.iaacluster.device ...so what gives?
justanotheruser has quit [Ping timeout: 240 seconds]
jperras has quit [Quit: WeeChat 2.2]
<pie_>
the best guess i have is that i created a circular dependency, and apparently systemd gives no warnings/errors or anything about unsatisfiable orderings or something?
<pie_>
unless the error message i pasted is that...
<pie_>
well not necessarily circular but rather maybe tinc depends on networking, and the address/link scripts on networking-pre and i just made tinc need to be before address/link (i think))
fragamus has quit [Ping timeout: 252 seconds]
dbmikus_ has quit [Read error: Connection reset by peer]
dbmikus_ has joined #nixos
o1lo01ol1o has joined #nixos
<pie_>
ok for starters i typod the service name in my fix... /me waits
<pie_>
well, holy crap i think i got it to work
<dhess>
Anyone here using NixOps to deploy to EC2 instances with targetEnv=none (rather than targetEnv=ec2 ?
jasongrossman has quit [Ping timeout: 264 seconds]
<clever>
dhess: and the testnet deployer you linked above, is being created with terraform, and then nixops manages it via none
<dhess>
which maybe I shouldn't be doing? But I wasn't sure what the right image is for EC2 instances
<dhess>
clever: yeah, which is precisely what I'm doing
<clever>
dhess: just read amazon-image.nix and decide what you want to keep from it?
<dhess>
clever: Considered that but I'd really rather not :) I think that iohk-ops fix will do the trick. I'm about to reboot to find out
<clever>
ah yeah, it does a lot, may be simpler to keep that small override, then to copy what you need
<dhess>
yeah
<clever>
i had to duplicate a lot of it to make a zfs based ami
<dhess>
I can imagine. I've got quite a bit of duplicated stuff already, don't wanna add to it if I don't need to
<pie_>
fpletz, you're listed as a tinc maintainer, I think I figured out how to get tinc to restart properly when using config.networking to set the interface properties, but i wont be able to do a pr or anything, here's the info: https://bpaste.net/show/b2a7932f42c4
jtojnar has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
<dhess>
yeah that did the trick
o1lo01ol1o has quit [Ping timeout: 252 seconds]
fragamus has joined #nixos
slack1256 has quit [Ping timeout: 244 seconds]
Rajsun has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
Fuuzetsu has joined #nixos
Fuuzetsu has quit [Client Quit]
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
mitescugd has quit [Ping timeout: 268 seconds]
jtojnar has quit [Ping timeout: 244 seconds]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @bgamari opened pull request #48806 → [18.09] ghc: add new 8.4.4 version → https://git.io/fx6ep
dbmikus_ has quit [Ping timeout: 244 seconds]
<dmj`>
anyone here familiar with declarative spec files and/or declarative input types
o1lo01ol1o has quit [Ping timeout: 264 seconds]
jdnavarro has quit [Ping timeout: 244 seconds]
jdnavarro has joined #nixos
hiroshi has quit [Ping timeout: 244 seconds]
grenade has quit [Ping timeout: 250 seconds]
grenade has joined #nixos
<CMCDragonkai>
Is there a way to get Python GDB support in NixOS?
<CMCDragonkai>
It says that there is a file `python-gdb.py` that we use.
<CMCDragonkai>
But where is this file inside Nix?
hiroshi has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
wykurz has joined #nixos
grenade has quit [Ping timeout: 252 seconds]
grenade has joined #nixos
<infinisil>
dmj`: no idea what you mean by that, sounds very generic
<dmj`>
infinisil: have you ever used hydra
<wykurz>
hi, I've created a PR to add cpuset to nixpkgs. however I'm having second thoughts on the location. the current one in the PR is pkgs/os-specific/linux, but I'm wondering if something like pkgs/tools/admin would be more appropriate?
<infinisil>
dmj`: oh, nope, you didn't mention hydra in your question..
<{^_^}>
#48765 (by wykurz, 1 day ago, open): cpuset: init at 1.6pre1
<dmj`>
infinisil: my bad, I might just go to gitlab
<infinisil>
wykurz: nah looks good to me. These locations don't matter much anyways, most of the time
<wykurz>
infinisil: thanks
o1lo01ol1o has joined #nixos
<aleph->
So question is there a way to create a directory in /etc/ in a way similar to environement.etc."CONFIG_NAME".option?
<aleph->
Trying to programmatically create /etc/logrotate.conf.d/ amongst others.
drakonis has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie_>
fpletz, well, fwiw that /seems/ to have fixed the restarting, but starting the service at boot is broken. i have to "ifconfig tinc.mynetwork up" and then "systemctl start network-interfaces.target" seems to get stuff working
<aleph->
For example, could I do - environment.etc."logrotate.d/fail2ban".text = '' '';
<pie_>
just...seems like a mess (mostly my own mess? idk...)
fragamus has joined #nixos
smolboye_ has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
fragamus has quit [Max SendQ exceeded]
wykurz has quit [Quit: Leaving]
slack1256 has joined #nixos
hyper_ch2 has joined #nixos
vk3wtf has joined #nixos
slack1256 has quit [Remote host closed the connection]
smolboye has joined #nixos
camsbury has joined #nixos
YellowOnion has joined #nixos
vk3wtf has quit [Ping timeout: 264 seconds]
b has quit [Ping timeout: 252 seconds]
<YellowOnion>
Hmm, is there a site or something providing configuration.nix's for various setups one might need?
<YellowOnion>
jackdk, yeah sorta like that. I was thinking how like a lot of services provide 1-click hosting, or how vagrant can get "ready to use" systems up in a couple of minutes.
<CMCDragonkai>
Does anybody know how to use `separateDebugInfo`?
<CMCDragonkai>
I looked in `~/.nix-profile/lib/debug` and that directory does not exist.
jackdk has quit [Ping timeout: 244 seconds]
<CMCDragonkai>
There's 2 things I'm trying to understand. How get all my programs on NixOS to have debug output enabled, and integrated into gdb using the `.gdbinit` config.
<CMCDragonkai>
Or how to get a derivation in a nix-shell to have debug output, and how to get that into the `gdb`
hyper_ch2_ has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
dtz[m] is now known as dtz
<ekleog>
CMCDragonkai: you should look into `enableDebugging`, I think (though it won't integrate with `.gdbinit`)
<ekleog>
if you can get `nix-shell -p 'enableDebugging mypackage'` (note: I'm not sure about the syntax) to add the path to GDB you should make a PR for it and maybe even make it default :°
<CMCDragonkai>
What do you mean make a PR for it?
<CMCDragonkai>
Oh I see
<ekleog>
upstream
<ekleog>
I tried adding stuff to shellHook in `enableDebugging`, but somehow it looked like it wasn't evaluated, and I didn't have more time to investigate
<CMCDragonkai>
The answer seems to indicate that after creating a shell that has gdb and the `enableDebugging` of Python, it should just work. But GDB still says no debugging symbols found.
<ekleog>
CMCDragonkai: well, if you want to add python extensions to gdb then it's not the same thing as debug symbols for python :)
<CMCDragonkai>
@FRidh That's the one I'm working off.
<ekleog>
(and I know nothing about python debugging apart from adding print() everywhere because it's been enough for me until now, so… sorry ^^')
vk3wtf has joined #nixos
<FRidh>
I never used debugging myself either, but this did seem to work
Itkovian has quit [Remote host closed the connection]
Itkovian has joined #nixos
<CMCDragonkai>
@FRidh I don't understand how to use that nix expression you have. I copied it into the `shell.nix` and `nix-shell` complained that it was not a derivation. So I removed the list and left it as `((python.override{inherit self;}).withPackages(ps: with ps; [ cython ]))`. And entered the shell. But of course python isn't in the PATH for the shell.
Ariakenom has joined #nixos
<CMCDragonkai>
Ok I get it.
<CMCDragonkai>
I'll send a suggestion to make your answer on SO clearer.
siers has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
<CMCDragonkai>
@FRidh I was wondering does `enableDebugging` propagate to all dependencies?
<CMCDragonkai>
So if you ran it on a derivation, would it also do that for all buildInputs as well?
mayhewluke has joined #nixos
ZeDestructor has joined #nixos
<CMCDragonkai>
I believe that is a no, since I can see that the `select` call inside the glibc doesn't get a source map
orivej has joined #nixos
<FRidh>
No, it does not propagate. In this case, it keeps debug info for the interpreter. The reason for the override with self is just to make sure that the Python packages use that derivation. You will need to enable debugging for every individual package.
emily has quit [Ping timeout: 264 seconds]
thc202 has joined #nixos
YellowOnion_ has joined #nixos
YellowOnion has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
<srhb>
Woah, github is not very healthy right now...
<srhb>
Note to self: Do not believe it when it says you can't comment right now. You'll spam a lot. :D
<adisbladis>
srhb: Tried creating some new repos, they dont show up and when I try to create it again it says they already exist :)
orivej has quit [Ping timeout: 244 seconds]
<srhb>
I think I'll just postpone my monday morning github roundup to tuesday. :D
rsa has quit [Ping timeout: 260 seconds]
<FRidh>
yea...they should have disabled commenting while restoring.
<srhb>
Lots of things seem to be acting every weirdly. I think they should have just shut down the UI completely, or made it read only :-P
goibhniu has joined #nixos
<adisbladis>
Yeah RO would have been nice, now things are just plain weird
<ekleog>
^
lonokhov has joined #nixos
__Sander__ has joined #nixos
<teto>
how can I pass NIX_DEBUG to nix-build ? It seems ignored (I have sandbox enabled) ?
o1lo01ol1o has joined #nixos
<lewo>
teto: did you set the attribute `NIX-DEBUG=true` in the derivation itself ?
<lewo>
s/NIX-DEBUG/NIX_DEBUG/
<teto>
lewo: yep that works but is there any other way that don't involve changing the derivation ? like having nix-build accept some environmnet variables ?
<teto>
well that will do thanks :)
<lewo>
teto: I don't think so
<lewo>
teto: and if your are using a daemon, nix-build env variables are not propagated to the builder
kiloreux__ has quit [Ping timeout: 240 seconds]
<colemickens>
is there a function that will read a text file but still do ${replacements} ?
<Mic92>
substituteAll does something similar
<colemickens>
thanks, that will work
o1lo01ol1o has quit [Ping timeout: 276 seconds]
rwanyoike has joined #nixos
<hyper_ch2_>
so, finally I found a name for my zfs snapshot and backup tool that I'm going to create :)
<infinisil>
hyper_ch2_: Does it do anything special?
<hyper_ch2_>
infinisil: it's two parts: the snapshot tool will create snapshots and you will define in the zfs property how many of eah kind to keep - pondering making it: easysnap:daily -1/0/xxx/false where -1 means unlimited (do not delete any), 0 means delete all existing snapshots, xxx means keep xxx snapshots and false means don't make any new snapshots but don't delete existing ones
<hyper_ch2_>
and the other part is the zfs send/receive script on a backup server
<hyper_ch2_>
so, basically nothing special... I just will write it in bash and tailor to my needs
<hyper_ch2_>
infinisil: why? you have special needs?
<infinisil>
Nice. But yes I do, I'll write my own thing too though, probably as a bachelors thesis
<hyper_ch2_>
infinisil: the problem is that I have with auto-snapshot I want to have different amounts of hourly snapshots for different datasets
<infinisil>
You could use znapzend for that
<hyper_ch2_>
and I think the options as value to a custom property are nice: -1/0/xxx/false
<hyper_ch2_>
so if you want to change something, alter the property value and on the next run it will put it into effect
<{^_^}>
[nixpkgs] @Ekleog opened pull request #48810 → wasm: remove alias to unbreak the channel → https://git.io/fx6LS
<hyper_ch2_>
znapzend has issues with encryption
<teto>
is it possible to convey proxy information at runtime to the nix daemon (I guess not else I could have passed environment variables) ? recommandations seem to be to build several profiles and switch inbetween but that seems overkill
sigmundv has joined #nixos
<hyper_ch2_>
infinisil: also the thing is, znapzend sends to backup locations... I do not want a live server to be able to send stuff to a backup server
<hyper_ch2_>
it's the backup server that needs to pull stuff from the live server
<infinisil>
I see
<hyper_ch2_>
also, not sure if you have have different amounts of snapshots depending on the dataset in znapzend... I know znapzend too little for tht
TweyIV has joined #nixos
<infinisil>
You do, #nixos-chat though
betaboon has joined #nixos
phreedom has quit [Remote host closed the connection]
<joko>
teto: I think you have safely assume bash, but it's better to wait for others to say so, too
<sphalerite>
teto: builders.sh?
<teto>
sphalerite: not really, in a custom phase let's say. I wanna force glob expansion and check for results but seems like the elegant solutions are mostly array-base => bash
<sphalerite>
teto: ah yes, you can
<sphalerite>
teto: we have soooo many bashisms in nixpkgs
<teto>
cool thanks
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<teto>
I managed to get automatic conversion from rockspec lua packages to nix (a bit harder than src.rock) so hopefully we can import whole of luarocks into nixpkgs
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<kai_w>
Is there a way to add additional overlays in a `.nix` file (to the ones I have in ~/.config/nixpkgs)?
<teto>
kai_w: you can set nixpkgs.overlays I think
<kai_w>
teto: currently I'm doing `import <nixpkgs> { overlays = [...]; };`, but that replaces, not appends
<teto>
kai_w: it's a list so you can put yours as well. append there may need nixpkgs change like mkDefault or ...
<kai_w>
ah good point, I can just `import ~/.config/nixpkgs/overlays.nix`. That works :)
TweyIV has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @adisbladis pushed to master « vgo2nix: init at unstable-2018-10-14 »: https://git.io/fx6OE
TweyIV has joined #nixos
<joko>
I get lots of 404 in github, has anyone else noticed anything similar?
<joko>
I mean in the nixpkgs project
<teto>
joko: github is behaving badly today
<__monty__>
Yep, noticed it too. Guess Azure can't shoulder the load ; )
<__monty__>
Ouch 11 hours of fixing things under pressure.
rotaerk has joined #nixos
<srhb>
Worst part is the inconsistencies in the UI. 404s are much nicer in comparison..
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<mg->
infinisil: I just upgraded to 18.09 (from .03), and the nice minimalistic login screen was gone, and my screenlocker doesn't work anymore. I'm sure lightdm is just as good, but it looks worse
<mg->
(out of the box, at least)
<infinisil>
I see, you can still turn on sddm again
<infinisil>
The default was changed because sddm is deprecated and stuff
<Taneb>
(infinisil: do you mean slim there?)
<infinisil>
Ah yes I do
FRidh has quit [Quit: Konversation terminated!]
<teto>
old login screen was too bright
<Taneb>
I got a new laptop recently, I'm going to install NixOS on it tonight!
<etu>
Taneb: Nice!
TweyIV has quit [Ping timeout: 246 seconds]
sir_guy_carleton has joined #nixos
mmercier has joined #nixos
iyzsong has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
TweyIV has joined #nixos
mkoenig has quit [Remote host closed the connection]
infty has left #nixos ["WeeChat 1.4"]
infty has joined #nixos
infty has left #nixos [#nixos]
mkoenig has joined #nixos
pie_ has quit [Ping timeout: 264 seconds]
Tucky has joined #nixos
oldandwise has joined #nixos
<oldandwise>
can i get ghci 8.4.4?
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<joko>
oldandwise: nix-shell -p haskell.compiler.ghc844 --run ghci works here (nixos-unstable)
<{^_^}>
#48806 (by bgamari, 7 hours ago, open): [18.09] ghc: add new 8.4.4 version
<joko>
Or you could run sth like nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -p haskell.compiler.ghc844
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<oldandwise>
thanks. And what is this ghc-8.6.1 in 18.09?
<joko>
Another version of GHC?
Itkovian has joined #nixos
<__monty__>
oldandwise: It's the latest version.
Itkovian has quit [Client Quit]
Itkovian has joined #nixos
<__monty__>
It does have a bug though, 8.4.3 has multiple. But they shouldn't matter if you're just learning.
rprije has quit [Ping timeout: 268 seconds]
<oldandwise>
__monty__: k..i'm just learning. I'm just confused of the versions coz 8.4.4 is the latest
<__monty__>
oldandwise: It's the most recent, just because 8.6 is out doesn't mean the GHC team can neglect 8.4. The latest version is 8.6.1.
periklis has joined #nixos
pie_ has joined #nixos
strobelight has joined #nixos
camsbury has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Laalf has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest55349
camsbury has quit [Ping timeout: 252 seconds]
strobelight_ is now known as strobelight
o1lo01ol1o has joined #nixos
regina_ has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest74712
orivej has quit [Ping timeout: 245 seconds]
strobelight_ is now known as strobelight
Guest55349 has quit [Read error: Connection reset by peer]
Guest74712 has quit [Read error: Connection reset by peer]
Rusty1 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
oldandwise has quit [Quit: leaving]
strobelight_ has joined #nixos
strobelight is now known as Guest44531
strobelight_ is now known as strobelight
Itkovian has joined #nixos
smolboye has quit [Ping timeout: 240 seconds]
Guest44531 has quit [Ping timeout: 252 seconds]
<regina_>
I'm not using nixOS but rather the nix package manager. Is this the right channel?
<regina_>
I'm on void linux trying to build idris from source.
<Taneb>
regina_: it is the right channel
<regina_>
Taneb: thanks
Dedalo has joined #nixos
<regina_>
I'm not sure what I did differently yesterday, but before installing nix from void's package manager, I was able to create a /nix directory without permissions errors
<regina_>
then I installed nix from void's repo, .. and now it can't find nixpkgs
<worldofpeace__>
Hey, can someone please merge/comment on #48150 ? I think it's suitable for a backport.
<shreyansh_k>
Hi guys, if A depends on B and there a minor version bump on B, does Nix rebuilds A too with newer B?
strobelight_ has joined #nixos
strobelight is now known as Guest71408
strobelight_ is now known as strobelight
smolboye has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest18465
strobelight_ has quit [Client Quit]
Guest71408 has quit [Ping timeout: 276 seconds]
strobelight_ has joined #nixos
<ekleog>
anyone knows the mail address to which to send an email to generate a discourse thread?
strobelight_ is now known as strobelight
<ekleog>
just tried sending to nixos1@discoursemail.com and it failed
<__monty__>
shreyansh_k: Yes because the hash for B changes.
Guest18465 has quit [Ping timeout: 240 seconds]
<ekleog>
oh it's +inbox
astronavt has joined #nixos
<__monty__>
regina_: Sounds like problems with NIX_PATH maybe? Generally, installing nix with a package manager instead of letting nix manage itself is annoying though. There's really no reason to have void manage nix.
<regina_>
__monty__: thanks
<regina_>
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/regina/idris.learn
<regina_>
__monty__: so I should xbps-remove nix, then build nix from source via nixos.org latest stable?
<regina_>
how should I set the permissions and ownership of the /nix directory?
<simpson>
You shouldn't. The installer will pick good permissions for you.
<regina_>
it looks like there is not much difference to using void's nix versus the i686 binary .. except I am planning to switch this sytem to x86_64 (installed the wrong version) and this would be one more outside (non-xbps) thignt o remember..
<regina_>
simpson: thanks
<simpson>
The biggest difference is that eventually you will want Nix to manage your Nix.
hexa- has quit [Remote host closed the connection]
<regina_>
simpson: when I tried (from github.com/idris/idris-dev) to stack build --nix , it gave me a bunch of permissions errors
<regina_>
it sounds like I will have two competing sets of packages, sources, and binaries...
<regina_>
I want to try out nixos on a separte system .. at this poitn just looking for a working build of idris
<simpson>
Well, yeah, Nix + other distros is always an adventure.
<regina_>
So, that would be a good reason to let Void manage my nix.
<simpson>
I'm currently seeing if $(nix-shell -p idris) works; it should. I don't know how to make Stack and Nix play together nicely; it seems like Stack is always in the way.
<simpson>
Github's still 404'ing, so I can't check on idris-dev, but odds are good that you merely need to run the nixpkgs derivation on a local development checkout.
<simpson>
And that will use the derivation's build instructions on your chosen local source tree, so that you can develop with Nix.
<simpson>
Although this isn't a 100% thing with Haskell due to common too-brittle version requirements for dependencies.
<regina_>
simpson: I typed the githbu address wrong. git://github.com/idris-lang/idris-dev.git
<simpson>
You should also have nix-env, nix-shell, etc. $(nix run nixpkgs.idris) should work, using the Nix 2.0 command. https://bpaste.net/show/daee52d13e12
<simpson>
It sounds like you have a pretty opinionated way of managing packages on this system already; why have two package managers?
<regina_>
yes
<regina_>
not opinionated .. just looking to get idris installed
<sir_guy_carleton>
and it is not in the void repos?
<simpson>
`error: opening lock file '/nix/var/nix/db/big-lock': Permission denied` needs to be dealt with.3
<regina_>
sir_guy_carleton: no. it's claimed to be in cabal, but .. cabal
<regina_>
simpson: yep. thinking of rm -rf 'ing the /nix directory ?
<regina_>
but that has 2 GB of downloads from yesterday when stack build --nix was actually working..
o1lo01ol1o has joined #nixos
<simpson>
I hear that the installer can be used on top of an existing /nix directory safely, but I have *no* idea whether that's true. Also I have no idea how to prevent your Void package manager from breaking.
<simpson>
And, of course, if something invisibly broke your Nix installation before, it could happen again.
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<simpson>
Meanwhile, $(nix-shell -p stack) works, and inside that shell, $(stack --nix build) is doing things. So after you figure out how to have a working Nix, everything else should just be a matter of waiting for GHC to use far too much CPU~
<regina_>
simpson: thank you
astronavt_ has joined #nixos
zolk3ri has joined #nixos
o1lo01ol1o has quit [Read error: Connection timed out]
drakonis1 has quit [Ping timeout: 264 seconds]
drakonis has quit [Ping timeout: 264 seconds]
astronavt has quit [Ping timeout: 252 seconds]
drakonis1 has joined #nixos
drakonis has joined #nixos
Tucky has quit [Remote host closed the connection]
astronavt_ is now known as astronavt
sir_guy_carleton has joined #nixos
<betaboon>
hello #nixos, i am running into following situation: i am running on macos with nix 2.1.1 with a virtualbox as a linux-build-slave, which is registered via 'builders' in nix.conf. now on 'copying ... from build-slave' it errors out with 'cannot add path .... because it lacks a hash. any hints ?
camsbury has joined #nixos
Tucky has joined #nixos
camsbury has quit [Remote host closed the connection]
camsbury has joined #nixos
kiloreux has joined #nixos
waleee has quit [Quit: WeeChat 2.2]
jperras has joined #nixos
<simpson>
regina_: My Stack build finished successfully. Once your Nix is fixed, the rest of the path should be straightforward. Good luck.
<avn>
Folks, if I have deployment with nixpkgs pinned via fetchzip, how I can propagate this version to nix-shell on "deployed" systems?
xeji has joined #nixos
<maurer>
Can you not just put it into shell.nix? Maybe I'm misunderstanding your question
<adisbladis>
avn: Something like this: `nix.nixPath = [ "nixpkgs=${your-pinned-nixpkgs}" ];`?
<avn>
adisbladis: yep. How to propagate <nixpkgs> set via -I nixpkgs=$PATH_TO...? ;)
<adisbladis>
avn: That would go in your configuration.nix and set `<nixpkgs>`.
<avn>
Even nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ]; and set /etc/nixpkgs as symlink.
<worldofpeace__>
avn: like like `system.extraSystemBuilderCmds` for that
andi- has quit [Remote host closed the connection]
<avn>
yep. But is not a question, how I can get <nixpkgs> as path, to symlink (I know how to make symlink from activation)
<worldofpeace__>
adisbladis: exactly as adisbladis said, though this question has larger implications than your nix-shell problem
<worldofpeace__>
sorry
<worldofpeace__>
avn:
orivej has joined #nixos
camsbury has quit [Ping timeout: 264 seconds]
<avn>
Well, I probably formulate my question very unclear.
lo_mlatu has joined #nixos
<lo_mlatu>
10:16 下午 <lo_mlatu> Hello, some question here: how can I prevent the system from creating .xsession-errors in my home dir?
<avn>
I have a deployment script, which evaluate nixpkgs.nix (which actually a builtin.fetchTarball expression), then run `nixos-rebuild $@` with exported NIX_PATH=nixpkgs=$(result-of-fetch-nixpkgs). I want to pin this nixpkgs revision somewhere in etc, to use as default NIX_PATH
dbmikus_ has joined #nixos
Itkovian has joined #nixos
endformationage has joined #nixos
<adisbladis>
avn: You could use builtins.getEnv ?
reinzelmann has quit [Quit: Leaving]
mayhewluke has quit [Ping timeout: 240 seconds]
<avn>
adisbladis: an option. Just curious, if any common practice exists.
camsbury has joined #nixos
mayhewluke has joined #nixos
<Taneb>
The hpc tool (which I am using with haskell.doCoverage) generates a HTML report, which I'm using as a hydra-build-product
<Taneb>
But the links to this are broken, I think because hydra doesn't know about the other pages in the report, only the index
<Taneb>
How would I make sure hydra knows about them?
<jophish>
Yo, Taneb
<Taneb>
Hey, jophish
<jophish>
how's things?
graphene has quit [Remote host closed the connection]
<Taneb>
Pretty good! Looking forward to going to NixCon later this week :)
<jophish>
Dezgeg: Do you happen to have an armv7l installer around?
<samueldr>
(see 4.4.1 "Binaries first" following the introductory section)
<Taneb>
One of my coworkers has force-deleted a .drv file from their nix store (I know, bad idea), but now when they try to rebuild it they get an error that says "error opening file /nix/store/....drv no such file or directory"
<Taneb>
How can we fix this?
bohadi has joined #nixos
<__monty__>
nix-store --verify --repair?
<Taneb>
__monty__: just that verbatim or does it need the path?
<infinisil>
,tias
<{^_^}>
Try it and see! (then tell us what you saw)
<__monty__>
Well there's also --verify-path
<__monty__>
And --repair-path
<adisbladis>
hyper_ch: [fried chocolate bars] I remember seeing that in camden town
sir_guy_carleton has quit [Quit: WeeChat 2.2]
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<Taneb>
__monty__: thanks
<Taneb>
Ended up getting them to nix-store --gc --print-roots, figured out why the path was needed and made it not, and then things work
<Taneb>
infinisil: I could try it and see, or I could ask and look like I know things in front of my coworker ;P
<srid>
actually, since I'm on nixos-18.09 i won't get linux 4.19 when using `pkgs.linuxPackages_latest`?
<sphalerite>
srid: you can use it right now, nixos-rebuild boot -I nixpkgs=https://github.com/nixos/nixpkgs/archive/2bb68c7017a.tar.gz
<sphalerite>
srid: I think linuxPackages_latest updates are backported, not sure though
das_j has joined #nixos
<srid>
sphalerite: but, after having run that command, what happens if run `nixos-rebuild switch` at a later point? would it use the channel in `nix-channel`, or this specific nixpkgs?
<das_j>
Hey, can I see why a package should be installed on a system? I want to deploy my pi but it tells me that ghc is not compatible with aarch64. So I need to find the package which pulls ghc as dependency
<srid>
i suppose i could also just switch to nixos-unstable
<sphalerite>
srid: it would use the normal channel, it will only use that commit on the one time you specify it
<srid>
so the next time i run `switch` my kernel upgrade would be reverted?
<sphalerite>
srid: well, switch and reboot. But yes
<sphalerite>
srid: note that everything else will be updated to the master versions as well, and that if the channel hasn't advanced yet you can't be sure it won't break everything horribly
__Sander__ has quit [Quit: Konversation terminated!]
<Taneb>
Asking again, how can I get a multi-page HTML hydra-build-product working? Currently I'm just getting the index
Lisanna has joined #nixos
<samueldr>
srid: linux kernel updates *are* backported :)
* samueldr
looks if it *is* backported
<samueldr>
hasn't been yet
<drakonis1>
4.19 lives.
<worldofpeace__>
speaking of backports, #48150 please :)
<jophish>
srhb: but I can't rebuild the system from here
<srhb>
Ah, no, I meant build a new iso. If that doesn't help you, errr umm :)
<jophish>
oh, however I think that root logs on straight away, because of new password
<srhb>
Activating is going to be hard without ssh and keyboard
<jophish>
so perhaps I could put something in /root/.profile to turn on ssh
<srhb>
Sure.
<srhb>
systemctl start sshd presumably?
<jophish>
systemctl start sshd
<jophish>
fingers crossed
<joko>
I typically use the PATH variable to expose the executables I want in typical scripts, is there a way to pass it on "sh -c command" invocations?
<jophish>
it worked!
endformationage has quit [Ping timeout: 264 seconds]
<__monty__>
joko: Actually, env searches for command on the PATH by default so if it's run in an environment with the correct PATH you don't even need to specify it. I'm not sure specifying it would work even, might need env PATH=... env command. Could someone clear this up?
<genesis>
it download 1.5GB each time i launch nix build :d
<srhb>
genesis: *each* time?
aswanson has joined #nixos
<joko>
__monty__: any other idea? The sh command is hardcoded and I don't wish to modify it
Ariakenom has quit [Ping timeout: 252 seconds]
periklis has quit [Ping timeout: 240 seconds]
lo_mlatu has quit [Quit: Connection closed for inactivity]
mmercier has quit [Quit: mmercier]
<__monty__>
joko: You don't want to add env?
<__monty__>
I don't know of any other ways.
<__monty__>
You can pass 'env command' instead of a command.
<dhess>
never a fun task. But soon it will be running NixOS!
<dhess>
infinisil: yeah. A good effort :)
<infinisil>
Wait what the hell "This repository has been archived by the owner. It is now read-only. "
<dhess>
it's on gitlab now, no worries
<infinisil>
Oh
* infinisil
didn't even bother to scroll
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Ariakenom has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mekeor has joined #nixos
fendor has joined #nixos
alex`` has quit [Ping timeout: 252 seconds]
mekeor has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
nbardiuk has joined #nixos
sigmundv has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #nixos
silver has joined #nixos
emily has joined #nixos
worldofpeace__ has quit [Remote host closed the connection]
cransom has quit [Quit: WeeChat 2.1]
cransom has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
endformationage has joined #nixos
worldofpeace has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<kalbasit[m]>
has anyone experienced DNS problems? In the past week, I keep getting host not found and I temporarly solve it by re-connecting to wifi through the network manager. I did not have time to dig deeper yet but it's driving me nuts
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « stack: fix the ghc 8.4.x build »: https://git.io/fx6WQ
<{^_^}>
[nixpkgs] @peti pushed 7 commits to haskell-updates: https://git.io/fx6WA
<clever>
ocharles: when hydra internally runs nix-prefetch-git, it doesnt really escape anything, so you can directly put --fetch-submodules into the URL field of a build input, and it will fetch them
<iblech>
Hey, quick question: We are preparing a pull request to get TikZiT into nixpkgs (https://github.com/NixOS/nixpkgs/pull/48479). Should we squash the individual commits into a single one? The build has worked after each individual commit, we were just modified variour hooks to keep up with upstream.
<{^_^}>
#48479 (by iblech, 1 week ago, open): tikzit: init at 2.0-rc2 (WIP, do not merge yet)
<arianvp>
there are some upstream units by systemd, that we currently put in $out/share/factory/etc
<arianvp>
for example the default dependencies for networkd, resolved, and machined
<arianvp>
I can see why we don't want to include those by default in the systemd module in NixOS, as for example networkd is opt in
<arianvp>
but is there a good reason why we configure those units in NixOS Modules directly, isntead of copying over the vendor files from the systemd packages directly?
<arianvp>
currently we only consider the units in $out/lib/systemd but not $out/share/factory/etc/systemd
<Mic92>
I am also not sure if overriding systemd units was supported from the beginning
<Mic92>
I agree that taking systemd's default is less error prone.
<arianvp>
the only thing that the /factory folder introduces is .wants/* style links; not actual units
<arianvp>
but was a bit confusing, as for example we include machines.target , but not its dependency on multi-user.target
<arianvp>
so now I just added it through targets.multi-user.wants = ["machines.target"] but perhaps it's worth it to just use the upstream dependencies
<arianvp>
though I think it doesn't matter that much actually
<arianvp>
there's only like 5 unit files in $out/factory
<arianvp>
I'll look into it... see if I can switch to the systemd defaults
<catern>
is there a way to turn off the path check in Nix gcc?
<catern>
so I can link against system libraries on non-NixOS systems?
<{^_^}>
[nixpkgs] @lokke-me opened pull request #48837 → homely: init at 0.15.3 → https://git.io/fxiki
<mightybyte>
I'm trying to install Nix on Ubuntu, but I keep getting "error: the build users group 'nixbld' has no members" even though I definitely created the group and users.
<mightybyte>
Any idea how to fix this?
<aleph->
So is there an easy way to generate arbitrary dirs in nixos at nixos-rebuild time?
<srhb>
aleph-: No. /etc and friends are special in the activation scripts.
<aleph->
Bollocks.
<aleph->
Guess I'll have to create a script and run it at build time.
<srhb>
aleph-: What's your actual problem? Maybe there's another solution.
<simpson>
catern: To an extent, yes; this is how e.g. Darwin support works. I don't know the details. What are you trying to build?
<aleph->
srhb: Deploying a rails app and ancillary services, attempting to make the custom assests for the app rather drop in. Generally live in /srv/lobste.rs/
<srhb>
aleph-: Why not just let them live in the store? As long as they don't mutate
<srhb>
aleph-: Anyway, lots of services are _stateful_ and generally set up their initial /var/whatever space in an initial systemd script.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<aleph->
S'what I'm thinking of doing, just doing multiple sources during the setup.
<catern>
simpson: just some random thing, I just want to demonstrate that this is possible
<srhb>
aleph-: Right.
<srhb>
aleph-: Normally these scripts run on every startup and just do some if bootstrapfile doesnt exist then...
<infinisil>
Ain't working for me! "Couldn't find suitable memory target."
<Mic92>
ocharles: we have the nix sandbox enabled since 18.09
<Mic92>
you might need to disable it.
<ocharles>
i see. how do i do that?
<ocharles>
a nix.conf option?
Twey has joined #nixos
<ocharles>
ah, useSandbox
<Mic92>
nix.useSandbox = false in configuration.nix
<Mic92>
or sandbox = false in /etc/nix/nix.conf on non-nixos
<Twey>
What's the appropriate way to use `fetchzip` (from nixpkgs) with a zip that is named something other than `.zip`? I might have expected that there be an attribute to be used for the downloaded file's name (maybe `name`) but there doesn't seem to be anything ??? it's hardcoded to be $(basename $url)
<Twey>
Oh no, encodings
<Mic92>
did we not had an irc bot that had faq answers to various topics?
graphene has quit [Remote host closed the connection]
<ocharles>
thanks Mic92
<Mic92>
Twey: it should be name = "foo.zip";
strobelight has quit [Ping timeout: 252 seconds]
graphene has joined #nixos
<Twey>
Mic92: `name` isn't actually used in the calculation of the filename :(
<Twey>
That's what I expected too, I was quite surprised
<infinisil>
clever: Is there something special I need to do for this to work?
<Twey>
Now I have an URL scheme like "/foo/bar/download", which is a gzipped tarball, so I want it to be renamed to foo-bar.tar.gz
<dhess>
Mic92: thanks!
<Twey>
But all I get is "download" and a confused unpackFile
<Mic92>
Twey: a weired hack could be #foo.zip
<Twey>
Oooh
<Mic92>
for fetchurl I think `name = "something.tar.gz";` works
<dhess>
Mic92: I have at least one more change coming down the pike
<dhess>
dovecot change
<drakonis>
the pike huh
<Twey>
Mic92: I don't think so, looking at fetchurl
<Twey>
Mic92: It works unless you use downloadToTemp, in which case you get $TMPDIR/file
<Twey>
(literally)
<Twey>
And of course fetchzip always uses downloadToTemp
<Twey>
Mic92: The #-hack is horrific and works beautifully, thanks
<Mic92>
I don't remember but I think I ended up using the same at some point
mkoenig has quit [Ping timeout: 252 seconds]
<Twey>
New silly question: the nixpkgs manual is full of caveats about how evil setupHook is. Why does cc-wrapper &c. use setupHook instead of, say, parsing buildInputs at runtime?
<{^_^}>
[nixpkgs] @Mic92 merged pull request #48834 → dovecot: dovenull user should have its own group. → https://git.io/fxivo