<Muttssuri>
Hello, I am trying to get into NixOS but i can't seem to make the install work, I think it may be something that I'm doing wrong with my config file. My question is if is there any good resource for what paramaters can I use in said config file, I haven't found a good list of them
jimmyeatworld has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @risicle opened pull request #73728 → [r19.09] libextractor: add patch for CVE-2019-15531 → https://git.io/JeKgp
<gchristensen>
eacameron: it would be really cool if you wrote a blog post on how you did it
<das-g[m]>
Sorry, I'm still getting the hang of how this all fits together. (This is my first nixos test.) So I'd use the `drvPath` attribute of pipenv? Would I still have to pass `-p pipenv` then, clever ?
<clever>
das-g[m]: passing a .drv file to nix-shell replaces the need for -p
<clever>
das-g[m]: but you want to pass it a drv file, that has pipenv in its buildInputs
<clever>
das-g[m]: and do you really even need nix-shell, what are you trying to test?
<das-g[m]>
clever: Are there any pkgs.runCommand-based tests that showcase how to use that testing approach? (I guess without a VM, each test is responsible for cleaning up behind itself?)
<clever>
das-g[m]: the test is still ran in the nix sandbox, so nix cleans up anyways
<clever>
nix will run that shell code, with the given inputs, and the script must both create $out and exit with code 0
<clever>
the nixos tests, are just a giant wrapper, to automatically run qemu inside a runCommand i believe
<das-g[m]>
Would such a test also be placed in `nixpkgs/nixos/tests` or somewhere else in the tree?
<clever>
das-g[m]: i would probably just use the checkPhase of the pipenv package itself, rather then having its own derivation
<clever>
but then pip will depend on nix to build
reallymemorable has quit [Quit: reallymemorable]
<das-g[m]>
That's why I thought a nixosTest might be appropriate: The issue is about the integration between nix-shell and pipenv, not about one tool alone.
<clever>
das-g[m]: i think you want to investigate what was special about nix-shell that broke things, and set those env vars, without nix-shell
<das-g[m]>
Do I want that? I think I just want a mechanism in place that'd raise a flag when this kind of breakage occurs, even if it's due some different specialty next time.
<clever>
getting nix-shell working would be nicer, but is obviously more complex
reallymemorable has joined #nixos
<das-g[m]>
So I really want a test that checks whether "pipenv" works in "nix-shell", not one that checks whether "pipenv" works in whatever environment nix-shell happened to create last time that bug came up.
<clever>
yeah
<das-g[m]>
Any idea what causes nix-shell to access the net in my latest iteration? Shouldn't everything it needs already be in the closure (is that the right term?) that's being packed into its VM?
<clever>
das-g[m]: if you use nix-shell -p, it will generate a derivation that depends on pipenv and bashinteractive, and try to download it
<das-g[m]>
Ah, so I have to provide bashinteractive from the outside, too
<das-g[m]>
Would that suffice?
<clever>
it would also be simpler to not use -p
<clever>
instead, create a derivation that has pipenv in the buildInputs, and then use the .drvPath of that derivation
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JeKVV
andreas303 has joined #nixos
<ChengCat>
Hi, I am running into a problem when upgrading to NixOS 19.09. I got the error "error: attribute 'name' missing, at /nix/store/****/nixos/pkgs/stdenv/generic/check-meta.nix:70:52", but I can't find which 'name' is missing. '--show-trace' also doesn't seem to provide any obvious clues.
<ChengCat>
Does anybody know what may be happening here?
<ChengCat>
I tried to disable all my overlays, but the problem doesn't go away.
<clever>
ChengCat: that typically happens if you call mkDerivation and dont pass it a name
selfsymmetric-mu has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
mexisme has quit [Ping timeout: 240 seconds]
<ChengCat>
clever: Then it's weird that I have disabled all overlays. I am going to check all things that could indirectly call mkDerivation.
<clever>
ChengCat: --show-trace may give a hint, but the trace is in a wonky direction and can be misleading
<ChengCat>
clever: the trace given by --show-trace never touches my configuration files. it's weird
<clever>
ChengCat: but does it mention nixos options at any point?
felixfoertsch23 has joined #nixos
drakonis has quit [Quit: WeeChat 2.6]
<ChengCat>
clever: by grepping 'option' in the trace, I seem to have found the issue. Thank you!
felixfoertsch has quit [Ping timeout: 245 seconds]
phreedom has joined #nixos
<clever>
ChengCat: the issue, is that the --show-trace is the path that the lazyness was being forced out of things, not the path a value took to wind up somewhere
<{^_^}>
[mobile-nixos] @danielfullmer opened pull request #51 → device: Google Pixel 1 XL // google-marlin → https://git.io/JeKVK
<ChengCat>
clever: oh. i get it
selfsymmetric-mu has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
selfsymmetric-mu has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #73735 → pythonPackages.gpyopt: provide setuptools at runtime, needed by the p… → https://git.io/JeKVH
<wedens[m]>
clever: you mentioned building iso with nixos configuration earlier, so I thought you might be able to help me with this: I'd like to have a regular graphical nixos iso that also contains all buildtime and runtime dependencies of specific nixos configuration. basically I need to bootstrap machine from the image, but I don't know things like parition ids at the time of building the image. I don't need to boot into this
<wedens[m]>
configuration from the image
<samueldr>
hmmm... wondering if danielfullmer is on IRC :)
<clever>
wedens[m]: have a look at my justdoit.nix
<clever>
wedens[m]: the main one youll need to change is kexec.justdoit.device = "/dev/sda"; or nvme0n1
<clever>
rootDevice*
<wedens[m]>
clever: will I still be able to boot it as regular iso, not just mine configuration?
<clever>
wedens[m]: yeah, all justdoit.nix does is add a single bash script to $PATH, called justdoit
o1lo01ol1o has joined #nixos
<clever>
wedens[m]: you can still boot the iso like a normal nixos installer, and ignore the script if you want
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<clever>
wedens[m]: justdoit.nix will use target-config.nix when installing, so thats where you put your own config
wolfshappen has quit [Ping timeout: 240 seconds]
aw has joined #nixos
spacefrogg has joined #nixos
<wedens[m]>
I'm not sure I understand what configuration arg in release.nix does. is it just some additional configuration?
<clever>
wedens[m]: the configuration arg to release.nix, will add a nixos module to all of the ISO's its generating
<clever>
wedens[m]: and that module can be used to freely modify the iso image
<clever>
wedens[m]: in this case, you want to do: nix-build '<nixpkgs/nixos/release.nix>' -A something-graphical-iso.x86_64-linux --arg configuration ./configuration.nix
<clever>
and then configuration.nix should have imports = [ ./nix-tests/kexec/justdoit.nix ]; kexec.justdoit.rootDevice = "/dev/something";
wolfshappen has joined #nixos
<wedens[m]>
clever: will it include build time closure in the iso?
<clever>
wedens[m]: not currently, the iso will need internet access to complete the install
<wedens[m]>
is there anything I can do to copy build time closure to nix store on the iso?
<clever>
wedens[m]: you can also eval: import <nixpkgs/nixos> { configuration = ./other-configuration.nix; } and then add it to system.extraDependencies
<clever>
wedens[m]: but some parts of the config wont be pre-built, like uuid's, and it will need to build a small amount of things after booting
<lordcirth__>
clever, so I built the example.nix you gave me, with "nix-build '<nixpkgs/nixos>' --arg configuration ./example.nix", and it seems to have built a nixos filesystem tree, but not an actual image.
<clever>
lordcirth__: for example.nix, you need to add -A config.system.build.example
<clever>
lordcirth__: to select the result of make-disk-image
<wedens[m]>
clever: that's fine, I don't need it to be completely self-contained. it should just contain as much prebuilt derivations as possible
<lordcirth__>
I suspected so, but that failed. Probably just a version mismatch then, I'll sort it out
<lordcirth__>
The 'partitioned' argument has been changed
<clever>
lordcirth__: if partitioned = false; then grub may fail to install to the disk, causing some trouble booting
<lordcirth__>
clever, the argument doesn't exist anymore in 19.09 it seems, it's now partitionTableType ? "legacy"
<lordcirth__>
I just had to comment out 'partitioned' and it works
<clever>
lordcirth__: ah, if the default is legacy, then it should accept grub just fine
<clever>
partitionTableType = "none"; would fail the way i was thinking
growpotk- has quit [Ping timeout: 265 seconds]
<lordcirth__>
And now I have nixos.img, 2.0GB sparse, 942M real. Cool! Thanks for all your help!
lovesegfault has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #73735 → pythonPackages.gpyopt: provide setuptools at runtime, needed by the p… → https://git.io/JeKVH
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bcdarwin to master « pythonPackages.gpyopt: provide setuptools at runtime, needed by the package »: https://git.io/JeKwm
jumper149 has quit [Quit: WeeChat 2.6]
mexisme has joined #nixos
mudrii[m] has left #nixos ["User left"]
acarrico has quit [Remote host closed the connection]
mudrii[m]1 has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #73512 → [19.09] steam: use 32bit version of libva → https://git.io/Jeo2U
<{^_^}>
[nixpkgs] @jonringer pushed to release-19.09 « steam: use 32bit version of libva »: https://git.io/JeKw0
mexisme has quit [Ping timeout: 265 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
ChengCat has quit [Quit: Leaving]
lovesegfault has quit [Ping timeout: 245 seconds]
jluttine has joined #nixos
justan0theruser is now known as justanotheruser
endforma1 has quit [Quit: WeeChat 2.6]
o1lo01ol1o has quit [Remote host closed the connection]
<lovesegfault>
Can I specify a branch with fetchFromGitHub?
<lovesegfault>
cc. clever
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<lordcirth__>
lovesegfault, I believe 'rev = branchname' is what you want
<lovesegfault>
lordcirth__: That doesn't sound right, that means it'll break whenever the branch gets bumped, no?
<lordcirth__>
Well, that's what specifying a branch would do. What do you want to do?
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
<lordcirth__>
If you want the current latest of a branch, you want to specify that commit ID
felixfoertsch has joined #nixos
<lovesegfault>
lordcirth__: But the commit ID for the branch will not exist on master
<lovesegfault>
and I doubt Nix will go find the branch containing that commit hash, specially because theoretically there can be conflicts across branches IIRC
<lordcirth__>
A commit hash depends on the previous hash. A commit hash is therefore a complete, non-colliding definition.
kolbycrouch has quit [Remote host closed the connection]
kolbycrouch has joined #nixos
<lordcirth__>
That's why a rebase changes the hashes.
<lovesegfault>
so if I just specify that hash, fetchFromGitHub does the right thing?
<lordcirth__>
It should, yes. Try it
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<lovesegfault>
lordcirth__: Oh wow, looks like it worked!
<lovesegfault>
cool
<lovesegfault>
lordcirth__++
<{^_^}>
lordcirth__'s karma got increased to 2
<lovesegfault>
thanks :)
<lordcirth__>
you're welcome
<lovesegfault>
Hmm
<lovesegfault>
lordcirth__: Can you look at pkgs/misc/vim-plugins/update.py
<fuzen>
I am trying to package the ruby gem 'licensee' using nix. I imitated the sass package modifying the default.nix and the gem file, generating a lock and then running bundix. I am getting an error stating that `././gemset.nix` is not in path while using nix-build. Any guidance would be appreciated
<fuzen>
dminuoso, I enjoy nix until I have to write modules for dependencies, or I need to go and self update a long list of dependencies because upstream is a lot slower to update.
<laas>
does anyone here know how to use a custom kernel config?
lvmbdv has joined #nixos
mniip has joined #nixos
cfricke has joined #nixos
<laas>
I have read the code for kernelPackages, etc., read the wiki, but I can't find any solution
<dminuoso>
laas: What exactly do you want to do?
<laas>
I don't want to just make a patch with some small changes to the config, I want to specify everything myself
<dminuoso>
fuzen: Indeed, there are such downsides. In my case its not necessary because everything I need is already in nixos modules. :)
<lvmbdv>
Hi, I've recently started using NixOS for my workstation and just realized it doesn't source the .profile file on my home directory when I log in. Is there another mechanism for this?
<dminuoso>
fuzen: Im migrating our large and complex postfix setup to nix, and it's an absolute blast.
<laas>
I just want to minimize the amount of config options enabled
kolby__ has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
kolby__ has joined #nixos
bvdw has joined #nixos
musteresel has joined #nixos
civodul has joined #nixos
andreas303 has quit [Remote host closed the connection]
<musteresel>
Hi ... how can I access a variable set via "VARNAME" = "${some-dependency}/some/path"; in the attribute set of a mkDerivation call from within a nix-shell? E.g. I enter a nix-shell for the derivation in question (which builds fine), but I cannot access the variable somehow? echo ${VARNAME} is empty ... strangely though env | less shows the VARNAME with the correct value set.
nschoe has joined #nixos
inferencerules has joined #nixos
andreas303 has joined #nixos
<musteresel>
Oh my .. I think I've found the issue .. VARNAME is actually UNITTEST++_INCLUDE_DIR ... and this is not a valid shell variable name, thus it doesn't pop up there (but other programs, like env can of course access it)
cfricke has quit [Quit: WeeChat 2.6]
domogled has joined #nixos
musteresel has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<dredozubov>
`nix build nixpkgs.darwin.apple_sdk` works successfully and pulls the correct version(10.13), but `nixpkgs.darwin.apple_sdk.frameworks.CoreServices` tries to pull 10.12 and fails
noudle has joined #nixos
zupo has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
<raboof>
I like how 'nixos-rebuild switch' can update and switch without rebooting. Similarly, is it also possible to 'switch back' to a previous configuration without rebooting?
<dminuoso>
(Im in the spot where only activating both the updater and the daemon causes the home directory of that user to exist)
genesis has quit [Ping timeout: 252 seconds]
ng0 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.6]
ggpeti has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 114 commits to staging-next: https://git.io/JeK6A
<niso>
woffs: you could convert your mp3s to flac with ffmpeg
<niso>
woffs: erm wav
domogled has joined #nixos
nexgen has quit [Ping timeout: 250 seconds]
<woffs>
niso: yes, I can convert them and do wodim or cdrdao by cmdline, but I remembered there was a time there was a GUI which converted the MP3s automatically.
Makaveli7 has joined #nixos
<niso>
woffs: no idea, i don't use mp3, sry
lorimer has joined #nixos
ezemtsov has joined #nixos
psyanticy has joined #nixos
__monty__ has joined #nixos
<ezemtsov>
hi everyone :) A little question about nixos+systemd+shellScripts: I've created a wrapper for custom shell script and it works just fine in terminal. But as soon as I run it as systemd service, journalctl shows "/usr/bin/env" 'bash': No such file or directory error. What could be the reason?
<qyliss>
systemd services start with a nearly-empty PATH
<ezemtsov>
Is there any way to make bash availble to it?
<qyliss>
If you need bash, either put the full path in the shebang (if it's generated by Nix), or set path = with pkgs; [ bash ]; in the systemd service
<{^_^}>
[nixpkgs] @rbvermaa pushed to master « nixpart0: remove broken, fix build for (local) pykickstart dep »: https://git.io/JeKiY
<{^_^}>
[nixpkgs] @rbvermaa pushed to release-19.09 « nixpart0: remove broken, fix build for (local) pykickstart dep »: https://git.io/JeKiO
<bdju>
anyone have experience with the undervolting option? services.undervolt. I'm getting thermal throttling and hoping it can fix it but I'm not really sure what to set
o1lo01ol1o has joined #nixos
hmpffff has joined #nixos
jgt has quit [Read error: Connection reset by peer]
alexherbo2 has joined #nixos
jgt has joined #nixos
alexherbo2 is now known as alex```
Neo-- has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #71798 → vim update.py: allow different in and out files → https://git.io/Je0IN
<betaboon>
anyone has a suggestion how to deal with PRs that are building upon each other ?
<tilpner>
betaboon: PRs you are planning to open, or existing ones?
<betaboon>
tilpner: a mixture of the two.
<gchristensen>
if they cannot be separated, it should be one PR
<betaboon>
gchristensen: it's like this: i have a PR pending that ports the installer-tests to python. a PR that implements refind-bootloader with tests (which have to be changed as soon as the python port is merged). and currently I'm working on a third one, allowing EFI-boot for the installer-tests for first-boot.
<tilpner>
betaboon: Putting "This depends on #foo" into the description works, but if they are related one PR might make more sense
<tilpner>
betaboon: You can also put the blocked PRs into draft mode, and unlock them as their dependencies are merged
domogled has joined #nixos
<tilpner>
(Though that may cause people to underprioritise reviewing your RP)
<betaboon>
ouh i have never heard of the draft-mode. must have missed that change in github :)
<betaboon>
tilpner: if i go the "depends on #foo" route, would you suggest having that PRs branch, branch off of #foo branch ?
fusion809 has joined #nixos
drakonis has joined #nixos
drakonis1 has joined #nixos
<tilpner>
betaboon: It sounds sensible, but I haven't needed to do that
drakonis_ has quit [Ping timeout: 250 seconds]
<betaboon>
yeah me neither. its just this installer-test-python-port stuff that makes it a little complicated for me. as the efi-boot stuff completly builds on the python-port
<__red__>
Good Morning! Was there a nixos office hours last week? I've been unable to find the recording
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adisbladis>
__red__: No there wasn't one.
<__red__>
Boo :-)
<__red__>
thanks
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kolbycrouch has quit [Remote host closed the connection]
kolbycrouch has joined #nixos
<{^_^}>
[nixpkgs] @gnidorah opened pull request #73753 → openxray: make it work again → https://git.io/JeKMe
<lordcirth__>
Looks like the LXQT package has broken theming - the theme files have moved into a different derivation. Should that be a PR against a stable branch, as a bugfix, or just master?
<kahiru>
hi, could anyone help me with ruby packaging? I'm following https://nixos.wiki/wiki/Packaging/Ruby, but when I get to the build default.nix/build the package part, the build fails because the dependencies needed for C extensionss (the stuff from shell.nix) are missing and I'm having trouble providing them somehow
<CptCaptain>
The virtualbox service seems to be failing when using the default example
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<kahiru>
especially if I don't want to add a global override
<{^_^}>
Found in packages: framac, musl.dev, boomerang, glibc.dev, emscripten, glibc_multi.dev, glibc_memusage.dev
<fresheyeball>
g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.blueman.Mechanism was not provided by any .service files (2
<fresheyeball>
blueman-applet shows this error
rardiol has joined #nixos
<{^_^}>
[nixpkgs] @jonringer pushed commit from @dasJ to master « geoipupdate: Init at 4.1.5 »: https://git.io/JeKHZ
<dminuoso>
Is there an elegant way to conditionally append to a list? Or should I just do `f ++ (if foo then bar else [])` ?
<samueldr>
lib.optional and lib.optionals
<clever>
> lib.optional true 42
<{^_^}>
[ 42 ]
<clever>
> lib.optional false 42
<{^_^}>
[ ]
Neo-- has quit [Ping timeout: 250 seconds]
<clever>
> lib.optionals true [ 1 2 3 ]
<{^_^}>
[ 1 2 3 ]
fresheyeball has joined #nixos
<clever>
> lib.optionals false [ 1 2 3 ]
<{^_^}>
[ ]
<fresheyeball>
clever: I think we should add `sudo` to the upgrade commands in the manual
<dminuoso>
samueldr, clever: Perfect, thanks :)
<betaboon>
fresheyeball: in the manual there already is a note that channels are set per user and what that means :)
<fresheyeball>
betaboon: I know
<fresheyeball>
but many people (me) don't read all the long form copy when hunting for commands
<betaboon>
maybe that note should be at the top of the section xD
<fresheyeball>
I think the note should stay, but in practice these are commands run with sudo
<fresheyeball>
betaboon: better yet, lets explain it in 3 to 5 pages of detail. And just put a link to that document.
<dminuoso>
Unrelatedly, is there a common idiom how to name an nixos module if I have other internal helper modules? Would that be `modules/foo.nix` with `modules/foo/...` being the internal helper modules?
smatting has quit [Ping timeout: 240 seconds]
equivrel has quit [Remote host closed the connection]
<betaboon>
fresheyeball: hopefully all of that goes away with flakes at some point :)
<pistache>
dminuoso: modules/foo/default.nix and then modules/foo/..., I think
<o1lo01ol1o>
warning: unknown setting 'allowed-uris' didi this option go away on hydra?
equivrel has joined #nixos
maxdevjs has joined #nixos
<dminuoso>
pistache: Ah indeed, cheers. :)
chreekat has joined #nixos
kisonecat has quit [Ping timeout: 240 seconds]
<fresheyeball>
hmm
<fresheyeball>
Nov 19 09:59:23 dunlap systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
<fresheyeball>
Nov 19 09:59:23 dunlap systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
<fresheyeball>
Nov 19 09:59:23 dunlap systemd[1]: Failed to start Network Time Synchronization.
<chreekat>
What's the state of the art on functions for filtering source inputs to avoid gitignores, etc?
o1lo01ol1o has quit [Remote host closed the connection]
<chreekat>
adisbladis: cool, good to know, although it looks like cleanSource is all I really need at this moment
<chreekat>
(also good to know)
_0bitcount has quit [Quit: Leaving]
eacameron has joined #nixos
o1lo01ol1o has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<eacameron>
I have a command that internally runs `'nix' 'eval' '-f' '.' ....`. When I run `nix-shell --pure -A attr --run 'command'` I get `Process exited with code 1; 'nix' 'eval' '-f' '.' ...`. But if I do `nix-shell --pure -A attr` for an interactive shell and then run `command`, it works fine. Any ideas??
fresheyeball has joined #nixos
<fresheyeball>
well that was a rollercoaster for a minute
<fresheyeball>
but I am now booted into 19.09 with slim and everything looks to be back to normal
<fresheyeball>
and I have blueman.enabled = true;
shibboleth has quit [Quit: shibboleth]
simpson has joined #nixos
<simpson>
I'm considering a custom xsession with automatic login. The idea is to autologin a restricted user, and issue most management commands remotely. What's the recommended recipe these days, and what kinds of backup entry modes would be available if remote management fails?
wildtrees has joined #nixos
<fresheyeball>
Condition check resulted in Bluetooth service being skipped.
<clever>
simpson: when you configured slim for auto-login, it was on a timeout, so you could still interupt it and login as somebody else
<fresheyeball>
bluetooth.service still not working
<{^_^}>
[nixpkgs] @jonringer pushed commit from @marsam to master « watchexec: 1.11.1 -> 1.12.0 »: https://git.io/JeK7j
<gchristensen>
has anyone seen this error on NixOS? jni/libHSjniZSjni-ghc8.6.5.so (libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Operation not permitted)
fresheyeball has joined #nixos
<fresheyeball>
ok so I am at a loss with this one
<fresheyeball>
I googled about, and did a "cold power cycle" as one person suggested
<fresheyeball>
I saw someone say this was a linux kernel issue
<fresheyeball>
so I rebuilt nixos without the custom kernel version I was using
<fresheyeball>
ok so for some reason I thought I could use my motherboard's built in wifi antenna for bluetooth
<fresheyeball>
is that not tha case?
LysergicDreams has joined #nixos
<clever>
aranea: was it mounted when you ran nixos-generate-config --root /mnt/ ?
<aranea>
Not when I mounted it /first/, but it's mounted now, and the output I get when I rerun the tool suggests that it's updating that file.
<exarkun>
fresheyeball: wifi is not bluetooth, if that's what you're wondering
<clever>
aranea: that sounds normal
<Rovanion>
Stupid question: On a Debian system I configure nginx by editing config files in /etc/nginx. Do I still do that on NixOS or do I place that configuration in some nix expression?
<thoughtpolice>
gchristensen: Yes I have seen that. It means that your openssl was not compiled with NX-stack protection enabled, but was trying to get loaded by a library that does have it enabled
alex```5 has joined #nixos
<thoughtpolice>
NX stack is all or nothing: either everything in the address space has it, or nothing has it. Any mixture results in a load time failure.
<simpson>
clever++ thanks
<{^_^}>
clever's karma got increased to 247
alex``` has quit [Ping timeout: 240 seconds]
<thoughtpolice>
gchristensen: This same problem hit libressl a while back and I helped diagnose it. This may be a good starting point: https://github.com/NixOS/nixpkgs/pull/66454
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @dasJ to master « displaylink: Disable free space check »: https://git.io/JeKF7
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #73779 → jack2: 1.9.13 -> 1.9.14, fix build arm → https://git.io/JeKFp
drakonis_ has joined #nixos
<eacameron>
Is there a good reason that `NIX_PATH` is not part of the default set of env vars that are kept in a `--pure` nix-shell?
captn3m0- has joined #nixos
jgt1 has quit [Ping timeout: 245 seconds]
captn3m0 has quit [Ping timeout: 246 seconds]
<clever>
eacameron: you usually dont want to nest nix-shells
<clever>
eacameron: and there is no point in running nix-build in nix-shell
<niso>
clever: why don't you want to nest them? (it's super convenient)
<eacameron>
clever: True but what about `nix eval`? Like if you want `nix-shell --pure -p differentVersionOfNix --run 'nix eval ...'`
<clever>
niso: the 2nd shell usually unsets things the 1st shell set, so the 1st shell stops working right
<clever>
eacameron: if you only want a different version of nix, then you just want nix run nixpkgs.nix
<niso>
clever: thanks (too bad :/ )
ixxie has joined #nixos
W1lkins has joined #nixos
<eacameron>
clever: well, that was a contrived example TBH. I actually have some build-system like tool that first sets everything up in a nix-shell and then does further commands which might *happen* to be `nix-build`. But putting `--pure` on this broke some things and I'm trying to make sure that adding `--keep NIX_PATH` isn't a terrible idea.
h0m1 has quit [Quit: WeeChat 2.6]
<clever>
eacameron: oh, and for any kind of shared project, you shouldnt rely on the host $NIX_PATH
<clever>
eacameron: then every developer is testing with a different version of deps
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeKbf
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eacameron>
I think the only place <nixpkgs> is used is for bootstrapping a pin...
<eacameron>
But in general yes that is a danger.
h0m1 has joined #nixos
<clever>
eacameron: builtins.fetchTarball can bootstrap without <nixpkgs>
<eacameron>
clever: Yes I realize that as well :P
<eacameron>
clever: It's just that not all our code has been updated yet
<eacameron>
Oh that in builtins.fetchGit is... not good
<eacameron>
which is what we'd actually use
<clever>
id also recomend using a sha256 with builtins.fetchTarball
<clever>
with a sha256, it has the chance to use a binary cache
<eacameron>
Does it not require one??
<eacameron>
I've never used it without a sha
<clever>
the eval-time fetchers (fetchTarball, fetchGit) dont require a sha256
noonien has joined #nixos
<noonien>
hello folks!
<eacameron>
clever: eek
<eacameron>
but they do require git and zip to be installed globally !!
<noonien>
for some time now, when i do a `nix-rebuild switch --upgrade`, my display manager seems to get restarted, and it's really annoying
h0m1 has quit [Client Quit]
<noonien>
it didn't used to do this, i'm unsure what's causing it, perhaps because i have `boot.kernelPackages = pkgs.linuxPackages_latest;` or the nvidia linux driver enabled?
<noonien>
this might cause a dependency, or the displaymanager itself to be updated?
h0m1 has joined #nixos
<noonien>
is there a way to make it not restart though?
jco has quit [Quit: WeeChat 2.6]
<clever>
noonien: i think its something within dbus and gnome, that is crashing when a related service restarts
<clever>
noonien: youll need to check error logs to see what, i think it started with an A
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @mrVanDalo to master « nixos/syncthing: add versioning »: https://git.io/JeKb5
* gchristensen
's also curious why
fresheyeball has quit [Quit: WeeChat 2.6]
<rzixy>
Lol I don't know if it makes sense, but the second system is for torrenting or downloading anything from any site I don't fully trust. Then I can keep sensitive info on the main partition and rest easy at night
<rzixy>
I'm setting useOSProber. Should I set extraEntries?
fresheyeball has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
mounty has quit [Ping timeout: 265 seconds]
<fresheyeball>
clever: I am not seeing how to get the microphone to work
<fresheyeball>
I added
<fresheyeball>
extraConfig = "
<fresheyeball>
[General]
<fresheyeball>
Enable=Source,Sink,Media,Socket
<fresheyeball>
";
<fresheyeball>
and rebooted
<fresheyeball>
no luck
zupo has joined #nixos
<clever>
fresheyeball: did it work before?
<fresheyeball>
I have never used bluetooth and nixos before today
<{^_^}>
[nixpkgs] @veprbl pushed commit from @d-goldin to master « bitlbee: fixing test-suite for newer libcheck (#73752) »: https://git.io/JeKN3
<clever>
it might be that your bluetooth card doesnt support a mic
Chiliparrot has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
fendor_ has quit [Ping timeout: 240 seconds]
<fresheyeball>
hmm that makes sense
<fresheyeball>
this is an old as hell one I got from my neighbor
klntsky has quit [Remote host closed the connection]
<clever>
fresheyeball: one weird thing with bluetooth, is that its heavily hardware driven, the bluetooth dongle must support the protocols you want to use
Ariakenom has joined #nixos
klntsky has joined #nixos
<fresheyeball>
clever: you know how to restart pulse?
<{^_^}>
nix#3142 (by cleverca22, 5 weeks ago, open): NIX_BUILD_TOP not set correctly outside of nixos
<heath>
saw that
<exarkun>
fix not yet released?
<clever>
exarkun: fixed in nix master, not sure if its in a channel yet
<niso>
is there a way to keep the $src path after a build (to debug something)
zebrag has quit [Quit: Konversation terminated!]
<clever>
niso: nix will keep it, and you can use `nix-store --query --deriver` and then `nix-store --query --binding src` to go backwards from a built dir to its source
reallymemorable has joined #nixos
zebrag has joined #nixos
mananamenos has joined #nixos
drakonis_ has joined #nixos
peanutbutter144 has joined #nixos
<niso>
clever: and if it "has no environment binding named 'src'"?
* niso
wants to avoid another 30minute build
rzixy has quit [Ping timeout: 240 seconds]
<clever>
niso: thats also due to $NIX_BUILD_TOP being wrong, so the buildCommand in runCommand is missing
<clever>
niso: causing it to fall back to defaults, and trying to unpackPhase when it has no $src
rzixy has joined #nixos
<niso>
clever: means i've to fix NIX_BUILD_TOP and rebuild? (or are there better options? i'm tyring to find an executable which should be built in one package, however it isn't moved to $out (maybe on purpose - i didn't package it))
<clever>
niso: turning the sandbox off will fix NIX_BUILD_TOP
<niso>
clever: alright thanks, i'll give it a try!
Lysergic1reams has joined #nixos
LysergicDreams has quit [Ping timeout: 276 seconds]
rzixy has quit [Ping timeout: 265 seconds]
irl25519 has joined #nixos
<evanjs>
Okay so I’m now under the impression that #73225 isn’t solving the right bug, as it looks like this should _not_ happen on non-interactive terminals. Anybody have an idea what might be going on? Or if the same issue has happened elsewhere in the tree, lately?
<gchristensen>
eacameron: well that is excellent yes, but I was also hoping for the narative of it :)
<eacameron>
gchristensen: I don't have a blog so that'll be harder
<niso>
ah, btw, i got the GiteaPull-Hydraplugin running (however i'd like to test it a bit more before submitting a PR)
fresheyeball has joined #nixos
<fresheyeball>
options-to-docbook.xsl: No such file or directory
<fresheyeball>
AAA!!!
<evanjs>
*gets more antsy about setting up a hydra server* dangit clever >_> I'll just have to convert the ssh nix cache at work to a hydra instance instead.... (/just get hydra running on it)
<fresheyeball>
such a drama filled nix day
<red[evilred]>
I apparently missed it... I'm okay with that.
<fresheyeball>
anyone know how to get past this one? Everything is working now on 19.09, but the moment I try to enter a nix-shell it dies
<clever>
fresheyeball: what does?
<fresheyeball>
I figured out why atleast
<fresheyeball>
one of my projects is using `import <nixpkgs> {}`
<fresheyeball>
oh wiat
<fresheyeball>
no...
<fresheyeball>
got it
<fresheyeball>
nixops package caused it
<fresheyeball>
there is something weird there in our project
<fresheyeball>
we know about it, but don't know why yet
<fresheyeball>
other devs have had nixops fail to build
<fresheyeball>
clever++
<{^_^}>
clever's karma got increased to 248
<fresheyeball>
thanks for the help again
<raboof>
wow. I changed the `checkInputs` of a python package and was confused because it didn't trigger a rebuild. But this was actually correct, because I still had `doCheck=false`. Impressive!
<fresheyeball>
I honestly don't think I would be on nixos today without you
<clever>
raboof: yep, thats the only real difference between checkInputs and buildInputs, it only includes the checkInputs if doCheck == true
<raboof>
neat
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #73781 → Pantheon 5.1 (second set of updates etc.) → https://git.io/JeKAW
<{^_^}>
[nixpkgs] @Lassulus merged pull request #71429 → androidenv: Install platform-tools binaries on all OSes → https://git.io/JeBDG
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @kirelagin to master « android: Install platform-tools binaries on all OSes »: https://git.io/JeKx4
<tobiasBora>
Hello, I'm not sure to understand why, but I can't use virtualenv in NixOs. When I run "virtualenv -p python3 myenv && source myenv/bin/activate && pip install numpy", numpy fails to install... I even tried in a steam-run environment, same issue. Is it normal or not?
<simpson>
Sounds normal. You could instead directly add python3Packages.numpy to your inputs.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
justanotheruser has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @raboof opened pull request #73784 → inkcut: init at 2.1.0 → https://git.io/JeKpv
<betawaffle>
my only concern would be if they have funky hardware that has special needs
ckauhaus has quit [Quit: WeeChat 2.6]
<gchristensen>
yeah, maybe you can do a in-memory boot and poke all the hardware bits and see if there are probelms
<nomeata>
Hi! I have a strange thing happening here. If I run `nix-shell $(nix-instantiate shell.nix)` I get dropped into a shell (all dependencies are there), but if I run `nix-shell shell.nix`, it tries to build some dependencies. My understanding says that these two commands should do the same, but for reason something happens differently. Any idea what might be causing this?
<betawaffle>
that's another thing... i've got no way (that i know of) to get access to the boot environment at all
<gchristensen>
oh interesting
<betawaffle>
like i wouldn't be able to see what i'm doing
<gchristensen>
there is probably a UART ... :)
<betawaffle>
yeah, maybe if i open up the box...
<clever>
nomeata: nix-shell sets an env var, and lib.inNixShell uses that env var to detect nix-shell
<clever>
nomeata: that can cause default.nix files to behave differently, which is why i avoid using that
<gchristensen>
I think it would not be smart to try to do it without access to the boot env
<nomeata>
That sounds likely… how would I set that variable with `nix-instantiate`, so that I can diff the derivations?
<betawaffle>
i'm also not sure i'm ready to give up the easy-to-use web interface and such
<gchristensen>
a reasonable concer
<clever>
nomeata: export IN_NIX_SHELL=impure
<nomeata>
thanks! I think I found the culprit
LysergicDreams has quit [Ping timeout: 265 seconds]
mananamenos has quit [Remote host closed the connection]
Jackneill has joined #nixos
<betawaffle>
btw, i managed to get nix set up on catalina
noudle has quit []
<betawaffle>
i set up a synthetic.conf entry, and an fstab entry for an apfs volume i created specifically for nix
<mananamenos>
hi, i can't execute this command `sudo cachix use all-hies`. I get this error: *Could not install NixOS configuration to /etc/nixos/ due to lack of write permissions.*
<sondr3>
betawaffle: do tell if you figure something out with the Synology, I have one laying around basically bit rotting away here
kleisli has quit [Remote host closed the connection]
<gchristensen>
sondr3: you could mail it to me =)
kleisli has joined #nixos
<betawaffle>
sondr3: important data on it?
<sondr3>
nah, a bunch of TV shows, documentaries and movies I love
<sondr3>
so depends on the definition of important
<betawaffle>
>= annoying to lose
<betawaffle>
i think i'll need to get my nixos router in good shape before i attempt something so heroic
<sondr3>
fairly, I'd just use it as a NAS again regardless but I want to use NixOS for it, I only access it by SSH or mounting it remotely
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sondr3>
that'd be cool, my #1 thing on my TODO is converting my PiHole Raspbian install to a PiHole NixOS machine
<sondr3>
and my Linode... so much on my todo
<betawaffle>
is there a pihole module for nixos yet?
<betawaffle>
yeah, i've got a packet machine i need to use nixos for, rather than coreos
<sondr3>
nope, no PiHole (yet), that too is on my todo, lol
acarrico has quit [Ping timeout: 252 seconds]
LysergicDreams has quit [Ping timeout: 265 seconds]
LysergicDreams has joined #nixos
<betawaffle>
the next most important thing on my todo list is to use the nixos router for a dhcp and dns server, rather than this synology. epic laziness right here
<betawaffle>
i probably didn't tell you about the cool stuff i'm already doing with my nixos router
<sondr3>
what kind of router is this? I just have a Asus one running the Asuswrt-Merlin firmware, works fine for my needs
<betawaffle>
i've got at&t fiber, and they give you that dopey residential gateway that's supposed to sit between you and the optical terminal
<betawaffle>
apu2d4
<betawaffle>
from pc engines
<betawaffle>
it's rad
<gchristensen>
that makes a great router
<sondr3>
lmao, that's quite a bit more powerful than my router
<betawaffle>
so anyway, this router has three ports, so i've got the the ONT plugged into one, LAN into another, and the dopey residential gateway into the third
<betawaffle>
(i'm using nftables, because i'm a masochistic rebel)
<gchristensen>
it seems likenftables is nice?
<betawaffle>
yeah, i like it. really would like it better if i had 1) syntax highlighting in my editor, and 2) a nixos module for configuring it in a fancy way
<sondr3>
damn, these APU machines look really great, I want one
<betawaffle>
so anyway, that nftables magic forwards the EAPOL traffic between the ONT and the AT&T router, such that the ONT thinks i'm the 802.1x device it expects
<gchristensen>
sondr3: they are =)
<gchristensen>
I think half of #nixos-on-your-router uses it lol
<betawaffle>
i just wish at&t would let me authenticate directly, rather than MitMing their auth :P
lovesegfault has quit [Ping timeout: 240 seconds]
<betawaffle>
all other traffic is blocked between them and their precious residential gateway. bwahahaha
<gchristensen>
haha
shibboleth has quit [Quit: shibboleth]
kisonecat has quit [Ping timeout: 240 seconds]
<betawaffle>
i haven't figured out the right set of incantations to get my internet to come back unattended after a power outage though
<betawaffle>
there's some dance of bouncing the ports to get the router to re-auth
magneticduck has quit [Remote host closed the connection]
<betawaffle>
i usually just unplug and replug things until it works again
chpatrick has joined #nixos
<betawaffle>
but i know there's got to be a way to do it in software
<chpatrick>
hey, is there a way to get something built on hydra without making it a top-level package? I'd like to build blender with CUDA since it seems like a common case but currently you need to build it from source
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed to staging « jack2: 1.9.13 -> 1.9.14, fix build arm »: https://git.io/JeKhe
<sondr3>
chpatrick: AFAIK you could make your own NUR repository and use Cachix to host the package, but I haven't used it myself so not really sure how it works
<chpatrick>
sondr3: I think ideally it should be built for everyone since it's a pretty big package and I would imagine the majority of people using it would want CUDA support
<samueldr>
wondering if it's as simple as a licensing issue here
<gchristensen>
niksnut: any opinions on building blender with CUDA in hydra?
kisonecat has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<eyJhb>
gchristensen: sounds awesome
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #72774 → nixos/libinput: apply options to all device types → https://git.io/Je28H
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeKhZ
<eyJhb>
Time to pick out DisplayLink and see if it works...
nomeata has quit [Quit: Client exiting]
Jackneill has quit [Remote host closed the connection]
aveltras has quit [Quit: Connection closed for inactivity]
<Dandellion[m]>
arc: I'm geting EDU's from you at least, maybe you could reply to one of my messages in an attempt to trigger the other servers here to notice I'm alive?
<arcnmx>
dandellion: I don't get it but hi
sondr3 has quit [Quit: WeeChat 2.6]
cosimone has quit [Quit: Quit.]
fendor has joined #nixos
kisonecat has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #73785 → [19.09] nixos/libinput: apply options to all device types → https://git.io/JeKhl
<Dandellion[m]>
arc: Thanks, looks like I'm slowly coming back
__monty__ has quit [Quit: leaving]
<eyJhb>
Well, looks like I won't be testing DisplayLInk tonight.. Damn you VBox
<Dandellion[m]>
arc: Basically a netsplit if you're familiar with irc terminology
<{^_^}>
[nixpkgs] @0x4A6F opened pull request #73787 → gobi_loader: init at 0.7 → https://git.io/JeKhu
zebrag has joined #nixos
laerling has joined #nixos
laerling has quit [Client Quit]
kleisli has quit [Ping timeout: 240 seconds]
laerling has joined #nixos
<ornxka>
broken = true;
<ornxka>
how do i fix this
<gchristensen>
ornxka: that means the package is known to not build or work, so the fix is to remove that line and try building it, and then fixing whatever is broken
hmpffff has quit [Quit: nchrrrr…]
kleisli has joined #nixos
<{^_^}>
[nixpkgs] @eonpatapon opened pull request #73788 → nixos/nextcloud: add occ in path of nextcloud-setup → https://git.io/JeKh6
o1lo01ol1o has quit [Remote host closed the connection]
<rizary_>
beside `nix-store --delete`, how can I delete my package from nix store? I run `nix-build -A` for my package, and it doesn't rebuild even after I changed the source code for some reason.
<rizary_>
so I want to remove it and rebuild it again
akaWolf has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #73790 → Various GNOME leaf package updates → https://git.io/JeKhA
<worldofpeace1>
gchristensen: about that idea for that command you showed me `guys`, does nixbot support PM's? (maybe a question for infinisil )
<infinisil>
Yup, the `,expand` command already works like that
<worldofpeace1>
hmm, I guess the only question I have left is how to do it :D
morgaine[evilred has quit [Quit: Idle timeout reached: 10800s]
reallymemorable has quit [Quit: reallymemorable]
<ornxka>
https://nixos.wiki/wiki/Qt#qt.qpa.plugin:_Could_not_find_the_Qt_platform_plugin_.22xcb.22_in_.22.22 how do i fix this
<ornxka>
it says i will need to use wrapQtAppsHook
<infinisil>
worldofpeace1: I haven't implemented `,guys` yet :)
<infinisil>
Kind of low on time rn
knupfer has quit [Ping timeout: 276 seconds]
<infinisil>
Soon will though
shibboleth has joined #nixos
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
erictapen has quit [Ping timeout: 240 seconds]
<ornxka>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in " blah blah Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx
<ornxka>
what in the absolute heck
<ornxka>
i dont even have wayland installed why can it find wayland but not xorg
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
fendor has quit [Read error: Connection reset by peer]