<pie__>
because hello is just the typical ./configure; make stuff with C
<iqubic>
Is the Meta section required?
<pie__>
the question really boils down to:
romildo has joined #nixos
<pie__>
iqubic, no
romildo has quit [Client Quit]
<iqubic>
Are the name and version fields required?
<pie__>
the question really boils down to: you need to take parameters from callpackage, so you need {function, arguments, and, such, go here}: functionBody
<pie__>
and functionBody needs to be something that returns a derivation
<pie__>
which in the typical case is stdenv.mkDerivation
<pie__>
iqubic, you following so far?
<iqubic>
Yes I am.
<pie__>
so your next quiestion is how do you make stdenv.mkDerivation work.
<iqubic>
Are you asking me how I plan to build my package?
<pie__>
no im telling you thats what you need to learn to continue
<iqubic>
I see.
<o1lo01ol1o>
command `nix-prefetch-git /var/lib/hydra/scm/git/16c77905e310310b4be86f8bd0660bd20da01f122febedd1be5af93e7da908fa 110c5826ebfb4cee24134b2777f0a2f1a74bef13' failed with exit status 32768 at /nix/store/vm0nr24cl7w772grgrpdm0nm3irzja84-hydra-2019-03-18/libexec/hydra/lib/Hydra/Helper/Nix.pm line 428.
<iqubic>
Where would I go to find documentation on mkDerivation?
<pie__>
iqubic, and though not the shortest thing, and maybe not the best suggestion on my part, but i think the best thing i can point you to right now is to look at the nixpkgs manual section on stdenv
<o1lo01ol1o>
That's from a hydra job; It's trying to pull a private git module
<pie__>
iqubic, there might be some more basic things in the nix pills
<o1lo01ol1o>
does anyone know what it might be?
<PyroLagus>
check those out:
<pie__>
iqubic, the main thing, though most of it not necessary at this point, i think will be to skim over the phases
<iqubic>
I notice that Hello's default.nix has some inputs at the top: "{ stdenv, fetchurl }:" What does that do in terms of the build?
<clever>
iqubic: that is defining a function, that takes 2 arguments
<pie__>
iqubic, do you know what callPackage does and why I mentioned it?
<pie__>
well, I suppose you don't but I'm making sure
<iqubic>
Right... But when is that function called, and why does it have those two parameters?
<iqubic>
Also, I have no clue what callPackage does.
<iqubic>
I assume it calls a package?
<pie__>
then you should have asked me at "you need to take parameters from callpackage," :P
<clever>
iqubic: callPackage is what calls that function
<iqubic>
I see.
<o1lo01ol1o>
The jobset is supposed to clone a repo on a branch that contains no submodules; however, the other branches, including some with cannonical names, have submodules. Could that be throwing the nix-prefetch-git error above?
<pie__>
iqubic, have you ever written a nix function
<iqubic>
pie__: No. This is my first one.
<pie__>
iqubic, do you know how to use the REPL yet
<iqubic>
I've modified old packages to update old software, but I've never written anything from the ground up.
<iqubic>
Also, I think the command is nix-repl.
<pie__>
it used to be but now you should use `nix repl`
<bendlas>
do we have functionality in nixos (lib or build-support), to build an attribute set of recursive dependencies, with configurable choice for version conflicts?
<iqubic>
pie__: Yeah... I can get the repl up and running.
<pie__>
iqubic, i cant think of a concrete exercise to give you, i propose you try writing some simple functions to get comfortable with that syntax
<iqubic>
I'm fine with the syntax.
<pie__>
ok. *shrug*
<iqubic>
I just don't know what the required parts of a default.nix are.
<PyroLagus>
it even tells you what callPackage does "Nixpkgs has a convenience function callPackage that imports and calls a function, filling in any missing arguments by passing the corresponding attribute from the Nixpkgs set"
<pie__>
nice
<pie__>
seems very dense so you gotta read carefully
<iqubic>
pie__: Does that teach anything other than the syntax of the nix expression language?
<pie__>
it seems to mostly just summarize language constructs
<pie__>
so it wont solve your mkderivation problem, but yeah, time to stop dumping resources and start reading :p
<iqubic>
Cool. I'll get to reading.
ris has quit [Ping timeout: 245 seconds]
<PyroLagus>
you should probably read the Nix manual first and then Nixpkgs
<pie__>
(probably cant stomach the whole thing at once haha)
<pie__>
elvishjerricco, whelp i get dropped to the efi shell i think so something's messed with my config
v88m has joined #nixos
ebzzry has quit [Quit: WeeChat 2.3]
acarrico has quit [Ping timeout: 248 seconds]
<elvishjerricco>
pie__: Are you doing this in VirtualBox?
<pie__>
elvishjerricco, yeah, but to a raw disk
<pie__>
elvishjerricco, i do get past the virtualbox bootloader though
<pie__>
i think
MmeQuignon has quit [Ping timeout: 248 seconds]
<elvishjerricco>
pie__: Did you read the comments in my article’s code about `canTouchEfiVariables`? You may be having issues with NVRAM. VirtualBox doesn’t persist them, so you need `installAsRemovable`
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjzi3
<pie__>
clever, dont suppose you have any bright idea why the zfs root pool would fail to mount
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @dtzWill to release-19.03 « youtube-dl: 2019.05.20 -> 2019.06.08 »: https://git.io/fjzis
<pie__>
i had it working then merged my normal config in (manually with meld) and now its borked
<pie__>
i didnt touch the device definitions
<elvishjerricco>
pie__: Do you have any more info about what’s going on?
<pie__>
elvishjerricco, just that one line i posted in the other channel before i closed it by accident
<pie__>
id have to reboot to get it again unless you xpost
<pie__>
maybe i can paste my config
<{^_^}>
[nixpkgs] @samueldr opened pull request #62853 → WIP: nixos/sshd: disable validation for cross-compilation → https://git.io/fjziZ
<elvishjerricco>
pie__: Shot in the dark, did you make sure to use `mountpoint=legacy` on the dataset?
<pie__>
elvishjerricco, thats what i was thinking but im pretty sure i set that
<pie__>
how can i check
<elvishjerricco>
pie__: `zfs get mountpoint zpool/root`
<clever>
pie__: did you cleanly export it before shutting down the installer?
<pie__>
clever, im already booting from it (jus thave to roll back)
<clever>
ah
<clever>
zfs list -t filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression,mountpoint
<pie__>
elvishjerricco, zfs list says mount point for zroot is none and zroot/root is legacy
v88m has joined #nixos
<clever>
this will display the mountpoint (and a lot of other stuff) for every filesystem
<pie__>
i dont want to know if you typed that off the top of your head
<clever>
pie__: legacy requires mounting with the mount command, and on nixos, thats via fileSystems.
<pie__>
right
<elvishjerricco>
clever: If he followed my article, he used nixos-generate-config, which should do that
<clever>
pie__: how far is it booting, and where is it hanging?
<pie__>
and i have fileSystems."/" = { device = "zroot/root"; fsType = "zfs"; };
<pie__>
clever, stage 1 i think
<pie__>
gets past grub
<elvishjerricco>
Yea, if it’s root, it’ll be in stage 1
<clever>
pie__: can you get a shell there?
<pie__>
clever, if you tell me ho
<clever>
pie__: add boot.shell_on_fail to the kernel cmdline in grub
<elvishjerricco>
pie__: What are the last few lines of output you get?
<pie__>
ok so it fails on "importing root zfs pool "zroot"..."
<pie__>
but i gotta wait some more
<pie__>
till it finishes the dots
<elvishjerricco>
Does anything come before that?
<elvishjerricco>
You should see a line about a LUKS volume or something
<clever>
pie__: did luks ask for the passphrase before that?
<elvishjerricco>
clever: i think he’s using an initrd keyfile
<pie__>
additional lines are mounting zroot/root on /...\nmount: mounting zroot/root on /mnt-root/ failed: No such file or directory
<pie__>
trying to start an interactive shell actually panics
<clever>
pie__: one minute
<pie__>
in busybox switch_root apparently
<elvishjerricco>
Do you see a line about LUKS before the zfs-related lines?
<clever>
pie__: try boot.debug1devices this time
<pie__>
elvishjerricco, i have to check again but i dont thikn so
qualiaqq has joined #nixos
manjaro-user_ has quit [Quit: Konversation terminated!]
<elvishjerricco>
pie__: Did you remember the `boot.initrd.luks.devices` option? I think even with a keyFile, it still says something about waiting for the device or something like that.
<pie__>
yeah nothing about luks
<pie__>
ill check but i know i added it in at one point
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @ivan to release-19.03 « youtube-dl: build the lazy_extractors module to improve startup time »: https://git.io/fjziW
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
<pie__>
elvishjerricco, looks like i accidentally deleted the luks config
init_6 has quit [Ping timeout: 245 seconds]
<elvishjerricco>
That’ll do it :P
* clever
heads off to bed
<pie__>
clever, nighty night
<pie__>
hmm still nothin :<
adamanti` has joined #nixos
<clever>
pie__: boot.debug1devices
<pie__>
elvishjerricco, ok I got it. would be nice if this stuff told you it was failing.
<pie__>
the issue was 1) accidentally deleted luks settings 2) forgot to finish typing in the key file name after i added it in again
<clever>
for 1, it doesnt know if your luks device was misconfigured, or your drive is just slow to appear
<elvishjerricco>
Lol yea I wonder if clever’s debug1devices would have told you much
adamantium has quit [Ping timeout: 248 seconds]
<pie__>
clever, yeah not much you can do about that i guess
<clever>
it would have shown that the luks device isnt open
<pie__>
but i didnt see any errors for 2
<clever>
yeah, 2 should have given an error
<pie__>
hmph now xorg isnt coming up -_- how bad can i botch this
<pie__>
nvm vbox guess stuff again
tbenst_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @nlewo pushed commit from @danieldk to release-19.03 « nixos/tests/docker-tools: check layer sharing with buildLayeredImage »: https://git.io/fjzib
<eyJhb>
When I get this error, while rebuilding, then it is a error regarding how the package was packages, and not the current state of my system, right? - https://termbin.com/xwcv
<eyJhb>
symphorien anyway I can transfer that into the nixos-rebuild syntax? sudo nixos-rebuild -I nixpkgs=. boot --option builders nixosbuilder2 --option builders nixosbuilder --max-jobs 0
MmeQuignon has joined #nixos
<eyJhb>
Can't really find that much documenatation on it...
<eyJhb>
Also not how to specify multiple b uilders
<marko[m]1>
Any idea why my pulseaudio got broken after upgrade?:
<marko[m]1>
Failed to open module /nix/store/hfvl7fdbdg0fhwxnkd8y32lw5kicw9yc-pulseaudio-12.2/lib/pulse-12.2/modules/module-alsa-card.so: /nix/store/hfvl7fdbdg0fhwxnkd8y32lw5kicw9yc-pulseaudio-12.2/lib/pulse-12.2/modules/libalsa-util.so: undefined symbol: pa_alsa_ucm_device_update_available
qualiaqq has quit [Remote host closed the connection]
ks0ne has joined #nixos
cmacrae`` has quit [Quit: ERC (IRC client for Emacs 26.1)]
cmacrae has joined #nixos
Zer000 has quit [Quit: Leaving]
__monty__ has joined #nixos
zupo has joined #nixos
cmacrae` has joined #nixos
ks0ne has quit [Quit: Lost terminal]
cmacrae has quit [Ping timeout: 248 seconds]
tmaekawa has joined #nixos
<joepie91[m]>
this is the second time that I've had to forcibly rebuild/reinstall VS Code by overriding it with a different name, because it was producing this error: /nix/store/5zk0kmkljgmk4w7cky4yswbd7kkx0yqp-vscode-patched/bin/.code-wrapped: line 35: /nix/store/5zk0kmkljgmk4w7cky4yswbd7kkx0yqp-vscode-patched/lib/vscode/bin/../code: No such file or directory
<joepie91[m]>
I get the impression that something about the vscode package is non-deterministic...
iyzsong has quit [Ping timeout: 272 seconds]
[Leary] has joined #nixos
Lears has quit [Ping timeout: 246 seconds]
Matthieu_ has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
MmeQuignon has quit [Ping timeout: 272 seconds]
ris has joined #nixos
<asymmetric>
does buildRustPackage support git dependencies in Cargo.toml?
<jackdk_>
does anyone have an example of a nixified haskell repo containing a cabal.project file and multiple packages? I have two packages: X, and X-example (which depends on X), and I'm trying to make a sensible nix expression for them
arjen-jonathan has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @srhb merged pull request #62758 → nixos/zoneminder: font files cannot be found → https://git.io/fjuxp
<jackdk_>
X-example has additional dependencies that X does not, so if I try to set up individual shells for each package, cabal new-build complains that it can't find some project dependencies. But because X-example depends on X, if I try to put all of my dependencies into the shell, I build X even when I'm entering a shell to develop it
tarruda has quit [Quit: WeeChat 1.6]
tarruda has joined #nixos
emacsomancer has joined #nixos
romildo has joined #nixos
romildo has quit [Client Quit]
freeman42x has quit [Ping timeout: 258 seconds]
Matthieu_ has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
Matthieu_ has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ambro718 has joined #nixos
<ambro718>
How can I check if a binary is 32bit or 64bit from a builder?
jasongrossman has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #62859 → nvidia-x11: Set 32-bit library paths for 32-bit libraries. → https://git.io/fjz1R
<infinisil>
jackdk_: I think you might need two different shell.nix's to do that
<infinisil>
One for each project
freeman42x has joined #nixos
jasongrossman has joined #nixos
<infinisil>
Ah actually, maybe not
<jackdk_>
infinisil: so I tried setting that up, and the shell for X would fail to solve because it wanted to find deps of X-example. I think it was going up to the repo root, seeing the cabal.project
<jasongrossman[m]>
pulse
<jackdk_>
as in, I could enter the shell but cabal new-build would fail
<infinisil>
I'm putting both packages in a haskell package set, then use shellFor to include the deps for each of them
<infinisil>
Maybe that's what you're looking for
<jackdk_>
this looks really promising, thank you. I'll have a play
<infinisil>
Ah but actually, I think this recompiled nix-session-types every time I did any change to it and reentered the nix-shell
<infinisil>
Which kinda makes sense because nix-session depended on nix-session-types
mac10688_ has joined #nixos
<jackdk_>
I do not get that if i edit code in X
<jackdk_>
even though X-examples depends on X
<mac10688_>
Hi all. I want to edit the fstab. What's the nixos approach to this? Editing the file itself gives me issues because of symlinks. Then I think this seems to go against the philosophy of nixos.
Guest93 has joined #nixos
<jackdk_>
mac10688_: There is a section in the nixos manual about how to set up filesystems. If you do that and rebuild, it will regenerate fstab for you
<mac10688_>
ok thanks! i'll check it out
<Guest93>
Hello! Quick question: where is your place to go to find documentation of nix functions? i.e. im writing a environment for a python program and want to know more about how the functions "withPackages" and "env" work. Thanks
<jackdk_>
infinisil: thanks for your link. I'm pretty sure I'm not building X into my shell (it doesn't show up on ghc-pkg list | grep X). The last thing I'd like to fix is around the cabal.project file: X-example has some non-hackage dependencies.
mmlb29 has joined #nixos
mac10688_ has quit [Ping timeout: 256 seconds]
<jackdk_>
if I add source-repository-package stanzas to cabal.project, I get "cabal: TODO: add support for fetching and reading local tarballs, ..."
mmlb2 has quit [Ping timeout: 272 seconds]
toppler has joined #nixos
<jackdk_>
(This is GHC 8.4.x, because I'm doing reflexy stuff and reflex-platform has nothing newer)
alp has quit [Ping timeout: 268 seconds]
<infinisil>
jackdk_: You could use Nix to build the dependencies, and I'd recommend that
<infinisil>
(I have no idea about source-repository-package though)
<jackdk_>
I should have been clearer. That's what I'm currently doing, and until reflex-platform goes to ghc 8.6 (cabal-install >= 2.4), that might be all I can do. It would have been nice to provide something for non-nix cabal new-build users though
<ambro718>
How would one check if EGL works, is there anything that uses EGL in nixos?
<marko[m]1>
aristid: thanks I noticed your commit and desided to try it out. Don't want to wait so I'll build my own :-)
<aristid>
marko[m]1: great, can't hurt to have some people to test it :-)
<aristid>
only problem is that for whatever reason, i can never build firefox locally
<aristid>
so i can't fully test it myself it seems, until hydra caught up
<{^_^}>
[nixpkgs] @risicle opened pull request #62861 → [r18.09] exim: add patch for CVE-2019-10149 → https://git.io/fjz1S
<{^_^}>
[nixpkgs] @pacien opened pull request #62864 → nodePackages.matrix-appservice-irc: init at 0.12.0 → https://git.io/fjzMT
<kl3>
hi. i want to submit a diff without GH. with discourse, posting in the "Development, Patches" category seems to provide no way of uploading a text file, am I supposed to paste the diff inline?
shibboleth has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<kl3>
asking because this is highly error prone due to whitespace mangling and what not - i'd like to just submit some diffs produced by git-format-patch(1) without screwing them the usual ways
o1lo01ol1o has joined #nixos
jackdk_ has quit [Ping timeout: 272 seconds]
jtojnar has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<samueldr>
kl3: I don't know how it'll work out if you send them by e-mail to the discourse address, maybe it'll make it less likely it'll screw with them
o1lo01ol1o has joined #nixos
<samueldr>
kl3: another option is to have them hosted at another location (any good ol' paste site) in addition to inlining them with ``` guards in case discourse screws with them
<cocreature>
How can I run nixos-rebuild against a local checkout of nixpkgs as opposed to a channel?
<Miyu-saki>
But "not really" because it doesn't exist on the remote store.
<Miyu-saki>
There are ways around that.
<Miyu-saki>
But at that point, it'd be non-trivial, and you'd probably be done with the download before you finish it.
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Ping timeout: 248 seconds]
fendor has quit [Read error: Connection reset by peer]
jonaswouters has quit [Quit: Connection closed for inactivity]
<mk_modrzew>
hey, because software I tried to use (BCC) caused kernel panic on linux 4.19 I decided to upgrade to latest, and now I receive this error message trying to run chdir(/nix/store/gh7859s2i0lr1y8rppp28n63gpvngds4-linux-4.19.48-dev/lib/modules/5.1.7/build): No such file or directory
<mk_modrzew>
and I after time spent on trying to solve that I have no clue if I forgot to update some env var or I didn't wrote something in configure.nix?
gratto has quit [Read error: Connection reset by peer]
gratto has joined #nixos
Matthieu_ has quit [Ping timeout: 246 seconds]
Matthieu_ has joined #nixos
Guest93 has joined #nixos
<Guest93>
is anyone here using the altgr-intel with us layout as keyboard? if so, could you please share your config?
emptyflask has quit [Ping timeout: 258 seconds]
Guest93 has quit [Remote host closed the connection]
arjen-jonathan has quit [Quit: WeeChat 2.4]
ee1943 has quit [Ping timeout: 272 seconds]
v0|d has quit [Ping timeout: 268 seconds]
Matthieu_ has quit [Ping timeout: 248 seconds]
shibboleth has quit [Quit: shibboleth]
o1lo01ol1o has joined #nixos
<Miyu-saki>
Yikes... I'm reading the BEAM package set, and it seems like it's actually not extensible in Nix without drastic measures...
<Miyu-saki>
At least not as simple to extend as other package sets, Python specifically.
kl3 has quit [Ping timeout: 272 seconds]
<rnhmjoj>
freenode_Guest93: what do you need exactly? i don't know about that keyboard but i've made some xkb changes in nixos
<Miyu-saki>
Just putting that in writing, in case someone encounters the same problem as me.
<Miyu-saki>
Also, I don't know if the self/super order is correct
ambro718 has quit [Quit: Konversation terminated!]
madhukar has joined #nixos
<infinisil>
,overlays
<{^_^}>
infinisil: Did you mean overlay?
<{^_^}>
Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
gratto has quit [Read error: Connection reset by peer]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gratto has joined #nixos
Guest10107 has quit [Quit: leaving]
<madhukar>
hello, have just installed nixos on a new x1 cabon thinkpad. The ideas behind them are very cool, and I'm using it currently with kde, it was a breeze to set up. My question is if I can immediately make it my main OS, without learning everything about it. I will be able to do so if there was an easy escape hatch to do things the "regular" linux way easily and quickly so as to not get too severely hampered at work
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjzDW
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
endformationage has joined #nixos
<madhukar>
I was looking at `buildFHSUserEnv` is it possible to set up multiple "applications" inside one to be able to have a little oasis to full back on in desperate times?
is_null has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
<Miyu-saki>
Am I doing something wrong here?
<Miyu-saki>
To use an alternative elixir and erlang, I had to do this.
<infinisil>
madhukar: AFAIK you can use buildFHSUserEnv to put single or multiple applications into one to have a standard linux environment for them, but you can't really modify that environment once built, so you can't install new stuff, add files and in general "normal" linux stuff
<Miyu-saki>
It doesn't even work.
<infinisil>
madhukar: So it's really only good for running programs
<madhukar>
so I can't mutate it, but I can just edit the environment definition and relaunch it when I want new things installed there, yes? What about things such as logfiles generated within the environment?
<madhukar>
Anyone got anecdotes when swallowing the nix pill, did you face issues collaberating with your colleagues because the install scripts etc which worked for everyone else, didn't work for you?
<Miyu-saki>
Yep. This is pretty mentallamo.
<Miyu-saki>
How are overlays applied? Left to right?
drakonis1 has quit [Ping timeout: 245 seconds]
peacememories has joined #nixos
<Miyu-saki>
Okay, this was pretty mental, but I finally got it to work this time.
<{^_^}>
[nixpkgs] @tobim opened pull request #62868 → reredirect: init at 0.2 → https://git.io/fjzDQ
acarrico has joined #nixos
linarcx has joined #nixos
rfold has joined #nixos
iqubic` has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
iqubic has quit [Ping timeout: 248 seconds]
acarrico has quit [Ping timeout: 258 seconds]
aristid has joined #nixos
Matthieu_ has joined #nixos
mexisme_ has joined #nixos
<matthewbauer>
kuznero: flatpak is pretty well supported. it can be enabled with ```services.flatpak.enable = true;``` on nixos
orivej has joined #nixos
<matthewbauer>
snappy not so much
<matthewbauer>
appimage can work but it's a pain getting set up
eraserhd has joined #nixos
<etu>
matthewbauer: steam-run :p
<matthewbauer>
etu: oh nice! didn't realize it worked for non-steam things
<etu>
It may
mexisme_ has quit [Ping timeout: 272 seconds]
<kuznero[m]>
What should I do when I accidentally deleted my `hardware-configuration.nix`?
<kuznero[m]>
matthewbauer: thanks!
<gchristensen>
did you ever edit it, kuznero[m]?
<dhess>
gchristensen: oh bad luck for you, I was just about to go away but now I know you're here :)
<kuznero[m]>
Not sure, but unlikely! Should I try to nixos-generate-config again?
<gchristensen>
uhoh :)
<gchristensen>
kuznero[m]: yep!
<kuznero[m]>
ok, will try that. thanks!
<dhess>
gchristensen: Any tips/tricks for using NixOps with a bastion host?
<gchristensen>
oh cool
<gchristensen>
one sec, dhess
toppler has quit [Ping timeout: 248 seconds]
<aristid>
kuznero[m]: i recommend putting all your nixos configs in a git repo
<aristid>
for the future :-)
<dhess>
I know about using ProxyCommand rather than -A and all that. I just mean specifically tricks for getting NixOps to honor the bastion host, probing for ssh ports, and all that. Doing some reading, it doesn't seem quite as straightforward or well-supported as I would have thought.
<gchristensen>
dhess: so you're on computer A, running nixops deploy on computer A, and to reach target T, you have through bastion B?
<dhess>
that's right
<kuznero[m]>
:) that is a good idea. I do that for everything else but hardware-config
<dhess>
and possibly computer A doesn't have DNS visibility for target T, but bastion B does.
<gchristensen>
aszlig's feedback was all very good -- are you able to finish that pr off?
<dhess>
but rather than using IPs, I would like to set up something in either computer A or bastion B's ssh_config to give it a symbolic name
<dhess>
ok I'll take a look at that
<dhess>
I might be able to finish it off. I have forked my own NixOps for long stretches in the past so I'm familiar with its... quirks :)
<gchristensen>
:D
<dhess>
though I haven't done much of my own work on its codebase.
<gchristensen>
his feedback should not be complicated to implement
<dhess>
cool
<dhess>
gchristensen: but short of that PR, I did see that nixos-community has a bastion host defined now. Is that being used to `nixops deploy` anything?
<gchristensen>
by nixos-community do you mean nixos-org-configuartions?
<dhess>
yeah sorry
<dhess>
I get those confused
<gchristensen>
that server is connected to, and then nixops is run on that system
<dhess>
oh :(
<dhess>
ok thanks.
<gchristensen>
yeah.
<dhess>
I'll probably start experimenting with vanilla nixops and see how that goes, and then look into that PR
toppler has joined #nixos
o1lo01ol1o has joined #nixos
<dhess>
Realistically I won't have time to get into it until probably end of the month. I've got Zurihac coming up and then Monadic Party straightaway thereafter.
<gchristensen>
aye. I'll be seeing you there :)
<dhess>
Just at Zurihac, right?
<gchristensen>
y
<dhess>
huh maybe we could do a quick sprint on it. It's not exactly Haskell though :)
<gchristensen>
though, if I wanted to learn Haskell monadic party would be better probably
<dhess>
oh she isn't but she has asked someone to teach it instead
<dhess>
I would highly recommend that. I haven't read it myself as it came too late in my Haskell journey but I've heard nothing but great things about it.
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<gchristensen>
ok, cool, thank you
<dhess>
anyway thanks for the pointer to that PR.
<gchristensen>
yep
<dhess>
np, anything to get more people into Haskell ;)
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
maybe I'll even spend a few minutes on it .........
<dhess>
hehehe
<dhess>
from the looks of the PR it's probably good enough for government work already.
<gchristensen>
hah
<dhess>
when are you flying to Zurich?
<gchristensen>
Thursday night from Montreal
peacememories has joined #nixos
<dhess>
oh my you're going to be jetlagged for the conf :)
<gchristensen>
Zurihac day 1 will not be a super fun day sleep wise :P
<dhess>
are you staying in Zurich or Rapperswil?
<gchristensen>
mmmnot sure, I don't have my itinerary yet
<gchristensen>
hoping somebody picks this nixops PR up too :)
kvaster has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
<cocreature>
aristid: thank you!
madhukar has quit [Ping timeout: 256 seconds]
<gchristensen>
dhess: looking at this code I'm not sure what I was thinking" it is horrible, haha
<kuznero[m]>
matthewbauer: a lot of the apps that I install through flatpak in NixOS give errors like this. `Cannot open pixbuf loader module file` It seems to be inherently Gnome apps, but I run KDE. Does that make a difference? Is there any known workarounds?
<aristid>
gchristensen: deleting code is good, much of the time!
domogled has quit [Ping timeout: 248 seconds]
<matthewbauer>
kuznero: weird, i think they should be installed in /var/lib/flatpak/exports/share
sigmundv has quit [Ping timeout: 258 seconds]
<kuznero[m]>
Yep, I also thought it should be as much self-contained as possible.
o1lo01ol1o has joined #nixos
<matthewbauer>
but maybe they try to use the parent theme? i wonder if they just expect gtk apps to have a gtk theme available
o1lo01ol1o has quit [Remote host closed the connection]
<kuznero[m]>
Is there a package I can just try installing to test that?
drakonis1 has joined #nixos
gratto has quit [Ping timeout: 248 seconds]
<matthewbauer>
try `echo $GDK_PIXBUF_MODULE_FILE` and make sure that exists
<kuznero[m]>
Yep, that is looking exactly like my issue. Will try to follow up.
<kuznero[m]>
Thanks
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
aszlig: 'round?
<kuznero[m]>
matthewbauer: running it like this `flatpak run --env=GDK_PIXBUF_MODULE_FILE= com.github.philip_scott.notes-up` works it seems. Even though there is a huge shadow border on the main window. But it works at least.
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #62869 → vulkan-loader: Always include /run/opengl-driver(-32)/share in search path. → https://git.io/fjzSt
wfranzini has quit [Remote host closed the connection]
<gchristensen>
oh cool, Nixops has CI now
wfranzini has joined #nixos
<kuznero[m]>
Fix merged on Apr 16
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @hedning to release-19.03 « flatpak: clear GDK_PIXBUF_MODULE_FILE »: https://git.io/fjzS3
drakonis_ has joined #nixos
<dhess>
gchristensen: CI how?
<gchristensen>
it runs some travis stuff
emptyflask has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
<gchristensen>
anyway I fixed all his concerns except for the major one of using ssh in principle
<dhess>
wow thanks! You certainly didn't need to do that.
<dhess>
I will test it as soon as I can. Maybe even tomorrow
<gchristensen>
cool
<gchristensen>
they were simple to fix :)
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #62870 → nvidia-x11: Put absolute library paths into ICD config files. → https://git.io/fjzSl
JadoJodo has quit [Quit: Ping timeout (120 seconds)]
JadoJodo has joined #nixos
andi-_ has joined #nixos
<eyJhb>
It is basically commit b981b8e0feffbc12baa68294bb3a291c2f96cffe that breaks DisplayLink support, but would it be "OK" to override xorgserver inside DisplayLink?
andi-_ has quit [Client Quit]
<etu>
oh damn
<etu>
That's probably hard to patch :D
<gchristensen>
is there an open bug report with x?
zupo has joined #nixos
<etu>
Yeah, that's a good first step
<eyJhb>
It is not X that is the problem, it is displaylink not properly supporting the newest xorgserver version basically, it is a somewhat known bug
<eyJhb>
Oh, i read taht wrong, 2 secs
<Athas>
I've just installed NixOS. What's the difference between installing packages via 'nix-env -i' compared to adding them to /etc/nixos/configuration.nix?
<gchristensen>
generally, people want to use systemPackages.
<Athas>
Why?
<gchristensen>
to be reductive about it, nix-env is for people who want `aptitude` :P
<Athas>
When I do 'nixos-rebuild', will that blast away any changes I did with nix-env?
<gchristensen>
packages installed by nix-env are managed imperatively and require updating outside of the nixos-rebuild cycle
<Pneumaticat>
Athas: nix-env -i is a per-user package manager, while configuration.nix installs packages for the whole system as well, I believe
<Athas>
For some reason the 'clinfo' program has been packaged as a derivation called 'opencl-info', which then also installs a program called 'opencl-info'. Is it normal Nix practice to rename things like that?
<pie__>
ugh yeah im looking at it, this stuf looks somewhat nontrivial
<pie__>
eyJhb, ok i thiiiink overrideAttrs should work
<eyJhb>
Hit me with your best syntax :D
<pie__>
but you might need to use an overlay because it looks like this uses a thing that would want an overlay because theres stuff that depends on it and shit i dunno :V
<eyJhb>
But, isn't overrideAttrs something that can be used in a overlay?
<pie__>
my best guess is to .extend nixpkgs and .overridaAttrs with the src set to the new source
<eyJhb>
How would you do so?
<pie__>
eyJhb, could try sometihng like the following and fill in the src = ... in the override;
<pie__>
if youre doing it in configuration.nix, theres an overlays argument somewhere that you can just pass the (self: super: ...) to
<eyJhb>
Doing it in configuration.nix
<pie__>
id probably just try to see if i can get it to build first in an independent nix fil
<pie__>
but thats just me
Soo_Slow has quit [Remote host closed the connection]
<eyJhb>
pie__ I have no clue how I would do it in a independent nix file, so..
<pie__>
nix-build something.nix where something.nix is: `let newpkgs = ...; in newpkgs.xorg.xorgserver`
mthst has joined #nixos
<pie__>
though i think when you do `import <nixpkgs> {}` that can also take an argument containing overlays so you could do that instead of .extend
<pie__>
just saying
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
siiky has joined #nixos
elux has joined #nixos
<elux>
hi there
<elux>
i recently did a system upgrade, and now my sound doesn't work.. can someone help me debug pls? i was using pulseaudio
<gchristensen>
aristid: ^
<Yaniel>
elux: apparently that's a known problem and fixed in nixpkgs master already
<Yaniel>
I had the same problem after upgrading today
<elux>
oh thanks
<Yaniel>
rolled back until nixos-unstable has updated again
<elux>
roger that +1, thx
<eyJhb>
pie__ what would a complete .nix file be for that overlay? Because as is, wouldn't want to build
<pie__>
eyJhb, i dont understand. i dont think i left any holes, just use the let expression and fill in the ... with the previous example
<pie__>
since i did an override by {} that should actually be a noop and still give you the previous version
<pie__>
and you can try filling in the contents
<pie__>
im actually a bit distracted sorry :D but i can probably fill in more holes if you need
<eyJhb>
Just me that overlooked stuff, sorry! - But I have this - https://termbin.com/rojk adn getting `error: attribute 'extend' missing, at /etc/nixos/displaylink.nix:1:15`
andi- has quit [Remote host closed the connection]
elux has quit [Quit: leaving]
<ris>
hmm what do people think we should do about this https://hydra.nixos.org/build/94421912/log/tail # error "This code has only been tested on x86 and powerpc platforms."? just disable it on other archs?
<ris>
or be ballsy & comment it out ;)
<pie__>
eyJhb, i probably messed something up then but i did test it in the repl...
<gchristensen>
ris: should probably not enable aarch64 for it
<ris>
hmm actually it does appear to have explicit arch relevant code in it
andi- has joined #nixos
<pie__>
eyJhb, here's how I'd break it up btw, most people would probably hate my closing brace indentation though https://bpaste.net/show/01f298fde6b8
<gchristensen>
yes that is horrible :P
<pie__>
oh i think i know what might have happened, i probably polluted my repl...should still work though ._.
<eyJhb>
Still getting extend missing, what.. What is happening :p
<clever>
eyJhb: what is the contents of displaylink.nix?
<eyJhb>
clever: 100% what pie__ pasted
<eyJhb>
Ran before and after I added name = "something";
<eyJhb>
Same error
<clever>
eyJhb: can you still pastebin your version of the file?
<pie__>
ok i just tested and it evaluates fine for me
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
2019-06-08 17:25:10 < pie__> if youre doing it in configuration.nix, theres an overlays argument somewhere that you can just pass the (self: super: ...) to
<eyJhb>
We agree on just running, `nix-build displaylink.nix` ?
cantstanya has quit [Remote host closed the connection]
akaWolf has quit [Quit: leaving]
cantstanya has joined #nixos
<clever>
> pkgs.extend
<{^_^}>
<LAMBDA>
<pie__>
eyJhb, thats what i did
<clever>
eyJhb: if just ran with nix-build, it should work, what version of nixpkgs are you on?
<eyJhb>
But it is a build of nixos-19.03 commit 00322cc
<clever>
eyJhb: nix-instantiate '<nixpkgs>' -A lib.version --eval
xkapastel has joined #nixos
akaWolf has joined #nixos
<eyJhb>
"18.09pre-git"
<clever>
eyJhb: the <nixpkgs> in displaylink.nix is loading 18.09, which may be too old for .extend
<eyJhb>
clever, that was it!
<eyJhb>
Now.. The next question, what would I do to import fetchurl?
<Henson>
does anyone know if there's a NixOS equivalent to the Debian "allow hotplug" in the network interface configuration? My NixOS is taking a long time to boot when it can't get a DHCP lease.
<{^_^}>
[nixpkgs] @andir pushed 5 commits to release-19.03: https://git.io/fjzHU
<clever>
either system (a string like "a,b,c") or systems (a list of [ "a" "b" "c" ])
<clever>
it will then join systems together for you
drakonis_ has quit [Ping timeout: 248 seconds]
<eyJhb>
Only had hostName in my buildmachines, so just added the system part too
drakonis has quit [Read error: Connection reset by peer]
<eyJhb>
Thanks for the help pie__ and clever , lets see if it works on next reboot :p
mthst has quit [Quit: the bouncer died]
mthst has joined #nixos
mthst has quit [Client Quit]
toppler has quit [Ping timeout: 272 seconds]
<aszlig>
gchristensen: yep
<gchristensen>
aszlig: I'm really tired, and about to go offline. I'm not sure what to do about https://github.com/NixOS/nixops/pull/1024's remaining point. maybe you have ideas which you could leave as comments?
<Henson>
what default mechanism does NixOS use for dhcp address acquisition? Is there a daemon, or a udev script, or something that does the acquisition?
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
mthst has joined #nixos
toppler has joined #nixos
<clever>
Henson: dhcpcd
<Henson>
clever: thanks, I totally missed it in the process listing. Wheneve I see "dhcpcd" I think it's "dhcpd".
<Athas>
I'm trying to write a nixpkg for a pretty straightforward program. What's a good way of also installing the manpages? Just manually copying in installPhase?
<clever>
Athas: yep
j4m3s1 is now known as j4m3s__
<Henson>
clever: great, thanks, I just added a shorter timeout to networking.dhcpcd.extraConfig and that will hopefully fix my problem
__monty__ has quit [Quit: leaving]
<aszlig>
gchristensen: commented
<gchristensen>
aszlig: switching to py3 is going to be a big deal I think, no?
o1lo01ol1o has joined #nixos
<gyroninja>
What's the best way to release packages for other people to use?
<aszlig>
gchristensen: well, i switched two projects with around twice the SLOC to py3 lately and it took around a month... but it was all with type annotations
weedloser has quit [Ping timeout: 258 seconds]
<aszlig>
gchristensen: so i guess without typing we could do it within a few days
<aszlig>
also this would be more of a sprint thingy if we don't want to have massive conflicts all the time
<Athas>
I want to add a package to nixpkgs. Should I also add myself as a maintainer in maintainer-list.nix?
<aszlig>
IIRC there was also some effort to make it PEP8 compatible, but that also didn't work out very well
<{^_^}>
[nixpkgs] @athas opened pull request #62872 → clinfo: init at 2.2.18.04.06 → https://git.io/fjzHN
rfold has quit [Quit: WeeChat 2.4]
<drakonis1>
oh my god just half a year t ogo before py2 goes into the dumps
alp has quit [Read error: Connection timed out]
alp has joined #nixos
<simpson>
drakonis1: Relax, it's only CPython.
<drakonis1>
there's still tauthon rolling around yeah?
<simpson>
I really should get off my ass and write an RFC for using PyPy for Python 2 as a default.
<drakonis1>
ah there's a faster python 2 implementation, noice?
mexisme_ has quit [Ping timeout: 272 seconds]
<Theletos>
Hi. Does anyone have example configs for power.ups?
gratin has joined #nixos
<gratin>
so i installed nixos on virtualbox with uefi enabled, but when I boot it up it hangs
<gratin>
same with the live boot unless i select the nomodeset option
linarcx has quit [Quit: WeeChat 2.4]
PeskyGee has joined #nixos
Lears has joined #nixos
[Leary] has quit [Read error: No route to host]
<PeskyGee>
Hello all. Newbie here, been using NixOS for about 3 days getting everything setup. So far so good and I'm loving it, but there is one thing I just can't seem to get configured and that is polkit_gnome? I've searched everywhere and tried several things but I can't get it to work. Can anyone point me to some config examples or? It would be greatly appriciated.
OkCo has joined #nixos
OkCo has quit [Client Quit]
ddellacosta has quit [Ping timeout: 245 seconds]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
jasongrossman has quit [Ping timeout: 272 seconds]
akaWolf has quit [Quit: leaving]
fusion809 has joined #nixos
mexisme_ has joined #nixos
alp has quit [Ping timeout: 244 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
jitwit has joined #nixos
Henson has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 248 seconds]
justanotheruser has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #62873 → bind: fix build on armv6l → https://git.io/fjz7G