gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
alex``` has quit [Ping timeout: 245 seconds]
<srhb> Thanks. :) I commented on your haskellPackages.dbus PR. Nothing interesting yet.. Still investigating the core issue.
drakonis has quit [Ping timeout: 265 seconds]
<srhb> averell: Where's parseAddresses?
noudle has quit []
<srhb> ah, found it.
boxscape has quit [Remote host closed the connection]
klntsky has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 276 seconds]
klntsky has joined #nixos
<averell> right
<averell> also that parseAddresses is much older than the original patch, so i'm not sure why it was never used. And the original PR was never merged either, but maybe that fork was already dead at that point, idk.
<srhb> averell: Thanks for the details. Hopefully we'll learn a bit in the next few days. :D
emptyfl4sk has joined #nixos
justanotheruser has joined #nixos
drakonis has joined #nixos
emptyfl4sk has quit [Ping timeout: 276 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cf018a7c558 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
drakonis1 has joined #nixos
mexisme has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #68510 → dupd: init at 1.7 → https://git.io/JemKv
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JemyV
Rusty1 has joined #nixos
drakonis1 has quit [Client Quit]
raoul has quit [Quit: Ping timeout (120 seconds)]
raoul has joined #nixos
drakonis1 has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/56f0bd9d2d5 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JemyK
justanotheruser has quit [Read error: Connection reset by peer]
_ris has quit [Ping timeout: 276 seconds]
Palpares has quit [Remote host closed the connection]
Palpares has joined #nixos
stalker254[m] has joined #nixos
drakonis has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
stites has joined #nixos
<stites> hey all! I am trying to write my own module system and am wondering how they work
Zer000 has quit [Ping timeout: 245 seconds]
emptyfl4sk has joined #nixos
<aanderse> stites: please feel free to post specific questions
<stites> aanderse: sorry -- writing it own now
<stites> out*
justanotheruser has joined #nixos
<stites> Right now I have something where I have a module type (ie: a `module.nix` made of `mkOption` and `mkOptionType`s) and want to use this as a "subtype" where I can create an attrset with multiple instantiations of in some top-level attrset.
<stites> something like sort of like https://nixos.org/nixos/options.html#nginx.virtualhosts.%3Cname%3E
<stites> I can sort of mimic the nginx option, but then I don't know how to compile it down into a local attrset for later use
<stites> (the concrete example is that I am writing my own vim plugin manager in nix and I would like to have "one plugin + configs" per file)
<stites> (... and it would be nice to have this be typed)
emptyfl4sk has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
MmeQuignon has quit [Ping timeout: 276 seconds]
drakonis_ has joined #nixos
drakonis2 has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
drakonis_ has quit [Ping timeout: 245 seconds]
kenshinCH has quit [Ping timeout: 246 seconds]
kenshinCH has joined #nixos
t58 has quit [Quit: Leaving]
stigo has quit [Remote host closed the connection]
stigo has joined #nixos
kvda has joined #nixos
v88m has joined #nixos
elux has joined #nixos
<elux> hello
<elux> is there an easy way for me to get to use this nix pkg before its merged to the channel? https://github.com/NixOS/nixpkgs/pull/68135/files
<elux> maybe i can fork the chan, merge it, and have my own chan? would be nice if the chan was on github so i didnt need a server either..
silver has quit [Read error: Connection reset by peer]
<PyroLagus> well, you could use an overlay
Jay2h has joined #nixos
<elux> do you know of an example of an overlay? (a simple one) ..
<PyroLagus> sure, wait a sec
<elux> thank you :)
<PyroLagus> and that's mine simplified
<elux> interesting, so could i then fork the NixOS/nixpkgs repo, merge the above PR, and somehow do what you've done to install the newer go pkg?
<elux> and use my fork just for the specific pkg im seeking, which is the newer version of "go"
<PyroLagus> sure
stites has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Enzime opened pull request #68532 → brlaser: 4 -> 5 → https://git.io/JemSZ
<PyroLagus> i'm sure someone else here can give you more specific instructions
<PyroLagus> i'd have to look up myself how exactly to do it
<elux> what does your gist do?
<elux> adds "lorri" to your pkgs from a github rev..?
<PyroLagus> yupp
<PyroLagus> specifically, it clones the rev and then imports the default.nix
<PyroLagus> ah wait, i guess my overlay is a bit different
<PyroLagus> an actually simplified version would be https://gist.github.com/PyroLagus/8e9acc9d58c98af519c0e20f51509e2e
Jay2h has quit [Quit: Jay2h]
<elux> nice, thanks for your help
<PyroLagus> technically, you could also just import https://github.com/rvolosatovs/nixpkgs/tree/update/go as a "channel" of sorts, so you don't even have to fork
<PyroLagus> the hash should protect you from any possible malicious force pushes. at worst, the repo or branch could be deleted
<PyroLagus> although, then again, you may want to merge the change into your channel tag (unstable or stable) to avoid unnecessary rebuilds of dependencies
xkapastel has quit [Quit: Connection closed for inactivity]
<Miyu-chan> Okay. Stupid(?) question. Will NixOps-core be part of NixOS-19.09?
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 245 seconds]
elux has quit [Quit: leaving]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e948252eefb (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
oldandwise has joined #nixos
<oldandwise> https://termbin.com/wp0q, but `gcc -c helloworld.c` gave 'gst/gst.h: No such file or directory'
polman has quit [Ping timeout: 245 seconds]
oldandwise has left #nixos [#nixos]
oldandwise has joined #nixos
<oldandwise> how is that nix-shell of https://termbin.com/wp0q does not include the header file path?
<oldandwise> ie, am getting 'missing gst/gsth.h'
polman has joined #nixos
<clever> /nix/store/1fghxrm9xbzial8rkg4mhhfmz11srfvl-gstreamer-1.14.4-dev/include/gstreamer-1.0/gst/gst.h
<clever> oldandwise: nix automatically adds the include dir to the -I path
<clever> but it doesnt add include/gstreamer-1.0
<clever> gstreamer puts the headers into a non-standard subdir, to avoid conflicting versions running into eachother
<clever> and that breaks nix, which also solves exactly the same problem
<clever> oldandwise: you must use pkgconfig to lookup the cflags for gstreamer-1.0
<clever> oldandwise: https://gist.github.com/cleverca22/9d60fe304a07a29648a3d8970e6d1336 like in this example with cairo
<iqubic> pkgconfig and nix seem like two solutions to the same problem.
<iqubic> Why do we need both of them at the same time?
<clever> iqubic: pkgconfig is more to auto-detect the -I and -l flags you need to build, to deal with things being in non-standard places
<clever> iqubic: cairo and a lot of gtk based things, typically install headers to /usr/include/foo-1, so it wont conflict with foo-2
<clever> and they expect users to be able to just blindly gcc -I/usr/include/foo-1/
<clever> but then nix comes along, and puts the headers in /nix/store/hash-foo/include/foo-1/
<clever> and now you have no way to predict what the hash is
<clever> nix will iterate over everything in buildInputs, and put the include/ dir into -I for you
<clever> but it cant deal with non-standard things like include/foo-1
<clever> luckily, the pkgconfig files are still in the standard lib/pkgconfig/foo-1.pc, so pkgconfig can be modified to find them
m0rphism has quit [Ping timeout: 246 seconds]
<oldandwise> clever: thanks. I'm having https://termbin.com/7kwa
fusion809 has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
emptyfl4sk has joined #nixos
<clever> oldandwise: is pkgconfig in the buildInputs?
lasd has joined #nixos
<oldandwise> https://termbin.com/isyq yes.. and `echo $PKG_CONFIG_PATH` inside nix-shell also looks has the path folder having gstream-1.0.pc
<clever> oldandwise: sounds like an anoying bug in pkgconfig, if the dependencies listed in the .pc file are absent, it will silently ignore the .pc file
<lasd> Hello, is lvmcache supported on NixOS?
emptyfl4sk has quit [Ping timeout: 245 seconds]
<clever> oldandwise: hmmm, it works for me
abathur has joined #nixos
<clever> [clever@amd-nixos:~]$ nix-shell -p pkgconfig gst_all_1.gstreamer
<clever> [nix-shell:~]$ pkg-config --cflags gstreamer-1.0
<clever> oldandwise: these 2 commands print out a list of -I flags
<oldandwise> clever: thanks.. it works here. A typo on my part 'gstream-1.0' instead of 'gstreamer-1.0'
jtojnar has quit [Quit: jtojnar]
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @jasoncarr0 opened pull request #68533 → Fix lesspass download → https://git.io/JemSh
mexisme has quit [Ping timeout: 246 seconds]
polman has quit [Ping timeout: 245 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
oldandwise has quit [Quit: leaving]
justanotheruser has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @lilyball opened pull request #68534 → macvim: fix compatibility with Xcode 11 → https://git.io/Jem9e
polman has joined #nixos
lasd has quit [Ping timeout: 260 seconds]
<detran> hello, quick question: I use i3, but I also use some gnome apps. The gnome apps are all missing icons - how do I get those?
<craige> How are you logging in detran?
<detran> I'm not sure what you mean, but I'm not using the gnome desktop manager at all, it's just plain i3
<craige> Does your computer boot to a login screen (of any kind)
<craige> or I guess a better questio is, are you using a desktop manager with i3 and if so which one?
Zer0xp has joined #nixos
* craige doesn't use use i3, I use xmonad but can have similar issues without desktop managers etc
emptyfl4sk has joined #nixos
emptyfl4sk has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
* jackdk listens intently - has i3 launched without a DM and messed-up icons everywhere
mexisme has quit [Ping timeout: 246 seconds]
justanotheruser has joined #nixos
Zer0xp has quit [Ping timeout: 245 seconds]
tjg1 has quit [Ping timeout: 258 seconds]
mac10688 has joined #nixos
tjg1 has joined #nixos
vonfry has joined #nixos
dansho_ has quit [Remote host closed the connection]
dansho_ has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
Zer0xp has joined #nixos
ddellacosta has joined #nixos
nikola_i has joined #nixos
<li_matrix> am I the only one with a 'bare' nixos container?
<li_matrix> `container@.service` is the file
<Miyu-chan> Yes.
<Miyu-chan> Err, no.
<Miyu-chan> That's normal. That's basically a "function."
<Miyu-chan> When you want to start container@1.service, it will refer to container@.service.
<li_matrix> Miyu-chan: thanks a lot
captn3m0 has quit [Ping timeout: 246 seconds]
captn3m0 has joined #nixos
zupo has joined #nixos
judson has quit [Read error: Connection reset by peer]
judson has joined #nixos
zupo has quit [Client Quit]
captn3m0- has joined #nixos
captn3m0 has quit [Ping timeout: 265 seconds]
endformationage has quit [Quit: WeeChat 2.5]
init_6 has joined #nixos
Guest16 has joined #nixos
<Guest16> Hello, I asked a question earlier in the day but there wasn't anybodyaround to answer. Is it alright if I asked again? My `configuration.nix` goes like this- https://pastebin.com/WAMxHUJG I'mgetting the error `The string'/nix/store/79308vx1hi7wgkdnz4wgx0vkwwfbnq5j-source' is not allowed torefer to a store path (such
<Guest16> as'/nix/store/79308vx1hi7wgkdnz4wgx0vkwwfbnq5j-source'` when I use`pkgs.archived.unstable`. But all is cool when I just use`pkgs.unstable`. There are two things to see in the pastebin configuration.nix- first: the `let` statement has repetition, I assign 3 variables a value and then create an attrset with 3 attributes given the same value. Second;
<Guest16> I reuse those values- both from single variableassignments and as part of attrsets to give myself a new package set. Isucceed when the package set is from the individually assigned valeus.But fail when it's part of the attrset. Would somebody have any pointers on where I should look. I searchedaround and this error does seem to crop up once in a
<Guest16> while but Icouldn't relate it to my problem, possily due to my inexperience withnix.
drakonis1 has quit [Quit: WeeChat 2.4]
ddellacosta has quit [Ping timeout: 246 seconds]
tnks has quit [Ping timeout: 258 seconds]
mac10688 has quit [Ping timeout: 246 seconds]
<craige> When making a patch related to Zero Hydra Failures, ticket #68361 says to PR against master but I see some people are doing PR's against `staging` and `staging-19.09` - is any one able to clarify the most efficient best practice here before I make a PR?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/68361 (by disassembler, 2 days ago, open): Zero Hydra Failures: 19.09 edition
<clever> craige: staging is mostly for when you think it has a chance to break a lot of things, and you want to give hydra time to test things, so you dont break master and hold nixos-unstable back
* craige nods
<clever> breakage that may happen after your PR gets merged, due to things being missed
<craige> This is a minor patch that breaks nothing I've tested :-)
<clever> so it depends a lot on how complex the pr is, and how many things depend on it
<craige> So run with `master` as suggested?
<clever> yeah
<craige> THis is just adding a single build dep.
<craige> Thanks clever.
user___ has joined #nixos
emptyfl4sk has joined #nixos
edwtjo has joined #nixos
edwtjo has joined #nixos
edwtjo has quit [Changing host]
<Guest16> <I'll just be stubborn haha>- has anybody seen this error- `The string'/nix/store/79308vx1hi7wgkdnz4wgx0vkwwfbnq5j-source' is not allowed torefer to a store path (such as'/nix/store/79308vx1hi7wgkdnz4wgx0vkwwfbnq5j-source'?
<craige> I haven't seen that Guest16
<Guest16> too bad!
<Guest16> Well I hope for your sake you don't have to
abbiya has joined #nixos
<Guest16> but I wish somebody had
<craige> I know that feeling :-)
<Guest16> it's driving me nuts.
emptyfl4sk has quit [Ping timeout: 240 seconds]
boxdot has joined #nixos
palo1 has joined #nixos
hmpffff has joined #nixos
hyper_ch2 has joined #nixos
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
lord| has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
Guest16 has quit [Remote host closed the connection]
orivej has joined #nixos
<{^_^}> [nixpkgs] @craigem opened pull request #68535 → zcash: Add libsnark to stop build failures → https://git.io/JemHO
dermetfan has joined #nixos
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
<buckley310> so, what actually determines when 19.09 will hit the cache servers?
rauno has quit [Ping timeout: 250 seconds]
newbie has joined #nixos
snupples[m] has joined #nixos
dansho_ has quit [Remote host closed the connection]
iqubic` has quit [Ping timeout: 265 seconds]
dansho_ has joined #nixos
iqubic` has joined #nixos
<dminuoso> Alright great! We are now experimenting with nixos to run our live production customer mail servers with!
<dminuoso> This will be a fun adventure.
emptyfl4sk has joined #nixos
<gyroninja> Nice
Zer0xp has quit [Quit: Bye!]
iqubic` has quit [Ping timeout: 240 seconds]
iqubic``` has joined #nixos
iqubic``` has quit [Remote host closed the connection]
hmpffff has quit [Quit: nchrrrr…]
juhe has joined #nixos
noudle has joined #nixos
<{^_^}> [nixpkgs] @jluttine opened pull request #68536 → haskellPackages.massiv: mark unbroken → https://git.io/JemHc
emptyfl4sk has quit [Ping timeout: 240 seconds]
mrCyborg has quit [Read error: Connection reset by peer]
<eyJhb> buckley310: isn't it just when they hit the channels?
ciaran0 has quit [Write error: Connection reset by peer]
ciaran0 has joined #nixos
inkOne has quit [Quit: WeeChat 2.5]
emptyflask has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
inkOne_ has joined #nixos
wfranzini has joined #nixos
drakonis2 has quit [Ping timeout: 265 seconds]
mexisme has quit [Ping timeout: 276 seconds]
dansho_ has quit [Ping timeout: 265 seconds]
drakonis2 has joined #nixos
graf_blutwurst has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
newbie has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
Rabid_Python has joined #nixos
graf_blutwurst has joined #nixos
mexisme has joined #nixos
kvda has quit [Read error: Connection reset by peer]
kvda has joined #nixos
graf_blutwurst has quit [Quit: ERC (IRC client for Emacs 26.3)]
graf_blutwurst has joined #nixos
rauno has joined #nixos
inkOne_ has quit [Quit: WeeChat 2.6]
inkOne_ has joined #nixos
inkOne_ has quit [Client Quit]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #68533 → Lesspass: fix src → https://git.io/JemSh
inkOne_ has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JemHy
andymandias has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed commit from @jasoncarr0 to release-19.09 « lesspass: fix src »: https://git.io/JemHH
andymandias has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JemH7
<{^_^}> [nixpkgs] @Ma27 merged pull request #68527 → plyplus: enable for python3 → https://git.io/JemDo
johanot has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed commit from @nspin to release-19.09 « plyplus: enable for python3 »: https://git.io/JemH5
veske2 has joined #nixos
Tucky has joined #nixos
zupo has joined #nixos
graf_blutwurst has joined #nixos
abbiya has quit [Quit: abbiya]
iqubic has joined #nixos
thc202 has joined #nixos
Chiliparrot has joined #nixos
<MichaelEden[m]> I know there's great plumbing for cross compilation within nix, but is there an easy way to "cross compile" through QEMU using nix? (as in boot an emulated architecture and run nix build inside of that?) if not i might take a stab at it as long as there's no hidden extra-complicated thing i'm unaware of.
<Izorkin> Mic92: not need to change PR iptables-compat?
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
Okinan has quit [Quit: Konversation terminated!]
<boxdot> Hi — Is it possible to execute external commands (e.g. ls) from a nix expression?
<boxdot> I would like to read an XML file before start defining packages.
Okinan has joined #nixos
tnks has joined #nixos
<MichaelEden[m]> boxdot: what are you trying to do?
<boxdot> MichaelEden[m]: I would like to provide a list of repositories to use before defining the packages.
<boxdot> These are stored in an xml file.
<MichaelEden[m]> boxdot: the only way to run external commands is by building a package, so you could make a package that imports your XML file, parses it, and then your other packages can depend on that repositories list package.
<MichaelEden[m]> This won't work if you're trying to change the nix expression itself based on the contents of the XML.
<boxdot> Considering that fromJSON exists, my idea would work with json files
<MichaelEden[m]> Yes, if you parse the file within nix itself then you can use it to transform your expressions in any way you want
iqubic` has joined #nixos
Makaveli7 has joined #nixos
m0rphism has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
iqubic` has quit [Client Quit]
slicertaps has quit [Ping timeout: 245 seconds]
<boxdot> MichaelEden[m]: Thank you for explanation.
<MichaelEden[m]> i guess another way to word it would be that nix evaluates all its expressions before it starts building so you cannot depend on any build outputs to change what the nix expression would evaluate to
slicertaps has joined #nixos
iqubic has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
Neo-- has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
schjetne has joined #nixos
<dminuoso> Mmm. I have a fresh nixos install (with efi and lvm), and after rebooting systemd appears to be starting the various services like ntp and so forth. And then suddenly the screen goes black and hangs.
<tdeo> is there any lib function to do `if cond {...} else {}`? mkIf doesn't seem to work for my usecase (if (options ? home-manager) ...)
<MichaelEden[m]> tdeo: why not the normal `if` / `else`?
<MichaelEden[m]> dminuoso: sometimes this happens (for me) because of graphics issues, maybe setting `nomodeset=1` helps?
<tdeo> i don't like the `else {}` at the end of all of them so i was wondering if there was a lib function to make it cleaner, if not then i'll write my own
<lassulus> optionalAttrs?
<MichaelEden[m]> ^
<dminuoso> MichaelEden[m]: Mmm, where would I set this?
cartwright has quit [Remote host closed the connection]
<dminuoso> (I use systemd-boot)
<tdeo> lassulus: thanks
<dminuoso> Ohh its a kernel parameter, nevermind.
cartwright has joined #nixos
<MichaelEden[m]> i think its `boot.kernelParams = ["nomodeset"];`
<dminuoso> MichaelEden[m]: Right cheers
dom`` has quit [Ping timeout: 258 seconds]
joshuagl has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emptyfl4sk has joined #nixos
hyper_ch2 has joined #nixos
hmpffff has joined #nixos
vika_nezrimaya has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
emptyfl4sk has quit [Ping timeout: 276 seconds]
dom`` has joined #nixos
m15k has joined #nixos
m15k has left #nixos [#nixos]
m15k has joined #nixos
smatting has joined #nixos
asymptotically has joined #nixos
<m15k> Hi. Is it possible to get a consolidated version of nix configuration?
ThatDocsLady has joined #nixos
<dminuoso> m15k: nix repl?
<m15k> dminuoso: Let me check... I'm quite new.
<m15k> Basically I want a resolved version of /etc/nixos/configuration.nix
<Taneb> m15k: to what end?
<Taneb> What's your ultimate goal?
mexisme has joined #nixos
<m15k> Taneb: Currently I'm using the VBox image and just want to understand a little bit more whats configured to get to that VBox state.
<MichaelEden[m]> there's the `nixos-option` utility
<MichaelEden[m]> it's a bash script so you could use what its doing to get the full configuration, but you can also just browse the configuration with it directly
<m15k> MichaelEden[m]: Thanks that's a quite helpful tool.
ehmry has quit [Ping timeout: 246 seconds]
civodul has joined #nixos
emptyfl4sk has joined #nixos
vika_nezrimaya has joined #nixos
nikola_i has quit [Ping timeout: 245 seconds]
vonfry has quit [Quit: WeeChat 2.4]
init_6 has quit []
nspin has quit [Ping timeout: 260 seconds]
emptyfl4sk has quit [Ping timeout: 265 seconds]
__monty__ has joined #nixos
vika_nezrimaya has quit [Remote host closed the connection]
arahael1 is now known as Arahael
nexgen2 has joined #nixos
<Izorkin> ofborg not build packages in MacOS?
<Taneb> Izorkin: because MacOS doesn't have sandboxing, ofborg needs to really trust you
<Taneb> It only builds if MacOS if someone on a certain list asks it to
<Izorkin> Taneb: me added to trusted users
juhe has left #nixos [#nixos]
n3t has joined #nixos
<dom``> colemickens: I will try out the azure branch
pikajude0 has joined #nixos
pikajude0 has quit [Client Quit]
o1lo01ol1o has joined #nixos
nexgen2 has quit [Ping timeout: 276 seconds]
alex``` has joined #nixos
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
jluttine has quit [Ping timeout: 246 seconds]
xantoz has quit [Ping timeout: 258 seconds]
fendor has quit [Ping timeout: 265 seconds]
xantoz has joined #nixos
jluttine has joined #nixos
gxt has quit [Quit: WeeChat 2.6]
<dminuoso> Say I want to provide a custom nix channel to make some internal package available in our company, how does one exactly set up a nix-channel?
<alex```> how to revert an update channel?
<alex```> (i'm on unstable)
<alex```> i can't update my system and now i need to install a package i can't because it try to update the whole system
<alex```> so i would like to revert my update channel
nexgen2 has joined #nixos
<etu> alex```: sudo nix-channel --rollback
<alex```> what does it does?
<etu> Reverts the previous call to nix-channel --update.
<alex```> for example if executed multiple times
<alex```> doesn' t matter if nix-channel --update executed multiple times?
<etu> Ok, you can specify which channel generation you want to roll back to as well
<alex```> how?
<etu> sudo nix-env -p /nix/var/nix/profiles/per-user/root/channels --list-generations
<alex```> ❯ sudo nix-channel --list
<etu> that will print which generations of channels your root user has
<etu> And then you can pick a generation number and do: sudo nix-channel --rollback <number-you-picked>
graf_blutwurst has quit [Ping timeout: 246 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<MichaelEden[m]> dminuoso: i would make an overlay in a private git repo and include it with your nixpkgs like mozilla does:
<alex```> [root@othala:/home/alex]# nix-channel --rollback
<alex```> error: no generation older than the current (38) exists
<alex```> error: program '/nix/store/1s7ajgxpkqjapqr30xclw7s1qpldy64z-nix-2.2.2/bin/nix-env' failed with exit code 1
<alex```> etu: ^
<alexarice[m]> long shot but is there a nix function to capitalise a string
<alex```> I'm using nixos-unstable
<alex```> so it's unclear to me what it reverts
<alex```> when I'm doing `nix-channel --update`
<etu> alex```: I'm quite often use a local git clone of a nixpkgs channel from https://github.com/nixos/nixpkgs-channels
<etu> alex```: That way I have an easier overview of what it actually uses as channel
<alex```> I want to revert to the last one that succesfully buit
andymandias has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
<alex```> doing `nixos-rebuild switch --upgrade --keep-going --fallback` was a mistake because I couldn't build my system
<dermetfan> alexarice[m]: lib.toUpper
<alex```> and now I just cant do `nixos-rebuild switch`
<alexarice[m]> dermetfan: Was looking for just the first letter capitalised but thanks
<alexarice[m]> think I'll just do it manually
vika_nezrimaya has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
nexgen2 has quit [Ping timeout: 265 seconds]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
vika_nezrimaya has quit [Ping timeout: 240 seconds]
dasj19 has joined #nixos
Chiliparrot has joined #nixos
jtojnar has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
fendor has joined #nixos
vika_nezrimaya has joined #nixos
<dom``> colemickens: I can't get azure-storage-azcopy to work for me
nexgen2 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
iyzsong has joined #nixos
<steveeJ> when using networkmanager with dnsmasq, is there any way to have split dns configurations per connected VPN?
tromar has joined #nixos
<steveeJ> I'm not sure if this is a NixOS specific issue or networkmanager in general
knupfer has joined #nixos
rauno has quit [Ping timeout: 246 seconds]
<tromar> Hi I am new to nix and haven't installed nix package manager correctly. /home/tromar/.nix-profile: broken symbolic link to /nix/var/nix/profiles/per-user/tromar/profile
<tromar> Ah, I am hoping someone can help me, my per-user directory for my user is empty. However I can run nix from the default profile.
nexgen2 has quit [Ping timeout: 265 seconds]
cfricke has joined #nixos
<alex```> how to change the default shell using `nix-shell`?
<etu> nix-shell --run fish -p attribute-you-want-in-nix-shell
<etu> is kinda what I do, not a change sure
<etu> But I have an abbr/alias-thingy for it :p
<alex```> is NIX_BUILD_SHELL still accurate?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emptyfl4sk has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
<alex```> how to clear nix-env?
<alex```> all installed packages, etc.
<tilpner> nix-env -e \* IIRC
<alex```> how to edit the packages installed, similarly to /etc/nix/configuration.nix
<alex```> nixos*
<tilpner> ,declarative
<tilpner> (bot is gone)
hyper_ch2 has joined #nixos
dbe has joined #nixos
<niksnut> nix-env does not have a declarative mode, but you could use nix-env --set with a nix expression that uses buildEnv similar to environment.systemPackages
tromar has quit [Ping timeout: 246 seconds]
m15k has quit [Ping timeout: 260 seconds]
hyper_ch2 has quit [Remote host closed the connection]
<woffs> Hi. How to rebuild a corrupted /nix/var/nix/db/db.sqlite ?
MmeQuignon has joined #nixos
<steveeJ> alex```: there's a project call home-manager which you could look at
ntsrtoh^ has quit []
ffl^ has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
knupfer has quit [Ping timeout: 276 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
phreedom has quit [Ping timeout: 260 seconds]
emptyfl4sk has joined #nixos
veske2 has quit [Ping timeout: 276 seconds]
dom``` has joined #nixos
dom`` has quit [Ping timeout: 265 seconds]
hmpffff has joined #nixos
hyper_ch2 has joined #nixos
FRidh has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 245 seconds]
rauno has joined #nixos
virus_dave has joined #nixos
cfricke has quit [Quit: WeeChat 2.6]
vika_nezrimaya has quit [Ping timeout: 265 seconds]
emptyfl4sk has joined #nixos
<yorick> eyJhb: I think so? it was written on serokell time at least
mkoenig has quit [Remote host closed the connection]
veske2 has joined #nixos
<eyJhb> yorick: do you know if you still use it? Considering using it for myself, and adding CF support
<yorick> eyJhb: yes, we still use it
<yorick> works very well
zupo has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
phreedom has joined #nixos
<eyJhb> Thanks yorick ! - Got confused by how to give envvars to the module, but I see that is keyFile
Okinan has joined #nixos
mkoenig has joined #nixos
nikola_i has joined #nixos
dom```` has joined #nixos
arahael1 has joined #nixos
dom``` has quit [Ping timeout: 265 seconds]
Arahael has quit [Ping timeout: 245 seconds]
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos
FRidh has joined #nixos
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
<eyJhb> yorick: sorry for asking, but your line 10, where you have `inherit (config.services.nginx) user group;`. Is it possible to use that to make a list? E.g. If I wanted to make a list `[]` of multiple service users?
<eyJhb> `[(inherit (config.services.nginx) user) (inherit (config.services.plex) user)]`, if that makes sense
sigmundv_ has joined #nixos
mexisme has joined #nixos
sigmundv_ has quit [Client Quit]
sigmundv has quit [Ping timeout: 268 seconds]
<Izorkin> How to need to merge this PR #41798 ?
mexisme has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 246 seconds]
xkapastel has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
the-kenny has quit [Quit: WeeChat 2.5]
the-kenny has joined #nixos
dasj19 has quit [Quit: dasj19]
sigmundv has joined #nixos
ryantm_ has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
ryantm has quit [Ping timeout: 245 seconds]
veske2 has joined #nixos
<exarkun> eyJhb: `with config.services.nginx; [ user group ]`
<exarkun> hmm, though on reading the paste, I'm not sure the question makes sense
<ptotter[m]> does anyone have an example config for prometheus on nix?
<exarkun> ptotter[m]: the simplest configuration is just `services.prometheus.enable = true;`
<exarkun> ptotter[m]: is there something specific you're interested in?
FRidh has quit [Ping timeout: 245 seconds]
<ptotter[m]> I'm having trouble and getting promtool: error: expected command but got "check-rules", try --help
<ptotter[m]> I specifically want to run prometheus 2.x
<ptotter[m]> since 1.x is a bit old
<eyJhb> exarkun: I found a "somewhat" way of doing it, but now I am wondering if I can do it conditionally [ "eyjhb" config.services.plex.user ], but only if Plex is enabled
<ptotter[m]> so I have package = pkgs.prometheus_2;
<exarkun> eyJhb: I don't really understand what you're trying to do. Maybe you can paste what you have now.
<ptotter[m]> which I believe I was told here, months ago
<exarkun> ptotter[m]: What gives that error?
<ptotter[m]> nixos-rebuild
<eyJhb> exarkun: `users.groups.certs.members = [ "eyjhb" config.services.plex.user ];`, so basically add service users to this group. Does that make sense?
<ptotter[m]> I'd like to examine the state to figure it out better
<ptotter[m]> something apparently calls promtool, but on what?
<exarkun> eyJhb: What is it conditional on?
<exarkun> "if plex is installed" I guess
<eyJhb> `if config.services.plex.enabled { # add to groups };`
<eyJhb> So basically, `services.plex.enabled`
<exarkun> That might be `config.services.plex.enabled`? The generally idea would be `...members = [ "eyjhb" ] ++ (if cond then [ true stuff ] else [ false stuff ]);`
<eyJhb> That is what I have been trying to do, in my little repl, but I will try that syntax!
<exarkun> ptotter[m]: Where do you see the error?
<ptotter[m]> check-rules should apparently be check rules these days
<ptotter[m]> according to promtool --help
<eyJhb> exarkun: how is the syntax?
<eyJhb> > [ "test" ] ++ (if true { [ "test2" ] })
<exarkun> eyJhb: you don't get to skip the else
<exarkun> eyJhb: but the value in the else case can be [ ] if you like.
FRidh has joined #nixos
<eyJhb> Did someone bork the {^_^} bot?
<eyJhb> Ah! I see exarkun , thanks!
<eyJhb> I was trying to do it with "mkIf"
[Leary] has joined #nixos
Lears has quit [Ping timeout: 245 seconds]
Makaveli7 has quit [Quit: WeeChat 2.6]
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<exarkun> ptotter[m]: There seems to be a parallel set of APIs for prometheus 2
<exarkun> ptotter[m]: eg prom2toolCheck, promConfig2
<exarkun> ptotter[m]: I guess you have to get the rest switched over to that somehow, I dunno how
<exarkun> ah
<exarkun> `services.prometheus2`, is how, I think.
<exarkun> instead of twiddling services.prometheus's package to a prometheus 2 package
<ptotter[m]> ah, I'll try that, thanks
tobiasBora has quit [Quit: WeeChat 2.4]
user___ has quit [Ping timeout: 276 seconds]
veske2 has quit [Quit: This computer has gone to sleep]
knupfer has joined #nixos
<ptotter[m]> exarkun, thanks, that solved it
<exarkun> :)
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<yorick> eyJhb: personally I'd use the postRun thing to copy it to different places
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #nixos
leothrix has quit [Ping timeout: 244 seconds]
rndd has joined #nixos
<rndd> hi everyone, what's the best way to delete old generations?
jtojnar has quit [Ping timeout: 245 seconds]
<lewo> rndd: you can take a look at `nix-garbage-collect --help`
<lewo> there is some options to delete old generations
waleee-cl has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Quit: knupfer]
rndd has quit [Ping timeout: 246 seconds]
virus_dave has quit [Quit: virus_dave]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
veske has joined #nixos
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
virus_dave has joined #nixos
__monty__ has quit [Quit: leaving]
justanotheruser has quit [Ping timeout: 276 seconds]
alex``` has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
emptyflask has joined #nixos
justanotheruser has joined #nixos
endformationage has joined #nixos
orivej has joined #nixos
<buckley310> eyJhb: i would guess the .09 channel and cache will appear at the same time, just wondering when that is, since hydra builds are already completing
<pie_> would be nice if(TM) nix-collect-garbage had some more selection flags
growpotkin has joined #nixos
<pie_> hm, or for maximum generality, have it output a list of possible deletions, and take a list of deletions
<pie_> then i could sort by most recently created GCable things, or largest most recently created, etc
Neo-- has quit [Ping timeout: 246 seconds]
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rndd has joined #nixos
<rndd> lewo: I use nix-garbage-collect -d and other variations, but deleted options are still in boot menu =(
veske has quit [Quit: This computer has gone to sleep]
<buckley310> in my experience, the boot menu keeps the old options until the next nixos-rebuild
<buckley310> even though presumably they have been deleted
earendil` has joined #nixos
<earendil`> hello everyone
xelxebar_ has quit [Remote host closed the connection]
jgeerds has joined #nixos
xelxebar has joined #nixos
earendil` is now known as garlic
werner291 has joined #nixos
gxt has joined #nixos
<werner291> Hey! So, I'm trying to run NixOS as my main OS, but I need the wl driver in broadcom_spa. I got it to work when installing from https://github.com/NixOS/nixpkgs/issues/15162, but is it possible to upgrade to a later version of NixOS now while still using those drivers?
<werner291> (1 sec, wrong link)
justanotheruser has quit [Ping timeout: 240 seconds]
m15k has joined #nixos
<werner291> Wait, is enabling the driver the only difference? I got the impression there were more changes.
dm9 has joined #nixos
ThatDocsLady_ has quit [Read error: Connection reset by peer]
ThatDocsLady has joined #nixos
garlic is now known as bob`
bob` is now known as olorin
marek has quit [Ping timeout: 246 seconds]
<buckley310> werner291: just enabling unfree packages, and enabling broadcom, yeah. https://github.com/rasendubi/nixpkgs/commit/d135ae91b56872dc53fe34528b46a29b0da486a9
inkOne_ has quit [Remote host closed the connection]
marek has joined #nixos
inkOne_ has joined #nixos
emptyfl4sk has joined #nixos
<werner291> Aha. Also, just a question: if I do as suggested here https://github.com/NixOS/nixpkgs/issues/15162#issuecomment-411025069 Does that overwrite the list of kernel modules or add to it?
<werner291> Because I see those options are also in my hjardware-configuration.nix
<werner291> *hardware
<davidtwco> Is there a way to make a path relative to the location of the original file and not the symlink to it? (eg. with a shell.nix)
<werner291> ie: https://pastebin.com/6P1WMV6K is in my hardware-configuration.nix, though Wifi doesnt' appear to be working when I try to upgrade to, say, 17.09
dm9 has quit [Quit: WeeChat 2.6]
tjg1 has quit [Quit: if i commit suicide, at least a real nigga killed me]
stramble-M has quit [Remote host closed the connection]
<olorin> Any ideas why the 'send file' option in blueman-applet might be grayed out?
tjg1 has joined #nixos
stramble-M has joined #nixos
stramble-M has quit [Remote host closed the connection]
<werner291> buckley310
<davidtwco> Nevermind, I made a unrelated mistake and misread the error.
leothrix has joined #nixos
stramble-M has joined #nixos
justanotheruser has joined #nixos
<buckley310> werner291: did you enable unfree somewhere else in your config? i would assume it would refuse to even build if that was not set...
stramble-M has quit [Remote host closed the connection]
<werner291> Yes
stramble-M has joined #nixos
<werner291> There is " boot.initrd.kernelModules = [ "wl" ];" though
<werner291> What does that do?
hyper_ch2 has quit [Remote host closed the connection]
<buckley310> says to load the "wl" driver at boot
iyzsong has quit [Ping timeout: 246 seconds]
<buckley310> in stage 1 i think
<werner291> Ok, that might be useful, gonna try that.
<buckley310> it shouldnt hurt anything
<buckley310> after the machine boots up do an `lsmod` to see if the driver is loaded, and check dmesg to see if there are relevant logs
werner291 has quit [Remote host closed the connection]
werner291 has joined #nixos
<olorin> And has anyone seen the message `org.freedesktop.DBus.Error.ServiceUnknown: The name org.blueman.Mechanism was not provided by any .service files` on blueman-applet startup before?
<werner291> Nope :( No wifi after booting.
<werner291> (But I could just boot back into my old version so easily... Thanks NixOS)
emptyfl4sk has quit [Ping timeout: 246 seconds]
werner291 has quit [Remote host closed the connection]
Tucky has quit [Quit: WeeChat 2.6]
werner291 has joined #nixos
<nilsirl[m]> I ran `nix-shell '<nixpkgs>' -A neovim` to get dependencies for neovim
<nilsirl[m]> I then run make but it says `/bin/sh: line 1: cmake: command not found`
<nilsirl[m]> cmake is in `nativeBuildInputs`
<symphorien> nilsirl[m]: try neovim-unwrapped
werner291 has quit [Remote host closed the connection]
<nilsirl[m]> Yeah sorry I just found the github page
<nilsirl[m]> * Yeah sorry I just found the github page. At the same time you replied
WizBright has quit [Ping timeout: 245 seconds]
<dminuoso> Mmm.. what's the most elegant way to do nixops from a macbook currently?
<dminuoso> Im thinking either a nixos jumphost or a VM gives you least pain.
<symphorien> Maybe a linux remote builder is enough ?
<nilsirl[m]> symphorien: It actually still doesn't work :) When I run `cmakeConfigurePhase` (as indicated in the neovim wikipage) I get `Could NOT find LibLUV (missing: LIBLUV_LIBRARY LIBLUV_INCLUDE_DIR)`
WizBright has joined #nixos
<symphorien> maybe its a version mismatch
<symphorien> ie the neovim expression is for a version of neovim which does not require libluv ?
<nilsirl[m]> symphorien: It seems that neovim has required libuv for 4 years so...
<symphorien> Wrong guess then
<nilsirl[m]> (source: blame of default.nix)
werner291 has joined #nixos
<nilsirl[m]> Also if I run `make` it fails because it cannot find `unzip`
<werner291> buckley310 wl does show up in lsmod
<werner291> Also this in dmesg: b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 12, Type 11 (AC), Revision 1)
rsoeldner has quit [Remote host closed the connection]
<buckley310> idk :(
drakonis has joined #nixos
<werner291> Is it possible to see if it's being overridden by an other driver somehow? I vaguely seem to remember sometthhing about blacklisting a driver, I had similar issues when running Debian on my macbook.
schjetne has quit [Ping timeout: 246 seconds]
<werner291> It showed being used by 0 processes.
<buckley310> can you boot to the working version and see what driver allows it to work?
<werner291> Though that's also the case while I'm using it just fine at the moment.
olorin has quit [Remote host closed the connection]
werner291 has quit [Remote host closed the connection]
werner291 has joined #nixos
dermetfan has quit [Ping timeout: 265 seconds]
<werner291> How do I check which driver allows it to work?
<teto> nilsirl[m]: you trying to compile neovim master ?
<pie_> does nix-collect-garbage --dry-run just not do anything at all???
<pie_> it doesnt seem to do anything for me
<teto> nilsirl[m]: a few libraries have been updated (libvterm 2 days ago) and libluv has been added. You will need to check the tracker for some help or just wait a few days that we update the package (neovim 0.4 should be released in a few days)
emptyfl4sk has joined #nixos
<werner291> buckley310 lshw says wl0
<tilpner> pie_: What do you expect it to do?
<pie_> tilpner: idk, dump the list of things its deleting but not actually delete them
<pie_> tilpner: the man page doesnt explain what the flag is supposed to do at all
<tilpner> pie_: Try nix-store --gc --print-dead
<tilpner> pie_: nix-collect-garbage -d --dry-run does print things
<pie_> tilpner: the issue i was drafting https://bpaste.net/show/b5MG
jtojnar has joined #nixos
<tilpner> E.g. "would remove generation 14"
emptyfl4sk has quit [Ping timeout: 246 seconds]
* pie_ wants to inflict some psychological pain on whoever added this flag without documenting it, but i bet when it was added the man page didnt even exist
<tilpner> Congratulations, you may now save the next person by documenting it c.c
<pie_> :I youre not wrong, but still
<pie_> as if i had a clue about internals
<pie_> watch me shoot some feet :D
foldingcookie has joined #nixos
alex``` has joined #nixos
alex`` has quit [Ping timeout: 246 seconds]
<pie_> well, it inits plugins, then does if (removeOld) removeOldGenerations(profilesDir); then if not dryrun do all the other stuff
Ariakenom has quit [Remote host closed the connection]
<pie_> mehh, i shouldnt be working on this right now
werner291 has quit [Remote host closed the connection]
<nilsirl[m]> teto: I am trying to compile master.
wfranzini has quit [Remote host closed the connection]
werner291 has joined #nixos
<werner291> Nanidafuq... I'm on 17.09 with a Wifi connection now.
<werner291> I don't remember what I changed...
<teto> nilsirl[m]: ^
erasmas has joined #nixos
dom```` has quit [Remote host closed the connection]
dom```` has joined #nixos
<teto> nilsirl[m]: and you would need these changes as well: https://github.com/NixOS/nixpkgs/issues/64400 (or you can wait 3/4 days until the package gets properly updated :) )
<tilpner> werner291: You should really upgrade, that's long unmaintained
<pie_> tilpner: hm. so i guess it would be nice if the man page pointed to nix-store --gc at least, because --print-dead seems like exactly what i would want to implement my own gc filters
<pie_> doesnt deal with generations i guess
<kraem> i'm trying to figure out why nm-applet is not following the GTK2/3 theme i set with lxappearance. it is clearly working when setting GTK2_RC_FILES (to adwaita gtkrc from the adwaita package) or GTK_THEME (to 'Adwaita:dark') - nm-applet is enabled and started through my nixconf - would the best solution be to write an overlay on the nm-applet.nix where i set the one of the env vars?
<tilpner> pie_: You may also want to investigate linking to libnix*.so
<pie_> tilpner: it doesnt seem to be a totally dry run, because it "removing stale link" "ermoving stale temporary roots file", whatever that does
<pie_> but that sounds probabyl fine
growpotk- has joined #nixos
<tilpner> kraem: How exactly do you start it?
<pie_> tilpner: well i figured mainly by using bash but-oh wait, is there a way to pass a list of things to gc to this?
<pie_> or would i have to call delete for every item
werner291 has quit [Ping timeout: 260 seconds]
<tilpner> pie_: grep nix for gcDeleteSpecific
<kraem> tilpner: it's started with 'nm-applet.enable = true;' in my nixconfig.nix
<tilpner> Oh, that's a thing now :o
werner291 has joined #nixos
<kraem> :) - i'm thinking maybe i should just export the variable in my bashrc and start nm-applet with my i3config?
<pie_> tilpner: ok ill keep this in mind for when and if i try to do something about this again
dom```` has quit [Quit: ERC (IRC client for Emacs 26.1)]
<pie_> tilpner: thx
<werner291> @tilpner Yes, but I was stuck on a modified version of 17.03 because Wifi refused to work. It now mysteriously started working.
<tilpner> kraem: No, it's definitely possible to keep the theme
m15k has quit [Ping timeout: 260 seconds]
<tilpner> werner291: My systemd.user.services entry has a workaround of ". /etc/profile", where I set my theme variables
<tilpner> Not pretty, but dry and it works
<tilpner> :/
<kraem> where are you starting nm-applet if not in the nixconfig?
<tilpner> Same way you are, with systemd.user.services
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
dom` has joined #nixos
<kraem> sorry if stupid question; but should one really edit (to include GTK2_RC_FILES and GTK_THEME) /etc/profile?
<tilpner> No
dom` has quit [Client Quit]
<tilpner> But my variables end up being set from /etc/profile
<tilpner> Not specifically in that file, but in some *-set-environment generated script
cinimod` has joined #nixos
<tilpner> Oh, yeah, ". /etc/set-environment" might be a better solution
cinimod` has quit [Client Quit]
emptyfl4sk has joined #nixos
cinimod has joined #nixos
nikola_i has quit [Ping timeout: 245 seconds]
growpotk- has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 240 seconds]
sb0 has joined #nixos
cinimod has quit [Ping timeout: 246 seconds]
kgz has quit [Ping timeout: 245 seconds]
<kraem> tilpner: ah now i figured out why shellAliases aren't propagated to dmenu as well. it reads env vars set int '/etc/environment' and not vars set in bashrc - i'm still a little bit lost how you are setting the variables in '/etc/set-environment' though. is that by creating a file with `environment.etc.<name?>.source` and then sourcing it with a systemd service you've written?
jtojnar has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
jtojnar has joined #nixos
<tilpner> kraem: I set environment.extraInit, but environment.variables would probably work just as well
smatting has quit [Ping timeout: 246 seconds]
<tilpner> So I set that in my config, it gets included in set-environment, which is called from profile, which is called from the systemd unit
m15k has joined #nixos
<tilpner> (But it doesn't need the profile, just set-environment, I'll change that)
justanotheruser has quit [Ping timeout: 240 seconds]
Ariakenom has joined #nixos
<kraem> tilpner: thanks! missed that option
jgeerds has quit [Ping timeout: 240 seconds]
Sewni has joined #nixos
alex``` has quit [Quit: WeeChat 2.5]
emptyfl4sk has joined #nixos
ThatDocsLady has quit [Quit: Leaving]
kgz has joined #nixos
mexisme has joined #nixos
fendor has quit [Quit: Leaving]
mexisme has quit [Ping timeout: 276 seconds]
jgeerds has joined #nixos
civodul has quit [Ping timeout: 245 seconds]
drakonis has quit [Quit: WeeChat 2.4]
appleclusters has joined #nixos
drakonis has joined #nixos
ixxie has joined #nixos
<appleclusters> My Anki (on unstables) can't find the module "pkg_resources" (similar to this error in delugehttps://github.com/NixOS/nixpkgs/pull/68484). How can I monkeypatch anki in my config.nix to include setuptools in my propagatedbuildinputs?
<pikajude> so if I symlink a shell.nix from somewhere else on my filesystem, relative filepaths in the file will refer to that path not the current one, right?
ddellacosta has quit [Ping timeout: 276 seconds]
drakonis2 has quit [Ping timeout: 240 seconds]
<ivan> appleclusters: check out all-packages.nix for uses of overrideAttrs
<ivan> appleclusters: add setuptools to propagatedBuildInputs
drakonis has quit [Ping timeout: 245 seconds]
Myhlamaeus1 has joined #nixos
drakonis has joined #nixos
<m15k> Can someone with an nixos installation check `systemctl status nscd.service` if it states `/etc/netgroup` is missing? I wonder if `netgroup` cache should be disabled by default?!
<tilpner> nscd[1829]: 1829 checking for monitored file `/etc/netgroup': No such file or directory
<ddima> yep, same on 19.03
<tilpner> Also "disabled inotify-based monitoring for file `/etc/netgroup'" and "stat failed for file `/etc/netgroup'; will try again later"
<ivan> appleclusters: I'll PR a fix very soon
<appleclusters> @ivan: tysm. I opened an issue a minute ago
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<Izorkin> ,locate malloc/malloc.h
nixos-noob has joined #nixos
<nixos-noob> Hi, I'm wondering if there is a way to scope allowUnfree = true so I can keep my free and unfree packages seperate and make sure they are seperate?
gnidorah has joined #nixos
<gnidorah> nix-build -E 'with import <nixpkgs> { }; callPackage_i686 ./default.nix { }' fails for me
<gnidorah> kexec/arch/i386/kexec-x86.c:39:22: error: 'multiboot2_x86_probe' undeclared here (not in a function); did you mean 'multiboot_x86_probe'?
<gnidorah> anyone knows how to fix this?
<gnidorah> i want to cross build my package for x86 on my x86_64 host to check whether it builds and work on x86
Myhlamaeus1 has quit [Read error: Connection reset by peer]
<tilpner> nixos-noob: Does allowUnfreePredicate help?
commander has joined #nixos
<philipp[m]> Somebody want to take a look at my patch for my own package? Nothing big done here: https://github.com/NixOS/nixpkgs/pull/68266
<ivan> appleclusters: https://github.com/NixOS/nixpkgs/pull/68602 should be in the unstable channel update whenever that comes
<appleclusters> Ok! Is that a matter of weeks? Days? @ivan
<ivan> appleclusters: you can build this now by cloning nixpkgs and switching to the release-19.09 branch and doing `export NIX_PATH=nixpkgs=PATH/TO/nixpkgs:nixos-config=/etc/nixos/configuration.nix` before nixos-rebuild switch
<ivan> appleclusters: It Depends but hopefully days
werner291 has quit [Remote host closed the connection]
<nixos-noob> tilpner: that seems like it could work,
Myhlamaeus1 has joined #nixos
<tilpner> nixos-noob: It is possible to opt-in into an unfree package set at usage-site, e.g. "pkgs.withUnfree.foo" instead of whitelisting it globally. But that's more difficult than allowUnfreePredicate
<kalbasit> How to read Nix's progress bar specifically the numbers in [1/11/18 ...]
drakonis_ has joined #nixos
<ivan> the GTK 2 theme became ugly in release-19.09 and I can't figure out why
justanotheruser has joined #nixos
<appleclusters> @ivan thanks again!
domogled has joined #nixos
hmpffff has joined #nixos
realrokka has joined #nixos
rndd has quit [Quit: WeeChat 2.4]
<m15k> I wonder if systemd-journald-audit.socket could be disabled via nix configuration?
<nixos-noob> tilpner: could you explain that a little bit more? I don't understand how one could do that
hmpffff has quit [Quit: nchrrrr…]
Ilya_G has joined #nixos
schjetne has joined #nixos
<Ilya_G> Looking for a way to turn some production Python application into a deployable Nix package. The only thing I can find is how to wrap existing apps in Pypi into those packages
<tilpner> nixos-noob: If you want to learn how nixpkgs does alternate package sets (nixpkgsFun), look at stage.nix, and then you'll need to reimplement that. Sorry, I can't explain it in full details
dansho_ has joined #nixos
<tilpner> nixos-noob: But the idea is to overlay a package set into nixpkgs, that has the exact same args as the calling one, just with config.allowUnfree = true
<Ilya_G> Have been reading through this for a while (https://nixos.org/nixpkgs/manual/#python) but not exactly sure how to derive what I need from it
jtojnar has quit [Ping timeout: 246 seconds]
<ivan> Ilya_G: what do you mean by deployable Nix package? just another thing in nixpkgs?
<Ilya_G> So I have an app that is ran by systemd in a VM that is written in Python
schjetne has quit [Ping timeout: 240 seconds]
<Ilya_G> I want to be able to package new releases of it and make them available to be deployed on running VMs or baked in new VM images
<Ilya_G> My understanding is that I could use something like nix-copy-closure to manage that part of the process
nixos-noob has quit [Quit: Ping timeout (120 seconds)]
<Ilya_G> basically have one machine as an "artifactory" for my packages and manage them that way.
schjetne has joined #nixos
<Ilya_G> more importantly I want to wrap my custom Python app into a Nix package to be available in the nix store
<Ilya_G> or am I mixing things up here?
o1lo01ol1o has quit [Remote host closed the connection]
<Ilya_G> In retrospect if I want to make a python application that I push across multiple systems, do I turn it into a package and (not sure how I will distribute it) or do I turn it into closure and have that copied around by nix-copy-closure
<Ilya_G> ?
nixos-noob has joined #nixos
<nixos-noob> tilpner: i see what you mean. that does seem quite tedious. Instead I've found this slightly nicer solution: let unfree = import <nixos> { config.allowUnfree = true; }; in and use nixos' ability to merge definitions to keep separate lists
<Ilya_G> ivan any ideas?
hmpffff has joined #nixos
domogled has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
<tilpner> nixos-noob: That is essentially the same thing, just manual and much easier :)
mexisme has joined #nixos
domogled has joined #nixos
Myhlamaeus1 has quit [Read error: Connection reset by peer]
nixos-noob has quit [Remote host closed the connection]
<ivan> Ilya_G: you can distribute things by running a nix-serve that serves nix derivations
<ivan> (then add that nix-serve to every machine's nix.binaryCaches / nix.binaryCachePublicKeys)
jtojnar has joined #nixos
Melkor333 has joined #nixos
justanotheruser has quit [Ping timeout: 276 seconds]
misuzu has quit [Quit: leaving]
misuzu has joined #nixos
<kraem> tilpner: i'm able to have /etc/set-environment include my env vars but it isn't propagated to my login or the systemd service which starts nm-applet - there must be something i'm missing
<Melkor333> Why does the nixos manual tell me to manually create new users, when even the default configuration.nix contains a sample user configuration?
hmpffff has quit [Quit: nchrrrr…]
<ivan> Ilya_G: I update my systems with morph to get software on them via my configuration
<ivan> there's also nixops
hmpffff has joined #nixos
jtojnar has quit [Quit: jtojnar]
<kraem> tilpner: i can't call nm-applet but must call it with full path if i were to start it from a bash shell as my user. it seems to be started as another user/in another scope
jtojnar has joined #nixos
wildtrees has joined #nixos
Myhlamaeus1 has joined #nixos
<Ilya_G> @ivan: that sounds good, however I need to understand the process of packaging my software leading up to use with any of those deployment mechanisms
<tilpner> kraem: Yes, I mentioned that I sourced either of /etc/{profile,set-environment} in my systemd user unit
<ivan> Ilya_G: check out all the python applications in nixpkgs I guess
dermetfan has joined #nixos
<tilpner> kraem: The module you're using does not, so you can either not use that (it's not very long), add that via systemd.user.services, or find a proper fix for nixpkgs
<Ilya_G> @ivan: Fair point. Do you happen to know the folder they would reside in or an example of such an app
<ivan> Ilya_G: search all-packages.nix for python3Packages.callPackage
emptyfl4sk has quit [Ping timeout: 246 seconds]
<kraem> tilpner: sorry for my ignorance (i think systemd is really hard to understand); did you write that unit yourself or is there a std one for users who login which i can edit/append?
jtojnar has quit [Read error: Connection reset by peer]
<tilpner> kraem: If the author of your module had used script instead of serviceConfig, you could override this easily with mkBefore
<tilpner> But they didn't, so I'm not sure how to override it without copying the module
jtojnar_ has joined #nixos
fusion809 has quit [Remote host closed the connection]
emptyflask has quit [Ping timeout: 240 seconds]
<tilpner> If they had, systemd.user.services.nm-applet.script = lib.mkBefore ". /etc/set-environment"; would work without any copying
emptyflask has joined #nixos
jgeerds has quit [Ping timeout: 265 seconds]
<tilpner> kraem: You can try systemd.user.services.nm-applet.serviceConfig.ExecStartPre = ". /etc/set-environment";
<tilpner> I would expect that to survive, but I never tried
Sewni has quit [Remote host closed the connection]
polman has quit [Ping timeout: 245 seconds]
omnipotententity has joined #nixos
shibboleth has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
nspin has joined #nixos
polman has joined #nixos
<omnipotententity> I'm trying, and probably will fail, to package NixOS. As part of this process I'm running into a strange issue where an OS path is returned as "/build/rosdep-0.15.2/test/debian/dpkg-python-apt" by get_test_dir() (I guess in nose?) Any idea what's happening here?
<omnipotententity> sorry to package ROS
<omnipotententity> not NixOS
<omnipotententity> *thud*
jtojnar_ has quit [Ping timeout: 240 seconds]
<omnipotententity> Full error: https://termbin.com/lq28
cinimod has joined #nixos
<kraem> tilpner: no luck. thanks for your help! guess i'll need to keep working on my systemd and nix knowledge to solve this one
<kraem> tilpner++
jtojnar has joined #nixos
<tilpner> kraem: Hold on, how did you test?
<tilpner> systemctl --user daemon-reload && systemctl --user restart nm-applet
<worldofpeace> tilpner: that issue with nm-applet would be fixed with #68492
cinimod has quit [Ping timeout: 240 seconds]
domogled has quit [Ping timeout: 240 seconds]
<tilpner> kraem: ^
<kraem> rebuilt and rebooted
<tilpner> Oh, hmm
<tilpner> And systemctl --user cat nm-applet showed the ExecStartPre line?
<worldofpeace> https://github.com/NixOS/nixpkgs/pull/68492 (bot seems slow)
<kraem> tilpner: no it does not show the ExecStartPre line :/
<tilpner> kraem: nix-instantiate --eval '<nixpkgs/nixos>' -A config.systemd.user.services.nm-applet.serviceConfig.ExecStartPre
MmeQuignon has quit [Quit: WeeChat 2.4]
<tilpner> Does that output the expected value, or error?
<tilpner> worldofpeace: So because pam sets these, user units would have them available?
<worldofpeace> tilpner: yes, all the profileRelativeVariables that running a shell would set would be available to user units because of pam
<tilpner> Nice!
<kraem> tilpner: error: not found
pie_ has quit [Ping timeout: 240 seconds]
<tilpner> kraem: You added the line to your configuration.nix, right?
<kraem> yup
<tilpner> And other changes you make to your configuration.nix have effects?
<tilpner> E.g. if you introduce a syntax error next to that line, you get a different error?
<tilpner> You can paste your config for us to check, but if you did exactly what I said I don't know what's wrong
ixxie has quit [Ping timeout: 276 seconds]
<kraem> yup but apparently i commented that out by mistake last time.. just rebuilt with the ExecStartPre line in configuration.nix and tried running daemon-reload && restart command you gave but getting "failed to restart nm-applet.. has a bad unit file setting" - do i need to reboot in between?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tilpner> Is that the entire error?
<tilpner> Oh
<tilpner> Uh oh
<tilpner> That makes sense, sorry for leading you in the wrong direction
<colemickens> dom`: my 'azure' branch has a newer version of azcopy packaged.
<kraem> i can't systemctl --user cat nm-applet either after introducing that line in configuration.nix
<kraem> "# Unit nm-applet.service could not be loaded."
<tilpner> Yeah, forget about it :/
liberiga has joined #nixos
<kraem> okok np :) thanks anyway!
<tilpner> I'm so used to modules using shell scripts everywhere, that I forgot systemd likes absolute paths to executables
<kraem> i never understood pam but would the patch worldofpeace created be some kind of solution to sourcing /etc/{profile,set-environment} on login?
<worldofpeace> kraem: I think what you can do is override the exec to use `${pkgs.bash}/bin/bash -c 'bash'`
emptyfl4sk has joined #nixos
<tilpner> worldofpeace: But then they still need to copy the previous ExecStart
<worldofpeace> but I believe if you override ExecStart, it's one of those values that if you redefine it again you have to clear it first (i think)
<tilpner> Yes, serviceConfig does not merge nicely
<omnipotententity> Does anyone know what sort of transforms nixpkgs does to, for instance, os.path.abspath or os.path.dirname in a python package?
<omnipotententity> and how to prevent those for a limited case?
emptyfl4sk has quit [Ping timeout: 245 seconds]
<kraem> worldofpeace: after defining `environment.extraInit = "GTK_THEME=..."` or do you think the override running bash would have my usual gtk-themes as defined in ~/.config/gtk... ?
<cbarrett> Hello. Anyone in here used the redis or postgres modules in nix-darwin or is willing to help me out? I'm having trouble configuring them, it seems like they're not starting properly.
<cbarrett> I have added for example services.postgresql.enable = true; in my darwin-configuration, and switched to it. When I look for postgres with launchctl, it appears stopped.
<cbarrett> Simply invoking `postgres` isnt enough to be able to connect. The situation is similar with Redis.
<worldofpeace> kraem: that option will have no effect on nm-applet, perhaps enviroment.sessionVariables. These all do different things for a different means, the thing I suggested with bash is just what the emacs module does for this issue
<worldofpeace> I'd reccomend not setting GTK_THEME globally ever
civodul has joined #nixos
<kraem> ok so suggested solution: override ExecStart to run ${pkgs.bash}/bin/bash -c 'bash nm-applet' ?
emptyfl4sk has joined #nixos
omnipotententity has quit [Ping timeout: 265 seconds]
<worldofpeace> Probably `ExecStart = [ "" "${pkgs.bash}/bin/bash -c '${pkgs.networkmanagerapplet}/bin/nm-applet' " ];
m15k has quit [Remote host closed the connection]
<kraem> oh yeah forgot i needed to evaluate the path to nm-applet first :)
o1lo01ol1o has joined #nixos
<gudea[m]> Hey guys, I’m a bit out of the loop. What glibc version will come with 19.09?
<sphalerite> gudea[m]: still 2.27 I think
<sphalerite> (I should know this…)
werner291 has joined #nixos
<sphalerite> gudea[m]: yep 2.27
<gudea[m]> sphalerite: thanks!
<gudea[m]> sphalerite: has there been any work on getting a more recent version in nixpkgs? Thinking about building a vm for testing.
knupfer has joined #nixos
<sphalerite> gudea[m]: there's https://github.com/NixOS/nixpkgs/pull/66528
<gudea[m]> @sphalerite: thanks so much! I’ll give it a shot.
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
drakonis__ has joined #nixos
knupfer has quit [Client Quit]
zupo has joined #nixos
knupfer has joined #nixos
<kraem> worldofpeace: tried this: https://bpaste.net/show/KISu - `nix-instantiate --eval '<nixpkgs/nixos>' -A config.systemd.user.services.nm-applet.serviceConfig.ExecStart` does return the old ExecStart string though
knupfer1 has joined #nixos
drakonis has quit [Ping timeout: 276 seconds]
drakonis has joined #nixos
srl295 has joined #nixos
<worldofpeace> kraem: that's supposed to be in nixos config, and for systemd
knupfer has quit [Ping timeout: 245 seconds]
knupfer1 is now known as knupfer
drakonis__ has quit [Ping timeout: 246 seconds]
drakonis__ has joined #nixos
<kraem> oh i'm importing that into my nixconfig - like so: https://bpaste.net/show/i3UM ?
<kraem> thanks
<tilpner> kraem: Overlays can't set NixOS options
<worldofpeace> kraem: see my gist, you can just put that in your configuration.nix
knupfer has quit [Ping timeout: 245 seconds]
drakonis has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
<kraem> with that line i am supposed to disable `programs.nm-applet.enable` right?
<worldofpeace> no, by setting that it creates a drop in unit for nm-applet
<kraem> alright because it's saying that the systemd.user.servic... is defined multiple times with that line
jtojnar has quit [Ping timeout: 265 seconds]
drakonis__ has quit [Ping timeout: 276 seconds]
justanotheruser has joined #nixos
<johnw> if I'm building a Docker image with dockerTools.buildImage, can I choose the base OS to be CentOS, and use Nix to install an RPM (that is also built with Nix) into that image?
<kraem> i'll have to to read my book on distributed systems for school. thanks worldofpeace and tilpner for your time!
jtojnar has joined #nixos
vika_nezrimaya has joined #nixos
Stuck_ has joined #nixos
<eyJhb> If I use `let backupUser = "backup"; in { .... users.users.${backupUser} ...}` is that valid?
zacts has joined #nixos
Melkor333 has quit [Quit: WeeChat 2.6]
<pikajude> yes
o1lo01ol1o has quit [Remote host closed the connection]
<ddima> eyJhb: `nix repl` is quite nice to try such things
<eyJhb> ddima: yes, I just.. Am not that good at it :p I would quite fast F up the syntax for it
_ris has joined #nixos
Ilya_G has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
<werner291> Hmm... Trying to install Steam, but getting a lot of 404's. Possibly similar to or related to https://github.com/NixOS/nixpkgs/issues/57254
pie_ has joined #nixos
Yaniel has quit [Ping timeout: 276 seconds]
<sphalerite> eyJhb: yes that can be valid, depending on what the ...s are ;)
<sphalerite> eyJhb: you certainly can have a "ynamic" attrpath like that
polman has quit [Ping timeout: 245 seconds]
<eyJhb> It somewhat works! Or, that part works
<eyJhb> But containers+privatenetwork+ports, it seems like magic atm.
fendor has joined #nixos
vika_nezrimaya has quit [Ping timeout: 265 seconds]
polman has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
Ariakenom has quit [Read error: Connection reset by peer]
pareidolia has quit [Remote host closed the connection]
<eyJhb> How does one forward port from a privateNetwork = true; container?
zacts has quit [Quit: WeeChat 2.4]
pareidolia has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 246 seconds]
jluttine has joined #nixos
ddellacosta has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
liberiga has quit [Ping timeout: 260 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 246 seconds]
<werner291> So, if I see a nixfile like this: https://github.com/hestela/dot_files/blob/4f41611e4ac7966b03cb17ff193fb9d006ca4f56/nix/machines/desktop.nix Is that just /etc/nixos/configuration.nix?
o1lo01ol1o has joined #nixos
<werner291> Since Discord and Steam are in the environment too.
<werner291> Is it typical to see "user-side" apps like that (for lack of a better word) in that file?
leotaku has quit [Quit: ZNC 1.7.3 - https://znc.in]
leotaku has joined #nixos
virus_dave has quit [Quit: virus_dave]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
pareidolia has quit [Quit: ZNC 1.7.3 - https://znc.in]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
pareidolia has joined #nixos
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> I'm trying to build on 19.09-small, but I'm now sure why it's failing: https://gist.github.com/matthew-piziak/b7c40a5b3fc88abb7bf1093538458fe6
<hyperfekt> werner291: Yes, that's a module and it looks like a system configuration. Just stored elsewhere.
<hyperfekt> Installing all applications via environment.systemPackages is a common pattern for single user systems.
<selfsymmetric-pa> Is this failing due to Steam?
<selfsymmetric-pa> This also says "builder for '/nix/store/nliqw679lr7l7i90pr9b72djh5mgc42m-kexec-tools-2.0.20.drv' failed with exit code 2".
<kraem> werner291: yes that looks like a /etc/nixos/configuration.nix - it depends, you can manage packages declaratively like that in the system wide configuration or you can install them with nix-env per user (you can use something like home-manager to install packages declaratively per usr)
<selfsymmetric-pa> Or maybe it's my kernel? :/
<werner291> hyperfekt kraem NixOS is getting more fascinating by the minute...
fendor_ has joined #nixos
dongrappa has joined #nixos
<selfsymmetric-pa> Hm, okay, kexec is a dependency of systemd. I probably need that...
<hyperfekt> selfsymmetric-pa: if you scroll further up you see that the kexec compile failed, that should be the reason your ultimate build does: `kexec/arch/i386/kexec-x86.c:39:22: error: 'multiboot2_x86_probe' undeclared here`
<selfsymmetric-pa> hyperfekt: Indeed. I don't know why that's happening for me.
<selfsymmetric-pa> Do you think it might be because of some customization of my `systemd`?
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor has quit [Ping timeout: 276 seconds]
fendor_ is now known as Fendor
scotttrinh has joined #nixos
<hyperfekt> selfsymmetric-pa: Seems unlikely to me. You might need a newer version of kexec-tools, since Google told me a patch fixing this exact error was merged some time ago :D https://www.mail-archive.com/kexec@lists.infradead.org/msg22440.html
<selfsymmetric-pa> Huh. But I don't install kexec-tools manually.
<selfsymmetric-pa> It's being installed as a dependency of systemd.
<selfsymmetric-pa> hyperfekt: nice find though!
<hyperfekt> Well it might be triggered by your customization, but not caused I would guess.
IooNag is now known as IooNag__
<selfsymmetric-pa> Hm. What would you do in my position?
drakonis has joined #nixos
<selfsymmetric-pa> How do I get the transitive closure of `nix-store --query --referrers`?
<selfsymmetric-pa> Oh `--referrers-closure`, fantastic.
<selfsymmetric-pa> Lots of important stuff in there. Doesn't look like I can just do without it.
<hyperfekt> Actually that patch doesn't look very merged. I suggest using a version of systemd that is passed a kexectools overridden to use it.
<selfsymmetric-pa> hyperfekt: Have you seen something like that before?
<selfsymmetric-pa> I'll take a look on GitHub.
<hyperfekt> Most of these will come via systemd
<hyperfekt> Something like your kexec error? No, I'm working on general principles here.
<selfsymmetric-pa> Okay, thank you.
growpotkin has joined #nixos
<selfsymmetric-pa> I don't know how to confidently approach that patch and override. I think I'll revert and hope for an upstream fix later.
<eyJhb> What is the best way to "backport" or, include a module+package that is in unstable, in the current stable channel? I can think of creating my own repo, and then using that as my stable channel with cherry picked commits. But there must be a better way
justanotheruser has quit [Ping timeout: 276 seconds]
<eyJhb> I hoped I could override the package, and then import the module, but that doesn't work well :(
werner291 has quit [Remote host closed the connection]
virus_dave has joined #nixos
<hyperfekt> selfsymmetric-pa: Is your issue with overriding to use a patch? Usually it's pretty simple, do package-to-be-overriden.overrideAttrs (old: { patches = old.patches ++ [ patch-you-want] }) iirc
<worldofpeace> selfsymmetric-pa: I've already fixed this issue with kexec, no?
<selfsymmetric-pa> worldofpeace: Oh really? I've just updated my channel nixos-19.09-small a few minutes ago.
<selfsymmetric-pa> I'm still seeing it.
<worldofpeace> it's a mass rebuilding change
<hyperfekt> eyJhb: There's no really good way, unfortunately. Use a different repo, as you suggested, or use disabledModules + import to pull in your fixed version. I personally have a mechanism to specify patches to NixOS modules in my config that get applied before the system is built.
<worldofpeace> (so staging branch for 19.09)
<selfsymmetric-pa> worldofpeace: Ah brilliant! Thank you for your fix.
<selfsymmetric-pa> worldofpeace: What do you mean by a "mass rebuilding change"?
<clever> selfsymmetric-pa: hydra has to rebuild most of nixpkgs before the fix gets into a channel
<hyperfekt> damn the nixos community is on the ball, it's already fixed :D
<selfsymmetric-pa> worldofpeace++
<selfsymmetric-pa> clever: Aha! That explains it. It's on `staging-19.09` but not on `nixos-19.09-small`, correct?
<selfsymmetric-pa> clever: Could you tell me how to monitor hydra progress?
<clever> ,howoldis selfsymmetric-pa
<selfsymmetric-pa> ,howoldis
dongrappa has quit [Ping timeout: 265 seconds]
schjetne has quit [Ping timeout: 245 seconds]
<clever> infinisil: ?
<clever> selfsymmetric-pa: https://howoldis.herokuapp.com/
<selfsymmetric-pa> Ah thank you.
<hyperfekt> nice try, but the bot is dead atm >':
<hyperfekt> someone get graham from vacation :b
<eyJhb> hyperfekt: Wouldn't I be able to import it from nixos-unstable, and use it? I somewhat thing the problem is I am trying to run it in a container... Which adds complexity :/
<clever> selfsymmetric-pa: after staging is manually merged into master, youll want to wait for the jobset for nixos-unstable
<andi-> hyperfekt: better not. It just shows that we should load-balance better
<selfsymmetric-pa> clever: Got it, thank you!
<hyperfekt> andi-: yeah, i wasn't serious ^^
<selfsymmetric-pa> clever: Though...staging isn't merged into master, is it? It's merged into a release channel?
matthuszagh has joined #nixos
<clever> selfsymmetric-pa: staging gets merged into master
<clever> selfsymmetric-pa: staging-19.09 gets merged into release-19.09
<selfsymmetric-pa> clever: Aha thank you.
<hyperfekt> eyJhb: Yes, you can import as long as you use disabledModules and also make sure it uses the right package version if needed. i think.
Fendor has quit [Quit: Leaving]
<eyJhb> hyperfekt: well, it currently isn't in stable anyways :p - But makes sense to disable WHEN it comes available. But when I have to do the same trick in a container, then it somehow doesn't want to work
<selfsymmetric-pa> clever: So I can look at the merge history of `release-19.09` to track that channel. If I wait for `b0b3b29e20dd41cd4d7d5af6072f2424f1b11026` to be on that branch, and then wait for `howoldis` to show a new `nixos-19.09-small` green build, then it should be available. Are my assumptions correct?
<eyJhb> Would somehow expect this to work - https://pastebin.com/CZBQ4q2p
<clever> selfsymmetric-pa: if you look at the page for https://github.com/NixOS/nixpkgs/commit/b0b3b29e20dd41cd4d7d5af6072f2424f1b11026, it lists what branches its on
<matthuszagh> hello. i'm using a hackrf which is a usb device that requires users to be in the plugdev group. but it sounds like nixos doesn't use plugdev. how should i work around this? should i try to set the rules file to use another group?
<eyJhb> But I get `/jerror: attribute 'jellyfin' missing, at /nix/var/nix/profiles/per-user/root/channels/unstable/nixos/modules/services/misc/jellyfin.nix:38:24`
<clever> selfsymmetric-pa: just spam f5 until it shows another branch!
<clever> selfsymmetric-pa: then click the tested jobset link on howoldis, for that channel, and wait for the eval to be all green
<selfsymmetric-pa> clever: Phenomenal. Thank you so much.
<averell> that commit should really just be picked to release-19.09
<selfsymmetric-pa> clever++
ddellacosta has joined #nixos
appleclusters has quit [Quit: Connection closed for inactivity]
<hyperfekt> eyJhb: That's the second part, making the package available, missing. I haven't worked with containers before so I'm not sure how to change their nixpkgs version (to one that includes your package)...
<eyJhb> hyperfekt: somehow if I include it in my main config, then it works fine (no need to include package), but container => no dice
<eyJhb> Which is what is tripping me up
<hyperfekt> oh that's strange. no immediate idea why that could be if you haven't already made jellyfin available otherwise...
<eyJhb> `nix search -u jellyfin` returns nothing, so :/
<eyJhb> I am assuming that means it isn't there. ANd nix-shell -p jellyfin => error
<eyJhb> So, magic atm
ng0 has joined #nixos
matthuszagh has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
dongrappa has joined #nixos
<infinisil> clever: Bot is dead, but it's not on my end and gchristensen is gchrholiday
dongrappa has quit [Ping timeout: 276 seconds]
growpotk- has joined #nixos
asymptotically has quit [Quit: Leaving]
virus_dave has quit [Quit: virus_dave]
Wharncliffe has joined #nixos
erasmas has quit [Quit: leaving]
emptyfl4sk has quit [Ping timeout: 240 seconds]
<clever> infinisil: ahh
Yaniel has joined #nixos
Stuck_ has quit [Quit: leaving]
dermetfan has quit [Ping timeout: 246 seconds]
noudle has quit []
growpotk- has quit [Quit: ZNC 1.7.4 - https://znc.in]
tertl3_ has joined #nixos
virus_dave has joined #nixos
fresheyeball has joined #nixos
<fresheyeball> anyone here used remote builders?
<fresheyeball> I have some questions about the experience
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
ddellacosta has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
inkbottle has quit [Ping timeout: 246 seconds]
virus_dave has quit [Quit: virus_dave]
inkbottle has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
_ris has quit [Ping timeout: 258 seconds]
thc202 has quit [Ping timeout: 245 seconds]
emptyfl4sk has joined #nixos
emacsomancer has quit [Quit: WeeChat 2.5]
emacsomancer has joined #nixos
emptyfl4sk has quit [Ping timeout: 265 seconds]