<{^_^}>
[nixpkgs] @jfroche opened pull request #100455 → [20.09] zope_filerepresentation: fix test → https://git.io/JTmIj
hashenas has joined #nixos
mog has quit [Ping timeout: 244 seconds]
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @maralorn opened pull request #100456 → treewide: De-inline uses of lib.boolToString → https://git.io/JTmL0
grant has quit [Remote host closed the connection]
<JJJollyjim>
is it possible to use systemd-boot without having all my kernels/initrds on FAT?
hashenas has quit [Quit: Leaving]
<JJJollyjim>
or do i need to switch to grub for that
<JJJollyjim>
(asking both because of partition space issues and because I don't trust non-journaled filesystems with anything)
freezeboy has quit [Remote host closed the connection]
<aasg>
You'd have to switch, afaik
dominikh1 has joined #nixos
ManiacOfMadness has joined #nixos
<g-w1>
I am having trouble with fish. when i try to call command-not-found (type invalid command) i get this error:
<g-w1>
DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13.
<g-w1>
i looked this up and didn't find anything helpful
<{^_^}>
[nixpkgs] @jonringer pushed commit from @jfroche to release-20.09 « zope_filerepresentation: fix test »: https://git.io/JTmmf
acarrico has joined #nixos
bbarker has quit [Remote host closed the connection]
<g-w1>
I am trying to intsall home manager and getting this error when i try to install error: attribute 'formats' missing, at /nix/store/xjm3gk5jk6m3wa00dkg6scc31x6xqjxg-home-manager/home-manager/modules/programs/pet.nix:9:12
<g-w1>
i just ran nix-shell '<home-manager>' -A install
<g-w1>
i was on wrong home manager version
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #100459 → unqlite: init at 1.1.9 → https://git.io/JTmm7
<bbigras>
g-w1: did you try to logout and log back in?
<bbigras>
or there's a file you can source I think
<g-w1>
i tried both
<g-w1>
ill try tmrw again
<bbigras>
oh. good luck then
mkaito- has joined #nixos
echelon has joined #nixos
growpotk- has quit [Ping timeout: 258 seconds]
minicom7 has joined #nixos
Czen1 has joined #nixos
dredozubov has joined #nixos
mkaito has joined #nixos
mkaito is now known as Guest56248
<Orbstheorem>
Is anybody using qtcreator on nixos ?
<Orbstheorem>
I'm trying to play with qtquick (https://gitlab.com/roosemberth/playground-qtquick-testha). So far I've managed to build a simple application using nix-build. In my shell I've added qtcreator, but when I try to work on the interface using qtcreator, I get errors like `QML module not found (QtQuick.Window)` and `Cannot load library [...]/libwindowplugin.so: undefined symbol[...]`.
<{^_^}>
nix#1880 (by ghost, 2 years ago, open): How to manually replicate/reproduce/obtain the sha256 hash specified in Nix with fetchgit or fetchFromGitHub?
ekleog has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
domogled has joined #nixos
palo1 has joined #nixos
domogled1 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
domogled has quit [Ping timeout: 260 seconds]
domogled1 is now known as domogled
cantaloupe has joined #nixos
cantaloupe_ has joined #nixos
buovjag1 has joined #nixos
<cantaloupe_>
I'm trying to run an application that's not available in Nixos channels and depends on gtk and gsettings-schemas
<cantaloupe_>
when the app tries to display a file chooser it dies with "GLib-GIO-ERROR **: 18:19:37.083: Settings schema 'org.gtk.Settings.FileChooser' is not installed"
<cantaloupe_>
I've seen this is a common problem but I haven't been able to find out how to correctly link GTK into my environment
<cantaloupe_>
Can anybody give me a nudge in the right direction?
<eyJhb>
Yeah, I added it because of my LUKS Key being on a ZFS mount
<eyJhb>
And unstable of course
<Reventlov>
Hey there.
<hugolgst>
it's so annoying I can't find the solution for that
<Reventlov>
I have a problem with my thunderbird: when I launch it, all the fonts are correctly set (sway), but If I unplug my external screen and relaunch it, all the fonts are broken
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hugolgst>
I'm going to try preOpenCommand
<Reventlov>
(i'm using sway)
<Reventlov>
any idea what could be the cause of this behaviour ?
<Reventlov>
(font being broken means they are too big, like twice too big)
<{^_^}>
[nixos-homepage] @garbas merged pull request #615 → made the complete dependencies paragraph in features.tt a lot clearer for new users → https://git.io/JTTZY
<{^_^}>
[nixos-homepage] @garbas pushed 3 commits to master: https://git.io/JTm7l
zacts has joined #nixos
malook has quit [Remote host closed the connection]
<max_alpine>
Hi there! So I’m running nix on alpine and if I do nix-shell -p gtkwave and then launch gtkwave it has no icons (placeholders instead), what gives?
<betaboon>
zimbatm: i got a question regarding terraform-nixos, I'm trying to integrate a private cachix binary-cache but i dont know what to look for. in the documentation there is just a note on usage of binary caches that "might be suprising" but i don't realy undestand what i would have to do to get it working. any pointers would be highly appreciated
CptCaptain has joined #nixos
stree has quit [Quit: Caught exception]
stree has joined #nixos
<zimbatm>
betaboon: if I remember correctly, the binary caches are extracted from the NixOS configuration
<duairc>
What I'm trying to do is to add an option network.interfaces.*.neighbours, which, if set, will set up ndppd and/or parpd for ARP/NDP proxying queries for addresses that fall within the given subnets
<pumpy>
on initial installation boot, before running nixos-install, i need to manually configure network so i can get internet. i don't wanna use dhcp. i can manually set the ip/netmask with ifconfig and the gateway, but how do i manually set the dns server?
<duairc>
The issue is that I need to set config "globally" rather than strictly inside the submodule (which is what's happening in that example)
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pumpy has joined #nixos
<pumpy>
on initial installation boot, before running nixos-install, i need to manually configure network so i can get internet. i don't wanna use dhcp. i can manually set the ip/netmask with ifconfig and the gateway, but how do i manually set the dns server?
<pumpy>
when i tried to edit those files i got error that permission denied, even if i run it with sudo
<gchristensen>
/etc/resolv.conf ? hmm... that should be editable
<gchristensen>
though /etc/resolveconf.conf is not
<niksnut>
there is the "resolvconf" command
<niksnut>
and resolvectl
<pumpy>
maybe im messing my disk perms up or something. i noticed if i try doing fresh installs a few times in a row, there seems to be prior state left over. when fresh booting the installer, how can i format the disk before i use it? (/dev/vda in this case)
<urkk>
are there any fetchers via ssh? (not git over ssh, but simply scp)
<gchristensen>
no. they'd have to be a builtin, because you can't otherwise securely give Nix's builder users access to SSH keys
orivej has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
Sanchayan has quit [Quit: leaving]
<betaboon>
anyone knows if i can provide a nix.conf to be used by a nix-shell (in order to use specific binary-caches on a per-project basis). i tried export NIX_CONF_DIR but that doesnt seem to have the effect i was hoping for
<emmanuel_erc>
In that case they wanted to remove the GHC dependency and not the dependency upon haskellPackages.pandoc-types or haskellPackages.HTTP
<emmanuel_erc>
This is a bit strange no?
acarrico has joined #nixos
camsbury has joined #nixos
dumbuser has joined #nixos
<dumbuser>
Help!!!! I made a very dumb mistake. I upgraded to 20.09 prematurely and now my whole nextcloud setup is broken. Is there anyway to go back to NixOS 20.03?
acarrico has quit [Quit: Leaving.]
<clever>
dumbuser: just change the nix-channel back to 20.03, same way you changed it to 20.09
<dumbuser>
I tried, but I got a segmentation fault when trying to nixos-rebuild switch
<dumbuser>
I'm trying again now and will report results ASAP
<dumbuser>
Thank you for responding already
<clever>
dumbuser: nixos-rebuild --rollback will undo whatever you did last
a85 has joined #nixos
<clever>
dumbuser: you can also just pick an older version from the grub menu
a85 is now known as gluonix
growpotkin has joined #nixos
<gluonix>
Hi, I am new to nix and I am currently trying to figure out if given the store path of a derivation such as /nix/store/fbd9sr5lx1r5r9w3cl4d5p5hgwbhk9jj-hello-2.10, is it possible to know from that path, which nixpkgs version or channel contains it?
lordcirth_ has joined #nixos
<clever>
gluonix: not easily, since its basically just a hash of the input
<pumpy>
gchristensen destroyed vm disk, recreated, started nixos installer, /etc/resolvconf.conf is read only. i opened it with sudo vi, press i, get read only warning
<lewo>
gluonix: this is not tracked by Nix. If this path has been build by Hydra, you could however seach for it on hydra.nixos.org
<dumbuser>
clever: While troubleshooting I did nix-collect-garbage -d so rolling back isn't an option
Twey has joined #nixos
<clever>
dumbuser: what error does nixos-rebuild give?
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #100503 → bup: use python3 → https://git.io/JTYaG
<dumbuser>
clever: still waiting for the krops deploy to finish building all the necessary packages.
<gluonix>
@lewo ok thanks! I will try this. When installing the path in question, nix pulls from https://cache.nixos.org ... Does that imply that the package is on Hydra?
<lewo>
gluonix: not necessary. Nix is binary/source transparent: it first tries to fetch the path on Hydra and if it can't find it, it builds it.
<pumpy>
niksnut can those be used to set nameserver at runtime?
<{^_^}>
[nixpkgs] @rnhmjoj pushed 2 commits to release-20.09: https://git.io/JTYVZ
<pumpy>
niksnut gchristensen ffs sorry it wasn't writable before but on this fresh installer boot it is. dunno wtf
<dumbuser>
clever: Yeah sorry, didn't copy that in my message. I did run `nix-store --verify --check-contents`
noogie has quit [Remote host closed the connection]
<clever>
dumbuser: since you GC'd, there may be no simple way to undo things, the next simplest option is to just boot the installer again, mount your filesystems under /mnt like when installing, and re-run nixos-install, to rebuild it from a working system
<pumpy>
gchristensen i narrowed bug down. on fresh installer boot, from nixos user i can sudo vi /etc/resolf.conf but i can't sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf without permission denied error. is that a nixos bug?
<clever>
pumpy: sudo doesnt affect >
<clever>
pumpy: thats just how bash and sudo work
<pumpy>
oh!
<pumpy>
ty
<gchristensen>
you're just doing the echo part as a very privileged user :)
<clever>
pumpy: try doing `sudo -i` first
kapil_ has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
Ariakenom has quit [Read error: Connection reset by peer]
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
lordcirth_ has joined #nixos
hnOsmium0001 has joined #nixos
<{^_^}>
[nixpkgs] @etu merged pull request #100341 → php: move extension derivations to separate dirs → https://git.io/JTLTI
fendor has quit [Remote host closed the connection]
grahamc[m] has quit [Quit: Idle for 30+ days]
proofofkeags has joined #nixos
<dumbuser>
clever: Can you point me towards the correct luksOpen command?
<dumbuser>
I'm having trouble mounting the resulting cryptroot
<clever>
dumbuser: cryptsetup open --type luks
<pumpy>
nixos 20.03 failed during install. "failed to check file system type of "/boot": no such file or directory"
toto[m] has quit [Quit: Idle for 30+ days]
<clever>
pumpy: did you mount a filesystem to /mnt/boot/ ?
<{^_^}>
[nixpkgs] @primeos pushed to master « nixos/doc: Fix one command to build the NixOS manual »: https://git.io/JTYXB
bahamas has joined #nixos
<dumbuser>
clever: Command requires device and mapped name as arguments.
<pumpy>
clever well i did `mount /dev/disk/by-label/BOOT /mnt/BOOT`. should i do `mount /dev/disk/by-label/BOOT /mnt/boot` instead?
<clever>
dumbuser: yeah, you have to give it a device and name, like `cryptsetup open --type luks /dev/sda1 rootfs`
<clever>
pumpy: yeah, its case sensitive
<pumpy>
ok ty
wnklmnn has joined #nixos
cole-h has joined #nixos
<dumbuser>
clever: I'm getting `/nix/store/m9wmv3snj6qwn9f1frdlbbkxkvja37vr-nixos-enter/bin/nixos-enter: line 72: 7 Segmentation fault (core dumped) LOCALE_ARCHIVE="$system/sw/lib/locale/locale-archive" chroot "$mountPoint" "$system/activate" >> $PIPE_TARGET 2>&1chroot: failed to run command ‘/run/current-system/bin/switch-to-configuration’: No
<dumbuser>
such file or directory` now
<clever>
dumbuser: have you ran a memtest recently?
<dumbuser>
No, but the hardware is brand new
<clever>
dumbuser: ive gotten PC's from walmart before that would bluescreen constantly until you reseat the ram
<clever>
dumbuser: then it would be fine for years, until it receives a decent amount of vibration
patagonicus1381 has quit [Ping timeout: 260 seconds]
<dumbuser>
clever: ok, I'll run a memtest
<dumbuser>
clever: How could unseated ram be leading to segfaults?
<clever>
dumbuser: the ram socket was bad, and the ram would sometimes come a bit loose
<clever>
dumbuser: but just pushing the ram back into the socket all the way would fix it
<clever>
which makes it rather hard to find out which socket it is, you would have to kick/drop the pc a few times for it to come loose again
<clever>
and i'm not into abusing hardware like that :P
<dumbuser>
clever: How does that lead to persistent segfaults on the same commands?
<clever>
not sure how it could cause that though
<clever>
but i have seen gcc segfault before, when the battery in one of my laptops got really low
<clever>
and only gcc
<dumbuser>
It's still taking things out of the system nix store, even when I'm in the installer.
<dumbuser>
Is that normal?
dansho has joined #nixos
<clever>
dumbuser: because nixos-install is just a shell script to run nixos-rebuild inside a chroot
<clever>
dumbuser: most of the data comes from /mnt/nix/store
<clever>
dumbuser: but if you did wipe /mnt/nix, it would re-download it all from the cache, and you would only loose the `nix-env -q` list and rollbacks
<clever>
and rebuild the whole system from configuration.nix
<dumbuser>
Ok, I'll try wiping /mnt/nix if the memtest comes out good
<pickfire>
Hi, I am new to nix but I wanted to try porting lxde to nix, lxde have gtk2 and gtk3 but in arch they are packaged as different package, I noticed that nix could do a `gtk
kirc has joined #nixos
<{^_^}>
[nixpkgs] @etu opened pull request #100507 → php: Update some third party packages and extensions → https://git.io/JTYDH
<pickfire>
... gtk = gtk3` trick, I wonder if I could do the same for lxde?
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JTYy5
<betaboon>
can anyone point me in the right direction on how to use a binary cache (cachix) on a per-project basis (eg in a nix-shell that we use to run deployment tools) ?
knupfer has quit [Ping timeout: 265 seconds]
<domenkozar[m]>
betaboon: do you mean how to configure a binary cache?
<pumpy>
when i install a fresh 20.03 it says "setting up /etc..." twice in a row. that's a bug right?
mallox has quit [Quit: WeeChat 2.9]
<betaboon>
domenkozar[m]: kinda. i dont want to require all our teammembers to globally configure usage of a binary-cache on their systems, but just for when they are in a deployment-shell
mallox has joined #nixos
<domenkozar[m]>
that's not that easy at the moment
mallox has quit [Client Quit]
<domenkozar[m]>
I think Nix 3 will allow you to point to an arbitrary nix.conf file
<domenkozar[m]>
that `cachix use` can generate
<dumbuser>
memtest passed
<domenkozar[m]>
betaboon: so something like NIX_CONF_DIR=$PWD/nix
<dumbuser>
clever: memtest passed
<domenkozar[m]>
and then if I add a flag you could do `cachix use --nix-conf-dir=$pwd/nix`
<pumpy>
i start a fresh 20.03 installer in a guest vm, set up the disk and my configuration.nix, run nixos-install, reboot, screen is black with a white underscore blinking in top left. anyone know what's up?
<betaboon>
domenkozar[m]: i tried `export NIX_CONF_DIR=$PWD/.nix` before and added two files to that place: `nix.conf` (containing substitute = true, substituters = cache.nixos... and mycache, trusted-public-keys) and a netrc with my cachix credentials. but it doesnt seem to get picked up
<domenkozar[m]>
maybe it would be better to set XDG_CONFIG_HOME
<domenkozar[m]>
so that it picks up still the system nix.conf
<domenkozar[m]>
so XDG_CONFIG_HOME=$PWD
<domenkozar[m]>
and then nix/nix.conf
<domenkozar[m]>
(note that cachix use flag don't exist, but I can add it easily)
sangoma has joined #nixos
<domenkozar[m]>
betaboon: I can play around with this next week and let you know exactly what works
<betaboon>
domenkozar[m]: is the --nix-conf-dir in that comment something new? it doesnt seem to exist in 0.3.8 ?
<domenkozar[m]>
betaboon: if you leave me an email or something
<domenkozar[m]>
betaboon: yeah that flag doesn't exist yet, but it's easy for me to add it.
<domenkozar[m]>
I'm not saying this works, but it could work with a few changes
<betaboon>
domenkozar[m]: exporting XDG_CONFIG_HOME and then running `cachix authtoken` + `cachix use` seems to work. atleast nix-build then picks it up :D
<domenkozar[m]>
yeah although that will pick it up from ~/.config/nix/nix.conf
<domenkozar[m]>
I think currently the best way is to enable it globally for the user
<domenkozar[m]>
I do plan to make that easier for per-project setup
<domenkozar[m]>
betaboon: I've added a note to take a look at this next week
<betaboon>
domenkozar[m]: what do you mean by "pick it up from ~/..." ?
<domenkozar[m]>
cachix use wrote to that file and that's why nix-build works ;)
<betaboon>
domenkozar[m]: looking forward to it. thanks for the pointers atm tho. seems to somewhat work :D
<domenkozar[m]>
hehe
<betaboon>
domenkozar[m]: it actually wrote to $PWD/nix after exporting XDG_CONFIG_HOME=$PWD
<domenkozar[m]>
ah cool!
<domenkozar[m]>
nice
<betaboon>
domenkozar[m]: didnt write to ~/.config/nix/nix.conf. just checked again
<domenkozar[m]>
yeah it does respect XDG_CONFIG_HOME
<domenkozar[m]>
forgot about that ^^
<domenkozar[m]>
glad we got it to work :)
<betaboon>
domenkozar[m]: so does nix if i read that correctly. i must have misinterpreted the documentation, seems like $NIX_CONF_DIR/nix.conf does not get loaded on demand, but $XDG_CONFIG_HOME/nix/nix.conf does
sputny has joined #nixos
<betaboon>
domenkozar[m]: only thing that now was somewhat "unexpected" is that the new nix.conf that cachix wrote did include the additional caches that i have in /etc/nix/nix.conf as well
<domenkozar[m]>
that mostly depends on the setting and if you're using multi-user setup
<domenkozar[m]>
betaboon: oh don't forget to add nix/netrc and nix/nix.conf to gitignore
<domenkozar[m]>
betaboon: ah yeah that's because nix.conf isn't able to merge the two options
<pumpy>
i start a fresh 20.03 installer in a guest vm, set up the disk and my configuration.nix, run nixos-install, reboot, screen is black with a white underscore blinking in top left. anyone know what's wrong or how i can debug it?
<domenkozar[m]>
from two nix.conf files
<betaboon>
domenkozar[m]: ofc :D though i think i will include them in the repo but using git-crypt !?
<domenkozar[m]>
yeah that works as well
<domenkozar[m]>
make sure to remove your binary caches then, they won't be needed for the project :)
<betaboon>
domenkozar[m]: yeah. thanks :D
<lordcirth_>
pumpy, what hypervisor? Using any virtio hardware? You may need to add some kernel modules
ris has joined #nixos
<pumpy>
bhyve
dumbuser has quit [Remote host closed the connection]
<betaboon>
domenkozar[m]: i think it would be somewhat preferable to not be required to override XDG_CONFIG_HOME tho
<pumpy>
host system has nvidia and i use nvidia-nomodeset for that. i don't think guest needs that tho does it?
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<domenkozar[m]>
betaboon: yeah I think Nix 3 has a way to avoid that
<pumpy>
lordcirth_ ^
<betaboon>
domenkozar[m]: btw: after running `cachix use` the netrc-file in the resulting nix.conf is not strictly required. it picks the netrc up when its in the same directory as the nix.conf. which is an advantage for me when i want to check it into git as it no longer contains a path that is specific to my system
<domenkozar[m]>
yeah maybe it would be better to just make sure it's unset
<lordcirth_>
pumpy, Well I've never used it - you are hosting on BSD? What bootloader are you installing NixOS with?
<pumpy>
efi
<pumpy>
ill just skip the desktop environment and use ssh
<pumpy>
ty
<lordcirth_>
pumpy, ssh does work?
bahamas has joined #nixos
<pumpy>
ya
<lordcirth_>
I would look in dmesg then
<pumpy>
oh, not now, but i didn't configure it yet
<{^_^}>
[nixpkgs] @conferno opened pull request #100512 → chromium: fix build on i686 → https://git.io/JTY5w
iceypoi has joined #nixos
<gluonix>
Are there known cases, in which it is absolutely necessary to pull dependencies from different nixpkgs versions/channels?
Darkmatter66_ has joined #nixos
nicoo has quit [Remote host closed the connection]
Darkmatter66 has quit [Ping timeout: 260 seconds]
icey_ has quit [Ping timeout: 256 seconds]
<exarkun>
gluonix: dependencies of what
nicoo has joined #nixos
<gluonix>
to build a derivation
acarrico has joined #nixos
alp has joined #nixos
<exarkun>
a derivation is arbitrary, so I'm sure you could come up with a case
<exarkun>
why?
alexherbo2 has quit [Ping timeout: 260 seconds]
tarruda has quit [Ping timeout: 256 seconds]
tarruda has joined #nixos
<gluonix>
I am working from a Dockerfile, that I did not write, and it installs dependencies using `nix-env -i /nix/store/...` such that many are from different `nixpkgs` versions. When I try to build the derivation using buildInputs coming from the same `nixpkgs` version, the build fail.
<emmanuel_erc>
So I'm using "nix why-depends" to understand what depends on upon my dependencies. So I'm trying to get rid of the dependency upon the ghc compiler in my build by using removeReferencesTo. Here's the output I get when I utilize "nix why-depends" https://gist.github.com/emmanueldenloye/810b50613616f4251fe08073cbc5d9b0
<exarkun>
gluonix: nixpkgs is just a collection of packages. different versions of nixpkgs are different collections. it's entirely possible to have a piece of software that depends on a piece of software that exists in one revision of nixpkgs and not in another.
<emmanuel_erc>
I initially tried to use removeReferencesTo on gargoyle-postgresql-nix. I mistakenly thought that would only get rid of the references to ghc. But gargoyle-postgresql-nix is a runtime dependency.
<exarkun>
gluonix: that doesn't mean pulling in multiple versions of nixpkgs is the _best_ solution but it's a solution
<lordcirth_>
gluonix, you might be able to figure out the failures and get it all working on one release?
<LnL>
emmanuel_erc: you can't just remove references to libraries, removeReferences is intended for cases where things like the docs reference an absolute path resulting in an unneeded runtime dependency
<gluonix>
lordcirth_ I have been trying but so far I still encounter errors. The errors are actually what led me to find out that the builtInputs were from different nixpkgs revisions.
<gluonix>
exarkun yes I understand. Is there a way to specify `builtInputs` such that they are not bound to a specific pinned down `nixpkgs` version.
justanotheruser has joined #nixos
<simpson>
No, and it sounds like the offending Dockerfile should be rewritten.
<lordcirth_>
gluonix, are the errors like, services refusing to start due to config options (where you should fix the configs) or what?
<emmanuel_erc>
LnL: Yeah, I really just want to remove the reference to the GHC compiler
<LnL>
you need static linking for that
<exarkun>
gluonix: It sounds like you did that already
<exarkun>
gluonix: And it broke stuff
<exarkun>
gluonix: because you needed the pinned versions
<emmanuel_erc>
I've tried doing something like "${pkgs.removeReferencesTo}/bin/remove-references-to -t ${pkgs.haskelll.compiler.ghc843} $out/bin/${component}"
<gluonix>
lordcirth_ last error I got is `/nix/store/304rig0g637ynwxc23cr791cp3lril66-gcc-8.3.0/include/c++/8.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h>`
<LnL>
emmanuel_erc: with haskell specifically theres support for building static binaries from a package instead of libraries
<LnL>
emmanuel_erc: to enable that use haskell.lib.justStaticExecutables backend instead of backend directly (which I assume contains the main executable you want)
<lordcirth_>
gluonix, what is this dockerfile supposed to do?
<clever>
gluonix: are you building in nix-shell? or nix-build?
<justanotheruser>
anyone failing in stage 1 with a thinkpad t15? "Timed out waiting for device"
<LnL>
emmanuel_erc: if remove references worked you'd end up with a broken binary
<justanotheruser>
same drive works fine on a t580, multiple different drives fail for t580
<gluonix>
so, I am trying to write a derivation and to build it with `nix-build` but when troubleshooting, I work in a `nix-shell` "session"
<justanotheruser>
fail for t15*
<clever>
,libraries gluonix
<{^_^}>
gluonix: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
gluonix: installing things like gcc and make with nix-env isnt supposed to work, and will only cause problems
dumbuser has joined #nixos
<dumbuser>
clever: It worked!
<dumbuser>
clever: Thank you so much for your help
<clever>
dumbuser: yay!
<simpson>
gluonix: Hilarious. Cheered me up immensely; thanks for this joke. A better way forward is to install Nix as normal for the developing user, and then use nix-shell more plainly, with a shell.nix and possibly direnv.
<gluonix>
clever ah ok, I see. I am totally new to `nix` and I have written the linked Dockerfile. What I want is the derivation to build on top of.
<clever>
gluonix: line 24 of the Dockerfile, that is going to copy things weirdly and break a lot of stuff, you need to give it a derivation not a path
<simpson>
gluonix: `FROM nixos/nix` will help a lot.
<clever>
gluonix: make, autoconf, and gcc are in the stdenv by default, but stdenvNoCC forces them to not be there
<clever>
gluonix: if you use plain stdenv.mkDerivation it will work a lot better, without a lot of that code
<ugubok>
It says /nix/store/2a9lyngnya57rhvjni6km1zp8xwhs3g9-mcabber-1.1.0/include/mcabber/logprint.h:4:10: fatal error: glib.h: No such file or directory
<clever>
ugubok: did you try adding glib to the buildInputs?
<ugubok>
clever: Sure
rajivr has quit [Quit: Connection closed for inactivity]
bbarker has quit [Remote host closed the connection]
hllizi has joined #nixos
<gluonix>
@simpson thanks. That is more or less what I am trying to do! :)
marcy__ has quit []
<simpson>
gluonix: `FROM nixos/nix` will let you skip having to set up Nix inside the container. You can then `RUN nix-channel --update` or otherwise pin channels, before invoking `nix-env -i my-awesome-package` or whatever.
<pumpy>
im trying to promote nixos at work and someone said the logo looks like an anus. what are those symbols so i can have an explanation?
<simpson>
(Assuming that it's a design requirement that you're using Docker for portability. Otherwise, just force people to install Nix~)
<tilcreator>
I'm trying to get a Valve Index working on my PC. When trying to start a game I get the error (trom steam):
<tilcreator>
`ERROR: ld.so: object '/home/tilcreator/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.`
<tilcreator>
That seams possibly nixos related, any idea how to fix it?
zupo has joined #nixos
<simpson>
pumpy: I think that it's a snowflake made from Greek letter lambdas. The lambda represents functions and functional programming; the snowflake shape represents the precise reproducible nature of Nix. DigitalKiwi, I think, could tell you more.
<gchristensen>
simpson: samueldr too
<pumpy>
ty
<pumpy>
makes sense
<gluonix>
simpson ok thanks! My end goal is to actually build the dockerfile with nix instead. I am more or less setup in terms of development environment on my own machine, but the derivation I wrote so far did not work, meanwhile the Dockerfile works. So I have trying to figure out what is missing, and just today, realilzed the dependencies were from
<pumpy>
after a fresh nixos install vi is no longer found. is that because i didn't make it a package so it was removed?
<pumpy>
make it a package = add it to configuration.nix
<tilcreator>
simpson: thx, I will have a look
alp has quit [Remote host closed the connection]
<simpson>
gluonix: Like, with dockerTools? You can of course install the traditional `docker` command with Nix, but eventually it'll be easier to treat the container image itself as something which Nix builds.
hllizi has quit [Ping timeout: 260 seconds]
alp has joined #nixos
dumbuser has quit [Remote host closed the connection]
<gluonix>
@simpson yes, with `dockerTools`. But currently it's not my priority. I am trying to figure out whether I can build the thing with *one* pinned down nixpkgs revision.
g-w1 has quit [Quit: WeeChat 2.3]
g-w1 has joined #nixos
<pumpy>
do ppl install text editors system wide or just in user accounts?
<pumpy>
seems bad to not have a system wide text editor like vi
<gchristensen>
I think you should have at least nano installed
<pumpy>
ty
costrouc has quit [Quit: costrouc]
bahamas has joined #nixos
<simpson>
`vi` the command is provided by several different packages, too. Folks usually want vim's vi, but there's no accounting for taste.
<simpson>
,locate bin/vi
<{^_^}>
Found in packages: vim, busybox, vimHugeX
<g-w1>
what is ,
<gchristensen>
those with a discerning pallet prefer vimHugeX of course
<g-w1>
i have seen it a lot
<gchristensen>
palate*
<simpson>
g-w1: It's an escape sequence for the bot {^_^} to ask it to do stuff.
<g-w1>
oh
<simpson>
> elvis # we have elvis packaged, but it doesn't have a bin/vi alias. Go figure.
<ugubok[m]>
It says `/nix/store/2a9lyngnya57rhvjni6km1zp8xwhs3g9-mcabber-1.1.0/include/mcabber/logprint.h:4:10: fatal error: glib.h: No such file or directory` (glib is in buildInputs)
<emmanuel_erc>
No it didn't. It looks exactly the same as before.
<emmanuel_erc>
I'm going to try to use removeReferences over my gargoyle-postgresql-nix dependency
<emmanuel_erc>
to be clear
<emmanuel_erc>
I'll remove references to ghc in the post install attribute of that dependency's derivation.
yjftsjthsd has joined #nixos
__Sander__ has joined #nixos
bbarker has joined #nixos
noudle has joined #nixos
yjftsjthsd has quit [Remote host closed the connection]
yjftsjthsd has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
__Sander__ has joined #nixos
__Sander__ has quit [Client Quit]
__Sander__ has joined #nixos
<abathur>
ugubok[m]: have you seen any other successfully-packaged mcabber plugins?
alp has quit [Remote host closed the connection]
alp has joined #nixos
sbetrium has joined #nixos
<ugubok>
abathur: No, there is no mcabber plugins in repo, but there is very similar nix file for deadbeef plugins (like pkgs/applications/audio/deadbeef/plugins/mpris2.nix)
<abathur>
ugubok[m]: (I don't know anything about this; I did a naive search and didn't see any; if there aren't it's possible the mcabber package is causing the problem)
<pinpox>
Anyone got an idea on how to fix the stack overflow?
shibboleth has joined #nixos
srhm has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Baughn opened pull request #100519 → nvidia: Preliminary nVidia/AMD PRIME and dynamic power management support → https://git.io/JTOLE
arjen-jonathan has quit [Ping timeout: 272 seconds]
<pinpox>
Guess I'll open an issue for it
evanjs has quit [Ping timeout: 258 seconds]
evanjs has joined #nixos
<noonien>
i'm having a problem running a nixos-container. i've added the following line in my container, `bindMounts."/run/thelounge" = { isReadOnly = false; };`, however, /run/thelounge does not exist on the host yet, and it does not seem to be created
<noonien>
is this a bug? or should i create the path myself somehow?
justanotheruser has quit [Ping timeout: 272 seconds]
costrouc has quit [Quit: costrouc]
knupfer has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @hyperfekt opened pull request #100520 → nixos-install: add passthrough --keep-going flag → https://git.io/JTOqU
fendor has quit [Quit: Leaving]
<aswanson>
there a quick and easy way to bump the version of a python application via an overlay? I tried doing a simple `super.<packageName>.override { version = <newversion>};` but nix is not happy with that
<aswanson>
I'm seeing a reference to "unexpected argument 'version'" in the returned error
costrouc has joined #nixos
kdlv has joined #nixos
Twey has quit [Quit: WeeChat 2.9]
seku has joined #nixos
<pie_>
davidak[m]: i saw you doing lots of container building IIRC, do you know any way to make them faster? i have to wait annoyingly long for squashfs when im trying to iterate
<pie_>
risson: its the argument to the mkderivation or whatever and so needs to be a derivation
<risson>
pie_: yeah they will replace it with whatever is needed
<pie_>
aswanson: what you probably want to look at it .overrideAttrs or .overridePythonAttrs, but i dont actually know how it works for python packages
<pie_>
ok michaelraskin wrote that so its probably like that for a good reason :p
<pie_>
so what this does is add the python3 packages to the auto arguments of callPackage
<pie_>
i havent seen this pattern in all-packages yet but it might make sense
<pie_>
i have no idea how that definition is not an immediate infrec but apparently `newscope something somethingelse` is similar to `callpackage somethingelse`
<pie_>
so its like callpackage ../applications/misc/visidata {};
<aswanson>
neat?
<aswanson>
haha
<pie_>
not an infrec / not a no-op
<pie_>
clever: halp im stuck understanding the same thing again ;_; ^
<pie_>
if i do a substitution on: newScope = scope: newScope (self // scope);
<pie_>
like newScope {}
<pie_>
thats newScope (self // {});
<clever>
pie_: newScope adds an .overrideScope for you
<clever>
it takes an overlay as input, and re-does the fixpoint
<pie_>
and so on...
proofofkeags has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @jfroche opened pull request #100525 → python3Package.pytest-flask: remove support for python 2.7 → https://git.io/JTOO1
<pie_>
clever: yeah so overridescope is like .extend
ugubok has quit [Quit: Konversation terminated!]
<clever>
yep
<pie_>
but newScope makes no sense to me
fendor has joined #nixos
<aswanson>
I have a feeling I'll need something like that, because right now nix is complaining that visidata is being called without required argument 'buildPythonApplication' which I shouldn't have touched with overridePythonAttrs, (I think?)
<pie_>
> let newScope = scope: newScope (self // scope); in newScope {}
<pie_>
ok right, you dont actually get the trace output here
<aswanson>
I'll have to play with that
<pie_>
so you should try that in your repl
<pie_>
doesnt really show what src is but it shows that its there so its the right override call
<pie_>
well. overrideAttrs also has it
<pie_>
so eh?
mallox has joined #nixos
noonien has joined #nixos
<pie_>
aswanson: since we're here, do you know about show-derivation?
<aswanson>
sounds familiar but I seem to only find myself this deep in the guts of nixpkgs about every 6 months so I spend a lot of time relearning things
jb55 has joined #nixos
<pie_>
heh
<pie_>
ikr
<pie_>
aswanson: so did you manage to make progress or am i poking you too often? :p
<aswanson>
jury's out on the progress
<aswanson>
I'm getting different problems which is a good sign
<aswanson>
no worries about the pokes
mallox has quit [Quit: WeeChat 2.9]
<pie_>
i keep thinking we need a cloud thingy where people can collab in a shell
<aswanson>
this is the thing that's weirding me out about this package, I'm able to get it to take these overridden attributes I'm passing in, but when I install it nix doesn't seem to pull down the new src I'm pointing it at
<gchristensen>
pie_: you need a nix which supports recursive nix
euandreh has joined #nixos
<aswanson>
success! I can never keep clear when nix chooses to redownload things haha. Turns out keeping the old SHA256 value meant it didn't actually get anything new
<pie_>
aswanson: did you change the hash
<pie_>
yeah
<pie_>
trips people up all the time
<pie_>
i really thing we should do something abut that
<pie_>
gchristensen: *thumb*
<clever>
aswanson: if you claim the hash and name are the same, then nix will trust you, and reuse the old thing by that name&hash
vandenoever has quit [Quit: Konversation terminated!]
<aswanson>
yeah, I probably appreciate how much re-downloading that logic cuts out 99% of the time without realizing it, but in this case my magic brain thinks that nix will realize that since the version is different I want new files
BlessJah has quit [Ping timeout: 246 seconds]
<clever>
aswanson: previously, the version was included in the name, so the name+hash would have differed
<clever>
aswanson: but the name has since been set to "source" for most things, breaking that
hllizi has quit [Ping timeout: 240 seconds]
<aswanson>
that must be part of it. I could have sworn that version bumps triggered it before, but like I said I only ever do this stuff every six months or so lol
<pie_>
clever: does it even make sense to ignore changes in the version
<{^_^}>
[nixpkgs] @jtojnar pushed to release-20.09 « ufraw: mark broken »: https://git.io/JTOGr
<pie_>
its not that nix trusts you its just that all it cares about is the hash?
<clever>
pie_: usually, if the version# changes, the contents definitely changed
<pie_>
clever: well, thats what people intend. but then re: forgetting to change the sha
<clever>
but it re-checking was more of an accidental feature, because /nix/store/hash-package-1 wont make a search for /nix/store/hash-package-2 happy
<clever>
so it would try to download package-2, and then discover the hash is wrong
<clever>
but now its hash-source and hash-source, and it finds the old copy more easily
<jared-w>
awscli2 doesn't seem to have its completions working... Trying to figure out how much I care about this
<pie_>
hm. *nod*
<pie_>
i still think the ux is terrible
<pie_>
gchristensen: why _Are_ you using recursive nix here though? btw does recursive nix let you use different nix versions inside the builder? (i imagine thats part of whats going on here)
<pumpy>
what is the nixos pastie service? i have something to show
<pie_>
i dont think we have one actually heh
* clever
heads off to bed
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<pie_>
clever: gnight ^.^
Darkmatter66 has joined #nixos
noonien has quit [Remote host closed the connection]
<abathur>
has anyone used a RAM-backed TMPDIR for Nix builds? curious 1) did it have a worthwhile performance impact? and 2) how much space did it need to be viable?
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
ericsagnes has quit [Ping timeout: 260 seconds]
anderslu1dstedt has quit [Quit: leaving]
noonien has joined #nixos
alp has joined #nixos
jbo has quit [Remote host closed the connection]
anderslundstedt has joined #nixos
philr has joined #nixos
zupo has joined #nixos
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #100528 → linuxPackages_latest: update to linuxPackages_5_9 → https://git.io/JTOc3
<cirno999>
how do i use libvirt-manager with nixos? I've enabled libvirtd, still getting `Could not detect a default hypervisor. Make sure the appropriate qemu/kvm virtualization packages are installed to manage virtualization on this host.`
<cirno999>
virt-manager*
erasmas has quit [Quit: leaving]
<colemickens>
cirno999: did you add "libvirt" to your user's extraGroups?
<cirno999>
yep!
<colemickens>
or it might be libvirtd
<colemickens>
did you re-login after doing that?
<cirno999>
ah yeah i did add libvirtd actually
<cirno999>
i did a reboot
<colemickens>
hm
<colemickens>
it's possible that I hit that and then just added the qemu connection manually
<{^_^}>
[nixpkgs] @bhipple pushed 2 commits to release-20.09: https://git.io/JTO8R
alp has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @piegamesde opened pull request #100532 → various packages: Fix broken desktop files and mark packages as broken → https://git.io/JTO81
<Cadey>
what are some good NixOS friendly laptops?