worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || 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/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<infinisil> s/uses/will use
justanotheruser has joined #nixos
chloekek_ has quit [Ping timeout: 258 seconds]
m_hackerfoo has quit [Quit: killed]
hackerfoo has quit [Quit: killed]
rajivr has joined #nixos
vykook has joined #nixos
<energizer> dgpratt: i prefer to avoid nix-env altogether, in favor of configuration files
<energizer> take a look at home-manager for example
<dgpratt> thanks, I've seen it energizer -- at present it's just one more thing I don't want to try to understand just at the moment, but I expect to get there sooner or later
vykook has quit [Ping timeout: 256 seconds]
vykook has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #90170 → ffmpeg-full: add librsvg support → https://git.io/Jf9xU
<{^_^}> [nixpkgs] @jonringer pushed commit from @expipiplus1 to master « ffmpeg-full: add librsvg support »: https://git.io/JfHym
jgeerds_ has quit [Ping timeout: 256 seconds]
vykook has quit [Ping timeout: 264 seconds]
pamplemousse has joined #nixos
szicari has quit [Ping timeout: 256 seconds]
iyzsong has joined #nixos
hackerfoo has joined #nixos
m_hackerfoo has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfHyg
vykook has joined #nixos
hackerfoo has quit [Client Quit]
m_hackerfoo has quit [Client Quit]
szicari has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #90195 → rclone: 1.52.0 -> 1.52.1 → https://git.io/JfHEi
<{^_^}> [nixpkgs] @jonringer pushed commit from @danielfullmer to master « rclone: 1.52.0 -> 1.52.1 »: https://git.io/JfHya
<{^_^}> [nixpkgs] @jonringer closed pull request #90191 → python3Packages.pydicom: 1.4.2 -> 2.0.0 → https://git.io/JfH01
vykook has quit [Ping timeout: 240 seconds]
hackerfoo has joined #nixos
m_hackerfoo has joined #nixos
<ldlework> I have created #nixos-gaming for everything related to gaming.
thc202 has quit [Ping timeout: 256 seconds]
philr_ has joined #nixos
vykook has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @marsam merged pull request #90194 → broot: 0.13.6 -> 0.15.1 → https://git.io/JfHEI
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfHyX
vykook has quit [Ping timeout: 256 seconds]
pamplemousse has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #90214 → nixos/gnupg: add pinentry to systemPackages → https://git.io/JfHyD
pjt_014 has quit [Killed (Sigyn (Stay safe off irc))]
ffl^ has quit []
gustavderdrache has joined #nixos
vykook has joined #nixos
proofofkeags has joined #nixos
codygman has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
codygman has joined #nixos
vykook has quit [Ping timeout: 260 seconds]
<ldlework> How do I handle git sources which have submodules?
amerigo has quit [Quit: Connection closed for inactivity]
justanotheruser has quit [Ping timeout: 272 seconds]
<ldlework> ah found fetchSubmodules
tobeportable has quit [Ping timeout: 272 seconds]
vykook has joined #nixos
user_0x58 has joined #nixos
h0m1 has quit [Ping timeout: 260 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
h0m1 has joined #nixos
markus1199 has joined #nixos
<ldlework> If I'm using unstable, why can't I use this? https://github.com/NixOS/nix/pull/3166
<{^_^}> nix#3166 (by blitz, 33 weeks ago, merged): Add fetchSubmodules to builtins.fetchGit
Emantor has joined #nixos
<multun> you should be able to
m0rphism has quit [Ping timeout: 246 seconds]
markus1189 has quit [Ping timeout: 264 seconds]
<ldlework> maybe i need to update my channel
<multun> probably :p
<multun> you can check the status of the channels at https://status.nixos.org/
<bqv> nix isn't built from the nix repo
<multun> wait what
<bqv> it's pinned to a working build in hydra
<multun> oooops
<multun> my bad
<multun> I thought it was a nixpkgs PR
<ldlework> What does this mean?
<ldlework> I shouldn't update unstable channel to get it?
<multun> unstable doesn't always use the latest version of nix
<multun> it uses the latest version of the nixpkgs packages
<ldlework> I just updated my channel and now I get: https://gist.github.com/dustinlacewell/a617ec45fe1eaca918564e5f9d821cca
<ldlework> If it's a problem with my configuration, how am I supposed to figure out what to fix? The traceback is not helpful.
<bqv> if you want the latest nix from master, build it yourself
<bqv> nixpkgs will not help you there
<multun> ldlework: it's probably a bug, nixos unstable is very unstable
<ldlework> multun: how do i roll back my channel to whatever i was at before?
<cole-h> man nix-channel
<multun> I _think_ sudo nix-channel --rollback
<cole-h> There's a --rollback flag, yep ^
<ldlework> oh nice
<simpson> Is there a lib.license for GitHub's default rights granted to repositories without a COPYING?
<cole-h> lib.licences.unfree
<cole-h> You should ask them to license their work.
<simpson> There's an outstanding issue for it. It's a single file of Go that hasn't been altered in a few years, and indeed it probably would be rewritten in bash before heading to nixpkgs.
<{^_^}> msiebuhr/prometheus-mdns-sd#7 (by maciej, 17 weeks ago, open): No LICENSE file
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<multun> ldlework: btw your current config should work, I can't reproduce the issue
<multun> ldlework: do you have anything special with your config ?
<ldlework> i removed a reference to nixops and now it's gotten a lot further
<ldlework> gotta wait to see if it fails again
<multun> nixops builds for me on unstable, so that's weird
<multun> this commit was intended to fix your error, and got through https://github.com/NixOS/nixpkgs/commit/7abf70b244b7a0d599729a6ae2222b81cb861704
sbetrium has quit [Quit: sbetrium]
smatting has quit [Ping timeout: 256 seconds]
<simpson> I have a situation where avahi-daemon is not reloading after live-switching generations with nixos-rebuild. I changed services.avahi.extraServiceFiles to add a new service file, which shows up as an XML file in /etc, but avahi-daemon needs a SIGHUP to reload those files and it's not getting it.
<simpson> What can I read to learn about how to properly send the signal and reload the daemon? Alternatively, is there a cruder way to just make changing that setting force a reload?
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/JfH90
<{^_^}> [nixpkgs] @samueldr merged pull request #90212 → casperjs: remove → https://git.io/JfHMn
<{^_^}> [nixpkgs] @catern opened pull request #90215 → crawl: 0.24.1 -> 0.25.0 → https://git.io/JfH9V
<bqv> guess i'll settle for downgrading to ghc882 then
<bqv> with the amount of people that complain about the idea of things not being in nixpkgs, i'm surprised hie managed to not be in nixpkgs
<quinn> simpson: might not be the answer you're looking for but a service i use (asterisk) has live reload off, presumably because it has smoother live-reload functionality built into it. might be the same story with avahi
<infinisil> simpson: You probably want systemd.services.<name>.reloadIfChanged
<simpson> quinn: It doesn't appear so, but I'll consider that, thanks.
jumper149 has quit [Quit: WeeChat 2.8]
<simpson> infinisil: That sounds promising. I'll see if that improves things, and make a PR if appropriate.
<infinisil> Oh also specify `ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";`
<quinn> infinisil: is that just for the service file changing or will it catch other changes?
<infinisil> quinn: Only for the service file changing pretty sure
<infinisil> Oh, maybe systemd.services.<name>.restartIfChanged needs to be disabled as well for this to work
<infinisil> (it's turned on by default)
<infinisil> quinn: You can add additional trigger files to systemd.services.<name>.restartTriggers though
<infinisil> (which underneath just inserts a dummy entry into the service file)
rardiol_ has quit [Read error: Connection reset by peer]
<multun> I remember coming across a website that compared the size and freshness of various package repositories
<quinn> infinisil: that's cool. and if config file gets changed the service file will get changed cause config file path changes when it changes too
<quinn> multun: repology
<multun> quinn: awesome thanks!
<quinn> :)
<multun> ohoh
<multun> nix's getting close to aur
<infinisil> In terms of?
<multun> number of packages available
<multun> it's probably way over it terms of packages that actually build
rardiol has joined #nixos
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
drakonis has quit [Ping timeout: 260 seconds]
ShaRose has quit [Quit: I appear to have left for some reason.]
<{^_^}> [nixops] @cole-h opened pull request #1371 → default.nix: don't use builtins.fetchGit → https://git.io/JfH9A
iqubic` has joined #nixos
iqubic` has left #nixos [#nixos]
iqubic has quit [Ping timeout: 256 seconds]
<quinn> multun: yeh i do not trust the AUR in the least
<multun> it's actually handy
<multun> not always maintained, but a good starting point
<quinn> i'm aware it just made me uncomfortable when i was using it (not that it stopped me though)
<multun> yeah 100% agree
<quinn> honestly custom packages always put me off, it probably would have been fine if i was better at managing and debugging pkgbuilds but i only really learned packaging after switching to nix
<multun> a lot of stuff is super unmaintained and not being able to contribute a fix is annoying
<quinn> oh is it maintainer-only by default?
<multun> I think so
<multun> (for the AUR only)
<multun> after all, it's the User Repository
<quinn> oh true. that would really annoy me too (though it's a similar situation now with nixpkgs, i don't have the wherewithall to deal with the PR process)
<quinn> wherewithal*
jbetz has quit [Ping timeout: 260 seconds]
omnigoat has quit [Read error: Connection reset by peer]
pkral has quit [Ping timeout: 260 seconds]
ProofTechnique has quit [Read error: Connection reset by peer]
claudiii_ has quit [Ping timeout: 256 seconds]
jlpeters has quit [Read error: Connection reset by peer]
MarkRBM has quit [Read error: Connection reset by peer]
betawaffle has quit [Read error: Connection reset by peer]
georgyo has quit [Read error: Connection reset by peer]
bitonic has quit [Read error: Connection reset by peer]
emilazy has quit [Read error: Connection reset by peer]
higherorder has quit [Ping timeout: 256 seconds]
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 258 seconds]
felixfoertsch23 is now known as felixfoertsch
pingveno has quit [Read error: Connection reset by peer]
sbetrium has joined #nixos
parsnip has quit [Ping timeout: 272 seconds]
wildsebastian has quit [Ping timeout: 264 seconds]
higherorder has joined #nixos
NekomimiScience has quit [Ping timeout: 272 seconds]
teej has quit [Ping timeout: 272 seconds]
angerman has quit [Read error: Connection reset by peer]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
higherorder has quit [Max SendQ exceeded]
aw has joined #nixos
spacefrogg has joined #nixos
TheNumb has quit [Ping timeout: 260 seconds]
eyenx has quit [Quit: bye]
nwspk has quit [Quit: nwspk]
peel has quit [Ping timeout: 260 seconds]
nwspk has joined #nixos
jlpeters has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #90209 → playerctl: enable bash completions → https://git.io/JfHoN
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfHH8
<{^_^}> [nixpkgs] @zowoq opened pull request #90216 → treewide: ffmpeg_4 -> ffmpeg → https://git.io/JfHHa
higherorder has joined #nixos
sigmundv has quit [Ping timeout: 256 seconds]
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #nixos
digitalgrease has quit [Ping timeout: 260 seconds]
growpotkin has quit [Quit: ZNC 1.8.0 - https://znc.in]
higherorder has quit [Ping timeout: 265 seconds]
georgyo has joined #nixos
digitalgrease has joined #nixos
parsnip has joined #nixos
emilazy has joined #nixos
betawaffle has joined #nixos
angerman has joined #nixos
parsnip has quit [Max SendQ exceeded]
betawaffle has quit [Max SendQ exceeded]
Havvy has quit [Read error: Connection reset by peer]
georgyo has quit [Ping timeout: 272 seconds]
emilazy has quit [Ping timeout: 260 seconds]
Havvy has joined #nixos
jlpeters has quit [Ping timeout: 260 seconds]
angerman has quit [Ping timeout: 256 seconds]
higherorder has joined #nixos
georgyo has joined #nixos
parsnip has joined #nixos
angerman has joined #nixos
peel has joined #nixos
emilazy has joined #nixos
jlpeters has joined #nixos
TheNumb has joined #nixos
betawaffle has joined #nixos
pkral has joined #nixos
pingveno has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
omnigoat has joined #nixos
NekomimiScience has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #89333 → go_1_13: 1.13.11 -> 1.13.12 → https://git.io/JfiBr
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfHQk
wildsebastian has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #89334 → go: 1.14.3 -> 1.14.4 → https://git.io/JfiBo
<{^_^}> [nixpkgs] @marsam pushed 3 commits to staging: https://git.io/JfHQI
bitonic has joined #nixos
jbetz has joined #nixos
ProofTechnique has joined #nixos
MarkRBM has joined #nixos
claudiii_ has joined #nixos
teej has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
ShaRose has joined #nixos
dingenskirchen1 is now known as dingenskirchen
<{^_^}> [nixpkgs] @zowoq opened pull request #90217 → [20.03] golang backports → https://git.io/JfHQg
lunaa has joined #nixos
NekomimiScience has quit [Ping timeout: 246 seconds]
omnigoat has quit [Ping timeout: 240 seconds]
peel has quit [Ping timeout: 264 seconds]
teej has quit [Ping timeout: 256 seconds]
georgyo has quit [Ping timeout: 272 seconds]
MarkRBM has quit [Ping timeout: 256 seconds]
emilazy has quit [Ping timeout: 256 seconds]
betawaffle has quit [Ping timeout: 272 seconds]
claudiii_ has quit [Ping timeout: 256 seconds]
digitalgrease has quit [Ping timeout: 256 seconds]
jlpeters has quit [Read error: Connection reset by peer]
emilazy has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #90218 → zstd: install static libraries to dev → https://git.io/JfHQi
pkral has quit [Ping timeout: 240 seconds]
<ldlework> the qt5 version in nixpkgs is years old!
higherorder has quit [Ping timeout: 256 seconds]
<ryantm> Here's a direct link to the video https://www.youtube.com/watch?v=oPymb2-IXbg
wildsebastian has quit [Ping timeout: 260 seconds]
pingveno has quit [Ping timeout: 256 seconds]
pkral has joined #nixos
ProofTechnique has quit [Ping timeout: 256 seconds]
bitonic has quit [Ping timeout: 240 seconds]
wildsebastian has joined #nixos
georgyo has joined #nixos
jbetz has quit [Read error: Connection reset by peer]
<{^_^}> #74355 (by jpathy, 28 weeks ago, open): Qt needs update to 5.14 and more maintainers
higherorder has joined #nixos
claudiii_ has joined #nixos
parsnip has quit [Read error: Connection reset by peer]
ProofTechnique has joined #nixos
<ldlework> i see
whatisRT has quit [Remote host closed the connection]
angerman has quit [Ping timeout: 260 seconds]
jbetz has joined #nixos
wildsebastian has quit [Max SendQ exceeded]
rickhull has joined #nixos
leungbk has joined #nixos
higherorder has quit [Ping timeout: 260 seconds]
TheNumb has quit [Ping timeout: 260 seconds]
emilazy has quit [Ping timeout: 256 seconds]
MtotheM1 has quit [Quit: Leaving]
johnw has quit [Quit: ZNC - http://znc.in]
wildsebastian has joined #nixos
<rickhull> I'm pretty new to NixOS, trying to use it for a development (and build) environment, at the moment. I came across a very helpful blog post and adapted for my needs. I'm looking for feedback, mostly concerning README.md here: https://github.com/rickhull/hello-nix
ProofTechnique has quit [Ping timeout: 272 seconds]
tsrt^ has joined #nixos
peel has joined #nixos
betawaffle has joined #nixos
jbetz has quit [Ping timeout: 272 seconds]
georgyo has quit [Ping timeout: 256 seconds]
higherorder has joined #nixos
parsnip has joined #nixos
<ldlework> compiling qt5 takes a while :P
emilazy has joined #nixos
higherorder has quit [Max SendQ exceeded]
georgyo has joined #nixos
ProofTechnique has joined #nixos
TheNumb has joined #nixos
jbetz has joined #nixos
pingveno has joined #nixos
<multun> oh yeah
higherorder has joined #nixos
<multun> big c++ apps are a pain
<ldlework> aw if failed too :(
<ldlework> it*
MarkRBM has joined #nixos
<ldlework> maybe this error means something to someone? https://gist.github.com/dustinlacewell/06c04af3b3b628c7fedcd5c6f0bcd6c7
jlpeters has joined #nixos
<multun> uh oh
Guest23015 has joined #nixos
NekomimiScience has joined #nixos
<multun> what did you try to build?
<ldlework> The PR from the guy who is updating qt to 5.14
angerman has joined #nixos
<ldlework> And I injected that into rpcs3
bitonic has joined #nixos
omnigoat has joined #nixos
Guest23015 has quit [Excess Flood]
digitalgrease has joined #nixos
Guest23015 has joined #nixos
<ldlework> Since QT5 is old, RPCS3 in turn is also old
<ldlework> And missing major features
Darkmatter66_ has joined #nixos
<multun> ldlework: qt packages have build hooks I don't think you overrided using your method
<ldlework> I don't know what that means.
<multun> lookup wrapQtAppsHook
<ldlework> I'm trying to use the package from the actual nixpkgs fork
<ldlework> with the reasoning that any qt app should probably receive the 5.14 made available
<multun> sure
Darkmatter66 has quit [Ping timeout: 260 seconds]
<multun> your "remove pkgs.qt5.qtbase" isn't sufficient to remove everything qt-related
<multun> I think there still are some bits of the older version in there
<ldlework> what's really awesome is download.qt.io not working as i'm trying to use it
<ldlework> that's the universe for you
<multun> :/
<ldlework> lol what the heck
lunaa has quit [Ping timeout: 258 seconds]
slack1256 has quit [Remote host closed the connection]
appleclusters has joined #nixos
rail has quit [Quit: gone...]
rail has joined #nixos
johnw has joined #nixos
zenxhd has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/716f3930652 (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
tsrt^ has quit []
vtsm^ has joined #nixos
zarel_ has joined #nixos
zarel has quit [Ping timeout: 260 seconds]
leungbk has quit [Ping timeout: 256 seconds]
Rusty1 has quit [Quit: WeeChat 2.3]
dkjii has joined #nixos
<dkjii> hey, how would I got about having 2 expressions in the same nix with? I do something like this: with import <nixpkgs/nixos> {}; with config.nix.package; [ pkgs.gnutar ] && with config.system.build [ nixos-install ]
<dkjii> but it's not working
<multun> you can do with (import ... {}) // (import ... {});
<ldlework> multun: how do I get a nix-shell where that nixpkgs fork is active?
<ldlework> apparently there's some problem with the build process in rpcs3 master, and they are asking me for the content of a file produced by some cmake shit
<multun> dkjii: why not doing two with?
<ldlework> and i can't get at it when it's just building in a derivation
<ldlework> so i think i need to try building this in a nix-shell first
<dkjii> multun: I have my config in the {} and I believe u need to return only one list of derivations?
leungbk has joined #nixos
<multun> basically, clone his repo, then nix-shell -I nixpkgs=/path/to/repo <args>
<ldlework> multun: thanks
<multun> dkjii: I don't quite get it
<multun> ooh I think I get it
<dkjii> I'm trying to make it work using nix-env -iE
<dkjii> I can link my config one sec
<dkjii> multun: omg smart, thats what i wanted
<dkjii> thx
<multun> dkjii: that also works http://paste.awesom.eu/bElp
<energizer> dkjii: fwiw a lot of people consider nested `with`s poor style
<multun> you can either activate the two scopes and build a list, or bring one scope, create a list, exit the scope, bring the other scope, make the other list, and add the two lists
<energizer> ^ better
simba1 has joined #nixos
<{^_^}> [nixpkgs] @gnidorah opened pull request #90219 → ArchiSteamFarm: 4.2.0.6 -> 4.2.2.1 → https://git.io/JfH5v
<multun> dkjii: IMO this is even better http://paste.awesom.eu/QanI
<wedens[m]> is there a way to set substitutes for nix-shell/lorri? basically, I'd like to add some substitutes per project where it's necessary
<dkjii> somehow I can't install sharutils: http://paste.awesom.eu/Gmqx
<dkjii> multun: thx for the exemples im understanding the syntax a bit more now
<dkjii> build sharutils*
<dkjii> any way to grab the build logs when something fails?
<{^_^}> [nixpkgs] @ehmry pushed 2 commits to master: https://git.io/JfH5J
<dkjii> I see it on screen but I'm not sure theres a log file
<multun> dkjii: && isn't the right operator
<multun> use ++
orivej has joined #nixos
<multun> && takes two boolean expressions, and ++ adds two lists
<dkjii> ya I changed it after your comment
<dkjii> works now
<multun> dkjii: what logs do you want to get ?
<multun> there's no log file, you can setup a nix-shell to be in the build environment if you like
<dkjii> multun: I found a log file in /nix/var/log/drvs
<dkjii> trying to dedbug rn
<dkjii> how would I go about calling nix-shell with -E?
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ec7fdd68e58 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<multun> what do you want to achieve?
<multun> dkjii: I actually didn't know :D I'm not that good at nix actually
<{^_^}> [nixpkgs] @ehmry pushed to master « tup: fix setup hook location »: https://git.io/JfH5s
palo1 has joined #nixos
<{^_^}> [nixpkgs] @gnidorah opened pull request #90221 → cdetheme: small adjustments → https://git.io/JfH5Z
<dkjii> I'm trying to build sharutils but its failing at tests
<dkjii> I'd like to use the nix file I pasted earlier (for the configuration) and do the tests manually from nix-shell
<multun> tar: invalid option -- 'c'
leungbk has quit [Ping timeout: 260 seconds]
<dkjii> Ya I saw, but the tar it's detecting seems to work with -c
<dkjii> i used /nix/store/...-gnutar/bin/tar -c manually and it works
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
<dkjii> when I try nix-shell -E or nix-build -E --run-env it builds the whole package
<dkjii> with the nix expression i pasted eaarlier
<simpson> cole-h: My prediction came true. I ended up scrapping the Go script in favor of calling Avahi and doing some jq: https://github.com/MostAwesomeDude/treehouse/blob/master/nixos/prometheus.nix#L5-L18
<cole-h> That looks disgusting lol.
<simpson> Thanks! I've done much worse.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6e5952e5177 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
cole-h has quit [Quit: Goodbye]
<dkjii> multun: I tried nix-shell --option substituters "" -E "$(cat expression.nix)", but it's trying to rebuild the whole thing
<dkjii> multun: whereas if I do nix-env --option substituters "" -iE "$(cat expression.nix)" it only builds sharutils and fails
<multun> dkjii: your expression looks weird, why do you import nixpkgs/nixos?
<clever> dkjii: that would be the same as `nix-shell expression.nix` or `nix-shell -E 'import ./expression.nix'`
<dkjii> although I have to remove the _: to make the nix-shell work
Acou_Bass has quit [Ping timeout: 246 seconds]
<clever> dkjii: and `nix-env -f expression.nix -i`
<dkjii> oh ill do that instead^
waleee-cl has quit [Quit: Connection closed for inactivity]
<dkjii> i'm following the nixos manual for installing nixos install tools
<multun> huh ok
<multun> Is it your end goal?
<kandinski> I just followed the nixos manual's instructions at https://nixos.org/nixos/manual/#sec-linux-config-developing-modules to compile the btusb module with a couple of new magic numbers, and I get the following error: "insmod: ERROR: could not insert module ./drivers/bluetooth/btusb.ko: Invalid module format"
Acou_Bass has joined #nixos
<dkjii> multun: It's asking for this "nix-env -iE "_: with import <nixpkgs/nixos> { configuration = {}; }; with config.system.build; [ nixos-generate-config nixos-install nixos-enter manual.manpages ]""
<dkjii> and yeah right now I'm just trying to bootstrap nix without relying on binary caches
<dkjii> sharutils is just an indirect dependency of nixos-install and manpages
<multun> interesting
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<multun> I don't think it implies building nixos though
Acou_Bass has quit [Ping timeout: 256 seconds]
<multun> I think you'd need to 1) build nix 2) get a channel / copy of nixpkgs 3) build some packages, maybe not nixos
<multun> I may be wrong, I'm not a nix guru
Acou_Bass has joined #nixos
<dkjii> multun: I got nix installed and a channel selected; this step is for install the tools needed to install nixos
<dkjii> usually you wouldnt build it, but I'm trying out building it from scratch
<dkjii> and I have useImpure flags which will mostly force rebuild everything i believe
orivej has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixpkgs] @ehmry pushed to master « nixos/lib/make-disk-image.nix: VDI support »: https://git.io/JfH57
orivej has joined #nixos
<{^_^}> [nixpkgs] @ehmry merged pull request #89752 → reuse: 0.7.0 -> 0.11.0 → https://git.io/JfM5K
<{^_^}> [nixpkgs] @ehmry pushed commit from @lukegb to master « reuse: 0.7.0 -> 0.11.0 »: https://git.io/JfH5b
<{^_^}> [nixpkgs] @volth opened pull request #90222 → [20.03] treewide: central.maven.org -> repo1.maven.org → https://git.io/JfHdf
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<kandinski> Following the manual's instructions at https://nixos.org/nixos/manual/#sec-linux-config-developing-modules to compile the btusb module with a couple of new magic numbers, and I get the following error: "insmod: ERROR: could not insert module ./drivers/bluetooth/btusb.ko: Invalid module format". I think I may not have ran the configuration properly. Can anybody help?
<dkjii> kandinski: what's file ./drivers/... ?
<dkjii> multun: got it to work, seems like the build environment for sharutils is broken somehow, just ended up CTRL+Z and fixing the test scripts
<dkjii> thanks for the help
dermetfan has joined #nixos
<chessai> shlevy: Ericson2314: in case tagging in snippets is broken
<dkjii> any way to inspect the configuration that was used to build an expression? I got /nix/store/HASH-bash-p23 which I'd like to know where it came from
rickhull has quit [Ping timeout: 245 seconds]
<clever> dkjii: run `nix show-derivation` on that path
amerigo has joined #nixos
<dkjii> clever: and is there a way to compare it to the original nix expression in nixpkgs?
<clever> dkjii: that is the final output, after all of the functional expressions have been ran
<clever> depending on whats happening, you can just grep for one of those strings in nixpkgs to find the expr
<dkjii> I'll try it out
<dkjii> clever: Somehow the whole build system is using a busybox bash to compile, not sure why its not using a normal bash
<clever> thats probably the bootstrap phase, where its building gcc from a gcc in a tarball
<kandinski> dkjii: the file is a relative path from the kernel tree root, it's btusb.ko, the driver for usb bluetooth adapters.
<clever> it will then use that bootstrap gcc to build the bash everything else uses
orivej has quit [Ping timeout: 246 seconds]
<dkjii> gcc is already built which is why i find it weird
orivej has joined #nixos
<clever> dkjii: the bootstrap may build 2 gcc's, and unpack a 3rd from a tar
<dkjii> kandinski: file gives you more info about file like arch and module type
<dkjii> clever: how is the bootstrap phase represented in the nixpkgs?
<dkjii> like how does sharutils know to use the bootstrap bash vs normal bash?
<{^_^}> [nixpkgs] @dfordivam opened pull request #90223 → Add 'wasm32-unknown' to known targets → https://git.io/JfHdz
<clever> dkjii: nixpkgs/pkgs/stdenv/linux/default.nix
fragamus_ has joined #nixos
<clever> dkjii: each stage will apply some overrides, to change a few packages, which will dynamically impact everything that depends on those packages
fragamus_ is now known as fragamus
<wedens[m]> sorry for asking again, but I just can't let it go :D what may cause a problem that nix-build (or nix run) requires nixos config that can be evaluated with the current channels?
<clever> dkjii: line 144 will override binutils, coreutils, grep, and gcc, and point all of them towards the bootstrap tools from the tar, thats enough to give a stdenv that can build some things
xelxebar has quit [Remote host closed the connection]
<dkjii> clever: alright thanks, its crearer to me now
<wedens[m]> otherwise it fails with things like "undefined bla bla" due to new option in some nixos module
xelxebar has joined #nixos
<dkjii> clever: what i find odd is that I already have gcc-9.3.0/ built
<clever> dkjii: 185-216 will then begin building things from that, but force glibc, binutils to stay behind
<clever> dkjii: what directory is gcc-9.3.0/ at?
<dkjii> clever: /nix/store/HASH-gcc-9.3.0/
<dkjii> clever: I also have /nix/store/HASH-glibc-2.30/
<clever> dkjii: it may not be the version that nixpkgs wants though
<clever> dkjii: nix allows you to have many glibc's, based on what nixpkgs is saying to build
asheshambasta has joined #nixos
<dkjii> clever: makes sense, but wouldnt it use the already built glibcs to build the other ones?
kenran has joined #nixos
<clever> dkjii: it will use the bootstrap glibc, so nothing depends on outside sources
eoli3n_ has joined #nixos
<dkjii> clever: any way to show a dependency tree as opposed to a list of dependency when using nix-env -i?
<clever> dkjii: nix-store --query --tree /nix/store/foo
<dkjii> clever: im finding the dependencies very weird, I already have a few programs installed and it's wanting to build a whole new bootstrap based on musl instead of glibc
<clever> works on both outputs and .drv files
<dkjii> clever: ok
<dkjii> clever: I'm trying to reproduce a bug I had with sharutils, but when I try rebuilding with nix-build -E instead of nix-env -iE, it wants to rebuild a whole bunch of stuff
zenxhd has joined #nixos
appleclusters has quit [Quit: Connection closed for inactivity]
<clever> dkjii: run `nix-diff` on the 2 .drv files its showing at the end
<dkjii> clever: how do I install this into my path? doesnt seem to be a package
vtsm^ has quit []
tsrt^ has joined #nixos
<{^_^}> [nixpkgs] @kuznero opened pull request #90224 → vscode, vscodium: add update.sh script → https://git.io/JfHdH
<clever> dkjii: oh, its also in nixpkgs already
<{^_^}> [nixpkgs] @dywedir merged pull request #89557 → stig: update to 0.11.0a → https://git.io/Jf12f
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JfHdQ
<clever> dkjii: nix-env -iA nixpkgs.haskellPackages.nix-diff
<kandinski> AA
<clever> kandinski: AB?
<dkjii> clever: aight thanks I'll check it out when it finishes installing
<kandinski> 00:28 < kandinski> /lib/modules/5.4.0-33-generic/kernel/drivers/bluetooth/btusb.ko
FRidh has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
julm has quit [Remote host closed the connection]
julm has joined #nixos
alp has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #90225 → maintainers/teams: add golang → https://git.io/JfHFf
smatting has joined #nixos
zupo has joined #nixos
<wedens[m]> how do I make `debug-shell.service` available, but not enabled? it's listed in example for `systemd.additionalUpstreamSystemUnits`, but I don't want to enable it
simba1 has quit [Ping timeout: 256 seconds]
<wedens[m]> the doc says "Additional units shipped with systemd that shall be enabled."
asheshambasta has quit [Remote host closed the connection]
wavirc22 has quit [Ping timeout: 260 seconds]
wavirc22 has joined #nixos
Chiliparrot has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a6e8ffb7f59 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
eoli3n_ has quit [Ping timeout: 256 seconds]
<pinkieval> out of curiosity: the nixos manual mentions " If allowReboot is true, then the system will automatically reboot if the new generation contains a different kernel, initrd or kernel modules.". Does this include cpu microcode?
alp has quit [Ping timeout: 272 seconds]
dingenskirchen1 has joined #nixos
dingenskirchen has quit [Ping timeout: 256 seconds]
dingenskirchen1 is now known as dingenskirchen
<ldlework> multun: what about this
<ldlework> nix-shell -I nixpkgs=/home/ldlework/ext/petabyteboy
<ldlework> error: getting status of '/home/ldlework/ext/rpcs3/default.nix': No such file or directory
<wedens[m]> pinkieval: microcode is included in initrd (with `hardware.cpu.*.updateMicrocode`), so I'd suppose that it does
<clever> ldlework: you told it what <nixpkgs> maps to, but not what file to actually open a shell for
<clever> ldlework: so its looking for either shell.nix or default.nix in the current dir
<ldlework> I don't usually have to do that.
<ldlework> So I didn't expect it.
<clever> ldlework: you usually have a shell.nix or default.nix in the current dir?
<ldlework> clever: nix-shell doesn't require either does it?
<clever> it does when you dont tell it what else to do
<kandinski> seems to me that btusb.ko is what it should be: "btusb.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=363ddb2bbe84b22efda842f19c2a18c461b94527, not stripped
asheshambasta has joined #nixos
<pinkieval> wedens[m]: cool, thanks
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<asheshambasta> anyone seen "Daemon startup without any loaded modules ..." in pulseaudio? I'm attempting to use pa to output to jack sinks which means pa shouldn't be enabled as a service for reasons I don't understand.
<asheshambasta> I'm trying to start pa with `pulseaudio -v`
<asheshambasta> related pa section in my configuration.nix: https://gist.github.com/asheshambasta/a95fafb2f398d70f17cf85e5fbd3f86c
<asheshambasta> I've also purged the ~/.config/pulse and ~/.pulse dirs.
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
user_0x58 has quit [Quit: Leaving]
vandenoever has quit [Ping timeout: 246 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
q3k has quit [Ping timeout: 240 seconds]
<ldlework> In nix-shell is there a way to invoke the standard builder? Like if you were to make a derivation with src = ./. whatever would happen by default.
<Ashy> genericBuild i think
vuko has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #89566 → ocamlPackages.vg: 0.9.3 → 0.9.4 → https://git.io/Jf1rc
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.vg: 0.9.3 → 0.9.4 »: https://git.io/JfHFS
<{^_^}> [nixpkgs] @vcunat pushed to staging « mesa: 20.0.7 -> 20.0.8 »: https://git.io/JfHFH
ncakerlist has joined #nixos
<eyJhb> Is there any order in filesystems that they are run in?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quinn has quit [Ping timeout: 260 seconds]
<clever> Ashy: genericBuild would also copy $src to ., and then cd into whatever dir that created
<clever> ldlework: you usually want something more like: phases="configurePhase buildPhase" genericBuild
<typetetris> Are haskell packages in nixos generally build with `-O2` ghc option?
nikita` has joined #nixos
stteevveen has joined #nixos
xwvvvvwx has quit [Quit: ZNC 1.8.0 - https://znc.in]
xwvvvvwx has joined #nixos
quinn has joined #nixos
<stteevveen> Hi! I'm trying to understand why my .o files generated simply with make contains debug info, but not when I use nix-build that will use this same Makefile. When I use nix-build I see there is a "pos-installation fixup". And for all my .o ffiles it writes: shrinking RPATHS of ELF executable and libs: Shrinking myFile.o - wrong ELF type. There is
<stteevveen> also a line about stripping by executable. Do you know of any Nix-build mechanism that remove debug info in the post-installation fixup ? I'm only wondering, trying to explain why I can debug in one case and not in the other witht the same Makefile.
mekeor has quit [Ping timeout: 260 seconds]
mekeor has joined #nixos
<clever> stteevveen: add dontStrip = true; to the derivation
<stteevveen> @clever great news
<stteevveen> @clever but that made me come to a question: should I use nix-build at any tiny recompilation, or should I you make, and nix-build only from time to time to update the package/derivation ?
<stteevveen> should I you = should I use
<clever> stteevveen: for fast interation, you usually want to run make in nix-shell
<clever> then it can reuse any other .o files your project isnt changing
orivej has joined #nixos
mallox has joined #nixos
<{^_^}> [nixpkgs] @ehmry opened pull request #90226 → kristall: init at 0.2 → https://git.io/JfHbr
ncakerlist has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
chloekek_ has joined #nixos
fragamus has quit [Quit: Connection closed]
<{^_^}> [nixpkgs] @vbgl opened pull request #90227 → coq_8_12: init at 8.12+β1 → https://git.io/JfHbX
<{^_^}> [nixpkgs] @FRidh merged pull request #90208 → buildPythonPackage: recompile bytecode for reproducibility → https://git.io/JfHoe
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to staging: https://git.io/JfHb1
kreyren has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to staging « python.pkgs.pip: 20.1 -> 20.1.1 »: https://git.io/JfHbS
kreyren has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #89723 → Python package set major updates → https://git.io/JfMwn
<{^_^}> [nixpkgs] @FRidh pushed 540 commits to staging: https://git.io/JfHb9
<eyJhb> I am trying to mount a LUKS encrypted volume, where I have some ZFS datasets. Currently trying to do it like so - https://termbin.com/9116
<eyJhb> But for some reason, it seems like it won't open the LUKS crypt, at least that is was journal says (NOTHING about cryptsetup), so the rtank/data will fail
orivej has quit [Ping timeout: 256 seconds]
<eyJhb> Output - https://termbin.com/caxm
<eyJhb> And some more journal - https://termbin.com/4sys
<eyJhb> Any ideas why? I would expect to see cryptsetup some place
od1n has joined #nixos
luc65r has joined #nixos
<od1n> how does one get over the Pillow-7.1.2 issue preventing upgrade?
<od1n> not an issue, I get that it's a good thing that old python was deprecated, just wondering if there's any steps to follow to be able to upgrade --switch now
alp has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
asymptotically has joined #nixos
CMCDragonkai1 has joined #nixos
vuko has joined #nixos
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @FRidh merged pull request #90018 → libnftnl: 1.1.5 -> 1.1.7 → https://git.io/JfSLQ
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « libnftnl: 1.1.5 -> 1.1.7 »: https://git.io/JfHbF
muslimm has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #90003 → harfbuzz: 2.6.4 -> 2.6.7 → https://git.io/Jfyxl
muslimm has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « harfbuzz: 2.6.4 -> 2.6.7 »: https://git.io/JfHbb
<{^_^}> [nixpkgs] @FRidh merged pull request #89991 → iptables: 1.8.4 -> 1.8.5 → https://git.io/JfyFT
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « iptables: 1.8.4 -> 1.8.5 »: https://git.io/JfHbN
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @FRidh merged pull request #89640 → libyaml: 0.2.4 -> 0.2.5 → https://git.io/Jf1bn
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « libyaml: 0.2.4 -> 0.2.5 »: https://git.io/JfHbx
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
MmeQuignon has joined #nixos
zenxhd has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @FRidh merged pull request #90014 → lcms2: 2.9 -> 2.10 → https://git.io/JfSIp
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « lcms2: 2.9 -> 2.10 »: https://git.io/JfHbp
<{^_^}> [cabal2nix] @peti pushed to v3 « Initial state of the cabal2nix version 3.x development branch. »: https://git.io/JfHbh
<{^_^}> [nixpkgs] @FRidh merged pull request #90050 → man: 2.9.0 -> 2.9.2 → https://git.io/JfSua
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « man: 2.9.0 -> 2.9.2 »: https://git.io/JfHbj
<{^_^}> [nixpkgs] @FRidh merged pull request #89936 → kmod: 26 -> 27 → https://git.io/JfyoH
<{^_^}> [nixpkgs] @FRidh pushed commit from @primeos to staging « kmod: 26 -> 27 »: https://git.io/JfHNf
q3k has joined #nixos
orivej has joined #nixos
<eyJhb> Well, I can boot now and get the zpool to appear, but I need to get it to use the keyfile. Which I have a harder time doing
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5a17473f0a2 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mallox has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #89503 → gstreamer: Fix wrapper quoting → https://git.io/JfXHD
<{^_^}> [nixpkgs] @FRidh pushed commit from @andersk to staging « gstreamer: Fix wrapper quoting »: https://git.io/JfHNI
<{^_^}> [nixpkgs] @FRidh pushed 94 commits to staging-next: https://git.io/JfHNt
mallox has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 286 commits to staging: https://git.io/JfHNq
sbetrium has quit [Quit: sbetrium]
<{^_^}> [cabal2nix] @peti pushed to v3 « Move the actual cabal2nix main code into this build. »: https://git.io/JfHNO
xelxebar has quit [Ping timeout: 240 seconds]
xelxebar has joined #nixos
maddo has joined #nixos
<{^_^}> [nixpkgs] @chrbauer opened pull request #90228 → python3Packages.python-engineio: 3.10.0 -> 3.11.2 → https://git.io/JfHNc
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
mallox has quit [Ping timeout: 260 seconds]
stteevveen has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @FRidh merged pull request #90023 → libmbim: 1.22.0 -> 1.23.900 → https://git.io/JfSqr
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « libmbim: 1.22.0 -> 1.23.900 »: https://git.io/JfHNE
mallox has joined #nixos
uidnull has joined #nixos
<uidnull> can nix be used as a replacement to apt in ubuntu?
<uidnull> if so, what's the benefit of using nixos over ubuntu with nix
is_null has quit [Ping timeout: 264 seconds]
sbetrium has joined #nixos
<srk> uidnull: it can, but you're missing the integration with the system and ability to configure e.g. services or other aspects of your system via nix
_ris has joined #nixos
<uidnull> ah, so its value is the native integration
<tyrion-mx> Is `nix build` the same as `nix-build`?
mallox has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #90200 → ocamlPackages.tls: 0.12.0 -> 0.12.1 → https://git.io/JfHgn
<{^_^}> [nixpkgs] @vbgl pushed commit from @anmonteiro to master « ocamlPackages.tls: 0.12.0 -> 0.12.1 »: https://git.io/JfHN6
<srk> uidnull: yup
<tobiasBora> Hello, how can I get the configuration value of a package outside of nix? I tried nix eval --raw config.services.postgresql.dataDir but it does not work
<srk> tyrion-mx: the result is the same, UI is different
<uidnull> i heard blm linux (black lives matter linux) has really good integration as well
ris has quit [Ping timeout: 246 seconds]
<tyrion-mx> tobiasBora: you can do `nix repl '<nixpkgs/nixos>'` and then type `config.services.postgresql.whatever`
is_null has joined #nixos
<chreekat[m]> nix and nix-build aren't the same. The first is experimental software, the latter is part of the latest official release. (This might only matter if you're using it in production though)
<tobiasBora> tyrion-mx: great, thanks! and do you have a non interractive version?
magnetophon has quit [Ping timeout: 246 seconds]
<tyrion-mx> tobiasBora: nope, I have no idea (I am not an expert). But if you find out please tell me :D
<tyrion-mx> maybe you can pass stuff from stdin to nix repl?
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
<tobiasBora> tyrion-mx: sounds a bit dirty, especially when you want to parse the output (you will need to remove all the text given by nix repl)
agsdheidjd has joined #nixos
codygman has quit [Ping timeout: 265 seconds]
codygman has joined #nixos
<tyrion-mx> tobiasBora: I guess you can do it with `nix eval` but I am not able
magnetophon has joined #nixos
<tobiasBora> tyrion-mx: got it! nix eval --raw -f "<nixpkgs/nixos>" "config.services.postgresql.dataDir"
<tobiasBora> nix eval is still quite mysterious to me ^^'
jgeerds_ has joined #nixos
markus1199 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #89606 → ocamlPackages.ocsigen-toolkit: 2.5.0 → 2.7.0 → https://git.io/Jf1Qv
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.ocsigen-toolkit: 2.5.0 → 2.7.0 »: https://git.io/JfHNx
evils has quit [Quit: Lost terminal]
<tyrion-mx> tobiasBora: cool!
evils has joined #nixos
<tobiasBora> tyrion-mx: since you seem to understand more than me nix repl, any idea how to turn nix eval --raw nixpkgs.postgresql_11.outPath into nix repl? I'd love to have tab completion has I can't find much documentation about that
<clever> tobiasBora: `nix repl '<nixpkgs>'` then `postgresql_11.outPath`
<luc65r> Hi! Maybe here my call for help will have a little bit more success
<uidnull> luc65r: the answer is: don't jump
<luc65r> I'm tring to build my system with gcc10 and binutils 2.34: https://github.com/NixOS/nixpkgs/pull/89793. That broke systemd too. Most of the services (like journal or udev) fail with code 127. I can launch them manually without any problem. I tried to build systemd with gcc9 and gcc10, and it seems to be related to binutils-2.34. Does anyone have an
<luc65r> idea of what could have gone wrong?
<{^_^}> #89793 (by luc65r, 4 days ago, open): Bump gcc to gcc10 and binutils to 2.34
<{^_^}> [nixpkgs] @vbgl merged pull request #90207 → ocamlPackages.dns(-client): 4.5.0 -> 4.6.0 → https://git.io/JfHrH
<{^_^}> [nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.dns(-client): 4.5.0 -> 4.6.0 »: https://git.io/JfHA3
marusich has quit [Quit: Leaving]
<tobiasBora> clever: good point, thanks! and in that nix repl shell, any idea how to query config.services.postgresql.dataDir? Or do I need to quit the shell and start a new shell with file "<nixpkgs/nixos>"?
<clever> tobiasBora: yeah, you need to switch over to nixos
markus1189 has joined #nixos
<tyrion-mx> tobiasBora: in the nix repl you can use `:l <nixpkgs/nixos>` and then simply write config.whatever
sputny has joined #nixos
<tobiasBora> ok thanks!
sputny has quit [Client Quit]
<tyrion-mx> tobiasBora: I suggest you read the nix pills if you haven't. I read only the parts that were interesting to me and I found them pretty useful
<{^_^}> [nix] @mpscholten opened pull request #3692 → Don't stop user from installing the nix store on an unencrypted volume → https://git.io/JfHAu
<tobiasBora> tyrion-mx: yeah, I did that a while ago, but I forgot everything, I should start again ;-)
codygman has quit [Ping timeout: 256 seconds]
m4ts_ has quit [Quit: bye]
uidnull has left #nixos [#nixos]
<tyrion-mx> tobiasBora: take notes! I use zettlr to write down notes when I read stuff. It helps me remember it and more importantly I don't have to read stuff again when I forget everything
<asheshambasta> so it seems to me that if one starts pulseaudio via `pulseaudio -D --start`, there is no way to have clients discover the pulseaudio server.
<asheshambasta> it seems to rely on environment variables, configuration values etc. as fallbacks but none of them are populated, and what `default-server` should be in client.conf is also not documented.
<tobiasBora> tyrion-mx: yeah, it's what I'm doing now ;)
<asheshambasta> srk: following up on our discussion earlier, how are you starting pulseaudio in your system?
<asheshambasta> would you mind sharing your config. if any?
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
<asheshambasta> in my case, if pa is started with `pulseaudio -D --start`, no clients can connect to it: including pactl/pavucontrol etc.
<srk> asheshambasta: it works with systemd user service or launched directly
<asheshambasta> hm, then I'm not sure where I'm screwing up
<{^_^}> [nixpkgs] @primeos opened pull request #90232 → fuse3: 3.9.1 -> 3.9.2 → https://git.io/JfHAF
iyzsong has joined #nixos
<srk> config is spread to few files, but mostly this https://paste.rs/OOM
<srk> OOM lol
<srk> alsa or loopback is probably not needed since steam games work with pulse
orivej_ has quit [Ping timeout: 246 seconds]
<asheshambasta> I see, I'll try replicating that and trying
<srk> asheshambasta: I haven't tested this properly as I don't want to re-login or reboot right now but I was able to su - srk, stop and start pulseaudio manually and got sound via jack sink
alexherbo2 has joined #nixos
orivej has joined #nixos
<srk> asheshambasta: one tweak this needs is to start pulse after like suggested in the issue you've posted yesterday or adjust its modules
m4ts has joined #nixos
<srk> *after jack
never_released has quit [Quit: ZNC 1.7.5 - https://znc.in]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<asheshambasta> so rebuilding this as you suggest, and having hardware.pulseaudio.enable = true, my pa clients are still unable to connect to pa.
knupfer has quit [Client Quit]
knupfer has joined #nixos
<asheshambasta> there is something that definitely looks wonky here
knupfer has joined #nixos
<asheshambasta> and overall, this whole thing still looks brittle and maybe nix can help
never_released has joined #nixos
codygman has joined #nixos
<asheshambasta> rebooting, sigh.
asheshambasta has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
asheshambasta has joined #nixos
orivej has joined #nixos
<asheshambasta> for some reason my network seems extremely slow now.
<{^_^}> [nixpkgs] @primeos merged pull request #90232 → fuse3: 3.9.1 -> 3.9.2 → https://git.io/JfHAF
<{^_^}> [nixpkgs] @primeos pushed to master « fuse3: 3.9.1 -> 3.9.2 (#90232) »: https://git.io/JfHx8
<{^_^}> [nixpkgs] @primeos merged pull request #90094 → intel-media-driver: 19.4.0r -> 20.1.1 → https://git.io/JfS7K
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JfHxg
asheshambasta has quit [Remote host closed the connection]
__monty__ has joined #nixos
asheshambasta has joined #nixos
<asheshambasta> I hate computers :-)
shabius has quit [Read error: Connection reset by peer]
<asheshambasta> (now all these reboots/nix-rebuilds etc.) have broken networking. Things are really slow on my desktop now.
shabius has joined #nixos
<srk> oO weird
asheshambasta has quit [Remote host closed the connection]
asheshambasta has joined #nixos
noname_ has joined #nixos
alexherbo28 has joined #nixos
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo28 is now known as alexherbo2
asheshambasta has quit [Remote host closed the connection]
cosimone has joined #nixos
alp has quit [Ping timeout: 246 seconds]
dkjii has quit [Quit: Lost terminal]
<noname_> .list csgo
Darkmatter66 has joined #nixos
<wedens[m]> how can I do `nixos-install --system` if I can pre-build system's closure except disks configuration?
<clever> wedens[m]: you cant really, but if you copy the pre-built nixos to /mnt/, it will have a lot less to rebuild when it builds from the new configuration.nix
<clever> if you keep the nixpkgs rev the same
Darkmatter66_ has quit [Ping timeout: 256 seconds]
<wedens[m]> clever: so I can do `NIX_PATH=.... nixos-install --no-channel-copy` after `nix copy`?
zarel has joined #nixos
<clever> wedens[m]: yeah, that should work
zarel_ has quit [Ping timeout: 265 seconds]
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
alp has joined #nixos
<eyJhb> How can I get a zfs filesystem to mount before a LUKS encrypted filesystem? Currently I have neededForBoot on the ZFS part, but initrd.luks.devices.... will still be before my normal filesystem?
zarel has quit [Quit: ZNC 1.7.5 - https://znc.in]
zarel has joined #nixos
kenran has quit [Ping timeout: 256 seconds]
<srk> scary to test, right? :)
<srk> hm, not really, you can always revert to older gen if it's not install
mallox has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #88158 → Some systemd fixes revolving dbus and socket activation of systemd services → https://git.io/JfuyY
<{^_^}> [nixpkgs] @flokli pushed 4 commits to master: https://git.io/JfHp1
<{^_^}> [cabal2nix] @peti pushed 3 commits to master: https://git.io/JfHpS
<{^_^}> [cabal2nix] @peti pushed 0 commits to refs/tags/v2.15.5: https://git.io/JfHp9
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
never_released has quit [Quit: ZNC 1.7.5 - https://znc.in]
never_released has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<eyJhb> Is there any way to get a shell at stage1?
<eyJhb> When I am prompted for a password at stage-1 (enc password), I would like to drop to a shell instead, to examine the state
<{^_^}> [cabal2nix] @peti pushed 2 commits to v3: https://git.io/JfHph
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #89772 → dnschain: remove → https://git.io/JfMji
<{^_^}> [nixpkgs] @rnhmjoj pushed 3 commits to master: https://git.io/JfHpj
never_released has quit [Quit: ZNC 1.7.5 - https://znc.in]
never_released has joined #nixos
fendor has joined #nixos
kleisli has quit [Ping timeout: 256 seconds]
<{^_^}> [cabal2nix] @peti pushed to v3 « Cosmetic change: sort our compiler extensions alphabetically. »: https://git.io/JfHhe
kleisli has joined #nixos
davidv7 has quit [Ping timeout: 260 seconds]
kleisli has quit [Remote host closed the connection]
<{^_^}> [cabal2nix] @peti pushed 3 commits to v3: https://git.io/JfHhv
kleisli has joined #nixos
jakobrs has joined #nixos
<jakobrs> What is the "recommended" way to sandbox applications on nixos?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfHhU
<srk> jakobrs: multiple ways: systemd protect directives, containers, full virt
zarel_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 46 commits to haskell-updates: https://git.io/JfHhk
<jakobrs> Ideally I'd do something similar to how flatpak can sandbox applications (I believe)
zarel has quit [Ping timeout: 256 seconds]
<eyJhb> srk I cannot seem to get the placement of the params correct...
<srk> eyJhb: boot params in grub?
<jakobrs> So, individual-application sandboxes using Linux namespaces
<srk> jakobrs: oh, firejail as well
<srk> for desktop stuff
<eyJhb> Yes, where to specify these arguments (boot.debug1mounts)
<eyJhb> As I just get, no such file
<srk> at the end of the line starting with linux
<srk> mine ends with loglevel=4
never_released has quit [Quit: ZNC 1.7.5 - https://znc.in]
never_released has joined #nixos
<eyJhb> Think it worked now
<eyJhb> Let's see
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
<srk> there's also nixos opt boot.kernelParams for persistent ones
<eyJhb> Worked
<eyJhb> It went down to the initrd line instead..
iyzsong has joined #nixos
kleisli has quit [Read error: Connection reset by peer]
<eyJhb> Let's see if everything works now
kleisli has joined #nixos
agsdheidjd has quit [Ping timeout: 272 seconds]
<eyJhb> It does not :(
<eyJhb> Guess I have to do some ugly hack
agsdheidjd has joined #nixos
<srk> switch to btrfs :D
<eyJhb> Won't help here I assume :p
<eyJhb> I need it to mount a ZFS/BTRFS volume before it starts to mount my LUKS volume
<srk> I see
<eyJhb> It currently imports the ZFS pool, but does not mount it
<eyJhb> And encrypted backend thing did not seem to work
zarel has joined #nixos
<jakobrs> eyJhb: Might something like this help? #86967
<{^_^}> https://github.com/NixOS/nixpkgs/pull/86967 (by jakobrs, 5 weeks ago, open): nixos/lib/utils: Generalise fsBefore (fixes #86955)
<jakobrs> Disclaimer: It's my own pr
zarel_ has quit [Ping timeout: 260 seconds]
<jakobrs> eyJhb: It adds a fileSystems.<name>.depends option which lets you specify that one fs must be mounted before another
<{^_^}> [nixpkgs] @asbachb opened pull request #90234 → openjdk: 11.0.6 -> 11.0.7 → https://git.io/JfHhW
<eyJhb> In this case it won't help, as it is boot.initrd.luks.devices that needs to understand, that it should do a filesystem mount before it will function :/
<srk> looks like you need stage1 systemd and proper deps :)
<eyJhb> With most of Nix
<eyJhb> I don't know if that is a thing :p
<wedens[m]> is there an alternative to overlays-compat trick to have the same overlays everywhere? (https://nixos.wiki/wiki/Overlays#Using_nixpkgs.overlays_from_configuration.nix_as_.3Cnixpkgs-overlays.3E_in_your_NIX_PATH)
<eyJhb> Lets try this solution...
andi- has quit [Remote host closed the connection]
<eyJhb> Apparantly "right before LVM" is untrue, damn it
andi- has joined #nixos
orivej_ has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
orivej has joined #nixos
avaq has quit [Remote host closed the connection]
never_released has quit [Quit: ZNC 1.7.5 - https://znc.in]
avaq has joined #nixos
jakobrs has left #nixos ["WeeChat 2.7.1"]
asheshambasta has joined #nixos
never_released has joined #nixos
<asheshambasta> any ideas on how to troubleshoot slow networking on nixos?
yasu has joined #nixos
<asheshambasta> I rebooted my system numerous times to get jack/paudio to work together and I seem to have broken something with networking where my network now seems extremely slow. It seems unrelated to me but you never know.
<yasu> This line used to work on my old sever but not in the new one...services.wakeonlan.interfaces = [ { interface = "enp4s0"; method = "magicpacket"; }] ;
<yasu> The problem line in my /etc/nixos/configuration.nix is:
<asheshambasta> ping takes a long time to start but the latency seems ok once it gets going.
<yasu> services.wakeonlan.interfaces = [ { interface = "enp4s0"; method = "magicpacket"; }] ;
<yasu> wake-on-lan is enabled in BIOS and I can easily set it manually by using ethtool
<yasu> How do I check at which point the wakeonlan line is executed during boot?
dermetfan has quit [Ping timeout: 260 seconds]
ninjin has quit [Ping timeout: 240 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
ninjin has joined #nixos
<eyJhb> srk: impossible, no clue what to do now :(
<wedens[m]> when I set nix.nixPath, will it affect the next build or the second build?
<srk> eyJhb: me neither :(
orivej has quit [Ping timeout: 258 seconds]
<srk> wedens[m]: second, it adjust /etc/nix/nix.conf
<srk> s
kleisli has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<asheshambasta> does jack/dbus in any way interfere with networking?
<wedens[m]> srk: does it? I see that it only sets environment.sessionVariables.NIX_PATH
<asheshambasta> it seems like in my system, after one of the reboots this interface has gotten really slow
<wedens[m]> which probably also means that the next build is not affected
<asheshambasta> (ping/page loads etc. are now taking ages, I initially thought this was due to the static ip/router, but I)
<asheshambasta> I
<{^_^}> [nixpkgs] @danieldk opened pull request #90236 → python3Packages.somajo: 2.0.5 -> 2.0.6 → https://git.io/JfHhK
<srk> wedens[m]: oh, indeed, sorry. you might need su - <user> or re-login to propagate the path
<asheshambasta> I've restarted the router and the machine; network logs also don't indicate anything wrong.
<srk> asheshambasta: it shouldn't but you never know.. you can try rolling back or disabling these to see if it helps
<srk> dmesg is worth checking as well
<asheshambasta> configuring jack/pulseaudio has been a nightmare
<srk> you can strace ping as well to see where it hangs
<srk> usually something with DNS resolution, pinging IP?
<srk> well you have reproducible configs so disabling part(s) of it is no problem
<asheshambasta> yeah, dns seems to be the issue
<srk> you can even modularize your own configuration.nix, having something like my.audio.enable which would do all the jack/pulseudio setup
<{^_^}> [nixpkgs] @danieldk opened pull request #90237 → drawio: 13.0.3 -> 13.2.2 → https://git.io/JfHhH
<asheshambasta> srk: that was the plan, iff I could get things set up the way I wanted.
<ldlework> Come join us in #nixos-gaming if that's relevant to you.
<eyJhb> srk: I have a final thing I can do I guess
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/8b071be7512 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-20.03)
__monty__ has quit [Quit: leaving]
<srk> eyJhb: bash?!
<eyJhb> No.. Sadly, and I couldn't even do the idea I wanted
<eyJhb> I am missing a "run this before you try to unlock the device"
orivej has quit [Ping timeout: 256 seconds]
<eyJhb> Because both are running at somewhat the same time
orivej has joined #nixos
<srk> yup
luc65r has quit [Remote host closed the connection]
<betawaffle> does anyone know how to get opencl working on nixos? (i've got an amd 5700 xt, and i want to use it for blender)
<srk> but it retries
yasu has quit [Remote host closed the connection]
<srk> betawaffle: I've had to recompile blender with opencl enabled and it just worked, with nvidia tho
<srk> oh, no, that's cuda support actually
<betawaffle> well, opencl is enabled for blender, but it's not detecting my card
<betawaffle> and clinfo reports zero platforms
<betawaffle> so i feel like there's something i'm missing
<srk> ,locate clinfo
<{^_^}> Found in packages: clinfo
luc65r has joined #nixos
<evils> betawaffle: fwiw, i've got nixos-rocm set up, blender detects my wx 3100, but it segfaults when trying to render (it ran fine for foldingathome though)
<evils> it's been a while since i tried amdgpu-pro and i'm not sure what's the right way to set that up anyway
<betawaffle> do i need amdgpu-pro?
<evils> amdgpu-pro includes a closed source opencl driver for amd cards i think, ROCm is the open source alternative
<betawaffle> i'm _ok_ with closed source, if it works. but it's not clear how to use it on nixos
Thra11 has quit [Ping timeout: 256 seconds]
chloekek_ is now known as chloekek
<evils> yea i suspect if you can get it working, amdgpu-pro has a better chance of actually working :P
zarel_ has joined #nixos
<asheshambasta> srk: actually, switching to a local dns server seems to "fix" the issue, I was using google dns earlier.
<asheshambasta> Same issue with opendns.
zarel has quit [Ping timeout: 256 seconds]
<eyJhb> srk: F it, lets patch it
orivej has quit [Quit: No Ping reply in 180 seconds.]
liminal18 has joined #nixos
orivej has joined #nixos
ramses_ has joined #nixos
luc65r has quit [Ping timeout: 272 seconds]
<ramses_> Hi guys. I have the impression that IPv6 is not properly accounted for by the networking.firewall options. I added some custom rules in extraCommands, but they only affect the IPv4 firewall and not the IPv6 one. Is this expected behaviour?
<ramses_> I don't see any IPv6-specific options
<ramses_> Since there are no options for specific protocol versions, I was expecting the rules to be applied to both
<srk> ramses_: they are shared but you need to use ip46tables I guess
<liminal18> how do I get rid of this issue: warning: name collision in input Nix expressions, skipping '/home/liminal18/.nix-defexpr/channels_root/nixos'
<eyJhb> If anyone known of a better way, than to execute `mount -t zfs /tmp/keypar`, so that I can extract the key for my LUKS volume
<liminal18> also not sure how I caused it but I am assuming I did something wrong with a build.
<eyJhb> - my encrypted LUKS volume, where the key is located in a encrypted dataset. I can get stage1 to import the pool, so the datasets are ready, but it will only mount them after the LUKS par have been openened
<eyJhb> Patch in question - https://termbin.com/l6iy1
zarel_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
zarel has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<srk> looks legit
orivej has joined #nixos
<asheshambasta> srk: in my case when paudio is running as a service (hardware.pulseaudio.enable=true) it is unable to find the dbus daemon; it tries to launch one and fails
Thra11 has joined #nixos
luc65r has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<asheshambasta> and when it isn't running as a service, I can run it via pulseaudio -D --start but that daemon is not discovered by any client.
<ramses_> srk: I am such an idiot, of course I was just using "iptables" *facepalm*
<srk> asheshambasta: not sure about that :(
<ramses_> The defaults seem to differ though, IPv4 has DROP policy for FORWARD, IPv6 has ACCEPT. But this could also be docker changing the default for IPv4
<srk> ramses_: hehe, it's good to have a copy of nixpkgs around so you can check how stuff is implemented when needed
ncakerlist has joined #nixos
<asheshambasta> it could be in your case that jack is running as a server
<asheshambasta> in my case I cannot start the server via qjackctl: server options are greyed out
<srk> asheshambasta: yup, it is, and pulse is just a client for it. is your user part of audio group ?
luc65r has quit [Ping timeout: 264 seconds]
<srk> asheshambasta: server options in Advanced tab?
zarel has quit [Ping timeout: 256 seconds]
zarel has joined #nixos
<asheshambasta> yes x2
<srk> ok
<srk> (not grayed out for me, only few of them)
<asheshambasta> for me it is entirely greyed out
<srk> asheshambasta: you're on 20.03?
<asheshambasta> yeah
<srk> running out of ideas but I can try with 20.03 later
ramses_20 has joined #nixos
<asheshambasta> I must thank you for being so helpful and patient
ramses_ has quit [Ping timeout: 258 seconds]
<srk> yw!
ramses_20 is now known as ramses_
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JfHjH
<asheshambasta> I do have jackd.enable set to true; not sure if that is the issue.
<srk> I'm also interested in having this working without too much trouble
<{^_^}> [nixpkgs] @siriobalmelli opened pull request #90238 → beancount: 2.2.3 -> 2.3.0 → https://git.io/JfHjQ
<srk> systemctl status jack says it's running?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
sputny has joined #nixos
<asheshambasta> yeah
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
<srk> I'll install a vm and pass it another USB soundcard so I can reboot and work with clean environment
knupfer has joined #nixos
<asheshambasta> thanks a lot
<asheshambasta> to me it seems like qjackctl is letting the systemd service take precedence but still presents an interface represeting the current state.
<srk> have too much stuff open to reboot the desktop and the config is alos quite large so hard to tell what's actually needed
davidv7 has joined #nixos
noname_ has quit [Ping timeout: 246 seconds]
<asheshambasta> yeah, and this stuff is quite messy
<asheshambasta> also, stopping the jack service and attempting to start it with qjackctl leads to a permission denied: something with futexes.
<asheshambasta> and there is a sum total of one SO issue on the same error message: the user claims to have fixed it on ubuntu via a purge-install
<{^_^}> [nixpkgs] @primeos pushed to master « bundler-audit: 0.6.1 -> 0.7.0.1 »: https://git.io/JfQeI
<das_j> hm, what changes when I switch to a fixed output derivation? Only internet access or does it do more?
<asheshambasta> also, if this setup is so brittle at this stage, how bad will it be with updates etc.?
<srk> asheshambasta: I think we can try crafting a test for it which would make it a lot better
<srk> and improving the modules if needed
<{^_^}> [nixpkgs] @siriobalmelli closed pull request #90238 → beancount: 2.2.3 -> 2.3.0 → https://git.io/JfHjQ
<asheshambasta> yeah
<{^_^}> [nixpkgs] @primeos pushed to master « rav1e: 0.3.2 -> 0.3.3 »: https://git.io/JfQec
<asheshambasta> a single nix module that can set things up this way: paudio using jack as a source and sink; and jack on top of alsa.
<ramses_> Do I need to do something specific in nixos to be able to use iptables extensions like physdev ?
whatisRT has joined #nixos
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « inxi: 3.1.01-1 -> 3.1.03-1 »: https://git.io/JfQeo
Darkmatter66 has quit [Ping timeout: 260 seconds]
ramses_ has quit [Quit: Connection closed]
vandenoever has joined #nixos
luc65r has joined #nixos
<asheshambasta> on the outset it seems to me that the working of pulseaudio is really contorted
<asheshambasta> it relies on env. vars, configuration, etc; it is extremely hard to reason about
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
ramses_ has joined #nixos
<asheshambasta> I wouldn't mind getting rid of paudio and just using jack as my primary sound driver, but it seems like most common applications are built with pa in mind, I
<asheshambasta> this is what I gather from reading up on this, it would seem to me that other software would be built using ALSA in mind, which, as per my understanding is the lowest level of sound in linux from an application standpoint.
<srk> this. ok, got jack working in vm with another soundcard, will take a break and play with pa on top of it
knupfer1 has joined #nixos
<srk> there's also pipewire which could possibly replace both, but I don't know much about it
<asheshambasta> supercollider seems to exclusively support jack
<srk> like in theory interop should be possible, converting jack apps to pulse apps and vice versa
vandenoever has quit [Ping timeout: 260 seconds]
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<srk> but who knows, maybe the APIs are completely different
<asheshambasta> in your vm test case, I
orivej_ has quit [Ping timeout: 260 seconds]
<asheshambasta> I'd be keen in finding out that iff you run jackd + pulseaudio as services, can you i.) use qjackctl to control jack; ii.) connect pa to jackd
orivej has joined #nixos
<eyJhb> srk: totally is!
<pinkieval> The page https://nixos.wiki/wiki/NixOS_on_ARM/PINE64_ROCKPro64 contains: "U-Boot for this board is packaged in nixpkgs, and Hydra builds can be found here: https://hydra.nixos.org/job/nixpkgs/trunk/ubootRockPro64.aarch64-linux", but I can't find an image from that link
<pinkieval> I feel like I'm missing something obvious
ncakerlist has quit [Ping timeout: 260 seconds]
zarel has quit [Ping timeout: 264 seconds]
mgdm has joined #nixos
<srk> eyJhb: :)
<mgdm> Hello. I'm looking into packaging a Node CLI tool I'm using. I've added it to node-packages.json and run generate.sh, but the diff it's created touches a lot of unrelated packages. I assume I'd only want to PR the bits that were relevant? Or should I commit the whole node-packages.nix with all the changes?
<srk> pinkieval: you can cross compile it yourself with nix-build -A pkgsCross.aarch64-multiplatform.ubootRockPro64
<pinkieval> srk: I don't have nix installed yet :|
<pinkieval> (well I do, but on a machine I don't trust to bootstrap other machines)
<srk> hmmm
sigmundv has joined #nixos
<{^_^}> [cabal2nix] @peti pushed to v3 « Implement cabal2nix-from-cabal. »: https://git.io/JfQfs
rajivr has quit [Quit: Connection closed for inactivity]
admicos has quit [Quit: bye]
admicos has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<srk> pinkieval: the path comes from curl https://cache.nixos.org/n97z4chss3gpwarcv9m2gji0gs0ac7wp.narinfo which is the output of the hydra build
Izorkin has quit [Ping timeout: 258 seconds]
<srk> the first command creates uboot folder with idbloader.img and u-boot.itb
orivej has joined #nixos
dermetfan has joined #nixos
<pinkieval> hmm, still requires a nix machine
<pinkieval> what format is .nar?
<srk> nix archive ;)
<pinkieval> oh no
<srk> you can install nix on any distro
dramforever has joined #nixos
<pinkieval> hmm right, a single-user install should do
<pinkieval> oh but it still requires root, damn
<pinkieval> nvm, I forgot I can just chown /nix
ramses_ has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
noname_ has joined #nixos
luc65r has quit [Read error: Connection reset by peer]
<srk> asheshambasta: yup, I'm getting errors trying to load jack sink and also the dubs-daemon related one
luc65r has joined #nixos
noname_ has quit [Client Quit]
<asheshambasta> okay, interesting
<srk> asheshambasta: what's your desktop session?
<asheshambasta> i think if you run jack as a service but pa as a daemon; you will be able to connect pa to jack, but nothing can any longer discover the pa server.
<asheshambasta> I'm using xmonad
<srk> my desktop setup runs xmonad with home-manager but I'm on more recent commit, vm has sddm+plasma
thc202 has joined #nixos
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
iyzsong has joined #nixos
<srk> connect(47, {sa_family=AF_UNIX, sun_path="/dev/shm/jack_default_1000_0"}, 110) = -1 ENOENT (No such file or directory)
shatsky has joined #nixos
shatsky has left #nixos [#nixos]
<asheshambasta> is there a way to get rid of pulseaudio altogether and just use jack?
<srk> not sure, depends on apps you need I guess
<gchristensen> I'm trying to debug a Go program and in the backtrace it is showing some stack frames as just #8 0x00007fb857c67700 in ?? () having ??
luc65r has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<gchristensen> I see location information for other stack frames, though. uniquely, I see information for lines like /build/go/pkg/mod/github.com/golang/protobuf@v1.3.3/proto/table_unmarshal.go and /nix/store/26l01arw0gxm1d883ni5z4ygairsyvn7-go-1.12.17/share/go/src/runtime/proc.go but no stack frames show location information for actual the program's sorce itself, leading me to think the ??'s are in the program's
<gchristensen> source. any tips?
orivej has joined #nixos
amerigo has quit [Quit: Connection closed for inactivity]
luc65r has joined #nixos
<asheshambasta> srk: just to be sure: pastebin.com/ZWftygGB
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<srk> gchristensen: maybe check the executable with objdump --debugging
tobeportable has joined #nixos
<srk> asheshambasta: yup, same, something prevents pulseaudio user service the access to the socket, not sure what
civodul has joined #nixos
Chiliparrot has joined #nixos
<asheshambasta> maybe the default params are incorrect in the module and can be overriden?
<asheshambasta> but I'm not sure what the params can be for module-jack-sink
iyzsong has quit [Quit: ZNC 1.8.0 - https://znc.in]
<gchristensen> srk: it prints a lot :') including paths specific to the program: https://gsc.io/content-addressed/7db31217a7ed041517476acf9e8d88d80f26b25b89f304e612b1165cd468945c./up
vandenoever has quit [Read error: Connection reset by peer]
<srk> hmm, looks good, not sure why gdb fails, haven't debug any go yet
ddellacosta has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<srk> asheshambasta: default params should be good, it tries to access the right path, socket is owned by jackaudio
<asheshambasta> how did you check?
<dramforever> How do I get a nix-shell with cross compiler and qemu? I got this far, I can't seem to convince it to use the native qemu: https://dpaste.org/txVf (removing qemu makes everything work)
<srk> asheshambasta: strace -f -o tr1 <pulseProcess> .. found this - connect(47, {sa_family=AF_UNIX, sun_path="/dev/shm/jack_default_1000_0"}, 110) = -1 ENOENT (No such file or directory)
orivej has quit [Ping timeout: 246 seconds]
luc65r has quit [Read error: Connection reset by peer]
orivej has joined #nixos
luc65r has joined #nixos
drakonis has joined #nixos
luc65r has quit [Read error: Connection reset by peer]
luc65r has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
_deepfire has joined #nixos
jumper149 has joined #nixos
<asheshambasta> the path is different in my case, but I guess that is expected.
luc65r has quit [Read error: Connection reset by peer]
luc65r has joined #nixos
<asheshambasta> and I did a bit more research; turns out most applications on linux are built with pulseaudio in mind; spotify has an issue reporting a feature request which has been marked stale and has seen no activity for a few years.
<{^_^}> [nixpkgs] @FRidh opened pull request #90240 → WIP: buildPythonPackage: perform tests in separate derivation → https://git.io/JfQJ5
drakonis1 has quit [Ping timeout: 264 seconds]
zebrag has joined #nixos
<asheshambasta> https://twitter.com/PaintYourDragon/status/1268680517672558592?s=20 seems rather apt at this time.
luc65r has quit [Client Quit]
<{^_^}> [nix] @Kloenk opened pull request #3694 → add curl middleware plugin → https://git.io/JfQUe
<srk> asheshambasta: hmm, no it actually tries to access the wrong path, if I symlink jack_default_0 to jack_default_1000_0 it gets a bit further
leungbk has joined #nixos
knupfer has quit [Quit: knupfer]
admicos has left #nixos ["Leaving"]
knupfer has joined #nixos
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
sputny has quit [Quit: sputny]
sputny has joined #nixos
Izorkin has joined #nixos
<srk> mpv uses the correct one with -ao jack
<srk> maybe pulse assumes that jack is running in user session and tries that
kenran has joined #nixos
leungbk has quit [Remote host closed the connection]
<asheshambasta> I'm unable to start jack via qjackctl, I get permission related errors.
arahael1 has joined #nixos
Arahael has quit [Ping timeout: 246 seconds]
<bqv> infinisil: what even is the use case of having multiple versions of ghc
<bqv> do you personally need it? i'm amazed people put up with that
<asheshambasta> srk: if I do systemctl stop jack.service, I see a bunch of "Server is not running" errors in journalctl
sputny has quit [Quit: sputny]
sputny has joined #nixos
<srk> asheshambasta: so it looks like the problem is with the initialization - pulse trying to connect to wrong path and creating a wrong path which can't be accessed by jackd. trying to compare the code with what mpv does
vuko has quit [Quit: leaving]
vuko has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<asheshambasta> tbh, at this point I
<asheshambasta> I'd be happy to live with just one sound engine, if only I can make the rest of my applications work with Jack
<asheshambasta> I'm getting audio via jack.
<{^_^}> [nixpkgs] @vcunat pushed to master « rav1e: fix meta.homepage evaluation »: https://git.io/JfQUM
gustavderdrache has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
proofofkeags has joined #nixos
sputny has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mgdm opened pull request #90241 → marp-cli: init at 0.18.1 → https://git.io/JfQU7
od1n has quit [Remote host closed the connection]
<srk> asheshambasta: hah, it depends on promiscuous = getenv("JACK_PROMISCUOUS_SERVER");
<srk> yeaah
<srk> and that won't propagate to pulse service
<asheshambasta> not sure I understand; you mean it doesn
<asheshambasta> (sorry different keyboard so I keep hitting return instead)
<srk> sec
<{^_^}> [nixpkgs] @siriobalmelli opened pull request #90242 → vimPlugins: update → https://git.io/JfQUx
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
eoli3n_ has joined #nixos
<srk> asheshambasta: env variable affects the /dev/shm path name https://github.com/jackaudio/jack2/blob/develop/posix/JackSocket.cpp#L37
<srk> jack module sets it to JACK_PROMISCUOUS_SERVER = "jackaudio"; but it won't propagate to pulseaudio user service, only DISPLAY does (which is why mpv works but not pulse user service)
pamplemousse has joined #nixos
is_null has quit [Remote host closed the connection]
<srk> asheshambasta: fix for that is systemd.user.services.pulseaudio.environment.JACK_PROMISCUOUS_SERVER = "jack";
<srk> asheshambasta: but now it fails on permission denied, which is kind-of expected :D
<asheshambasta> I believe this is also mentioned in the jack nixos wiki; in my case however; I'm using hardware.pulseaudio which doesn
<asheshambasta> doesn't accept 'environment
<srk> asheshambasta: hardware.pulseaudio just sets up the systemd.user.services.pulseaudio for you
<asheshambasta> ah okay
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<asheshambasta> yeah I also see the permission denied error, perplexing that the error is issued by jackd though
meh` has joined #nixos
<srk> asheshambasta: yup, it's how the sockets are created, pulse connects to jack and also creates its own - .. srw-rw---- 1 jane users 0 Jun 13 17:38 jack_PulseAudio JACK Sink_0
<srk> YES!
<srk> systemd.services.jack.serviceConfig.SupplementaryGroups = [ "users" ];
<asheshambasta> I'm afraid I'm still getting permission denied
<srk> restart jack manually
<srk> it doesn't restart automatically
<asheshambasta> aha, yes!
<asheshambasta> YES YES YS
<asheshambasta> you're the man, and I owe you beer.
<Yaniel> oh right I was going to look into that pulse-on-jack type setup
<phirsch> Taking a note as well... Thx!
<srk> asheshambasta: \o/
<srk> will update the wiki I guess and try to PR this
<phirsch> srk++
<{^_^}> srk's karma got increased to 19
<evils> srk ++ asheshambasta++
<{^_^}> asheshambasta's karma got increased to 1
<evils> srk++
<{^_^}> srk's karma got increased to 0b10100
dermetfan has quit [Ping timeout: 256 seconds]
<phirsch> asheshambasta++
<{^_^}> asheshambasta's karma got increased to 1.0
<asheshambasta> thanks, wow :-) all credit goes to srk though
dramforever has quit [Quit: Leaving]
proofofkeags has joined #nixos
<phirsch> It was time someone figured it out - it took me a few hours to figure out how to run pa on jack on-demand, but I gave up on jackd as a system service.
<srk> fun investigation, strace is the best tool :D
<phirsch> +1
proofofkeags has quit [Ping timeout: 260 seconds]
<asheshambasta> I will need to learn how to use it after this
<srk> mostly used `strace -f -o trace.txt -s 1024 -p $( pidof pulseaudio )`
<srk> -f is to trace child processes, -s <length> so it won't trim strings too much so you can see full log messages
<clever> srk: it also helps to use `-ff -o trace.txt`
<clever> srk: -ff says to append the pid to the filename, so you dont get 4 different procs interleaved in one big mess
<srk> oh, nice
<clever> also, `:set syntax=strace` in vim!
ramses_ has joined #nixos
<srk> I wonder how it can sometimes detect that automagically
<clever> i'm not sure why it works half the time and doesnt the other half
<clever> but knowing the cmd, you can at least force it on
<srk> handy
<srk> asheshambasta: btw have you noticed https://github.com/yaxu/feedforward/ from the last video? :)
<asheshambasta> not yet, but checking that
<asheshambasta> (btw, I do make music at present; but doing it in Haskell has really interested me)
orivej has quit [Ping timeout: 246 seconds]
fragamus_ has joined #nixos
xelxebar has quit [Remote host closed the connection]
pamplemousse has quit [Ping timeout: 258 seconds]
xelxebar has joined #nixos
orivej has joined #nixos
<srk> cool, I'm mostly toying with tidal and VCVRack but was missing visual feedback for the former, wish feedforward had vim bindings :D
zebrag has quit [Quit: Konversation terminated!]
fragamus_ is now known as fragamus
<asheshambasta> I think emacs also has some decent support for supercollider
<srk> maybe vim could be used as a renderer, looks like feedforward is a curses interface, haven't tried it yet but I'm going to soonish
<srk> yeah, or that
<asheshambasta> and for tidal for that matter; but then I'm writing my own framework on top of tidal while stealing some handy stuff from BootTidal.hs; to set things up to support common stuff I do
<{^_^}> [nixpkgs] @fps closed pull request #90019 → xonotic: fix a couple of bugs → https://git.io/JfStU
cole-h has joined #nixos
<srk> I was using it with vim/screen/ghci before, could be nice with emacs with scel
<infinisil> bqv: HIE doesn't work if you have a mismatched GHC version
zebrag has joined #nixos
<infinisil> Meaning a project with GHC 8.6.4 doesn't work with a 8.6.5 HIE
<asheshambasta> srk: yeah, tidal looks interesting; another library that I looked into a while back was csound-expression
zupo has joined #nixos
<asheshambasta> that, targets csound instead of supercollider as its backend
<infinisil> bqv: So if not all versions are supported, this means that if HIE updates to a new GHC version, you also need to update your project with that
<asheshambasta> (has nice tutorials as well)
<Yaniel> btw are y'all using realtime kernels with jack?
<Yaniel> what are the risks in doing so?
<srk> sometimes :)
<srk> no risks but incompatible with nvidia drivers
tokudan has quit [Remote host closed the connection]
<srk> asheshambasta: first time I hear about csound, thanks for the tip
<bqv> infinisil: that's ok, i'm more confused by why you have multiple GHCs on your system at any point - i.e. why not just sync hie with whatever "ghc" is in nixpkgs
<infinisil> bqv: Because projects use pinned nixpkgs
<infinisil> And those have varying GHC versions
<bqv> hm, of course they do
<asheshambasta> Yaniel: I'm very new to Jack (credits to srk just now), I'm yet to see what the latencies look like before deciding on the kernel stuff
<infinisil> And if it wasn't for the glibc issue, this would've worked fine
<Yaniel> I'm interested in setting it up as well, in particular for renoise
<asheshambasta> srk: csound is very interesting too
<Yaniel> since atm it has to take over the entire sound card, which is inconvenient
<bqv> you know, i'm starting to think i can live without hie
<infinisil> It won't be that bad after https://github.com/Infinisil/all-hies/issues/61 is done :)
<{^_^}> Infinisil/all-hies#61 (by Infinisil, 5 days ago, open): The future of all-hies
tokudan has joined #nixos
<infinisil> bqv: But you'll be fine without it too, many people just use ghci or ghcid
<infinisil> Personally I always also use ghci next to HIE
<bqv> yeah of course, i was only looking for hie for lsp-haskell
<bqv> but i've lost the will to care
ramses_ has quit [Ping timeout: 265 seconds]
<colemickens> back to getting stack overflow again. :/
<colemickens> luckily I know what to do... ulimit -s ...
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/716f3930652 (from 31 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<colemickens> Oh, it looks like flakes will naturally avoid this problem?
* colemickens wishes someone would hold his hand for the flakes conversion
user_0x58 has joined #nixos
<bqv> what problem?
<{^_^}> #42379 (by erictapen, 1 year ago, closed): stack overflow (possible infinite recursion) depending on type of git checkout
<bqv> that's relatively amusing
<bqv> i love weird bugs like that
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
drakonis has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 is now known as knupfer
ris has joined #nixos
_ris has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
alp has joined #nixos
orivej_ has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
chloekek has quit [Ping timeout: 246 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Knuxfan has joined #nixos
<Knuxfan> hi guys, i have a question with nixos
ramses_ has joined #nixos
<Knuxfan> i recently built an iso image using nixos generator but when I boot it, in virtualbox or on a real machine, crashes once it reaches the second stage
<Knuxfan> ohhh i think i figured it out nevermind, im using the 20.03 version of home-manager instead of 20.09
<Knuxfan> that's probably the issue
pbb_ is now known as pbb
knupfer1 has joined #nixos
<cole-h> I don't think that should crash a machine...
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<simpson> Crashing at second stage? Does it crash right around the time that the screen flickers and the font changes; i.e. when modesetting kicks in?
<{^_^}> [nixpkgs] @rasendubi merged pull request #90176 → cypress: 4.5.0 -> 4.8.0 → https://git.io/JfHqU
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/JfQIg
<Knuxfan> it starts systemd, and then it says welcome to nixos 20.09
<Knuxfan> the font changes and it starts the journal service and udev coldplug all devices
<Knuxfan> this is the last screen i see before the crash
Zetagon has joined #nixos
<Knuxfan> this is the trace that ends up on screen
<cole-h> Yeah, uh, home-manager won't cause a kernel trace lol
<Knuxfan> so what could be the cause? I can share the configuration files
<{^_^}> [nixpkgs] @marsam merged pull request #90082 → mpg123: 1.25.13 -> 1.26.1 → https://git.io/Jf9Jr
<{^_^}> [nixpkgs] @marsam pushed 2 commits to staging: https://git.io/JfQIX
<simpson> Alas, it's only the bottom part of the kernel's oops.
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfQID
<{^_^}> [nixpkgs] @marsam merged pull request #90185 → ocamlPackages.merlin: 3.3.4 -> 3.3.6 → https://git.io/JfHll
<Knuxfan> i mean, here's my config https://gist.github.com/Xe/935920193cfac70c718b657a088f3417 i'm just using someone else's
<betaboon> Knuxfan: maybe you could try getting the full log. maybe by adding a serial port to the vm and getting the text-log that way
<betaboon> Knuxfan: i think in the virtualbox ui you can find that in: (selected VM) -> Settings -> Serial Ports -> Port 1 -> Enable + Port Mode=Raw File + provide a file-path
<Knuxfan> alright one sec
<Knuxfan> okay so that kinda worked?
<{^_^}> [nixpkgs] @Thra11 opened pull request #90245 → Alegreya → https://git.io/JfQLv
<Knuxfan> it only went up to initrd
<Knuxfan> it only logged grub doing that
cosimone_ has joined #nixos
<betaboon> Knuxfan: do you know what the kernel-cmdline is?
<Knuxfan> you mean pressing tab in isolinux?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<betaboon> Knuxfan: dunno, maybe? i think it would be good to add something like `console=ttyS0 console=tty0` and maybe `ignore_loglevel` to get all the good stuff
<Knuxfan> yeah i tried that
cosimone has quit [Ping timeout: 256 seconds]
<Knuxfan> i typed in console=lp0
cosimone_ is now known as cosimone
<cole-h> Why lp0? That's not a serial port -- that's a printer...
<betaboon> Knuxfan: did you completly replace the cmdline? or just append to it ?
<Knuxfan> i appended to it
<{^_^}> [nix] @Kloenk closed pull request #3688 → add gitlab auth token → https://git.io/JfHnQ
<Knuxfan> ohhh lp0 is parallel lol
<Knuxfan> alright i got the log
MtotheM has joined #nixos
<MtotheM> where does default configurations end up? normally it's in `/usr/share/doc/` but that path doesn't exist in nixOS
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
chloekek has joined #nixos
mmchen has joined #nixos
<betaboon> Knuxfan: what about the log before that ?
<betaboon> MtotheM: any specific package you are looking at ?
<Knuxfan> uh its just grub stuff
<Knuxfan> it didn't print anything other than that error
kleisli has joined #nixos
<Knuxfan> there i ignored log level
<MtotheM> alacritty right now. many programs don't put their default configs in your home. so you have to copy them over. betaboon
<betaboon> MtotheM: that's by design
<MtotheM> exactly. so it's important to know where to find them :P or you will struggle setting up new things.
<mmchen> what are the advantages/disadvantages of using docker or configuration.nix to serve a service (e.g matrix/synapse)?
<betaboon> Knuxfan: is your host system using drm-module for graphics ?
jmeredith has quit [Quit: Connection closed for inactivity]
<ldlework> Join us in #nixos-gaming if you're so inclined.
<betaboon> Knuxfan: i would suggest downgrading to kernel_4_19 (in the vm)
<MtotheM> So is there no standard for default configs? cause I can't seem to find any information
<simpson> MtotheM: You can pull them from each individual package's share/doc path, I bet. There isn't a /usr hierarchy.
<betaboon> MtotheM: by what you're saying i neither understand the problem you're facing nor the default-behaviour you're expecting
<MtotheM> I want to copy the default configuration into my home folder. but I don't know where to find it. @betaboon
alp has quit [Remote host closed the connection]
alp has joined #nixos
<betaboon> MtotheM: as a matter of fact alacritty does not have a default-config, it has sane-defaults and all the options are documented here: https://github.com/alacritty/alacritty/blob/master/alacritty.yml
<betaboon> i wouldnt want any package to put stuff in my home-directory :/
<cole-h> Which is why alacritty doesn't -- we don't want that either :^)
<MtotheM> I'm aware, but on other distros this example is in the ../doc/ path
<MtotheM> suppose I could just copy it from Github
<cole-h> Don't use the one from master
<betaboon> MtotheM: i got nix-expressions creating a config and symlinking to in /etc/xdg/alacritty.yaml thats it.
<cole-h> Use the one from the tagged release
<betaboon> i think alacritty is not packaged to include the default-config in share
<cole-h> Currently, no.
philr_ has quit [Ping timeout: 246 seconds]
<alexfmpe> anyone here managed to connect to a 3d printer on nixos?
<alexfmpe> pronterface on my mac detects my prusa mk3s, but the pronterface on my nixos doesn't
bdju has quit [Ping timeout: 246 seconds]
bdju has joined #nixos
ramses_ has quit [Ping timeout: 264 seconds]
<alexfmpe> huh turns out I needed to run it with sudo
<srk> alexfmpe: you can add udev rule
<betaboon> i have a problem using overlays and crosspkgs. i normally pull in some packages from unstable using an overlay like in the attached link, but that breaks cross-compilation for those packages: https://gist.github.com/betaboon/c73064271609d7080e53f7a650c7895a
<{^_^}> [nixpkgs] @yesbox opened pull request #90247 → lmdb: 0.9.24 -> 0.9.25 → https://git.io/JfQtW
growpotkin has joined #nixos
<betaboon> i think i would need to set `crossSystem` for that `import <nixpkgs-unstable>` but as i dont have access to `config` in the overlay i dont know how
<alexfmpe> srk: makes sense, I have some cargo-culted udev rules for other stuff
<alexfmpe> thanks, will look into that
<{^_^}> [nixpkgs] @LnL7 pushed to staging-next « libxslt: fix darwin build »: https://git.io/JfQt4
<srk> alexfmpe: I think dialout group works as well but better to give it a name instead of just /dev/ttyUSB or something
orivej has quit [Quit: No Ping reply in 180 seconds.]
eoli3n_ has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
tv has quit [Ping timeout: 246 seconds]
tv1 has joined #nixos
slack1256 has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
justanotheruser has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<alexfmpe> betaboon: where do you get the idVendor / idProduct ?
<betaboon> alexfmpe: lsusb is your friend :)
<alexfmpe> oooh I see
gustavderdrache has quit [Quit: Leaving.]
<srk> or udevadm info
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
pingiun has joined #nixos
<pingiun> I'm trying to do erase your darlings, but having trouble with redis not wanting to start when /var/lib/redis is a symlink
<pingiun> I set the permissions on /persist/var/lib/redis the same as was previously on /var/lib/redis but the service errors with status=238/STATE_DIRECTORY
mananamenos has quit [Ping timeout: 256 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<energizer> pingiun: do you know the names of the files inside?
alp has joined #nixos
<energizer> alternatively you can bind-mount the directory
pingiun has quit [Ping timeout: 258 seconds]
cosimone has quit [Quit: Quit.]
pingiun has joined #nixos
<pingiun> I'm sorry for leaving so suddenly my computer crashed
<pingiun> I was wondering if anybody knows why the redis service refuses to start when /var/lib/redis is a symlink (as described aboev)
<energizer> pingiun: if you know the names of the files inside you can link those. alternatively you can bind-mount the directory.
<pingiun> I think redis normally only has one file in the directory but I'm not sure that will always be the case
<pingiun> so bind mounting seems like the best option then
<energizer> see nix-community/impermanence
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/db31e48c5c8 (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<pingiun> energizer: that's great thanks
asheshambasta has quit [Ping timeout: 272 seconds]
Mateon1 has quit [Ping timeout: 258 seconds]
<Thra11> Anyone got any cunning tricks for finding interesting issues or PRs to review?
<energizer> Thra11: discourse has weeklyish threads where people post theirs
simba1 has joined #nixos
<Thra11> energizer: Do you mean the PRs ready/in distress ones?
<energizer> Thra11: ya
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ff53f0930e0 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<evils> ,random-pr
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82835 (by magnetophon, 12 weeks ago, open): tamgamp.lv2: init at unstable-2020-05-14
<simpson> evils++
<{^_^}> evils's karma got increased to 9
kenran has quit [Ping timeout: 260 seconds]
<energizer> i want to wrap a program by piping its stderr through another program. is there an idiom for that?
doomlist3 has joined #nixos
whatisRT has quit [Ping timeout: 256 seconds]
zarel has joined #nixos
dongcarl has quit [Ping timeout: 256 seconds]
mmchen has quit [Remote host closed the connection]
<Thra11> evils: The trouble with just picking stuff at random is that 90% of the time I don't have the hardware to test it on / don't know what it is / don't have the complex config required to use it / don't know how the language or framework is supposed to be packaged / have no interest in it. I don't mind building random stuff and confirming "Yep, seems to run", but I feel like it's more useful (and
<Thra11> interesting) to review stuff which I use or know how it should work.
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #90249 → php < 7.4: Fix validation of PKG_CONFIG var → https://git.io/JfQqD
<Thra11> I wonder if you could take your system config and search for PRs which affect the packages you use.
<energizer> that would be a nice feature
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
alexherbo2 has joined #nixos
fragamus has quit [Quit: Connection closed]
alp has quit [Ping timeout: 272 seconds]
<Thra11> Even just being able to "subscribe" to a package (without having to be the maintainer), so you get notifications about issues and PRs would be good.
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk> Thra11: well that's exactly the point of meta.maintainers for both modules and packages, even if you're interested in a package
seku has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #90250 → pythonPackages.awkward1: 0.2.19 -> 0.2.23 → https://git.io/JfQmf
<MarcWeber> What is determining the action on lid close ? I'd like to switch to hibernate cause my ryzen7 notebook cannot resume amdgpu from suspnd/s2idle
<srk> logind
doomlist3 has quit [Quit: not part but quit]
doomlist3 has joined #nixos
<srk> MarcWeber: services.logind.lidSwitch
doomlist3 has quit [Client Quit]
doomlist3 has joined #nixos
<MarcWeber> srk: many thanks
doomlist3 has quit [Client Quit]
doomlist3 has joined #nixos
<Unode> if I have "nix-build -E 'with import <nixpkgs> {}; enableDebugging package'", how can I translate this to nix-shell? Tried "nix-shell -E ..." but the built package isn't added to PATH.
<{^_^}> [nixpkgs] @mgdm opened pull request #90251 → vscode-extensions.golang.Go: rename → https://git.io/JfQmL
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Thra11> srk: I feel like it generates a lot of noise if I add myself as a maintainer to a bunch of packages I'm vaguely interested in (especially when I get too many emails about some of them and want to take myself off again). It's like if you subscribe to an issue on github: I'm not distracting from the issue by just subscribing, unlike if e.g. I had to comment "cc me" to get notifications.
<srk> I see
zupo has joined #nixos
whatisRT has joined #nixos
codygman has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
codygman has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/8260cd5bc65 (from 25 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
proofofkeags has joined #nixos
fragamus_ has joined #nixos
fragamus_ is now known as fragamus
mananamenos has joined #nixos
linarcx has joined #nixos
fragamus has quit [Client Quit]
cript0nauta has joined #nixos
zarel has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @ConradMearns opened pull request #90252 → neuralcoref: init at 4.0 → https://git.io/JfQmd
proofofkeags has quit [Remote host closed the connection]
zarel has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/8260cd5bc65 (from 25 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
alexherbo2 has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
proofofkeags has joined #nixos
fl0_id is now known as step21
proofofkeags has quit [Remote host closed the connection]
zarel has quit [Ping timeout: 260 seconds]
linarcx has quit [Quit: WeeChat 2.8]
knupfer has quit [Ping timeout: 256 seconds]
alp has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asdasdasdlkjsd has joined #nixos
zupo has joined #nixos
fragamus_ has joined #nixos
asdasdasdlkjsd has quit [Remote host closed the connection]
cosimone has quit [Read error: Connection reset by peer]
doomlist3 has quit [Ping timeout: 256 seconds]
cosimone has joined #nixos
evanjs has quit [Quit: ZNC 1.8.0 - https://znc.in]
<Thra11> Can a dependency be packaged in nixpkgs if it hasn't actually had a release yet, and if so, how would you version the package?
doomlist3 has joined #nixos
evanjs has joined #nixos
knupfer has joined #nixos
noreferences has joined #nixos
<evils> Thra11: if it works, i think that's fine; i like iso 8601, or the git short commit hash as the version string
<{^_^}> [nixpkgs] @dramaturg opened pull request #90254 → stm32cubemx: 5.3.0 -> 5.6.1 → https://git.io/JfQYj
<Thra11> Also, if the author has taken the text from the BSD 3-clause license and added a paragraph of their own, what would I put in meta.license? Possibly licenses.free as it still looks sorta free, but who am I to judge?
<Thra11> evils++: Cool, thanks
<{^_^}> evils's karma got increased to 10
slack1256 has quit [Remote host closed the connection]
mallox has quit [Quit: WeeChat 2.8]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rusty1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<evils> Thra11: i'd probably go with licenses.free then, if anyone complains they'll be able to explain why you're wrong :D
zupo has joined #nixos
rardiol has quit [Ping timeout: 260 seconds]
mananamenos has quit [Ping timeout: 256 seconds]
pjt_014 has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
Knuxfan has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kalekseev opened pull request #90256 → pythonPackages.flake8: 3.7.9 -> 3.8.3 → https://git.io/JfQOa
cyraxjoe has joined #nixos
<evils> i'm stuck trying to build wxPython 4.1.0, anyone want to help? https://github.com/evils/nixpkgs/tree/wxpython
MightyJoe has quit [Ping timeout: 264 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
zupo has joined #nixos
meh` has quit [Ping timeout: 246 seconds]
rardiol has joined #nixos
<{^_^}> [nixpkgs] @ProgVal opened pull request #90257 → vimPlugins: Add description attribute from GitHub metadata. → https://git.io/JfQO1
sss has joined #nixos
cosimone has quit [Quit: Quit.]
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @epk opened pull request #90258 → solargraph -> 0.39.8 → https://git.io/JfQOx
<sss> .|If U believe in the only creator of heaven & earth [the only one] [monothiesm) that moses believed in him and Jesus and mohammed u will be safe *; For he is: (Allah) the only God; our refuge; follow islam The true religion of God & jewel of THE SEAS to be lifted, that is, be true muslimS to be lifted ****]
<sss> [, that is, be true muslimS to be lifted ****]
waleee-cl has joined #nixos
<{^_^}> [nixpkgs] @risicle opened pull request #90259 → [r20.03] opencv3, opencv4: use openblasCompat → https://git.io/JfQ3t
marusich has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
kleisli has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<sss> [Moses believed in Allah as his creator so did Jesus and mohammed *; For he is: (Allah) the only God; our refuge; follow islam The true religion of God & jewel of THE SEAS to be lifted, [that is, be true muslimS to be lifted ****]
is_null has joined #nixos
<quinn> has anyone developed with elixir + mix on nixos?
<liminal18> scons: Reading SConscript files ...
<liminal18> Python 3.5 or greater required, but you have Python 2.7.18
<sss> [Moses believed in Allah as his creator so did Jesus and mohammed *; For he is: (Allah) the only God; our refuge; follow islam The true religion of God & jewel of THE SEAS to be lifted, [that is, be true muslimS to be lifted ****]
<cransom> hrm. where's that banhammer when you need it.
<liminal18> been getting this while trying to build mongo 4.2.5
<liminal18> full log there
<FRidh> update the mongodb expression to use python3
FRidh has quit [Quit: Konversation terminated!]
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
elibrokeit has quit [Client Quit]
<liminal18> Fridh it should be python 35 actually
kenran has joined #nixos
elibrokeit has joined #nixos
<{^_^}> [nixpkgs] @maralorn opened pull request #90260 → [haskellUpdates] Fix reflex, reflex-dom and dependencies. → https://git.io/JfQse
<sss> -[Moses believed in Allah as his creator so did Jesus and mohammed *; For he is: (Allah) the only God; our refuge; follow islam The true religion of God & jewel of THE SEAS to be lifted, [that is, be true muslimS to be lifted ****], [that is, be true muslimS to be HaPPY ****] . M-
muslimm has joined #nixos
<liminal18> how do I set scons to python3?
muslimm has quit [K-Lined]
muslimm has joined #nixos
<quinn> anyone who develops applications uses postgresql, do you add a test server in configuration.nix or do you create one with a socket and everything in the source directory
gurmble has joined #nixos
grumble has quit [Killed (tepper.freenode.net (Nickname regained by services))]
gurmble is now known as grumble
muslimm has quit [Max SendQ exceeded]
tomaw has joined #nixos
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
kline has joined #nixos
<mgdm> quinn: I've created them using shell.nix before
<mgdm> worked well enough for my purposes
<quinn> mgdm: can you explain with a bit more detail? that sounds like exactly what i want!
ncakerlist has joined #nixos
shabius has quit [Read error: Connection reset by peer]
alp has quit [Remote host closed the connection]
<mgdm> quinn: sure. One sec while I write it up
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenran has quit [Ping timeout: 260 seconds]
codygman has quit [Read error: Connection reset by peer]
shabius has joined #nixos
codygman has joined #nixos
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
Fuchs has joined #nixos
muslimm has joined #nixos
codygman has quit [Read error: Connection reset by peer]
glguy has joined #nixos
muslimm has quit [Max SendQ exceeded]
codygman has joined #nixos
muslimm has joined #nixos
muslimm has quit [Max SendQ exceeded]
doomlist3 has quit [Ping timeout: 264 seconds]
ConradMearns has joined #nixos
<mgdm> quinn: https://labs.mgdm.net/psql-shell.md.txt something like this
<mgdm> I'm sure I could do the whole lot in shell.nix but that was neough to get me going
codygman has quit [Ping timeout: 260 seconds]
codygman has joined #nixos
<ConradMearns> Noob here, I'm trying to make a nixpkg for SeaweedFS and I've got it to build, but I can't seem to launch the binary after using nix-shell. I was wondering if anyone would be willing to take a look at my default.nix and offer suggestions?
ncakerlist has quit [Ping timeout: 240 seconds]
<ConradMearns> 'weed not found' :(
<kline> 419 nearly blaze it
<quinn> mgdm: i have something similar already actually, but i get waiting for server to start.... stopped waiting
zupo has joined #nixos
<quinn> i think it has something to do with /run/postgresql not existing
<mgdm> I think the combination of -D to move the data dir and `-l` to change where the logfile goes fixes that for me
<quinn> do you have the tmp folder existing or do you add a -k to put your socket somewhere else?
muslimm has joined #nixos
<quinn> weirdddd
muslimm has quit [Max SendQ exceeded]
muslimm has joined #nixos
<quinn> i have PGDATA set and it doesn't work
muslimm has quit [Max SendQ exceeded]
<mgdm> quinn: oooh are you on nixOS? I am doing this on macOS. Let me switch machine
<{^_^}> [nixpkgs] @jonringer merged pull request #90125 → vscode, vscodium: 1.45.1 -> 1.46.0 → https://git.io/Jf9Lq
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JfQGY
astylian has joined #nixos
asymptotically has quit [Quit: Leaving]
orivej has quit [Quit: No Ping reply in 180 seconds.]
codygman has quit [Ping timeout: 264 seconds]
codygman has joined #nixos
Negher has quit [Ping timeout: 256 seconds]
sss has quit [K-Lined]
orivej has joined #nixos
Fuchs has left #nixos ["Part"]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<astylian> Hello all!! I am thinking to switch to NixOS and I have two questions. 1. Is NixOS a rolling release? If not how difficult is to keep up with the latest Kernel? 2. Does it supports SELinux? If yes, how well is supported?
<notgne2> astylian: keeping your kernel updated is as simple as having `boot.kernelPackages = pkgs.linuxPackages_latest` in your config, I don't think SELinux is fully supported but I may be wrong
<simpson> astylian: 1. Yes, somewhat; it is easy enough to be stable and to not update kernels, but also straightforward to get new kernels packaged within a week of upstream. 2. Not really; what did you need from it?
<cole-h> 1) nixos-unstable is rolling, but we also have standard release branches (current is 20.03). Keeping up with the kernel on a release branch is as easy as copying in the derivation and using that instead.
<cole-h> 2) No idea
<cole-h> :^)
<{^_^}> [mobile-nixos] @samueldr merged pull request #164 → mruby-os: Fix native ARM build → https://git.io/Jf9dF
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JfQGR
Negher has joined #nixos
<{^_^}> [mobile-nixos] @samueldr merged pull request #163 → pine64-pinephone-braveheart: Add firmware package → https://git.io/Jf9HI
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JfQGz
<astylian> simpson, about SELinux, I just want to have a system that runs SELinux. lets say is a requirment :)
knupfer has quit [Ping timeout: 258 seconds]
<astylian> and what about nvidia drivers, is it a big hassle?
MightyJoe has joined #nixos
<simpson> astylian: I think that, very technically, the basic parts of SELinux can be enabled. However, policy information isn't copied into the Nix store, and there's no userspace support. Do you have policies for your custom applications, or custom policies for standard userland?
<simpson> nVidia and nouveau drivers are both available.
<{^_^}> rfcs#41 (by e-user, 1 year ago, closed): [RFC 0041] SELinux Support
<cole-h> So I don't think NixOS really functions with SELinux in mind (though some things might work fine)
<astylian> cole-h, I see, thanks :)
<cole-h> astylian: I also saw this: https://nixos.wiki/wiki/Workgroup:SELinux, which might pique your interest.
<simpson> ConradMearns: I just finished building the derivation you posted. It seems to work; I know nothing of this daemon, but I get a result/bin/weed and it responds to `weed --help`.
cyraxjoe has quit [Ping timeout: 256 seconds]
<infinisil> astylian: I've seen people use apparmor and audit on NixOS, maybe those could be enough for you (unless you specifically need SELinux which I suspect)
<astylian> simpson, I have seen that, but I am warried what happens in practice
<simpson> cole-h++ for historical context.
<{^_^}> cole-h's karma got increased to 68
<cole-h> 1 more karma... >:)
KarlJoad has joined #nixos
noreferences has quit [Quit: Connection closed]
<simpson> astylian: I don't run nVidia, but in practice, I hear that older cards work alright with nouveau, and newer cards work alright with nvidia, and nvidia's still just as painful to debug as it ever has been.
<KarlJoad> ,channels
<{^_^}> Largest Nix channels: #nixos, #nixos-dev, #nixos-chat, #nixos-aarch64, #nixos-security, #nixcon, #nixos-officehours, #nixops, #haskell.nix, #nix-darwin, #nixos-de, #nixos-emacs, #nixos-on-your-router, #nixos-nur, #nix-lang, #nixos-fr, #nixos-systemd, #nixos-borg, #nixos-wiki
<astylian> simpson, thanks for the tip
<cole-h> simpson: What is a "newer" card? 1080? Or the 2000 series and newer?
<cole-h> Because nouveau works just fine (for my mostly non-gaming workloads) on my 1080
<cole-h> (Minecraft works fine)
<mgdm> quinn: if you reload that page you'll see how I got it to work
<simpson> cole-h: Shifting; I normally imagine a half-decade sliding window. I never have had a strong grasp of which cards we fully understand, and which cards we don't really grok yet but kind of know how to boot and program. All I can say is that laptop/integrated units tend to lag behind discrete chipsets in terms of support, 'cause the laptop chips are often cut down for power-saving.
<cole-h> simpson: Fair enough
<KarlJoad> I have a question. Is there a way to declaratively choose which channel the system-wide packages should come from? For example, making them come from the unstable branch rather than 20.03? I have looked at this post (https://www.reddit.com/r/NixOS/comments/esa359/just_how_unstable_is_the_nixos_unstable_channel/fg0cvxv?utm_source=share&utm_medium=web2x), but it feels hacky to me.
<astylian> simpson, thats my basic usage as well, I just don't want to find my self spending 2+ days on installing a linux distro that seems nice but I am unfamiliar with it
<KarlJoad> Or, is this something that can only be done by using `nix-env` and `nix-channel`
<quinn> mgdm: do you mean ~mgdm/psql-shell.md.txt?
<simpson> astylian: Good news! You will only spend ~30min installing NixOS. You will still be confused, because Nix is quite different from classical package managers, but you can be confused *faster*.
<mgdm> quinn: yep
<quinn> mgdm: i think this will work, tyvm
<notgne2> this reminds me, iirc nixos actually has a slight annoyance when it comes to nvidia drivers
<colemickens> KarlJoad: a number of us do this. You can do it by setting NIX_PATH to a specific nixpkgs checkout, or a specific tar.gz of a specific commit
<mgdm> quinn: works on my machine (TM) at least :)
<notgne2> rebuild switch will actually put the new driver files into place in /run, even though they depend on a newer kernel module being loaded
<quinn> mgdm: FYI you can add at least some of it to shellHook
<notgne2> making it so you have to reboot your system to get graphical applications working again
<notgne2> this only happens once every few months though
<simpson> KarlJoad: system.autoUpgrade.channel can be used to declare the system channel. I'm not sure if it's possible to have a *list*, or probably an attrset, of channels.
<colemickens> KarlJoad: alternatively, you can write Nix files that use builtins.fetchTarball to retrieve a fixed nixpkgs and then build a system configuration with it
<mgdm> quinn: I intend to experiment with that once I figure out how to detect if it's already running, etc
orivej has quit [Ping timeout: 256 seconds]
Zetagon has quit [Quit: WeeChat 2.8]
<notgne2> I don't see why you can't juse use `<unstable>` in place of `fetchTarball ...`, and then add unstable using nix-channel
<KarlJoad> simpson: Then what is the proper syntax for switching your `system.autoUpgrade.channel`? For the 20.03 release train, is it "20.03-unstable" or just "unstable"?
magnetophon has quit [Ping timeout: 264 seconds]
<ConradMearns> simpson: How do I include the package into my system configuration? I have also found the executable in my nix-store and results folder
<simpson> KarlJoad: The example in the docs is "https://nixos.org/channels/nixos-14.12-small" so I think it'd be "https://nixos.org/channels/nixos-20.03" hopefully.
<KarlJoad> notgne2: It's not a matter of not being able to do it that way, but I want to minimize the amount of things I have to do to get a system up and running. I want to be able to just download the system config files and do a nixos-install and be done.
<cole-h> Yes, nixos-20.03 is the 20.03 channel (or nixos-20.03-small if you want faster updates but potentially more rebuilding for yourself)
<simpson> ConradMearns: Like, into environment.systemPackages? You'd incorporate the derivation into your /etc/nixos/configuration.nix.
<notgne2> KarlJoad: oh that makes sense, I definitely don't enjoy typing out the nix-channel commands on new installs, twice...
<KarlJoad> colemickens: I have done that, but it's just one package that I use that is out of date in the 20.03 release. So long as that package gets above a 1.4 release, I don't care about the minor version.
<simpson> I am messy, so I'd go with `{ ... }: let myPkg = pkgs.stdenv.mkDerivation { ... }; in { environment.systemPackages = [ myPkg ... ]; ... }` etc.
gustavderdrache has joined #nixos
vpfeiffer[m] has joined #nixos
<colemickens> I don't really understand what you mean about a minor version. By default the nix tooling, etc, expects you're using channels.
<colemickens> If you want, you can have your system follow nixos-20.03, and then optionally install a single package from nixos-unstable.
<KarlJoad> colemickens: I want the mu package to be above version 1.4. The standard nixos-20.03 channel is stuck on 1.2 right now. The update to mu to 1.4 happened after the 20.03 release, so I need to bump that version up. I have done it manually, with a nix expression to fetch the repo and build. But the unstable channel is also up-to-date.
coderobe has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #90071 → Add python packages for fake-useragent, scrapy-fake-useragent, scrapy-deltafetch, scrapy-splash → https://git.io/JfSXt
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to master: https://git.io/JfQGd
avaq has quit [Remote host closed the connection]
avaq has joined #nixos
kleisli has joined #nixos
<colemickens> KarlJoad: if you're using channels, you can do something like `nix-channel --add https://nixos.org/channels/nixos-unstable unstable`, `nix-channel --update` `nix-env -iA unstable.mu`
<{^_^}> [nixpkgs] @jonringer merged pull request #90242 → vimPlugins: update → https://git.io/JfQUx
<{^_^}> [nixpkgs] @jonringer pushed commit from @siriobalmelli to master « vimPlugins: update »: https://git.io/JfQGN
<colemickens> If you want to keep everything declarative and avoid `nix-env`, you can do the equivalent in a nix file and pull the `mu` package in from a different nixpkgs than the system is built with.
<cole-h> ,unstable KarlJoad
<KarlJoad> colemickens: Which means I `fetchTarball` the channel, import it, and tell environment.systemPackages to use it that way? Like what was done here: https://www.reddit.com/r/NixOS/comments/esa359/just_how_unstable_is_the_nixos_unstable_channel/fg0cvxv?utm_source=share&utm_medium=web2x
* colemickens wonders why the wiki uses sudo
<colemickens> KarlJoad: yes, it's not the best formatted, but this is an example: https://github.com/colemickens/nixcfg/blob/8aac50b1066c4aca861ef8798172fa0ab4c8d52e/config/mixin-unifi.nix
<colemickens> KarlJoad: for some reason, newer versions of mongodb segfault on rpi4, so that file pulls in an old nixpkgs version, then references the mongodb package from it. Everything else on that machine is built with a different nixpkgs.
<colemickens> that reddit post looks roughly the same, yeah
<KarlJoad> cole-h: Honestly, I am a bit unsure what the difference is between the 2 channels, other than the fact that just Nix will not use nixos channels.
<KarlJoad> colemickens: Ok. That's what I figured. There doesn't seem to be a good way to declaratively change channels.
<cole-h> nixos-20.03 -> release (think of it as an Ubuntu release, if that helps). nixos-unstable -> rolling release (think of it as Arch, if that helps).
smatting has quit [Ping timeout: 256 seconds]
<colemickens> hm, imo this is pretty much what I'd expect it to look like. it seems like the minimal amount of info one would need to fully declaratively pull in your deps.
<KarlJoad> cold-h: I understood that part. As your question asked, I am not sure what the difference is between nixpkgs-unstable and nixos-unstable.
<colemickens> flakes will make this a bit easier and built-in feeling though.
<cole-h> Oh
agsdheidjd has quit [Ping timeout: 256 seconds]
<colemickens> AFAICT: nixos-unstable is more conservative, it has to pass nixos verification tests that nixpkgs-unstable doesn't have to pass.
<{^_^}> [nixpkgs] @jonringer merged pull request #90236 → python3Packages.somajo: 2.0.5 -> 2.0.6 → https://git.io/JfHhK
<{^_^}> [nixpkgs] @jonringer pushed commit from @danieldk to master « python3Packages.somajo: 2.0.5 -> 2.0.6 »: https://git.io/JfQZJ
<cole-h> nixpkgs-unstable is just packages; it updates when a certain core package set succeeds certain tests. nixos-unstable waits for more NixOS-specific tests to succeed as well.
<cole-h> At least that's my understanding.
coderobe has joined #nixos
jgeerds_ has quit [Ping timeout: 260 seconds]
<KarlJoad> Ok, that clears it up a bit. Either way, this package is out-of-date on the 20.03 channel. I have no problems switching this VM to a completely unstable channel to run. At that point, the question is, how do I change the system's channel, preferably declaratively?
pamplemousse has joined #nixos
kline has left #nixos ["Leaving"]
<{^_^}> [nixpkgs] @prusnak opened pull request #90261 → images: remove original files when using zstd for compression → https://git.io/JfQZO
<ConradMearns> simpson: incorporating the derivation into any kind of environment is where I am currently stuck
<mgdm> quinn: expanded that into a blog post now, thanks for the inspiration :-)
KarlJoad` has joined #nixos
<KarlJoad`> ,channels
<{^_^}> Largest Nix channels: #nixos, #nixos-dev, #nixos-chat, #nixos-aarch64, #nixos-security, #nixcon, #nixos-officehours, #nixops, #haskell.nix, #nix-darwin, #nixos-de, #nixos-emacs, #nixos-on-your-router, #nixos-nur, #nix-lang, #nixos-fr, #nixos-systemd, #nixos-borg, #nixos-wiki
<ConradMearns> I'm trying to just get it to work in nix-shell, I have a let `seaweedfs = pkgs.callPackage ./seaweedfs/default.nix {};` wrapped around a stdenv.mkDerivation but I get errors about seaweedfs being a set, not a function
<simpson> ConradMearns: callPackage expects to call expressions which are functions that take various pkgs as arguments. `{ stdenv, fetchFromGitHub, buildGoModule }: ...` sort of situation.
_ris has joined #nixos
ris has quit [Ping timeout: 258 seconds]
<Thra11> If a package has vendored dependencies (eww), should we try to check their licenses when packaging it? A package might e.g. be BSD licensed, but have a vendored dependency with an unfree license, in which case the "thing" that we end up building is unfree, but risks being labelled as BSD licensed.
vandenoever has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dbaynard opened pull request #90263 → Haskell updates → https://git.io/JfQne
<{^_^}> [nixpkgs] @prusnak opened pull request #90264 → openssh: 8.2p1 -> 8.3p1 → https://git.io/JfQn3
chloekek has quit [Ping timeout: 246 seconds]
glguy has left #nixos [#nixos]
jD91mZM2 has quit [Quit: ZNC 1.8.0 - https://znc.in]
<{^_^}> [nixpkgs] @das-g reopened pull request #89514 → python3Packages.pytest-rerunfailures: 8.0 -> 9.0 → https://git.io/JfXFs
jD91mZM2 has joined #nixos
KarlJoad has quit [Quit: Konversation terminated!]
simba1 has quit [Ping timeout: 264 seconds]
KarlJoad` has quit [Quit: ERC (IRC client for Emacs 26.3)]
maddo has quit [Quit: See ya]
lilpea has joined #nixos
<quinn> mgdm: blog posts are always nice, good for you! want to link?
<n3t> Time to make an alternative for Nix and call it "Nut". Then make a blog post titled "PostgreSQL in a nut-shell".
<quinn> mgdm: oho, very cool. bookmarked. funny enough i'm actually using this stuff because i'm trying to write a blog in phoenix/elixir
whatisRT has left #nixos ["ERC (IRC client for Emacs 27.0.90)"]
seku57 has joined #nixos
<mgdm> n3t: :D
<mgdm> quinn: nice! I had a play with elixir a while ago but never really used it for anything interesting
<mgdm> I may have another look
seku has quit [Ping timeout: 258 seconds]
<quinn> mgdm: i'm a FP guy, so for me it's just appealing because dynamic site + fp + has a markdown parser/templating engine
<quinn> i draft and sometimes write papers in markdown and export through pandoc, so the idea of having a templating language where i can just drop markdown files into a folder and have a working blogpost from an article is very appealing
<ConradMearns> simpson: i'm still confused, should I change my seaweedfs default.nix? I thought that it was formatted correctly, so that it could eventually be added to nixpkgs. I don't understand how to get the derivation to connect with nix-shell, I can get everything to run if I just put ./seaweedfs in by buildInputs, but then I can't use the app
<quinn> ConradMearns: nix-shell (unless you're using it with -p) is generally for making a shell with the inputs for building a project. you probably want to run nix-build and then run the binary from the result folder that appears
<ConradMearns> my goal is to include the application in another machine's configuration, i figured that if I could get the derivation to work with that, then pushing it to my other machine would be a breeze
<ConradMearns> but there's probably a lot that i'm misunderstanding
<quinn> ConradMearns: you want to test that it works with nix-build probably, then you can add a package overlay to the other machine's configuration.nix, and once that is set then you can add your package to environment.systemPackages in that same configuration.nix
seku57 is now known as seku
pamplemousse has quit [Ping timeout: 265 seconds]
<euank> ConradMearns: You can format it akin to how you'd want it in nixpkgs (i.e. have `pkgs/seaweedfs/default.nix` which has at the top `{ stdenv, fetchurl, dependencies, etc }:` (which is suitable for callPackage). You indeed now can't point nix-shell at that. However....
<euank> You can then have an additional file that will not be suitable for upstream which glues nixpkgs to your package. Specifically, it would be something like `let nixpkgs = import <nixpkgs> {}; in { seweedfs = nixpkgs.callPackage ./pkgs/seaweedfs {}; }`
<amanjeev> is anyone else seeing issues with python2.7-apsw derivation? My upgrade fails: builder for '/nix/store/nlhqm39177wxk9ll6072im7nm3haiv2b-python2.7-apsw-3.30.1-r1.drv' failed with exit code 1
<euank> At that point you could point nix-build or nix-shell or such at that file you don't intend to upstream (shell.nix or such), and that file would specifically be there as the place where you plumb the nixpkgs dependency into your package.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<euank> Hopefully that description made sense!
<jonreeve[m]> Does anyone know what it means on this wiki page: https://nixos.wiki/wiki/Qt that "The package will need to be fixed to use [the new https://github.com/NixOS/nixpkgs/issues/65399 wrapQtAppsHook]. The hook wraps every qt application with adding QT_PLUGIN_PATH and XDG_DATA_DIRS as well as XDG_CONFIG_DIRS.See wrap-qt-hook.sh in nixpkgs" ?
<{^_^}> #65399 (by ttuegel, 46 weeks ago, open): Tracking issue for wrapQtAppsHook
<{^_^}> [nixpkgs] @rycee pushed to master « fira-code: 4 -> 5 »: https://git.io/JfQcl
fresheyeball has joined #nixos
<sshow> can I tar somethings I download with fetchgit for a derivation that expects a tar archive?
<fresheyeball> has anyone setup sftp on nixos before?
<fresheyeball> I did vsftpd.enable = true;
<fresheyeball> but my normal ssh key and user don't let me in
<fresheyeball> I can still ssh in
<fresheyeball> but not establish a passive sftp connection
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
nek0 has quit [Remote host closed the connection]
<euank> so if you can use libsForQt5.callPackage, that _might_ do the right thing already. If you can't use that, you may have to dig around a bit more. That's about the depth of my qt5-in-nix knowledge
<euank> sshow: you could; have you tried to yet and run into an issue?
pamplemousse has joined #nixos
<sshow> euank: I'm not sure how to tar something in nix. and I'm not even sure that's a thing :P
<sshow> in my head I'm thinking `archive = tar fetchGit {...}`
nek0 has joined #nixos
<jtojnar> euank it is actully done by qt5.mkDerivation (which gets passed as mkDerivation argument by libsForQt5.callPackage)
<euank> sshow: the naive way that comes to mind for me would be to build two derivations. You could use the runCommand derivation helper to make that pretty easy. So something like so... (one sec)
<jonreeve[m]> euank: Hm I'm trying to figure out how to modify this segment so that I can get around this Qt error: https://github.com/JonathanReeve/sent2tree/blob/master/default.nix#L56
<sshow> fwiw, I'm building a package with node2nix, but I'm trying to build the package using remote sources :)
<euank> sshow: something like `gitSrc = fetchgit ....; tarSrc = runCommand "tar-src" {} "${pkgs.gnutar}/bin/tar -cf $out ${gitSrc}"` I think would work. Untested though.
<euank> If the thing comes from github, btw, you can use the archive url (github.com/.../archive/commit.tar.gz) + fetchurl to get a tarball to begin with.
<euank> And other git servers also sometimes provide commit archives for download.
<sshow> euank: thanks. i'll give it a go. sources are from private git server :)
rajivr has joined #nixos
nek0 has quit [Remote host closed the connection]
<euank> jonreeve[m]: iiuc, usually setup hooks just end up being in `nativeBuildInputs`, and apply that way, rather than explicitly being used via shellHook
magnetophon has joined #nixos
user_0x58 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @yrashk opened pull request #90266 → framac: 20.0 -> 21.0 → https://git.io/JfQcV
<euank> But I'm not sure, sorry!
user_0x58 has joined #nixos
<jonreeve[m]> euank: Could you say more about what that means?
<jonreeve[m]> I tried adding the line at line 57, nativeBuildInputs = [ wrapQtAppsHook ]; but it says it can't coerce a function to a string.
<{^_^}> [nixpkgs] @flokli opened pull request #90267 → rmlint: fix running rmlint --gui → https://git.io/JfQcr
<euank> Maybe `buildPythonPackage` does something wrong with nativeBuildIputs
<jonreeve[m]> Hm yeah I'm guessing it's different with python
proofofkeags has joined #nixos
aleph- has quit [Ping timeout: 246 seconds]
proofofk_ has joined #nixos
<euank> It shouldn't be
<euank> and it looks like nativeBuildInputs are passed through, with just a bunch more appended on
aleph- has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos
<sshow> euank++
<{^_^}> euank's karma got increased to 7
user_0x58 has quit [Ping timeout: 260 seconds]
<euank> glad it worked :)
Santiweight has joined #nixos
<Santiweight> Heya
<sshow> me too! learning a lot here :)
<Santiweight> I've just installed NixOS using Parallels, but I very quickly ran out of memory whilst installing Haskell's reflex-frp library
<ConradMearns> euank: my build just finished (takes a while on arm) and I've finally got everything working, thank you!
<Santiweight> I was wondering how I can add memory to /nix/store (I have basically no idea about filesystems)
<jonreeve[m]> euank: Do you know how I can get that hook into scope, from within a shell.nix? I keep getting `undefined variable 'wrapQtAppsHook'`.
<{^_^}> [nixpkgs] @veprbl merged pull request #89688 → pythonPackages.geant4: init at 10.6.2 → https://git.io/JfMkT
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/JfQCT
<{^_^}> [nixpkgs] @veprbl merged pull request #89277 → uriparser: 0.9.3 -> 0.9.4 → https://git.io/Jf6D8
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/JfQCk
<euank> jonreeve[m]: should be nixpkgs.wrapQtAppsHook I think, where nixpkgs is from importing nixpkgs
<{^_^}> [nixpkgs] @veprbl merged pull request #89821 → clementine: 1.3.1 -> 1.4.0rc1, switch to Qt 5, fix build → https://git.io/JfDDM
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/JfQCL
seku has quit [Quit: Connection closed]
<infinisil> Santiweight: What do you mean by "ran out of memory"?
<Santiweight> "out of space"
<Santiweight> sorry not RAM - disk space
<jonreeve[m]> euank: Hm can you spot what I'm doing wrong? https://github.com/JonathanReeve/sent2tree/blob/master/default.nix#L56
<Santiweight> My nix/store volume (?) has 4GB available, which got used up pretty quickly
pamplemousse has quit [Ping timeout: 264 seconds]
<infinisil> I see
<Santiweight> But my hdd has 128gb - I would like to allocated more space to that volume
<infinisil> That's not managed by Nix at all
<infinisil> I have no idea what your setup looks like. In a normal linux distro you'd make sure to have a partition with enough space
<Santiweight> Right :(
<infinisil> Or an lvm volume or so
<Santiweight> I installed NixOS from an iso image off the site
<{^_^}> [nixpkgs] @tokudan opened pull request #90268 → nextcloud: 18.0.4 -> 18.0.6 → https://git.io/JfQCG
<Santiweight> The full linux distro