gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<simpson> That 'but I am a' problem, I thought that that was only a thing for non-QEMU-able arches?
<exarkun1> How so? FWIW I started off trying to build on a QEMU nixos machine but it looks like I might have to build a custom kernel before that works or something (I don't entirely understand the problem but it seems like the armv6l kernel I found is not good enough for nix).
<exarkun1> Cross compiling seems like a better solution than QEMU in at least one way (it's 100x faster or whatever). But of course requires lots of usually-fragile software support...
<exarkun1> Sorry I just got summoned, but hopefully back in 10 or 15 min
Thra11 has quit [Ping timeout: 246 seconds]
<simpson> No worries, good luck. I don't have any other ideas.
Rusty1 has joined #nixos
pie_ has quit [Remote host closed the connection]
slack1256 has quit [Ping timeout: 246 seconds]
pie_ has joined #nixos
eadwu has quit [Ping timeout: 246 seconds]
erictape1 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
jonreeve has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 245 seconds]
Dedalo has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<exarkun1> ok, thanks. :)
Xal has quit [Ping timeout: 240 seconds]
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
ottidmes has quit [Ping timeout: 272 seconds]
cyounkins has quit [Ping timeout: 246 seconds]
pie_ has quit [Remote host closed the connection]
ottidmes has joined #nixos
pie_ has joined #nixos
Xal has joined #nixos
thc202 has quit [Ping timeout: 245 seconds]
pie_ has quit [Remote host closed the connection]
<Mic92> pie_: I have to do some IT stuff for my family the next days. I started adding a cross-compiling target for freebsd.
pie_ has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<Mic92> pie_: will hopefully get a freebsd machine again soon.
<pie_> :p
<pie_> ok \o/
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<pie_> Church_, Church- so hows nixos/kali going? :p
eadwu has joined #nixos
shibboleth has joined #nixos
cyounkins has joined #nixos
cyphase has quit [Ping timeout: 250 seconds]
ottidmes has quit [Ping timeout: 246 seconds]
<iqubi4> siraben: Are you actually able to get dante working for haskell?
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
eadwu has quit [Ping timeout: 272 seconds]
<Church-> pie_: Busy getting my blog up. :P
<Church-> Just need to fix something with minio + nginx and I'm good
<Church-> Need to put up some stuff to buff my cred.
<pie_> lol
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
shibboleth has quit [Remote host closed the connection]
eadwu has joined #nixos
shibboleth has joined #nixos
countingsort has quit [Ping timeout: 268 seconds]
cyounkins has quit [Ping timeout: 250 seconds]
<dtz> I keep getting distracted with next thing, so behind on blog posts that would've been great, lol.
<dtz> err "great" for posting to my blog. Which mostly means not entirely terrible hopefully ;)
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhtze
* dtz moves to #nixos-chat O:)
orivej has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
goibhniu has quit [Ping timeout: 250 seconds]
alex`` has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Ping timeout: 250 seconds]
kisonecat has joined #nixos
Church_ has quit [Quit: WeeChat 2.2]
pie_ has quit [Remote host closed the connection]
kisonecat has quit [Ping timeout: 250 seconds]
pie_ has joined #nixos
<siraben> iqubic: No I have not tried.
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
sir_guy_carleton has joined #nixos
shibboleth has quit [Remote host closed the connection]
iyzsong has joined #nixos
<iqubi4> Oh. I thought it was you who linked me to this: https://github.com/cmk/example-nix#dante
erictape1 has quit [Ping timeout: 245 seconds]
shibboleth has joined #nixos
aexoxea has quit [Quit: Goodbye!]
<siraben> huh first time I've heard of it.
<iqubi4> Oh, must be someone else than.
<siraben> Got Fractal to build yesterday, pretty good client although I wish there was a dark theme
ddellacosta has joined #nixos
<dtz> siraben: it was merged to master, should "just work"-- was there any problems ? D:
<dtz> and there IS a dark theme!
<siraben> dtz: then I have to uninstall the one I built from your branch!
<siraben> It did just work, sorta. Had to do some git trickery
<siraben> There is? I'll check again.
<dtz> oh, haha okay. Yeah that can be finnicky xD
aexoxea has joined #nixos
<dtz> uhh well it's dark here! I thought it was an option but not finding it; perhaps it just reflects your GTK theme?
<siraben> Thanks to wedens I ran git clone --depth 1 https://github.com/dtzWill/nixpkgs.git -b feature/fractal and it worked
<siraben> Huh I'll check my GTK theme
<siraben> Strange thing is that whenever it's dark I hate how text boxes in Firefox becomes dark too, any fixes?
<dtz> no, but that doesn't mean it's not easy/fixable. Although browsers really don't want to let you view anything that isn't blaring white with bits of black text
<dtz> :P
shibboleth has quit [Quit: shibboleth]
dermetfan has quit [Ping timeout: 240 seconds]
<aexoxea> siraben: I haven't tried this myself, but see the information at the top of the README.md here: https://github.com/DmitriK/darkContrast
pie_ has quit [Remote host closed the connection]
<siraben> aexoxea: wish that link had more screenshots :p thanks.
pie_ has joined #nixos
<aexoxea> siraben: No worries. There are some screenshots on the AMO page for the extension, though of course they don't relate to those instructions specifically: https://addons.mozilla.org/en-US/firefox/addon/text-contrast-for-dark-themes/
<aexoxea> siraben: (I haven't tried the extension either, although I lean towards it each time I get a dark input field with near-black text in it...)
abathur has joined #nixos
<siraben> Ironically http://imgur.com/PRQWKwfl.png
<siraben> It does work on other webpages though, just not itself :)
<aexoxea> lol
<siraben> By the way, is it "sudo nix-env -i ..." or just "nix-env -i ..." ?
<siraben> dtz: I did sudo nix-channel --update && nix-env -i fractal but it can't find fractal
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
init_6 has joined #nixos
erictapen has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
Supersonic has quit [Ping timeout: 250 seconds]
Supersonic has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<iqubi4> Is it possible to open a nix-shell and pass a path to a particular shell.nix to use?
jasongrossman has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @ivan opened pull request #53135 → qolibri: init at 2018-11-14 → https://git.io/fhtg5
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<siraben> iqubic what do you mean by pass a path?
<iqubi4> Let's say that I have a particular shell.nix file located at ~/haskell/project/shell.nix What I'd like to do is be able to open a nix-shell with that shell.nix, without having to first cd to that location.
<iqubi4> actually, what I want to do is run `nix-shell --run "cabal repl"` with that haskell project's nix.shell
<iqubi4> Or err... shell.nix
<iqubi4> But I don't really want to have to cd to that location first.
<iqubi4> But since I'm running this command through emacs, I can't really easily cd to the directory then run `nix-shell --run "cabal repl"` Which is why I want to pass in a path.
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
cyphase has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
<iqubi4> So is there a way that I can do this?
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
Havvy has joined #nixos
<ivan> does anyone have something better than https://nixos.wiki/wiki/Using_X_without_a_Display_Manager for making `startx` work, I don't really like display managers because sometimes I want two Xorgs running
pie_ has quit [Ping timeout: 252 seconds]
<ivan> thank you xeji
<ivan> startx rocks
<siraben> iqubic hm, not sure.
jasongrossman has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
nDuff has joined #nixos
<nDuff> Should nix repl honor max-jobs? I'm trying to figure out where to start in tracking down why I only have one build at a time despite max-jobs = 48.
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
eadwu has quit [Ping timeout: 246 seconds]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
ddellaco_ has joined #nixos
<iqubi4> So, how about that path stuff for nix-shell
ddellacosta has quit [Ping timeout: 245 seconds]
lawlesseel has joined #nixos
<wedens> I have just 14Gb ssd in my laptop and 500Gb hdd. 14Gb is definitly not enough for the nix store :\ how can I utilize ssd then?
<nDuff> wedens, sounds like a job for dm-cache.
<nDuff> ...or potentially maybe bcache.
<nDuff> that said, note that bcache and btrfs don't play well together.
<ivan> not sure what to do with https://nixos.wiki/wiki/Using_X_without_a_Display_Manager now that https://github.com/NixOS/nixpkgs/pull/47773#issue-220078416 exists - maybe just delete and update the official NixOS manual?
<nDuff> (some sources say that that was fixed a good while ago, but see https://github.com/Zygo/bees/blob/master/docs/btrfs-kernel.md)
<wedens> nDuff: I don't use btrfs, so it shouldn't be a problem
<wedens> is there some tutorial on dm-cache/bcache setup? (in the context of nixos preferrably)
<nDuff> Dunno. I *do* use btrfs, and bees, so I stay well clear of them.
zopsi has quit [Quit: Oops]
<nDuff> Oh -- another option for getting value out of the flash drive is if you use ZFS, to use the flash for your ZIL.
zopsi has joined #nixos
<nDuff> (the write-ahead log, basically).
<nDuff> (...of course, that helps with write performance; if you want to optimize read times, that's a different matter).
<wedens> I don't know much about zfs, but it sounds like it provides more performance if zfs is *already* being used.
<jasongrossman> wedens: A lot of NixOS people use ZFS for other reasons. It's awesome.
<iqubi4> I use ZFS because I want to have those sweet sweet snapshots.
<wedens> jasongrossman: I have it on my list of things that I may want to use after some research ;) I havent had a compelling reason to switch from lvm+ext4 to zfs yet.
<wedens> seems like lvm can also benefit from caching https://jlk.fjfi.cvut.cz/arch/manpages/man/lvmcache.7
<siraben> It is easy to switch from ext4 to ZFS?
<{^_^}> [nixpkgs] @ivan opened pull request #53136 → sublime3-dev: 3183 -> 3184 → https://git.io/fhtaE
<wedens> siraben: from what I've seen it's easier than to switch from ext4 to lvm+ext4 :)
<siraben> What's LVM used for?
<wedens> logical volumes
<siraben> wedens cool, I might switch to ZFS and see
<siraben> After more research of course :)
<wedens> zfs has this concept built-in
<init_6> the same as btrfs
<init_6> but btrfs in kernel
<siraben> What backup solutions do people use here?
<iqubi4> none
<siraben> iqubic haha I recall
<siraben> I think someone mentioned rustic a while back
<init_6> mmm tar xz dd
<siraben> restic*
<wedens> I like duplicity
<siraben> init_6 but incremental backups!
<init_6> siraben: diff
orivej has quit [Ping timeout: 240 seconds]
<siraben> init_6 is that your backup system?
<init_6> yep
<siraben> I see
<nDuff> siraben, I'm happily using borg
<nDuff> ...incremental, and more importantly, *chunked and deduplicated*.
<siraben> nDuff I see. Watching the demos on the sit now
<siraben> site
<siraben> Deduplication is a plus.
<siraben> Encryption as well?
<nDuff> *nod*.
<siraben> nDuff how big are the chunks?
<nDuff> Good question. I haven't actually looked at the server side -- I only operate the client.
<siraben> Works on macOS too, that's nice.
<wedens> there is also duply which is a simplifying wrapper for duplicity
<siraben> Yeah also I've heard of deja-dup
<wedens> it's a gui for duplicity
<wedens> that provides like 5% of what you can do with duplicity
<siraben> Right, it being a GUI
<siraben> I'll try borg for now and see how it goes
* nDuff -- incidentally -- used to use rdiff-backup commercially (operated central backup for a bunch of UNIX-based medical-record systems distributed to individual physicians' offices), and doesn't much recommend it. Took a lot of handholding to get it unstuck when things went wrong, which they often did.
<nDuff> ...granted, that was about a decade ago now; the software could well have improved.
<jasongrossman> siraben: I use ZFS send for backup.
xcthulhu_ has joined #nixos
<wedens> when I try yo use newer kernel by `boot.kernelPackages = pkgs.linuxPackages_latest`, nvidia driver fails to build with "inconsistent kernel versions: 4.14.91 4.19.13"
xcthulhu_ has quit [Client Quit]
Rusty1 has quit [Quit: Konversation terminated!]
<wedens> also, is bumblebee still the best we have for switchable graphics? I've heard that it's deprecated or something
<ivan> did you boot into the new kernel?
<wedens> no, I can't switch a configuration
<wedens> due to nvidia refusing to build
<ivan> probably have to temporarily set the old kernel or remove nvidia
Dedalo has joined #nixos
<init_6> it`s normal for nvidia. use nouveau or wait/fix by your own hands
<ivan> hmm maybe that deserves a new bug because it's coming from kmod/aggregator.nix inconsistent kernel versions: $kernelVersion
<ivan> it should be possible to build for the new kernel, no?
lokado has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellaco_ has joined #nixos
<wedens> it seems like chicken and egg problem :)
ddellacosta has quit [Ping timeout: 244 seconds]
jasongrossman has quit [Remote host closed the connection]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agander has joined #nixos
endformationage has quit [Ping timeout: 272 seconds]
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @puffnfresh opened pull request #53137 → haskellPackages.djinn: apply patch for GHC 8.4 → https://git.io/fhtwq
nDuff has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
<wedens> how do I get emojis to work? no matter what I do, they're always black and white
<wedens> the same font and fonconfig results in colorful emojis on Arch
<wedens> if I have fontconfig config in a derivation, how do I tell fontconfig in nixos to use this configuration?
Dedalo has joined #nixos
init_6 has quit [Ping timeout: 245 seconds]
justanotheruser has joined #nixos
zenhoth has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
<zenhoth> Am I literally as thick as bricks, or is ghcWithPackages broken? I ran nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.random])", and then random is nowhere to be seen in ghc-pkg list. `which ghc` does show a file with the necessary variables, etc, it's just that the lib directory included from /nix/store doesn't have my random package.
<wedens> seems like `fontconfig.penultimate` which is enabled by default breaks other fontconfig settings
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<pie_> thicc
<clever> zenhoth: i see random in `ghc-pkg list`
<zenhoth> So it's environmental then. Any idea what could be affecting this behaviour?
<clever> zenhoth: what happens if you use nix-shell --pure ?
<zenhoth> That's a good question
<zenhoth> Yeah, works with --pure
<zenhoth> Time to bisect my environment variables to figure out what caused this
<zenhoth> Oh great, now it started working without --pure too. Nix is deterministic, you guys. :D
lokado has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @gnidorah opened pull request #53138 → nixos/sway: Improve the wrapper → https://git.io/fhtrY
<pie_> zenhoth, lol sigh :D
<pie_> is gnidorah in here
tzemanovic has joined #nixos
<pie_> clever, what kinds of things does using pure usually break
<wedens> how can I do patchShebangs and makeWrapper without for a local script making a derivation?
<wedens> * without making a derivation
<pie_> which is to say, only run commands in buildphase or somesuch?
<pie_> maybe check their implementations. though my experience is limited so there could be a better way
* clever heads off to bed
<wedens> something like runCommand, but it doesn't let me do patchShebangs as it modifies inplace
slack1256 has joined #nixos
Wharncliffe has quit [Ping timeout: 246 seconds]
<pie_> clever, o/
<wedens> even if I make it a derivation, it won't let me `patchShebangs ${./my-script}`, right?
<wedens> maybe I should just copy it
aexoxea has quit [Quit: Goodbye!]
aexoxea has joined #nixos
<pie_> oh! (?) " Now this is a very cool feature of Nix. It is possible to pattern match over a set in the parameter. " i thought that was just syntax!
<pie_> wedens, looks like patchShebangs is just a shell functions? https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/patch-shebangs.sh
<pie_> *function
<wedens> it is
<pie_> so you can just call it in postinstallphase or something?
<pie_> (i just said some random phase, its up to you to figure out which one to use)
<wedens> I ended up doing this https://bpaste.net/show/e08418c38e10
<pie_> (because i dont know them well_
<pie_> i guess that looks fine
<wedens> yeah. extra copying a tiny script doesn't matter much
<wedens> I wonder if I can reference a local file without copying it to the store
worldofpeace has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #53136 → sublime3-dev: 3183 -> 3184 → https://git.io/fhtaE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhtry
<pie_> wedens, re: local files, i think theres talk related to that but i dont remember much right now
<pie_> related topics iirc: fixed output derivations, using secrets (like key files or something), i think there was some variation of readFile or something
agander has quit [Ping timeout: 246 seconds]
zenhoth has quit [Quit: Page closed]
agander has joined #nixos
Dagger has quit [Excess Flood]
agander_ has joined #nixos
agander is now known as Guest35431
Guest35431 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
agander_ is now known as agander
Dagger has joined #nixos
random_yanek has quit [Quit: random_yanek]
<pie_> is there a way to implicitly pass function parameters?
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #nixos
<ivan> "dynamic binding" you mean?
<ivan> do I want to know what's going on in http://r6.ca/blog/20140422T142911Z.html
<ivan> pie_: you could take an attrset and use defaults for missing attrs
<pie_> basically what i would like is if in my top level file i import wine, (and so wine is in scope), when i do a function call that wants a wine attribute in its argument, it will take the wine that is in scope
<pie_> without having to specify inherit for every attribute
<pie_> which is to say i want to clean up something that looks like: x = import ./y.nix {inherit a; inherit b; inherit c; inherit d}
<ivan> pie_: you could write a function (or function-returning-function) that includes the {inherit a; inherit b; inherit c; inherit d} and call that instead of import
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
<pie_> ivan, and how does that function get the things in scope
<pie_> apparently inherit can take multiple arguments though, so thats a start
thc202 has joined #nixos
<ivan> nix-repl> importWithThing = thing: file: import file thing
<ivan> nix-repl> myImport = importWithThing { a = 1; b = 2; }
<ivan> 1
<ivan> nix-repl> myImport ./trash.nix
<ivan> trash.nix is { a, ... }: a
init_6 has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dedalo has joined #nixos
clefru has quit [Ping timeout: 245 seconds]
slack1256 has quit [Ping timeout: 244 seconds]
ambro718 has joined #nixos
ambro718 has quit [Client Quit]
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #53140 → vim-parinfer: init → https://git.io/fhtKO
<{^_^}> [nixpkgs] @Izorkin opened pull request #53141 → pythonPackage.psutil: fix disk io counters fails on Linux kernel 4.18+ → https://git.io/fhtK3
simukis has quit [Quit: simukis]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
tzemanovic has joined #nixos
jomik has joined #nixos
<jomik> Looking at the wiki... https://nixos.wiki/wiki/Overlays I don't find it very clear figure out how I would specify a folder (similar to ~/.config/nixpkgs/overlays/) for my whole system.
<jomik> That is, I want it used by nix, nixos-rebuild as root, and by nix as user..
phreedom has quit [Ping timeout: 256 seconds]
jD91mZM2 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
vk3wtf has joined #nixos
<wedens> jomik: I use approach listed under "Using nixpkgs.overlays from configuration.nix as <nixpkgs-overlays> in your NIX_PATH" heading
<jomik> Then you have a nixpkgs.overlays property though?
<wedens> yes
<jomik> Hmm, okay.
phreedom has joined #nixos
<wedens> and it imports an expression that aggregates all other overlays (I do it manually, but you can collect everything in a directory)
freeman42x[nix] has joined #nixos
simukis has joined #nixos
<jomik> I am pondering moving away from home-manager again... I realized that there is no real reason for me to have packages only for the user, when it is a single user machine :D
m15k has joined #nixos
alex`` has joined #nixos
<wedens> well, home-manager is no only `home.packges`
<wedens> if you use it just for `home.packages` and you don't have non-nixos system which shares the same configuration, probably you don't need HM
<etu> home-manager got loads of user services as well
<wedens> yeah. which works great until you hit something like network-online.target not being available for user's systemd
Thra11 has joined #nixos
<jomik> I mean, I don't only use it for home.packages. I wanted to toss all my configuration into it. But I found myself wasting a lot of time trying to work out how to do options for them for the various programs and such.
ottidmes has joined #nixos
<jomik> And, it was quite limiting.
<jomik> And, IIUC, most things in home-manager can be done in /etc/nixos/configuration.nix
<jomik> I don't think I have seen a service which wasn't available (and more updated) in nixos.
<wedens> how would you configure e.g. i3 from configuration.nix?
juhe has joined #nixos
<jomik> I wont.
<jomik> any dotfiles I'll just manage as any non-nix system.
<jomik> Because, you can not configure "everything" in nix...
<jomik> Like, Emacs and Vim.
<jomik> And Xmonad.
<wedens> well, but then you have to make sure all dependencies are available in ad-hoc way
<jomik> You can't really handle those configs with home-manager.
<jomik> That's true.
<jomik> That's why I like home-manager.
alex`` has quit [Ping timeout: 268 seconds]
<jomik> But - it is the same way anyway if I wanted to do Emacs, Vim or Xmonad
<etu> wedens: you can. Since there's an option to specify the i3 config path and then you can write the i3config to your nixStore and specify that file.
<jomik> That's true etu :P
agander_ has joined #nixos
<jomik> But, i3 is just a plain text file with set options - that's easy to handle with nix/home-mangaer.
alex`` has joined #nixos
<wedens> etu: how would you do "${pkgs.rofi}/bin/rofi -show run" in a keybinding?
<jomik> It is hard to handle anything that requires coding, like Vim, Emacs or Xmonad
<iqubi4> Is it possible to give nix-shell the path of a certain shell.nix to use when it launches the shell?
<etu> wedens: In the variable above in that file
<wedens> I don't like the idea of config as a string
<etu> But yeah, well, now I'm switching over to exwm anyways :p
<jomik> wedens: that's my issue too :P
<etu> 2019 -- year of the exwm desktop for me
<jomik> Why exwm? :P
<etu> Because emacs
agander__ has joined #nixos
<wedens> there are people doing the opposite :D they use frames instead of emacs windows to manage windows via WM
<iqubi4> I have a shell.nix in ~/haskell/config/shell.nix and I want to run `nix-shell --run "cabal repl"` with that particular shell.nix as the one fetching the deps. Is that possible?
agander has quit [Ping timeout: 250 seconds]
<iqubi4> etu: exwm is awesome. I've been using for something like 6 months now.
<iqubi4> I nearly have a nice haskell + nix + emacs development set up. I'm just missing the last piece of the puzzle.
agander__ is now known as agander
<etu> iqubi4: yeah, I started to set it up like 4 days ago
<{^_^}> [nixpkgs] @edef1c pushed to master « sdate: init at 0.5 »: https://git.io/fht6o
<etu> And I'm completely sold already!
<iqubi4> etu: If you need help, I can help you.
<etu> iqubi4: Thanks ^_^
agander_ has quit [Ping timeout: 245 seconds]
<iqubi4> Also, I wrote a lisp macro that lets me bind any keybinding to any arbitrary shell command. If you want that, I can give it to you.
<etu> I got something like that:)
<iqubi4> Cool.
<etu> stole it from adisbladis, so now he don't have it :p
alex`` has quit [Ping timeout: 246 seconds]
<iqubi4> http://dpaste.com/1GJKJ1Q is what I use.
<jomik> How would you configure exwm with nix ? :D
<iqubi4> I don't. I just put my exwm config into ~/.emacs/init.el along with the rest of my emacs config.
<etu> jomik: You don't really. Not more than installing exwm and configuring emacs.
alex`` has joined #nixos
<iqubi4> What the bloody hell?!?! My emacs config is 600 lines long at this point.
<jomik> So how do you configure Emacs fromm nix? :o
<etu> Let's not do that? :D
<iqubi4> only 20 of those lines are for configuring exwm.
<iqubi4> What the heck is this nonsense?
<iqubi4> but seriously, I would love a way to pass a path of a particular shell.nix file to nix-shell.
<jomik> That's my point tho. It is quit limiting what I can configure in home-manager, so I figured, why not just do it ad-hoc anyway.. :P
<jomik> Do you guys specify your emacs packages in nix as well?
* etu does
<iqubi4> I don't do that.
m15k has quit [Ping timeout: 256 seconds]
<iqubi4> Because several of my emacs packages require extra configuration beyond just installing them.
ambro718 has joined #nixos
<etu> iqubi4: Nothing stops you from doing both
<iqubi4> I don't want to launch another emacs instance through nix-shell, as that feels wrong.
<iqubi4> I nearly have a way of integrating haskell, nix, and emacs in a way where I don't need to do that.
<etu> direnv?
<etu> works great for nix-shell integration in emacs
<iqubi4> does it really?
<etu> yeah
<iqubi4> Can't I just give nix-shell a path to a particular shell.nix that I want to us?
<etu> you just put `use nix` in .envrc and have a shell.nix
<etu> in the same directory
<iqubi4> And then what does that do?
<etu> and when you enter that it will load that nix-shell for you
<etu> same with emacs if you open i file in that directory and have direnv for emacs installed it will load environment variables for that shell
<jomik> Use this function to make it persistent too.
<iqubi4> I have a thing that automatically compiles my haskell code for me, by running `nix-shell --run "cabal configure"`
<iqubi4> Which doesn't yet work for me, because I don't have a way of telling that command which nix-shell to use.
<etu> That it wouldn't do, but if you have a shell.nix you can define it to provide you the binary cabal so you can do "cabal configure" from emacs if inside of that directory tree
<iqubi4> Really?
<iqubi4> And there's no way to just pass in the path of the shell.nix to that nix-shell command?
<jomik> I don't think so :
<etu> well, the nix-shell part of direnv is managed by direnv. So I don't think so. But yeah... maybe?
<jomik> Maybe you can set pwd first or something :P
<iqubi4> `man nix-shell` seems to suggest that I can pass in a path.
<jomik> I think that's just as nix path tho
<iqubi4> What does that mean?
<iqubi4> If path is not given, nix-shell defaults to shell.nix if it exists, and default.nix otherwise.
<iqubi4> That seems to imply that I can give the path of a different shell.nix.
<jomik> Oh, try!
lopsided98 has quit [Ping timeout: 252 seconds]
<iqubi4> ~/.emacs.d $ nix-shell ~/hs/math/shell.nix
<iqubi4> error: syntax error, unexpected '=', expecting $end, at /home/avi/hs/math/shell.nix:3:11
<iqubi4> So I set my working directory to .emacs.d
<iqubi4> then I load up a nix-shell with a shell.nix from a different place.
<iqubi4> but actually, I think direnv will work a lot better.
lopsided98 has joined #nixos
goibhniu has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @FRidh opened pull request #53142 → pytest: introduce runTests function → https://git.io/fhtiY
ambro718 has joined #nixos
erictapen has joined #nixos
FRidh has joined #nixos
<iqubi4> etu: Do you do haskell development perchance?
<etu> iqubi4: nope
<iqubi4> alright then. You aren't the right person to ask about getting haskell, emacs, and nix to work together.
vidbina has joined #nixos
<siraben> iqubic: Do you know who is?
<siraben> iqubic: ah maybe you can recommend some Haskell packages for Emacs, I haven't found much use out of haskell-mode
<iqubi4> siraben: How did you get haskell-mode to find your shell.nix?
<iqubi4> siraben: See this: https://github.com/jyp/dante
<siraben> I haven't done Haskell development on Nix yet, that was before.
<siraben> I'll try tomorrow and see, because I'm revisiting haskell
<iqubi4> I hope it's not hell for you too.
<siraben> iqubic: how has it been for you?
<iqubi4> It's been a large pain. Mostly because I use EXWM and don't want to launch a second emacs instance through a nix-shell
<iqubi4> if you are fine with launching your editor through nix-shell, it might be better for you.
<wedens> what's wrong with direnv?
<iqubi4> I haven't tried it.
<iqubi4> That's what's up with it.
<gagbo> Hello (and happy new year), what's the point of using home-manager ( https://github.com/rycee/home-manager ) instead of a ~/.config/nixpgks/config.nix file ?
<sphalerite> gagbo: it can put files anywhere in your home, providing nixos-like configuration for your user applications
<r5d> and it speaks dconf
<gagbo> I'll google dconf later. Thanks for clearing that though, I've put "find a way to declaratively write ~/.profile" in my TODO list, I suppose that's what I was looking for then
<jomik> gagbo: IIRC it uses pam environment, basically the same tho?
<gagbo> I did not understant that
aexoxea has quit [Quit: Goodbye!]
<gagbo> s/tant/tand/
imalsogreg has quit [Remote host closed the connection]
<gagbo> Dconf looks cool, I've been looking for a way to properly extract my plasma configuration so I can just GNU stow it, and I have to say it's looking pretty ad
<gagbo> bad
<jomik> I've pretty mixed feelings about my dotfile configuration using nix/home-manager. Simply because using a plain string is hard to maintain... I'd prefer keeping my syntax highlight and language features for configuring things like emacs and xmonad.
<jomik> But, also would like to be able to ensure that the packages are use, are present, by keeping it in my config.. >.o
<gagbo> I thought you'd be able to fetch text from URLs
<jomik> Sure, I could do that.
<wedens> jomik: I'm somewhat in the same place as you :)
<jomik> Like, you could have a git repo with your xmonad config.
<jomik> But it becomes a pain to update then :D
<jomik> wedens: Damn :P I wish you'd just have a solution :P
<gagbo> jomik: I did not think of updating, it looks harder indeed
<wedens> I was suggested using json to transfer data from nix to xmonad
<jomik> I did consider having a build step in nix to transfer the data into xmonad too.
<jomik> Sort of having my xmonad.hs in some other dir, load it with nix, do some search replace thing and then use that.
<jomik> Or perhaps just export all that I need into a haskell module..?
<wedens> you can also do `substituteAll` and use .hs file like a template
<jomik> It'd probably be a problem for the types in haskell.
<jomik> I suppose my syntax checker, etc, would complain.
<wedens> treat is as a string
<jomik> Oh, true..
<jomik> xD
<jomik> The tokens that should be replaced, you mean?
<wedens> if it's a number or something, parse it like any other string
<wedens> yeah
<jomik> Yeah.
<jomik> Still feels like a lot of extra work to have it in two places, essentially.
<jomik> I guess it is primarily for ensuring that my dependencies are present..
<jomik> Had the same issue with emacs though. I was doing some bulky ass use-package attribute set, that I'd parse into text.
<jomik> But, not really sure how I'd handle that properly. I think my primary issue there was how to handle stuf like keybindings in a sensible way.
<wedens> how's nix related to that?
<jomik> I want to configure it in nix?
<wedens> I woldn't go farther than using nix as a package manager for emacs ;)
<jomik> So you manage packages ad-hoc for emacs? :P
<wedens> and you can extract some coherent piece of configuration as a package
<jomik> Elaborate?
<wedens> you can make a regular emacs package and (if you manage emacs packages via nix) create a derivation for the package
yegortimoshenko has left #nixos ["User left"]
jD91mZM2 has quit [Quit: WeeChat 2.2]
<wedens> jomik: I've just stumbled upon this config that also tries to configure emacs from nix https://gitlab.com/rycee/configurations/blob/745260f1069b90156396d88797c9e56cfe484170/user/emacs.nix
<jomik> OOoooh
<jomik> This looks sort of like that usePackage setup I was pondering.
<jomik> Neat! I'm gonna snap this.
<jomik> My only issue was that I would have to add to the submodule type to add extra keywords to use-package, e.g. `:general`.
ensyde has quit [Ping timeout: 250 seconds]
tilpner has quit [Quit: WeeChat 2.3]
imalsogreg has joined #nixos
<jomik> rycee: Your emacs configuration looks like something that'd be nice to have in home-manager! Is there a reason you haven't added it to HM? Just curious if you found any faults or anything so far.
<jomik> Ah, gotta walk the dogs..
vidbina has quit [Ping timeout: 250 seconds]
jomik has quit [Ping timeout: 246 seconds]
alex`` has quit [Ping timeout: 250 seconds]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @liff opened pull request #53143 → aspell: add all missing official dictionaries → https://git.io/fhtP1
boredom101 has joined #nixos
orivej has joined #nixos
eadwu has joined #nixos
vidbina has joined #nixos
<exarkun1> I have one channel, nixpkgs, which points at "https://nixos.org/channels/nixos-18.09" but when I `nixops deploy` a new machine it says "setting state version to 19.03". What am I missing?
boredom101 has quit [Quit: Page closed]
erictapen has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 245 seconds]
<jasongrossman> exarkun1: state version is a horrible misnomer. It's only a label for checking whether some formats (e.g. databases) might have changed. You should almost always ignore it.
<exarkun1> okay, great, thanks.
tilpner has joined #nixos
betaboon has quit [Quit: ZNC - https://znc.in]
betaboon has joined #nixos
jD91mZM2 has joined #nixos
jD91mZM2 has quit [Client Quit]
jD91mZM2 has joined #nixos
erictapen has joined #nixos
jomik has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #53144 → python3Packages: add Sanic HTTP Server (and dependencies) → https://git.io/fhtXx
kisonecat has joined #nixos
m15k has joined #nixos
kisonecat has quit [Ping timeout: 245 seconds]
<philipp[m]> Is there a special reason for root running x11 in nixos (other than nobody having time to implement a non root x11)?
agander has quit [Remote host closed the connection]
yosemitesam has joined #nixos
agander has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53128 → suitesparse: 5.3.0 -> 5.4.0 → https://git.io/fht3p
<{^_^}> [nixpkgs] @timokau pushed to master « suitesparse: 5.3.0 -> 5.4.0 (#53128) »: https://git.io/fht1H
<lassulus> I guess nobody figured out how to run x11 without root?
<lassulus> I tried it once but couldn't get it working
<yosemitesam> lassulus: Do you use home-manager and did you try what is described in the readme of its repo? https://github.com/rycee/home-manager
<{^_^}> [nixpkgs] @edef1c pushed to master « sdate: fix function wrapper »: https://git.io/fht1b
<jomik> Anyone have an idea why "we" build a package here and then source it from init.el, instead of just setting text to be initFile (skipping the package) https://gitlab.com/rycee/configurations/blob/master/user/modules/programs/emacs-init.nix#L343
<jomik> I don't wanna ping him again, lol. Was just pondering if anyone had an idea why!
<philipp[m]> Alright, I'll give it a shot then.
<lassulus> yosemitesam: I have not, but the xserver is run by nixos, home-manager just overrides the startupscript of the session the displaymanager opens
<yosemitesam> lassulus: oh okay, well then I don't know. sorry
<lassulus> afair most other distributions run x11 as root, but I could be mistaken
<jomik> You can probably use a user service lassulus ?
<jomik> If that is what you meant :o
<exarkun1> ubuntu runs the Xorg process as the user logged in to the session
<{^_^}> [nixpkgs] @godelized opened pull request #53145 → zoom-us: 2.6.146750.1204 -> 2.6.149990.1216 → https://git.io/fhtMZ
goibhniu has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<mog> if i do a nix-channel --update
<mog> is there a way to see if the channel actually updated?
MrCoffee has joined #nixos
Makaveli7 has joined #nixos
goibhniu has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<wedens> `nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version)'` will give you the current version
<mog> ya i dont want the current version
<exarkun1> what do you want?
<mog> i want to detect that i am in need of new stuff as a new update is out
<wedens> thena how do you want to know whether is has updated or not? :)
<mog> well i need both
<mog> the current version im running and if nix-channel --update actually updated the channel
<mog> i think /root/.nix-defexpr/channels/nixos/.version-suffix is what i want
<ottidmes> > nix-instantiate --eval --strict --expr 'with import <nixpkgs/nixos> { }; config.system.nixos.revision'
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):214:40
orivej has joined #nixos
<ivan> what are the good settings for 2011ish radeon that will make my triangular tearing go away? I have hardware.enableAllFirmware = true; and a `Driver "radeon"` in my xorg config but I'm not sure it's taking effect
<wedens> mog: do you upgrade with nix-env -u '*'?
<mog> nixos-rebuild switch
<wedens> ah, ok. so you're on nixos. you can do `nixos-rebuild dry-build`
<ottidmes> ivan: maybe check this section: https://wiki.archlinux.org/index.php/ATI#Performance_tuning
<wedens> mog: it's not limited to a channel, but I don't think it matters
yosemitesam has quit [Quit: WeeChat 2.3]
<mog> ya i only have the one
Melkor333 has joined #nixos
Melkor333 has quit [Client Quit]
<ivan> ottidmes: thanks
yosemitesam has joined #nixos
yosemitesam has quit [Client Quit]
yosemitesam has joined #nixos
yosemitesam has quit [Client Quit]
Melkor333 has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
vidbina has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
Melkor333 has quit [Quit: WeeChat 2.3]
alex`` has quit [Ping timeout: 250 seconds]
Melkor333 has joined #nixos
tamashi has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
imdoor has joined #nixos
obadz- has joined #nixos
alex`` has joined #nixos
obadz has quit [Ping timeout: 250 seconds]
obadz- is now known as obadz
<{^_^}> [nixpkgs] @tilpner opened pull request #53147 → abduco: 0.6 -> 2018-05-16 → https://git.io/fhtDP
<{^_^}> [nixpkgs] @basvandijk pushed to master « haskellPackages.inline-c-cpp: disable test-suite on darwin to fix the build »: https://git.io/fhtD1
<exarkun1> Hmm I thought perl cross compilation was fixed :/
<tilpner> exarkun1: Did you try the thing I suggested?
<exarkun1> tilpner: setting `crossSystem` instead of `system`? Yes. That fixed everything except perl.
<exarkun1> "No patchset found for perl5-5.28.1 in cnf/diffs" I guess maybe perl cross compile was fixed and then perl was updated which re-broke it
obadz has quit [Ping timeout: 272 seconds]
<exarkun1> looks versions are perl-cross 1.2 and perl 5.28.1. perl-cross 1.2 changelog says support for 5.28 and perl-cross 1.2.1 changelog says support for 5.28.1.
<wedens> how do I pin nixos modules?
<tilpner> You pin the nixpkgs version you take them from. That pins all of them. You don't want to pin individual ones
<exarkun1> bumped crossVersion to 1.2.1, making more progress now
shibboleth has joined #nixos
<exarkun1> looks like somebody already bumped it (to some git rev) in nixpkgs master
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
<wedens> tilpner: how do I do that? I already have pinned nixpkgs that I use for "packages". but I don't know how to pin entire nixos
rfold has joined #nixos
cyounkins has joined #nixos
agander has quit [Ping timeout: 240 seconds]
cyounkins has quit [Read error: Connection reset by peer]
cyounkins has joined #nixos
shibboleth has quit [Remote host closed the connection]
<tilpner> wedens: NixOS is contained within the nixpkgs you pinned. How did you pin them?
<wedens> I'd like to avoid using nix-channel and just handle updating revision myself (perhaps with a help of some script that'll bump the revision)
<wedens> tilpner: I just do `pinned = import (builtins.fetchTarball { bla bla`
<wedens> I use it to explicitly install packages from specific nixpkgs revision
shibboleth has joined #nixos
cyounkins has quit [Ping timeout: 245 seconds]
<tilpner> I'm doing exactly what you describe. I have JSON files that are passed to fetchTarball, and ugly nix-shell+bash scripts to update them
<jomik> How do I upgrade emacs packages when they are installed from emacsPackagesNg?
<jomik> Some of these are from June :(
<tilpner> I'm not quite happy with them, so I'll not paste them for now. But you want to set NIX_PATH=nixpkgs=..., so that ... is a directory that either imports your pinned JSON descriptions, or is linked to a checkout of them
<wedens> tilpner: but how do you use pinned nixpkgs for entire system and not just specific packages?
Berra has joined #nixos
<tilpner> Once you set that globally, all Nix tools will use your pinned nixpkgs
<tilpner> (Well, not all. There's nix-env, which needs special treatment)
<{^_^}> [nixpkgs] @Ma27 opened pull request #53148 → libqrencode: alias to `pkgs.qrencode`. → https://git.io/fhty8
<jomik> Yah, there's a ton :P
<jomik> But that seems sort of... suboptimal.
<jomik> I'd rather PR a fix in
GiGa has joined #nixos
<GiGa> Happy new year all
<wedens> well, he's an emacs maintainer, so I guess some of this stuff you don't need
<GiGa> Could anyone give me guidance on enabling PHP's Xdebug please? I've installed php71Packages.xdebug
<GiGa> and php72Packages.xdebug
simendsjo has joined #nixos
<GiGa> but "php -v" doesn't mention Xdebug. I'm assuming I need to enable it in php.ini but I don't know how to put that in configuration.nix
<wedens> tilpner: what's special about nix-env? it doesn't respect NIX_PATH?
<{^_^}> [nixpkgs] @jtojnar opened pull request #53149 → qrencode: merge with libqrencode → https://git.io/fhtyi
<exarkun1> tilpner: is `nixpkgs.pkgs` relevant to wedens' question? from the docs I can't exactly figure out what uses that value.
<tilpner> wedens: Yep, it doesn't care about your NIX_PATH at all. Instead, it consults ~/.nix-defexpr ("default expression" IINM), which can be configured to use NIX_PATH
<exarkun1> Ahh sad. newer cross-perl doesn't work either, fails when it gets to dynamic module loading that's required as a later part of the build.
<exarkun1> maybe I should grab the whole perl/default.nix from master@HEAD
<tilpner> exarkun1: Kind of, but it's not going to help with pinning modules
<wedens> tilpner: so, I set NIX_PATH when I seed the system and then I can set it in a session variable? or can it be set in `nix.nixPath`?
<wedens> jomik: I'd like to implement pinned emacs packages with update via script. I currently use straight.el, but I'd like to implement the same experience using nix
<tilpner> It can be set via nix.nixPath, but needs to be set manually once, when you install your system or whenever you change your nixPath value
<tilpner> (Assuming your change breaks/fixes evaluation)
rfold has quit [Quit: leaving]
codyopel has joined #nixos
agander has joined #nixos
tzemanovic has joined #nixos
<ivan> my solution to my radeon triangular tearing (without the latency hit of Option "TearFree" "on") is Option "AccelMethod" "exa"
<jomik> wedens: Ah, thats nice! Tho, I don't see how it is
<jomik> Huh. I didn't mean to write that xD
<wedens> tilpner: should it be`NIX_PATH=nixpkgs=$HOME/nixpkgs"` or `NIX_PATH=$HOME/nixpkgs:nixpkgs=$HOME/nixpkgs"`?
<jomik> But yeah, sorta defeats the purpose of configuring stuff in nix then :P
phreedom has quit [Ping timeout: 256 seconds]
<tilpner> wedens: I have NIX_PATH=nixpkgs=/cfg/nixpkgs. nix 2 has some issues with unprefixed path items, see nix#1865
<{^_^}> https://github.com/NixOS/nix/issues/1865 (by matthewbauer, 45 weeks ago, open): attribute 'nixpkgs' in selection path 'nixpkgs.hello' not found
<tilpner> gchristensen: I needed a way to refer to things in my configuration or the current nixpkgs. (path + /foo) gets annoying, and relative paths are tedious to change if you reorganise something, so mod (and a few others) are what I ended up with
erictapen has quit [Ping timeout: 250 seconds]
<tilpner> All paths given to mod are relative to some shared source root, I don't have to think about where the file is located, how many levels of directories to navigate up, etc.
<tilpner> Not really, that was for fetching with pre-Nix2. You probably have Nix2 everywhere now, so you don't have to bother with that
<gchristensen> nice, tilpner
<ottidmes> tilpner: I ended up doing the very same: (nixcfg /wheel/config) where nixcfg is my mod, before I used <nixcfg/wheel/config>, but thats impure
<tilpner> gchristensen: All solutions ended up making my config incompatible with everyone elses, so I figured I'd just take the easiest-to-use one :/
m15k has quit [Ping timeout: 256 seconds]
<tilpner> Even with relative paths, you can't take modules from one persons config and expect them to work in another persons system
philippD has joined #nixos
<tilpner> ottidmes: Do you use specialArgs too? I found that necessary if I wanted to use (mod ...) for module imports
<gchristensen> specialArgs?
<tilpner> specialArgs is an argument to lib.evalModules
<ottidmes> tilpner: I do, otherwise you indeed run into the problem where you need mod to determine config and you define mod via config, which won't work
erictapen has joined #nixos
<ottidmes> tilpner: personally I have it in a customized lib, since I just use with lib; on top of most modules, so my config is even less portable, but I have never copied over someone's NixOS config/module as is in the first place, so I am OK with that
<ottidmes> tilpner: I am using this: https://github.com/NixOS/nixpkgs/pull/51894
<{^_^}> #51894 (by ottidmes, 2 weeks ago, open): configure the evaluation of modules in a modular way
eadwu has quit [Ping timeout: 250 seconds]
<tilpner> Oh, interesting!
* tilpner subscribes
<tilpner> That would break my evalNixos function, it's using check = false; for the first stage :/
<ottidmes> tilpner: how so?
<tilpner> But maybe adding a dummy module with _module.check = false; would help. I don't know if _module.check affects just the current one, or all of them
<tilpner> Well, you remove the check argument
<tilpner> Or maybe I got it wrong. It seems you add it in a different place
<ottidmes> tilpner: on evalModules? only on the inner one, I am wrapping it with another function that does support check and does what your dummy module does
<tilpner> Ahh, I missed that
<ottidmes> tilpner: I still have to do some work on it, but I tried to make it completely compatible with what it was
erictapen has quit [Ping timeout: 250 seconds]
<tilpner> lib/eval-modules.nix is in the nixpkgs part of the repo, but your modulesPath is NixOS specific. That might be undesirable if other projects (e.g. home-manager) want to use nixpkgs modules system
__monty__ has joined #nixos
<ottidmes> tilpner: could you add that as a comment? that way I remember it when I go work on it again later
<tilpner> Sure
<ottidmes> another issue I thought of today is how to deal with: baseModules ? import ../modules/module-list.nix, if you change the pkgs location, you probably also want to change those modules.
<gchristensen> seems you should just import a different nixpkgs then?
<ottidmes> gchristensen: yeah, but the goal of this PR is to allow your configuration to be more self contained, so I would rather not have to resort to needing to configure my nixpkgs outside of my configuration
<gchristensen> imo nixpkgs should be specified external to nixos
<gchristensen> for example, using builtins.fetchGit to fetch nixpkgs which is used to import nixos
<gchristensen> instead of using nixos to configure nixpkgs
<ottidmes> gchristensen: but it is one of the things I think needs a proper rethinking in my current PR, because the way nixpkgs is setup the current location where I can specify nixpkgs is too late, then I would need a nixpkgs even to specify a different nixpkgs
<tilpner> I mostly agree, but not entirely. My machine configurations have lines like system.nixpkgs.path = sources.unstable;
<ottidmes> gchristensen: the way things are, that is the only clean way to do so, but my config is highly coupled with the nixpkgs I am using, so I would like to be able to specify nixpkgs too as a part of my configuration
<gchristensen> I think it is a mistake to try to configure nixpkgs from within a nixos configuration
<tilpner> These sources are configured externall, but it's useful to allow configurations to pick one of them
<gchristensen> s/configure/specify/
<ottidmes> gchristensen: could you eloborate? I mean nixpkgs pinning inside of an overlay part of your configuration is common too
<gchristensen> what does that mean? elaboration: if you want to be specific about what nixpkgs you want, I think you should do that outside of the nixos configuration, and import nixos from an externally specified nixpkgs.
<tilpner> ottidmes: That's ugly, if you mean the let ... = fetch* ...;, because now it's much harder to automate updates of your packages
<ottidmes> gchristensen: to be clear, when I say configuration, I mean it broader than my NixOS configuration, the function defined in the PR that allows you to specify those things passed to evalModules is not part of your NixOS configuration (how could it, that would be a loop)
<ottidmes> gchristensen: I was looking at that today actually, your pure-eval branch
eadwu has joined #nixos
<tilpner> Hmm, why? Sure, it's a bit troublesome to configure from within the config, but that's because it wasn't designed to be easy, not because there's something intrinsically wrong with it?
<gchristensen> it gives the illusion of purity, but it isn't, and if you want to be so specific, I think it is better to be actually pure about it
cyounkins has joined #nixos
eadwu has left #nixos [#nixos]
<tilpner> Why do you think it's impure?
<gchristensen> it is using one nixpkgs to fetch another, and an unconstrained version of nixos to do so, but you can just do it once -- fetch the one you want and use its modules and packages in one go
<tilpner> It's actually using a pinned nixpkgs to fetch the other sources
<tilpner> And sources.unstable is pinned too
cyounkins has quit [Ping timeout: 272 seconds]
<gchristensen> I've lost track of what we're talking about
<ottidmes> me too
<tilpner> ._.
<ottidmes> gchristensen: just to be sure you understand my point, the reason for making the PR is more about being able to specify things that now have to be done outside of it (which is not even possible for some things), coupled with your NixOS configuration, but not defined via your NixOS configuration
<ottidmes> gchristensen: and I agree, right now in my PR, redefining your nixpkgs is not done right, because having to need a nixpkgs to specify your nixpkgs is roundabout and ugly
<ottidmes> gchristensen: hence my note on needing to rethink that part
simendsjo has quit [Ping timeout: 250 seconds]
<gchristensen> aye
tilpner has quit [Ping timeout: 250 seconds]
GiGa has quit [Quit: Leaving]
Makaveli7 has quit [Quit: Leaving]
ddellacosta has joined #nixos
znc has joined #nixos
znc is now known as Guest88193
Makaveli7 has joined #nixos
stranger___ has joined #nixos
<stranger___> hi
Guest88193 has left #nixos ["WeeChat 2.3"]
<stranger___> is it possible to use jack + alsa setup? if so, how? bitwig can't connect to jack
eadwu has joined #nixos
simendsjo has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « sbt: 1.2.7 -> 1.2.8 »: https://git.io/fhtHn
<rnhmjoj> is it possibile to use runCommand to do an assertion in a nixos module?
<gchristensen> not really... what do you want to assert?
orivej has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « sbt: 1.2.7 -> 1.2.8 »: https://git.io/fhtHl
<rnhmjoj> i want to add a check for the validity of password hashes, i think it's possibile in nix only but it will probably be a mess to write
stigo has quit [Quit: WeeChat 2.2]
<gchristensen> some modules will get configuration in derivationA, pass it to a runCommand which validates the config and copies it to derivationB, and then the module uses derivationB for its configuration and if the validation fails the build fails
stigo has joined #nixos
<stranger___> ok for now i've set alsa in bitwig
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<Izorkin> Please help, how to fix error https://github.com/NixOS/nixpkgs/issues/53134
<{^_^}> #53134 (by petabyteboy, 16 hours ago, open): prosody stores passwords in plain text
<{^_^}> #53131 (by Izorkin, 19 hours ago, open): Prosody: error build configuration
<clever> rnhmjoj: it would probably be better to handle it like nix.conf
<{^_^}> [nixpkgs] @yrashk opened pull request #53150 → eaglemode: 0.86.0 -> 0.94.0 → https://git.io/fhtHP
tzemanov_ has joined #nixos
jtojnar has quit [Read error: No route to host]
jtojnar has joined #nixos
tzemano__ has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
tzemanov_ has quit [Ping timeout: 252 seconds]
<rnhmjoj> thanks you both, i'll see what i can do
<gchristensen> clever: why is that behind an option?
<gchristensen> why not just always check
<{^_^}> [nixpkgs] @xeji merged pull request #53115 → smartmontools: 6.6 -> 7.0 → https://git.io/fhteD
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « smartmontools: 6.6 -> 7.0 (#53115) »: https://git.io/fhtQT
<{^_^}> [nixpkgs] @xeji merged pull request #53130 → neovim: 0.3.1 -> 0.3.2 → https://git.io/fhtRG
<{^_^}> [nixpkgs] @xeji pushed commit from @tex to master « neovim: 0.3.1 -> 0.3.2 (#53130) »: https://git.io/fhtQL
romildo has joined #nixos
tzemanovic has joined #nixos
romildo has left #nixos [#nixos]
tzemanov_ has joined #nixos
pinage404[m] has joined #nixos
DeaDSouL has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #52510 → perldevel: 5.29.4 -> 5.29.6 → https://git.io/fphV9
tzemano__ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « perldevel: 5.29.4 -> 5.29.6 (#52510) »: https://git.io/fhtQs
DeaDSouL has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
tzemano__ has joined #nixos
_lawlesseel has joined #nixos
tzemanov_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #53137 → haskellPackages.djinn: apply patch for GHC 8.4 → https://git.io/fhtwq
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhtQZ
<infinisil> gchristensen: i think something with cross comp
<gchristensen> :/
lawlesseel has quit [Ping timeout: 256 seconds]
ryanofsky has quit [Quit: ZNC 1.7.1 - https://znc.in]
<infinisil> Enabling the option requires a build of nix for the build platform, which may not he the same nix that gets used for the deploy host
<infinisil> Not sure on the details, but i het a reason lurks there
<infinisil> s/het/bet
_lawlesseel has quit [Quit: Leaving]
<Izorkin> Please help, how to fix error https://github.com/NixOS/nixpkgs/issues/53131
<{^_^}> #53131 (by Izorkin, 19 hours ago, open): Prosody: error build configuration
_lawlesseel has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #53061 → nghttp2: 1.35.0 -> 1.35.1 → https://git.io/fhLOO
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to staging « nghttp2: 1.35.0 -> 1.35.1 (#53061) »: https://git.io/fhtQV
tzemanovic has joined #nixos
tzemano__ has quit [Ping timeout: 252 seconds]
erictapen has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
simendsjo has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #52798 → neovim-remote: 2.1.1 -> 2.1.3 → https://git.io/fhUKA
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « neovim-remote: 2.1.1 -> 2.1.3 (#52798) »: https://git.io/fhtQF
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
shibboleth has quit [Quit: shibboleth]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 244 seconds]
erictapen has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
_lawlesseel has quit [Ping timeout: 256 seconds]
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamashi has quit []
<{^_^}> [nixpkgs] @xeji merged pull request #52312 → gitAndTools.gitRemoteGcrypt: 1.1 -> 1.2 → https://git.io/fpN0U
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gitAndTools.gitRemoteGcrypt: 1.1 -> 1.2 (#52312) »: https://git.io/fht7m
<{^_^}> [nixpkgs] @xeji closed pull request #52674 → enlightenment.terminology: 1.3.0 -> 1.3.2 → https://git.io/fhJOA
<shazow> is there a clean way to import a hardware definition like https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/x1/6th-gen/default.nix but to override parts of it? for example, I want to disable the cpu-throttling-bug.nix service/timer it creates
erictapen has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #52866 → kicad: 5.0.1 -> 5.0.2 → https://git.io/fhTJ8
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « kicad: 5.0.1 -> 5.0.2 (#52866) »: https://git.io/fht7B
rfold has joined #nixos
erictapen has joined #nixos
cyounkins has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
erictapen has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
<joepie91> anybody else using VS Code and experiencing crashes when entering folders in the open/save/etc. dialogs?
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fht7X
<exarkun1> cool, nix doesn't cross-compile? /build/.attr-0: line 25: /nix/store/vdk85m66kx33wlmh4qm8pwwxph88jw5f-nix-2.1.1-armv6l-unknown-linux-gnueabihf/bin/nix: cannot execute binary file: Exec format error
tzemanovic has quit [Ping timeout: 252 seconds]
<infinisil> shazow: You can import it like normal, then `systemd.timers.cpu-throttling.enable = mkForce false;` in your configuration
<infinisil> (lib.mkForce)
<shazow> infinisil: ah perfect, that did the trick! I was trying mkOverride
<infinisil> :)
<shazow> thank you :)
<shazow> now I need to figure out why my `xdpyinfo | grep resolution` is 96 dpi despite https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/x1/6th-gen/QHD/default.nix#L10-L11 being set
<shazow> ah, looks like it doesn't actually write the dpi to the xorg config, but rather changes the command that gets run which I'm not using... mmmm...
<{^_^}> [nixpkgs] @xeji merged pull request #53066 → gitkraken: 4.0.5 -> 4.1.1 → https://git.io/fhLci
<{^_^}> [nixpkgs] @xeji pushed commit from @megheaiulian to master « gitkraken: 4.0.5 -> 4.1.1 (#53066) »: https://git.io/fht5v
<{^_^}> [nixpkgs] @ikervagyok closed pull request #48549 → [WIP] X11 updates and refactor → https://git.io/fxu71
<{^_^}> [nixpkgs] @xeji merged pull request #53140 → vim-parinfer: init → https://git.io/fhtKO
<{^_^}> [nixpkgs] @xeji pushed commit from @yegortimoshenko to master « vim-parinfer: init (#53140) »: https://git.io/fht5t
<{^_^}> [nixpkgs] @symphorien opened pull request #53151 → rls: init at 1.31.7 → https://git.io/fht5m
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « lxc: 3.0.2 -> 3.0.3 (#52239) »: https://git.io/fht5s
<{^_^}> [nixpkgs] @xeji merged pull request #52239 → lxc: 3.0.2 -> 3.0.3 → https://git.io/fpNUL
<gchristensen> is there a limit to the size of a given argument in the kernel?
asymmetric has joined #nixos
CLNinja has joined #nixos
<CLNinja> Hey, i'm working on trying to get a package working for my friends java programs and libraries, but i'm getting stuck with building it in buildPhase. Anyone available to lend a hand?
stranger___ has quit [Quit: Connection closed for inactivity]
<betaboon> gchristensen: https://www.kernel.org/doc/html/v4.15/admin-guide/kernel-parameters.html search for COMMAND_LINE_SIZE
Church_ has joined #nixos
tzemanovic has joined #nixos
juhe has quit [Quit: Leaving.]
<infinisil> ,ask CLNinja
<{^_^}> CLNinja: Just ask your question. It's the best way to know if anybody can help.
<gchristensen> betaboon: so smalL!
<CLNinja> So i'm making the package, and i'm trying to get gradle (or gradlew working which ships with it) but if i use gradle, it errors on one of the plugin imports in the build.gradle file, if i use gradlew it says"usr/bin/env: bad interpreter: No such file or directory"
<CLNinja> here's the package: https://hastebin.com/raw/uraredihuw
m15k has joined #nixos
<gchristensen> betaboon: hrm thath is the kernel parameters, not exec limits
<symphorien> gchristensen: for arguments in exec, it is 1/4 of the initial stack size, as speicified in ulimit iirc
<betaboon> gchristensen: ah sorry then i misinterpreted your question.
obadz has joined #nixos
eadwu has quit [Ping timeout: 272 seconds]
<infinisil> CLNinja: Yeah that's a common problem, you don't have /usr/bin/env in the nix sandbox, some shell script apparently tries to use that in a shebang. You need to fix the shell script by calling patchShebangs on it
orivej has joined #nixos
<CLNinja> infinisil: Okay, so i got past that now i'm just getting some normal java issues. What should i set as JAVA_HOME for nix?
<CLNinja> Oh wait no i just need to pass it java in the package
<infinisil> You can also use gchristensen's https://search.nix.gsc.io/ to find occurences of things in nixpkgs, a search for JAVA_HOME gives a bunch of results
eadwu has joined #nixos
<eyJhb> Sagemath build time => 4+ hours. Test time, 3.2 hours...
phreedom has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<CLNinja> So I got past the shebang issue, but now I'm just getting a massive gradle error: https://hastebin.com/raw/enofehugiw
eadwu has quit [Ping timeout: 246 seconds]
<symphorien> CLNinja: you can't access the network in the build sandbox
<CLNinja> Is there a way to allow it to?
tyang has joined #nixos
<symphorien> the right way is to cleanly separate fetching dependencies and building
<symphorien> fixed output derivations (ie those with a known output hash) can access the network
orivej has joined #nixos
<ptotter[m]> which branch would be most suitable? It's a leaf package and fixes issues with HTTP/2 proxies
<simpson> ptotter[m]: Let's see if any core folks have opinions, but IMO you'd make your PR target `master` and you'd state in the PR that you think it should be backported. I'm not sure whether it's right etiquitte to make the backport PRs without doing the master PR first.
blumenkranz has joined #nixos
<blumenkranz> Hello. Do you happen to know how could I refer to a specific package in the store's /etc from a script?
<simpson> *etiquette. Manners.
<ptotter[m]> right, I based it on release-18.09, since that's what I'm running, and it seemed to result in a smaller amount of dependencies being dragged in
<ptotter[m]> but it's easy to cherrypick on top of master
<ptotter[m]> simpson: thank you
<blumenkranz> I need to find the firejail package in the nix store to refer to it from my personal firejail configuration, but I do not know how to search for the currently used firejail package
<CLNinja> Yea so i'm working on specifying an output hash for the files, i managed to get it to go through but now it's failing on compileJava
<simpson> > "${firejail}/etc" # blumenkranz
<{^_^}> "/nix/store/879nb5ji3acx83c00h05lm8z2pllb4ys-firejail-0.9.56/etc"
ma9e has joined #nixos
<simpson> blumenkranz: Oh, I see. You can use `pkgs.firejail`, using the `pkgs` from the top level of your module, if you don't need for it to be configurable.
jomik has quit [Quit: WeeChat 2.2]
<blumenkranz> simpson: does that work from a bash script?
<blumenkranz> I think firejail's config files can only access environment variables, though.
<simpson> Ah. You might have to create that config file then. This is to do some sort of inclusion from the original package's config?
<simpson> Perhaps a `substituteInPlace` when you build the file.
<blumenkranz> Yes. Firejail can read from your /home some specific config files, but it must refer to some firejail files located in the store.
<blumenkranz> I guess I could try to rebuild these files with every update.
shibboleth has joined #nixos
obadz has quit [Ping timeout: 245 seconds]
lawlesseel has joined #nixos
obadz has joined #nixos
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
<{^_^}> [nixpkgs] @elseym opened pull request #53152 → pythonPackages.pyatv: init at 0.3.12 → https://git.io/fhtFI
lawlesseel has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #53011 → perlPackages: cpan2nix updates → https://git.io/fhImG
<{^_^}> [nixpkgs] @xeji pushed 77 commits to staging: https://git.io/fhtFY
<{^_^}> [nixos-org-configurations] @zimbatm pushed to master « terraform: fix channel releases upload »: https://git.io/fhtFs
eadwu has joined #nixos
<m15k> samueldr: I wonder if you already setup nixos on lxd?
<samueldr> nope, only know lxd by name, never used the thing
sir_guy_carleton has joined #nixos
<m15k> Ok. Thanks.
CLNinja has quit [Quit: Page closed]
eadwu has quit [Ping timeout: 244 seconds]
eadwu has joined #nixos
<asymmetric> hi! i'm using packageOverrides in my ~/.config/nixpkgs/config.nix - how do i change the nixpkgs version used?
<asymmetric> my system uses 18.09, but i'd like my user to use unstable
<asymmetric> should i use import inside config.nix?
<asymmetric> or can it be kept in sync with a channel?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/9caa69fbae0 (from 11 days ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d4146e8c9df (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1bb4e5c8dc2 (from 24 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @dtzWill opened pull request #53153 → rofi: 1.5.1 -> 1.5.2 → https://git.io/fhtFS
shibboleth has quit [Quit: shibboleth]
Lingjian has joined #nixos
eadwu has quit [Ping timeout: 246 seconds]
Dagger has quit [Excess Flood]
m15k has quit [Ping timeout: 256 seconds]
<sphalerite> asymmetric: if you use nix-channel to add a nixpkgs channel for your user I think that should take effect as desired
Dagger has joined #nixos
<asymmetric> ah, so maybe instead of adding the channel as nixpkgs-unstable, i have to add it as nixpkgs
<asymmetric> got it, thx
<exarkun1> why do these commands have different behavior?
<exarkun1> NIX_PATH=nixpkgs=${PWD}/nixpkgs nix build --arg crossSystem '{ system = "armv6l-linux"; }' nixpkgs.systemd
<exarkun1> NIX_PATH=nixpkgs=${PWD}/nixpkgs nix-build --arg crossSystem '{ system = "armv6l-linux"; }' --expr '(import <nixpkgs> { }).systemd'
<exarkun1> The former succeeds with something already in the store, the latter fails
<exarkun1> (with some missing header error)
<exarkun1> sorry, the other way around
m15k has joined #nixos
<asymmetric> sphalerite: if i try nix-channels --add nixpkgs https://nixos.org/channels/nixos-unstable, i get an error: invalid channel URL 'nixpkgs'
<asymmetric> sorry, wrong order of arguments :)
worldofpeace has joined #nixos
drk_lrd_877_ has quit [Remote host closed the connection]
Melkor333 has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @asymmetric opened pull request #53154 → anki: 2.1.6-beta2 -> 2.1.7 → https://git.io/fhtbK
agander has quit [Quit: Leaving]
phreedom has quit [Ping timeout: 256 seconds]
tilpner has joined #nixos
obadz has quit [Ping timeout: 272 seconds]
tzemanovic has quit [Remote host closed the connection]
<neonfuz> Hey
tzemanovic has joined #nixos
<neonfuz> I'm trying to do a nixos upgrade, and it's telling me I need to set config.android_sdk.accept_license = true;
obadz has joined #nixos
rfold has quit [Quit: leaving]
<neonfuz> err, android_sdk.accept_license = true;
<neonfuz> how can I set that from nixos? I set it in ~/.config/nixpkgs/config.nix as my normal user but that didn't seem to affect it
<neonfuz> I'm guessing maybe root/.config/nixpkgs/config.nix, or preferrably somewhere in configuration.nix
<samueldr> neonfuz: it would be part of nixpkgs.config in the system config https://nixos.org/nixos/options.html#nixpkgs.config
<neonfuz> thanks
<samueldr> so nixpkgs.config.android_sdk.accept_license = true; AFAIK
<neonfuz> trying that
blumenkranz has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @fpletz merged pull request #53152 → pythonPackages.pyatv: init at 0.3.12 → https://git.io/fhtFI
<{^_^}> [nixpkgs] @fpletz pushed 5 commits to master: https://git.io/fhtNn
<exarkun1> okay, because `import <nixpkgs> { }` ignores the `--arg` passed, duh.
<exarkun1> so now I'm just left with systemd cross compilation failing for some reason
arjen-jonathan has quit [Ping timeout: 250 seconds]
esmerelda has joined #nixos
<exarkun1> looking at env-vars in the build dir left behind, I don't see why it would work. it never sets CFLAGS so I don't see how any headers could be found.
<exarkun1> but why doesn't it set it? there's plenty of things in buildInputs and nativeBuildInputs.
<symphorien> and in NIX_CFLAGS ?
<esmerelda> happy new year! it looks like the new firmware-linux-nonfree package contains a new but broken image for QCA9377 wifi chips (firmware-6.bin)
<esmerelda> I bisected my generations to confirm this is the cause of my issue. how do I blacklist this firmware or r
<exarkun1> symphorien: there's no NIX_CFLAGS set in env-vars at all
<esmerelda> *or pin to the old package?
tzemanovic has quit [Ping timeout: 246 seconds]
<exarkun1> symphorien: there is a NIX_CFLAGS_COMPILE which I don't know the significance of
tilpner has quit [Ping timeout: 244 seconds]
<symphorien> it is used by the gcc wrapper
<esmerelda> i started writing my own derivation but I'm in over my head. is there no way in nix to pin to a specific package hash?
<esmerelda> or perhaps a way to dissuade ath10k_pci from trying to load firmware-6?
tilpner has joined #nixos
<exarkun1> esmerelda: there is only a way to pin it, there is no way not to pin it
<exarkun1> esmerelda: do you have a start of an expression you can share on a pastebin?
<esmerelda> I only have wifi on my phone, sadly!
kisonecat has joined #nixos
<exarkun1> symphorien: do you know how NIX_CFLAGS_COMPILE interacts with cross compilation?
<symphorien> you can export NIX_DEBUG=1 to see what the wrapper does
<symphorien> NIX_CFLAGS_COMPILE will be injected in the command line of gcc if gcc is used as a c compiler (not linker)
<esmerelda> should i make a derivation just for QCA9377? I'm not quite sure how to prevent it from clashing with the main firmware-linux-unfree package though
<symphorien> the specifics are horribly complicated because of cross compilation
<exarkun1> yes. :/
<exarkun1> reading the source of the wrapper, I see it is looking at NIX_x86_64_unknown_linux_gnu_CFLAGS_COMPILE (which is not set). I wonder if this is the wrong wrapper.
s2mitrov has joined #nixos
vk3wtf has quit [Ping timeout: 246 seconds]
<exarkun1> CC is armv6l-unknown-linux-gnueabihf-gcc but systemd build is running a wrapper around /nix/store/vv4r320p5yd1k01kld62q1lppjxcswhb-gcc-7.3.0/bin/gcc
<s2mitrov> any python duders around? is there any reason to use pip +/- virtualenv when using nix-shell? or can nix replace the need for those entirely
tilpner has quit [Ping timeout: 245 seconds]
<symphorien> pip will only work correctly with pure python modules
<exarkun1> eh "Build type: native build" looks bad. I guess meson didn't notice it was a cross compile.
<ambro718> how would I define a package in a nix file such that it could be easily built using nix-build for a specific configuration file (which the package expression will read)?
<m15k> Can someone tell me how "/nix/var/nix/profiles/per-user/root/channels/nixos" is created. Seems to be missing in nixos tarball.
<s2mitrov> symphorien is there any reason to use it at all? ex. i'm writing a little bot to auto download some stuff for me and i depend on beautifulsoup and requests - both of which exist in nixpkgs.python37Packages
kisonecat has quit [Quit: leaving]
<ambro718> basically, the command line should look something like: nix-build -A myPackage ... path/to/config/file
<s2mitrov> there was a blog post i read about using python on nix where they used nix to set up their python environment (ex. python version, non-pure python deps) and then used pip to install the purely python stuff
<symphorien> if every dependency is in nixpkgs, I would not use pip
<s2mitrov> cool
<s2mitrov> just wanted to make sure i wasn't breaking some unspoken rule or something lol
<symphorien> don't think so :)
<s2mitrov> whats the deal with default.nix vs shell.nix, also? it seems like all these 2017 posts are using default.nix but afaict that's meant to be for nix-build and only as a fallback for nix-shell
rprije has joined #nixos
<s2mitrov> if i'm writing a little dinky program for myself and don't intend to make it a nix package, i should only need a shell.nix with a nixpkgs import and a list of deps for python37.withPackages, right?
<symphorien> yes
<esmerelda> hmm.... now that I'm thinking, maybe i could simply rm firmware-6.bin as an install-phase step in my custom version of firmware-linux-nonfree?
<s2mitrov> awesome, thanks :)
<exarkun1> it looks like nix meson build support knows about cross compilation
<exarkun1> there's a setupHook that tries to get the right args passed to meson
<exarkun1> but the args don't get passed
<s2mitrov> hmm.. if I'm on macOS (which comes bundled with python 2.7) and want to use python 3.7, I'll need to use stdenv.mkDerivation right?
tzemanovic has joined #nixos
imdoor has quit [Quit: imdoor]
<kyren> I'm on macos, and I'm currently getting a lot of errors of the form "cannot link '/nix/store/.tmp-link-xxxxx-xxxxxxxxx' to '/nix/store/.links/xxxxxxxxxxxxxxxxxxxxxxxxxx': File exists
<kyren> I do have auto-optimise-store turned on
<exarkun1> does a derivation have to invoke setup-hook explicitly? I would have thought it was automatic but I can't tell from the docs and my observations suggest it is not happening.
<{^_^}> [nixpkgs] @elseym opened pull request #53155 → pythonPackages.pybotvac: init at 0.0.12 → https://git.io/fhtAr
<s2mitrov> kyren mojave?
<kyren> yep
<Mic92> 9
<kyren> sorry if this is a known bug, I failed at finding it if so
<{^_^}> [nixpkgs] @astro opened pull request #53156 → patchbay, patchwork: init with appimage-run → https://git.io/fhtAM
<exarkun1> looks like stdenv activatePackage invokes setup-hook if it is defined
endformationage has joined #nixos
<mbrgm> is there an easy way to deep-merge two attribute sets?
<ottidmes> mbrgm: lib.recursiveUpdate
cyounkins has joined #nixos
<s2mitrov> kyren are you using home-manager by chance?
<kyren> s2mitrov I am!
<s2mitrov> i think one of my coworkers had this issue haha
<kyren> I've been doing probably the *wrong* thing and removing the entry in /nix/store/.links/ to proceed
<{^_^}> [nixpkgs] @fpletz merged pull request #53155 → pythonPackages.pybotvac: init at 0.0.12 → https://git.io/fhtAr
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/fhtA5
^W has quit [Remote host closed the connection]
hydraz has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 244 seconds]
<kyren> s2mitrov: so do you think I should just go open a real issue about this, or did your coworker open an issue already?
<mbrgm> ottidmes: just found that lib.mkMerge seems to be a shorthand to my `builtins.foldl' lib.recursiveUpdate {}` ?
cyounkins has quit [Remote host closed the connection]
<s2mitrov> i don't think they opened an issue, no
cyounkins has joined #nixos
<s2mitrov> no clue whether or not its a home-manager thing or a nix thing though
<{^_^}> [nixpkgs] @dguibert opened pull request #53157 → conky: 1.11.0 -> 1.11.1 → https://git.io/fhtxq
tilpner has joined #nixos
s2mitrov has quit [Quit: Textual IRC Client: www.textualapp.com]
<tilpner> Has anyone else observed issues with systemd-journald on recent nixos-unstable?
<tilpner> My server has become unresponsive (so I might disappear in the next few minutes, again), and the logs after the upgrade show lots of "systemd-journald.service: Watchdog timeout (limit 3min)!"
cyounkins has quit [Ping timeout: 250 seconds]
<tilpner> That might just be a symptom though
<joepie91> okay, it's that time of the year again - some packages in unstable mismatch a core dependency in stable, so using them on stable NixOS will result in segfaults
<joepie91> affected are, at least, Pidgin and VS Code
<tilpner> Afterwards it SIGABRTs itself. Grafana shows a system load of 30 just before death
<joepie91> when either of those crash, and you're using them from unstable, switch back to those on stable :)
vidbina has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
simukis has quit [Quit: simukis]
vk3wtf has joined #nixos
<ottidmes> mbrgm: if what you wanted to merge was NixOS configuration, then lib.recursiveUpdate would be the wrong function to use, that is just pure Nix and would not merge things as defines in the types of module options, which mkMerge does, mkMerge on the other hand does not work outside of the module system, so depending on the use case you would use the one or the other
Thra11 has quit [Ping timeout: 245 seconds]
<mbrgm> ottidmes: ok, thx for pointing this out
phreedom has joined #nixos
boredom101 has joined #nixos
<m15k> ll
Makaveli7 has quit [Quit: Leaving]
s2mitrov has joined #nixos
rprije has joined #nixos
Church_ has quit [Ping timeout: 246 seconds]
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #52964 → Dlang update 2018-12 → https://git.io/fhkcW
<{^_^}> [nixpkgs] @xeji pushed 6 commits to master: https://git.io/fhtpq
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53100 → Update various fonts → https://git.io/fhL9V
<{^_^}> [nixpkgs] @worldofpeace pushed 7 commits to master: https://git.io/fhtpC
<{^_^}> [nixpkgs] @xeji closed pull request #51720 → ldc: 1.11.0 -> 1.12.0 → https://git.io/fpSua
<{^_^}> [nixpkgs] @ryantm opened pull request #53158 → haskellPackages.binary-orphans: dontCheck → https://git.io/fhtp8
<{^_^}> [nixpkgs] @ryantm opened pull request #53159 → haskellPackages.github: dontCheck → https://git.io/fhtp4
thc202 has quit [Ping timeout: 246 seconds]
jackdk has joined #nixos
<gchristensen> symphorien: Io(Os { code: 7, kind: Other, message: "Argument list too long" }) -- aww
erictapen has joined #nixos
<symphorien> https://manpage.me/index.cgi?q=execve&sektion=2&apropos=0&manpath=CentOS+7.1 : section Limits on size of arguments and environment: you are guaranteed 8 pages and can get more with setrlimit
<gchristensen> it is fine, I'm doing a terrible thing anyway
<gchristensen> passing a big Nix expression plus two big json blobs over argv
phreedom has joined #nixos
<symphorien> you can pass them through a pipe, maybe
<jackdk> put them in files?
<gchristensen> yeah, I'll just write to a tempfile
<jackdk> bash bowtie?
Guanin has joined #nixos
<gchristensen> eh?
dermetfan has quit [Ping timeout: 245 seconds]
s2mitrov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boredom101 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53160 → xterm: 339 -> 341 → https://git.io/fhth4
<pie_> huh. php72Packages.composer exists. I'm going to try to install something and if it works praise be to nixos
<pie_> yay it works
<pie_> maybe 1) composer isnt an insane package manager 2) i guess it helps that php is like one of those runtime platform things
dermetfan has joined #nixos
<Guanin> hey, I just got a secondary GPU (AMD WX3100) and struggle to get it running. I tried both amdgpu and amdgpu-pro for services.xserver.videoDrivers, but the display-manager (sddm) won't start - X does not detect any displays. I am trying to use vfio to pass through the other GPU (GTX1080) to a virtual machine, which seems to work fine, even after adding the WX3100
dermetfan has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53161 → xpad: 5.2.0 -> 5.3.0 → https://git.io/fhthH
reilithion has joined #nixos
<Guanin> sddm just keeps restarting and spams the journal with sddm-helper still running. every now and then, X fails to start and prints this: http://termbin.com/z0pb
<Guanin> Oh wait, that already looks different
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fhthd
vidbina has quit [Ping timeout: 250 seconds]
Lingjian has quit [Ping timeout: 250 seconds]
oida has quit [Remote host closed the connection]
<reilithion> If I want nixpkgs to have a version bump for Retroshare, would it be better to file an issue or try to make a patch myself and send a pull request?
<gchristensen> you sending a patch is preferred
rprije has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
tertl3 has joined #nixos
cyounkins has joined #nixos
orivej has joined #nixos
<ambro718> In Nix, what is the simplest thing to get the standard output of a program into a variable as a string?
<tilpner> ambro718: builtins.readFile (runCommand "output" ''your_command > $out'')
<ambro718> thanks
<tilpner> ,IFD
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<tilpner> ^ people don't like that
<ambro718> I know, still need to do it due to the nature of the problem. I'm building software which has very complex build configuration and I need to run a python program that parses, validates and transforms that, and based on that I know even what the dependencies are.
selfsymmetric-mu has joined #nixos
<ambro718> (it's for microcontrollers, need different toolchain based on selected platform, for example)
<selfsymmetric-mu> Hi! How do I provide a specific path to `configuration.nix` in `nixos-rebuild`?
<selfsymmetric-mu> I see `-I` for `nixos-install`, but no corresponding option in `nixos-rebuild`.
<selfsymmetric-mu> When I try to do `nixos-install`, I get `mount point /mnt doesn't exist`
Dedalo has joined #nixos
<tilpner> Should be -I nixos-config=... IINM
<tilpner> Try that even if it's not listed in the manpage