<slabity>
jlv: Depends on the repository. I don't think there's a specific URL format
<jlv>
slabity: It's a third party repository
<slabity>
jlv: Depends on the source
2019-08-20
<slabity>
Would it be useful to include a list of reasonable defaults for commonly used block drivers? It would make it easier to boot in the event of a hardware change
<slabity>
That explains why it still happened with botting in copytoram mode
<slabity>
Ah, so that would mean 'usb_storage' module only gets added because the install disk is mounted from a USB.
<srhb>
slabity: I believe the trick is something like loading a metric ton of modules, then traversing the available modules' pseudo file systems to correlate with active hardware, then selecting some subgroup of that.
<slabity>
I'm assuming some modules are added by default for booting from various devices. I'm curious why the `uas` driver isn't included in that list.
<slabity>
srhb: Yes
<srhb>
slabity: Do you mean the list generated by nixos-generate-config?
<slabity>
It looks like it adds 'usb_storage' module by default. Is that correct? If so, is there a reason we don't include 'uas' module as well?
<slabity>
Where does `boot.initrd.availableKernelModules` initially get generated from?
2019-08-19
<slabity>
freeman[m]: You wouldn't really install a library directly in a user environment. Typically you would add it to whatever nix script you were building with.
2019-08-16
<maralorn>
slabity: I often use --option tarbal-ttl 0 instead of clearing the cache.
<maralorn>
slabity: fetchGit also uses tarball-ttl. (Which is not apparent from the naming I think.)
<slabity>
Except maybe the mozilla one...
<slabity>
That's fine. The git repos I'm pulling are less than 1MB in size
<slabity>
tilpner: Wouldn't it only check for git changes though?
<slabity>
Though I think I'll change it all to use fetchGit instead
<slabity>
Thanks clever++, tilpner++. Killing the cache worked perfectly
<clever>
slabity: if the url hasnt changed, it will take up to 1 hour for it to check for changes
<slabity>
So I have an overlay that I pull in with fetchTarball. How do I get Nix to update the tarball used? There are changes in the overlay that are not getting pulled.
2019-08-14
<slabity>
Tox seems to build fine for me
<slabity>
exarkun: Looks like the package is trying to write into it's install location
2019-08-11
<slabity>
Strange. My BIOS says the LAN's MAC Address is 'N/A' - I really hope that doesn't mean it's borked
<slabity>
Maybe it's disabled by default for some reason
<slabity>
Unfortunately power cycling doesn't seem to be doing much. Let me see if there's something I need to enable in BIOS
<clever>
slabity: after a full power cycle, the card returned from beyond, and never did it again
<clever>
slabity: just once, the ethernet in my laptop failed hard, dmesg spewed errors, and after a soft reboot, lspci claimed the device didnt even exist
<slabity>
clever: Well it's soldered to the motherboard, so...
<clever>
slabity: double-check that the pci device is seated properly?
<slabity>
clever: Nope. Only the wireless controller shows up
<clever>
slabity: what about lspci?
<slabity>
That's weird. The NIC isn't even being detected in dmesg
<slabity>
spahlerite: Not sure. It's an Intel chip, so I'd assume so, but it's not even showing up in lspci. I am already using linuxPackages_latest
<sphalerite>
slabity: is it known to work with linux generally? Maybe try using linuxPackages_latest?
<slabity>
Hey guys, I just installed NixOS on a new Ryzen3+x570 system, but my ethernet controller isn't being seen. Only the wireless adapter. Any ideas how to find out what's wrong?
2019-07-29
<slabity>
There's a script on nixpkgs that updates the servers I think
<slabity>
arianvp: I highly recommend using steam from master, as you'd want to stay as upstream as possible.
<slabity>
Unfortunately I don't know enough about MBR booting to help.
<slabity>
Okay, that definitely sounds like it can't find the bootloader
<slabity>
What happens if you boot without the USB?
<slabity>
Google is using Nix now???
<slabity>
damesca: "Fails to boot whatsoever" is confusing. Without knowing what is actually working it's difficult to debug
<damesca>
slabity: uh I think it works. It tries to boot from hard drive, usb, cd etc. It boots the USB installer fine. But after using nixos-install to put it on the hdd, and removing the USB, it just fails to boot whatsoever.
<slabity>
damesca: Does the bootloader work? Or does it literally just go to bios?
<slabity>
damesca: Is it not detecting the disk at all? Can you see it in /dev/disk?
<slabity>
Though it looks like I may have found our how to do so on the wiki
<slabity>
manveru: I need to have a text file written with the UUID inside of it, but I'd prefer to generate it from a string rather than randomly
<manveru>
slabity: what do you need it for?
<slabity>
I don't suppose there's a way to generate a UUID in Nix from a seed, is there?
<Taneb>
slabity: ah,t here's also "builtins.toXML"
<slabity>
Taneb: Thanks, that should be good enough to hack something together
<yip>
slabity:I also would like to refer to srcs.nix from the one referenced by <nixpkgs>.
<slabity>
Let me know if you have any more issues. I'll respond... Eventually?
<yip>
slabity:yes, I am not stuck anymore, but still somewhere in the woods ;)
<slabity>
yip: Awesome. Hopefully that gives you some leads to work with.
<yip>
slabity:OK, I get it.
<slabity>
And the result of a makeScope call results in the following variables being exposed: `newScope` `callPackage` `overrideScope` `overrideScope'` and `packages`
<slabity>
yip: Specifically, `kdeApplications = lib.makeScope libsForQt5.newScope packages` where `packages` is defined in that file
<slabity>
You have `super` in an overlay, which should give you everything in Nixpkgs. Is the symbol not there?
<yip>
slabity: the symbols I want to use would not be in scope in an overlay.
<slabity>
I don't think so. You can pretty much just make an overlay with just the changes you want
<yip>
slabity: in particular the problem is that custom callPackages are being used in the file referenced earlier, so it seems I would then have to copy paste all that?
<slabity>
yip: Use an overlay
<yip>
slabity: I now see about the same as you do.
<slabity>
yip: Can you send the results of 'nix-channel --list' and 'sudo nix-channel --list'?
<slabity>
I'm running unstable. But I'd be surprised if there was that many newer variables between 19.03 and unstable
<yip>
slabity:I do run 19.03, so perhaps that matters?
<slabity>
yip: For me it adds 10633 variables.
<yip>
slabity:same result
<slabity>
You may need to replace '<nixos>' with '<nixpkgs>' if you need to
<slabity>
I did, I get the correct output
<yip>
slabity: did you try that?
<yip>
slabity: it doesn't do that for me.
<slabity>
yip: What do you mean you see 'all-packages.nix'? `nix repl '<nixos>'` and then typing `libsForQt5` shows a bunch of Qt and KDE derivations
<slabity>
yip: I was incorrect. There's two `overrideScope` functions, and one of them is deprecated because it doesn't fit the same arg conventions
<slabity>
Nevermind, I was looking at a different thing
<slabity>
Besides, makeScope is deprecated. Use overrideScope
<slabity>
makeScope is an alias for (newScope: f)
<yip>
slabity: postgresql has 2500 pages of documentation.
<slabity>
yip: That's pretty common feeling in many community-run projects.
<slabity>
Couldn't figure out how KDE determines which shell to use though, so I stopped
<slabity>
Ah, yea I was doing a similar thing trying to add plasma-mobile apps
<yip>
slabity: not custom, just one that is not currently being built by nixpkgs, but is in the src.nix list.
<slabity>
yip: You're trying to add a custom KDE service?
<slabity>
I don't suppose it's possible your /tmp directory is full alienpirate5?
<slabity>
The only thing I know that causes it is when it's unable to write to disk
<slabity>
I'm just not sure how exactly to help. A virtualenv failing to be created sounds... Strange...
<slabity>
It's okay, I'm on matrix so it did ping me
<ashkitten>
though it doesn't ping slabity, because that's part of the "long message"
<slabity>
Failed to create virtualenv? That doesn't sound like a cross-compiling error. Can you build it fine normally?
<alienpirate5>
slabity: only polkit
<slabity>
alienpirate5: Then you have a lot more than polkit depending on spidermonkey
<slabity>
So what's a good fix for the repo? Is it a GTK bug or can we add that var to the firefox wrapper?
<slabity>
I won't be satisfied until my driver modules are completely written in JS
<slabity>
That's different - Running the linux kernel in a JS environment
<slabity>
worldofpeace: I tried to traverse it in the past, but after that I'm pretty sure only the actual developers know how it's organized
2019-07-25
<slabity>
Looking at stdout it may be caused by the exquilla extension and my exchange server
<slabity>
thunderbird 60.8.0 - Correct?
<worldofpeace>
slabity: I can't reproduce thunderbird not starting
<slabity>
Looks like a lot of builds are broken on my machine: `riot-desktop` `virt-manager` `freecad` `evince` `libreoffice` and `wireshark-qt` all included
<slabity>
Let me know if there's any information I can provide that can help debug
<slabity>
Okay. As long as it's a known issue. I can easily revert profiles until it's fixed
<maralorn>
Hm, so slabity. I am not skilled enough to help you. But I can ensure you, you are not alone with your bug. The complaint came up at least twice today already.
<slabity>
I've tried updating thunderbird and firefox and it didn't seem to work
<slabity>
Firefox's file error is `No such interface “org.freedesktop.portal.FileChooser”` which brings up a lot of results in google that say to install xdg-desktop-portal... But that is already running
<maralorn>
slabity: So maybe bump both? system-profile und user environment?
<slabity>
Strange thing is that those apps aren't even on my system-profile. Just my user environment
<slabity>
For some reason thunderbird and libreoffice just seg-faults, so no useful error information either :/
<slabity>
gchristensen: Yea, I did. Reverting to my previous profile fixed the issue, but my most recent profile always has those issues.
<slabity>
Updated my system today and now thunderbird won't start and firefox won't allow uploading files. Libreoffice is failing too. Did something major change in unstable/master?
2019-07-24
<slabity>
Yea... But I don't want to need to update the sha256 each time upstream changes, which is the issue I'm trying to avoid :/
<slabity>
The problem with fetchTarball is that it redownloads each time it evaluates
<slabity>
vaibhavsagar: Yea, I know it's impure
<slabity>
pie_: Not sure what to do about that
<vaibhavsagar>
slabity: you want to declaratively set something that changes?
<pie_>
slabity: insmod complains about unknown symbol in module
<slabity>
Is there any way to declaratively set the nixpkgs channel without needing to redownload the entire thing each time I run an update? Or need to change the sha256 every time upstream updates
<slabity>
pie_: Check with `lsmod`, and if it's not loaded then try to manually load it with `modprobe`
<slabity>
pie_: I believe the modules are automatically loaded, unless the kernel itself was updated. In which case you will need to reboot
2019-07-22
<slabity>
aminechikhaoui++
<slabity>
animechikhaoui++
<slabity>
Looks like it worked. Thanks for the help
<slabity>
Jeez, I have like, 15 terminated EC2 instances in my console now from all my attempts :P
<slabity>
aminechikhaoui: Did not know that was possible. I'll try it, but I still want to know how to attach volumes properly. It looks like it never gets formatted and initd dies when trying to mount it
<aminechikhaoui>
slabity I think the steps are increase the volume size using the aws cli or console and then reboot
<slabity>
aminechikhaoui: That would be simpler, though I cannot find any example demonstrating that.
<aminechikhaoui>
slabity why not just increase the root volume size
<slabity>
aminechikhaoui: The store gets filled up quickly, so I wanted it to be separate from main storage. I do the same on all my desktops
<aminechikhaoui>
slabity defining a filesystem for /nix/store is a bit unusual
<slabity>
It looks like the volume was not formatted, despite having `autoFormat = true;` in the filesystem config
<slabity>
aminechikhaoui: Not sure. The latest one that NixOps looks for I'd presume?
<aminechikhaoui>
slabity oh I see, that's a bit odd, what ami/nixpkgs version are you using
<slabity>
aminechikhaoui: Looks like adding an EBS volume killed it with a kernel panic. I'll see if I can figure out why
<slabity>
animechikhaoui: One moment. Destroying and redploying before I attempt anything else
<aminechikhaoui>
slabity that shouldn't happen, anything interesting in nixops show-console-output of the machine
<slabity>
Looks like NixOps successfully deploys via SSH, but when it tries to reboot it just hanges for `waiting for the machine to finish rebooting`
<slabity>
Do I need to manually enable ssh on a NixOps+EC2 system for it to work after a reboot?
<slabity>
gchristensen++
<slabity>
gchristensen: Thanks.
<slabity>
Other than the PR I'm unsure of where to look
<slabity>
Does anyone know whether the 'Flakes' RFC is being developed on? I'd like to help contribute if possible
<slabity>
What is the status of this 'flakes' proposal? I really like the concept and want to move my modules over to using it.
2019-07-19
<slabity>
I wonder how difficult it would be to make Windows app derivations using wine and mono
<slabity>
Mono?
<slabity>
A powershell stdenv sounds awesome...
<slabity>
wut
2019-07-10
<slabity>
Escape it with a backslash '\ '
<{^_^}>
slabity: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
,libraries slabity
<clever>
,nix-shell slabity
<slabity>
Or just `nix-env -iA gcc`
<slabity>
Looks like you can just use the package `gcc`: `nix-env -F '<nixpkgs>' -iA gcc`
<slabity>
,locate gcc
<slabity>
Does anyone have NixOS working with bachefs? I'd like to try experimenting with it
<slabity>
Check out the `boot.initrd.*` options available
<slabity>
alexarice: You will need to set up your initrd to do that.
<slabity>
I'd definitely do that
<slabity>
Oh neat
<slabity>
No idea
<slabity>
I wonder if people actually do that
<slabity>
:P
<slabity>
Make the overlay a derivation?
<slabity>
Except it's volatile and doesn't tell you errors half the time
<slabity>
Well that's better than mine. We literally made our own shell.
<slabity>
Oh
<slabity>
You could always make the certificate a derivation itself that your work derivations take as input
<slabity>
Anyone with access think they could take a look at #63339 - It's a pretty simple change that fixes a configuration option: https://github.com/NixOS/nixpkgs/pull/63339
2019-06-25
<slabity>
I actually would like to know that answer as well.
<clever>
slabity: did you check `systemctl status name.service` ?
<slabity>
clever: Yea, I set it to enabled in my deployment file. But logging into the system shows that it's not running
<clever>
slabity: all services must be defined in the nixops deployment files
<clever>
slabity: nixops will also ignore the remote configuration.nix file
<slabity>
clever: That explains that. But I'm pretty sure my configuration isn't taking affect. I enabled a service (gitea) but it doesn't seem to be running
<clever>
slabity: nixops will never touch configuration.nix
<slabity>
I deployed a system with NixOps as an EC2 instance, but it doesn't seem to have the correct information in my `configuration.nix`. It only has `ec2.hvm = true` - Is there something else that needs to be done to get this working?
2019-06-24
<monokrome>
slabity: Yeah, but if I took the res down, disabled DP1-2, then bring the res of DP1-1 back up, it works?
<slabity>
So turning everything off except DP1-1 still results in the CRTC issue?
<slabity>
Maybe see what happens if you leave out `--rotate left` as well
<slabity>
monokrome: Do you still get the issue if you leave out the `--right-of DP1-1`?
<slabity>
samueldr: Yea, that's actually a common issue because GPU manufacturers don't specify the type of setup to provide 'N-monitor' support
<samueldr>
oh, slabity, you just made me realise that was it, using too many outputs, not a too large area; I have this card with 4 outputs, but it can only drive 2 at once :/
<slabity>
Can you run an `xrandr --prop`?
<slabity>
If you only have 1 CRTC that can handle a specific encoder type that both eDP and DP uses, then configuration will fail
<slabity>
It's possible that you don't have enough CRTCs to run the configuration you want
<slabity>
CRTC is the scanout controller responsible for timing and resolution
<codedmart>
slabity: OK so not sure if this is helpful, but I was using xsettingsd. I took that out and tried using gsd-* settings daemon stuff from gnome. Everything is tiny then. UI, fonts, cursor.
<fdsffgdd>
slabity: thank you for the help. I can now confirm that the time it worked it was because of xwayland which means that I still need to figure out how I can run firefox under wayland natively (sway). (I am NilsIRL)
<slabity>
codedmart: Sorry. I ran out of ideas.
<codedmart>
slabity: Nope intel
<slabity>
codedmart: Do you happen to use an Nvidia card?
<codedmart>
slabity: Doesn't seem to have had any effect.
<slabity>
codedmart: Instead of `Xft.dpi`, can you try `*.dpi`? Then run the `xrdb` command to reload it and then run the apps
<codedmart>
slabity: Nope if I run that from command line then run nautilus the cursor is still really small.
<slabity>
Does that do anything?
<slabity>
Can you try running `xrdb ~/.Xresources` and then run your programs?
<slabity>
Other than Xresources? I don't think so...
<nilsirl[m]>
slabity: going to restart into nixos to try and figure it out
<slabity>
colemickens: displayManager options are all exposed behind `services.xserver`.
<slabity>
colemickens: Something like `services.xserver.enable`, except for wayland.
<codedmart>
slabity: Oh I think we are confused here. I am having the cursor size problem.
<nilsirl[m]>
slabity: we're 2 person
<slabity>
Now I'm a bit confused. This is Xmonad, but you want to run firefox-wayland in it? Using xwayland?
<codedmart>
slabity: This is in xmonad not using wayland.
<slabity>
I'm not really sure what else to do. NixOS does not have the best wayland support at the moment