<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]
<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
<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.
<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.
<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>
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, 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?
<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
<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
<{^_^}>
[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.
<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
<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.
<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
<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.
<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 ?
<{^_^}>
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`
<{^_^}>
[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
<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)
<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
<{^_^}>
#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
<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
<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
<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...
<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]
<{^_^}>
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"
<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...
<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>
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]
<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
<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
<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
<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
<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?
<{^_^}>
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