<Ashy>
the nixos dir contains the last few kernels and initrds
<Ashy>
the boot dir contains bootx64.efi fbx64.efi mmx64.efi, not sure if i'm supposed to set the grub prefix to where the kernels are or to that efi/boot dir
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-20.03: https://git.io/Jfyfl
<Ashy>
and checking my config repo, this machine has boot.loader.systemd-boot.enable = true;
commandocrypto3 has quit [Ping timeout: 246 seconds]
<Ashy>
so maybe a systemd-boot update rolled out in nixos-unstable last night and is broken?
<keithy[m]>
*cancelling my update tonight!
<gchristensen>
strange, since the nixos release tests involve exercising systemd-boot
<gchristensen>
if you hit a grub prompt, maybe your mobo isconfused and hitting grub while you shoudl be getting to systemd-boot?
justanotheruser has quit [Ping timeout: 272 seconds]
<Ashy>
possibly yeah, i only built this desktop a month or so ago and i did do an ubuntu install on it originally just to quickly test hardware etc, i must not have fully formatted the boot partition possibly when i installed nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jfyfr
<gchristensen>
maybe check your boot order
<Ashy>
the uefi lists "ubuntu" as the name of the boot option
<Ashy>
wonder how it chooses the default for the drive
<Ashy>
i think it's uefi related, the efi boot list shows only "ubuntu" or "Windows" options
<Ashy>
between grub, systemd-boot and the windows bootloader it's clearly confused
<Ashy>
weird that it changed the default all of a sudden though
<clever>
Ashy: what does `efibootmgr -v` report?
<Ashy>
the machine isnt booted yet, grub cli doesn't have efibootmgr
<clever>
ah
<simpson>
I am having trouble getting unixODBC to work, even after enabling system-wide drivers for NixOS. I get "Can't open lib" and "file not found" for a library which clearly exists, is executable, and ldd says is reasonably linked. What might I be doing wrong?
m0rphism has quit [Ping timeout: 256 seconds]
<Ashy>
clever: I should be able to run efibootmgr from the liveusb though right?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @mjlbach to master « xpra: 3.0.9 -> 4.0.2 »: https://git.io/JfyJZ
Nuggis has joined #nixos
<euank>
simpson: strace can probably tell you which paths it tries and what error it's getting when it tries to open those paths
<euank>
i.e. `strace -f -e trace=openat -- <command that's failing>`
<samueldr>
Ashy: if it helps, the live usb for nixos has rEFInd, which is an EFI program that *detects* available EFI programs on all attached drives, if there's still e.g. the systemd-boot for nixos on a drive, it should be able to list it
<samueldr>
(and boot it)
ZaraChimera has joined #nixos
orivej_ has joined #nixos
<samueldr>
at the very least, that tool can end up useful to get into your system in similar situations
<simpson>
euank: Sure, I started with an strace, using `-e %file`. It successfully opens the files! No problems there.e
<euank>
simpson: you're saying the file that unixODBC complaint it can't find shows up in strace as something it successfully opened?
<euank>
I clearly misunderstood what you were describing in the first place
<Ashy>
samueldr: that worked!
<samueldr>
Ashy: note that it won't change the configuration, but at least you have a way in, now you need to figure out what's wrong, if anything
<Ashy>
i picked the systemd-boot option in refind and then it showed me the normal nixos generations list
<Ashy>
yeah thanks
<samueldr>
(in the comfort of your own system!)
<samueldr>
that rEFInd tool saved my bacon a couple of times in the past, so I ended up adding it to the nixos installer iso, hoping to save bacons all-around :)
<simpson>
euank: Here's the exact error. I'm operating on a SQLite database because I'm just trying out the concepts, but eventually I'll probably want Pg. https://bpa.st/J2OA
orivej_ has quit [Ping timeout: 264 seconds]
<euank>
And the output of `ldd /nix/store/8ajnr03ami9y6k24r52cavjdrxl9sd81-sqlite-connector-odbc-0.9993/lib/libsqlite3odbc.so` looks correct?
<euank>
I gotta say, the fact that that error comes from a function called "odbc_dlopen" is not great
<simpson>
Haven't you ever wanted to write a wrapper around dlopen() and add your own custom framework logic~?
<euank>
gotta add all the weird /lib directories for all the proprietary database libraries, it's important!
<energizer>
this program is supposedly part of systemd, but i can't find it. what's going on?
<euank>
energizer: I think systemd has a build flag to build it only optionally
<euank>
iirc the build flag on gentoo for that is 'http' or 'microhttp'
<gchristensen>
energizer: as far as I've heard, you don't want it
<euank>
because you need to compile the optional http server into systemd to serve the journal
<energizer>
gchristensen: what do i want instead?
<euank>
rsync :)
<gchristensen>
my understanding is these programs were put together in a hackathon and never touched since
<gchristensen>
I've been using loki
<energizer>
loki is pull oriented?
<gchristensen>
not sure
<energizer>
i mean your log aggregation server contacts the clients and asks for their logs (pull) as opposed to the clients push their logs to the server
<euank>
simpson: I'd expect strace should show what it's trying to dlopen. TO try and confirm my understanding, did you actually observe it opening that file, or not?
<euank>
Or opening some dumb path like /lib/nix/store or such
<energizer>
iow, do you have to tell the clients where the aggregation server is, or do you have to tell the aggregation server where all the other computers are
<gchristensen>
energizer: and my answer is I'm not sure
<euank>
simpson: and no file not found error around there?
<euank>
So it's just making that error up from some internal bad error handling I guess?
<energizer>
gchristensen: ok
<Nuggis>
q
Nuggis has left #nixos ["WeeChat 2.8"]
<Ashy>
samueldr: yeah that's awesome, consider my bacon saved :D
<euank>
energizer: I'm not totally kidding about rsyncing /var/log/journal btw. It can be push or bull based, and I've used it at the amazing scale of 3 machines with relative success
<simpson>
euank: Seems so. That's why I'm trying to understand the nature of the environment.unixODBCDrivers setting, and how to debug it when I've got something even more complex than SQLite.
<energizer>
euank: i appreciate the simple things in life, so if i can't figure out a better option i'll look into that :)
h0m1 has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
<{^_^}>
[nixpkgs] @skykanin opened pull request #89861 → mindmaster: init at 7 → https://git.io/JfyUk
<Ashy>
so then does a `nixos-rebuild switch --upgrade` do a systemd-boot install to the efi partition?
pjt_014 has quit [Quit: Leaving]
pjt_014 has joined #nixos
<euank>
simpson: yeah, you've got me curious about this now. The fact that unixODBC vendors in libltdl has me at least a bit suspicious
<simpson>
Good luck. I'd ask the maintainer, but there isn't one.
<euank>
I want to try and replicate this locally. Do you have a straightforward way?
<simpson>
The relpipe tooling comes from https://github.com/NixOS/nixpkgs/pull/89787 and I think I've explained everything else included; I'm on NixOS and I used environment.unixODBCDrivers to add SQLite to /etc/odbcinst.ini.
<euank>
yup, I'm on nixos too, so that should be easy enough to replicate
orivej has quit [Ping timeout: 256 seconds]
<Ashy>
hmm, i guess it's right there in the name but nixos-unstable seems broken atm with my configuration on this machine, `nixos-rebuild switch --upgrade` fails with: Pillow-7.1.2 not supported for interpreter python2.7
<euank>
simpson: well, on the bright side, there's an easier way to reproduce this, on the less bright side, I'm convinced their janky vendoring of libltdl is just broken.
<euank>
that reproduces it quite easily. And that also means that iterating on it and adding more debug output to the upstream project should be pretty easy
<euank>
... but I kinda expect the conclusion will be the same. "just patch odbc to call dlopen, not this vendored in hacked up dlopen"
<euank>
I'll poke at it more later, I remain curious about this
<ritchan>
`zpool import -N data` or `zpool import data` works
<ritchan>
currently I just login and run `zpool import data` each time NixOS boots, which is silly
kleisli has joined #nixos
whatisRT has quit [Ping timeout: 258 seconds]
nek0 has joined #nixos
noogie has quit [Read error: Connection reset by peer]
<cransom>
is 'data' in your boot.zfs.extraPools ?
<ritchan>
The point is I don't want to use `boot.zfs.extraPools` because nixos-rebuild will generate the wrong command for zpool import. It should not have the `-d /dev/disk/by-id` part in the command
<ritchan>
and then my boots will take forever because that command will hang there and do nothing
<cransom>
ok. well, there are dozens of zfs users in this channel and i'm certain none of them have to zpool import on boot.
<infinisil>
ritchan: What's `zpool status -P` for you?
<ritchan>
I have the `systemctl status` right here
<ritchan>
[root@franziska:~]# zpool status -P pool: data state: ONLINE scan: scrub canceled on Sun Jun 7 03:09:25 2020config:NAME STATE READ WRITE CKSUMdata ONLINE 0 0 0 mirror-0
<ritchan>
ONLINE 0 0 0 /dev/disk/by-id/ata-WDC_WD20EARX-008FB0_WD-WCAZAJ938654-part1 ONLINE 0 0 0 /dev/disk/by-id/ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M2EH837A-part1 ONLINE 0 0 0errors: No known data errors
<gchristensen>
do you have other disks creating a second data pool?
<cransom>
you have 2 pools named data... rename one?
<fragamus_>
is there anyone here that works with ghcjs?
orivej has joined #nixos
<ritchan>
I don't have 2 pools named data. It says that but I never set that up
<ritchan>
the disk ids are simply not being included in the systemd unit command
<ritchan>
I only have these two disks
<cransom>
you aren't required to specify a singular device. -d accepts a directory, where it will search for pools to import.
<ritchan>
I know... but nixos's generated systemd file puts that line in anyway.
<ritchan>
how about I nixos-rebuild test and show you the zfs-import-data.service
<cransom>
no, you don't need to do that. you should find the output that shows you have 2 `data` zpools and thats why the command fails at boot.
<gchristensen>
my understanding is the by-id bit is important to make identifying the disks easier, and wouldn't make anything different happen w.r.t. what actually gets important
vandenoever has quit [Read error: Connection reset by peer]
<euank>
simpson: it appears the error that it's actually complaining about is '/nix/store/ixjkvnfhg94mmp76sk2cki7ssrjbzqdq-sqlite-connector-odbc-0.9993/lib/libsqlite3odbc.so: undefined symbol: sqlite3_free_table'
<euank>
after running it with some debug stuff turned on in unixodbc. This still isn't a solution, but it furthers my opinion that their bundled libltdl is broken
<euank>
But I'll have to do a little more digging to be sure between that .so actually having a bad symbol table vs the hacked up libltdl being bad
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
psy3497 has joined #nixos
<psy3497>
Anyone using static-haskell-nix these days? What nixpkgs revision are you using? I am trying to use the one in their repo with cachix but I am seem to be getting cache misses
whatisRT has joined #nixos
<psy3497>
i.e. it tries to build GHC
<psy3497>
is it still true that one has to run nix 2.0.4 in order to avoid cache misses?
<kenran>
and (4) it should also respect the gitignore that's sitting in the root directory of the project, that is, right where I'm writing the call to `gitignoreSource [] ./foo;`
Ariakenom has joined #nixos
orivej has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
<kenran>
I'd like to experiment with these functions to see what they do since they're not really well documented IMHO, but how can I best do that?
<{^_^}>
[nixpkgs] @noneucat opened pull request #89882 → ctzpos-cups: init at 1.2.4 → https://git.io/JfyqC
psy3497 has left #nixos ["WeeChat 2.3"]
leah2 has joined #nixos
<srhb>
kenran: I would take the example from the manual and compare their outputs if you're in doubt.
palo1 has joined #nixos
proofofkeags has joined #nixos
palo1 is now known as palo
palo has quit [Ping timeout: 256 seconds]
leah2 has quit [Ping timeout: 256 seconds]
<kenran>
srhb: Would you create a minimal test project for these things to test the cases, or is there another nix-y way of hopping into an environment where I can evaluate these functions "live". Can a nix REPL help me here for instance?
<srhb>
kenran: Yeah, a nix repl is fine. Just make a dummy source tree you want to feed it and start simple.
<{^_^}>
[nix] @matthewbauer opened pull request #3673 → WIP: Add Store API-based HashedMirrors → https://git.io/Jfyq9
<srhb>
kenran: eg. nix repl '<nixpkgs>' -- then start with `pkgs.nix-gitignore.gitignoreSource [] /path/to/your/repo` -- and then inspect the output path and adjust accordingly.
<aveltras>
i'm encountering a problem where cabal isn't using the override i've given for a package (hasql-th here) even if the right version is returned by ghc-pkg list, any idea ?
<brainopia>
Hello, I've installed NixOS 19.03. The system installed correctly and log-in as root just fine, but if I try to run nixos-rebuild then I get an error "file 'nixpkgs/nixos' was not found in the Nix search pat"
<brainopia>
Does it mean I've somehow messed up the installation?
<clever>
brainopia: what does `nix-channel --list` say?
<{^_^}>
[nixpkgs] @stigtsp opened pull request #89899 → perlPackages.NetIPLite: init at 0.03 → https://git.io/JfynT
<betaboon>
can anyone confirm that quad9 doesnt resolve nixos.org ? `nslookup nixos.org 9.9.9.9` their website says it isnt blocking nixos.org but resolution doesnt work for me atm oO
kreyren has joined #nixos
<dminuoso>
betaboon: You can use `dig +trace nixos.org @9.9.9.9` to get a reliable answer
<clever>
$ dig nixos.org @9.9.9.9
<clever>
nixos.org. 20 IN A 162.243.166.170
<dminuoso>
clever: Make sure you use +trace
<dminuoso>
otherwise, caches
<clever>
;; Query time: 209 msec
<clever>
;; SERVER: 9.9.9.9#53(9.9.9.9)
<clever>
same answer if i +trace
<clever>
last time i checked, @foo doesnt use /etc/resolv.conf, so the local cache cant get involved
<betaboon>
dminuoso: thanks.
<betaboon>
anyhow: quad9 didnt resolve nixos.org for a couple of minutes for me and a friend (in germany) ...
<eyJhb>
dminuoso: @ means it will request 9.9.9.9, and Linux does not cache DNS by defoult, that is a job of the DNS server
<eyJhb>
So the response at 9.9.9.9 might be cached, but not on the local machine :)
<avaq>
Hi! Is it possible to configure default programs in Nix? I'd like to configure which programs open which file extensions, which programs handle which URL schemes, and ideally even override programs for specific URL matches.
<energizer>
home-manager has something for that avaq
<dminuoso>
Oh god nevermind me.
<avaq>
Searching for the option to do this in https://nixos.org/nixos/options.html is very challenging, because each search term comes up with lots of results. Eg. the term "default" comes up with all options. :P
<betaboon>
avaq: I'm doing that with `/etc/xdg/mimeapps.list` to configure `xdg-open`
<energizer>
avaq: in home-manager it's called xdg.mimeApps.associations
Ben49 has joined #nixos
sheepfleece has joined #nixos
<energizer>
er xdg.mimeApps.defaultApplications
<Ben49>
Hey, I have recently seen all my nix builds inside docker (gitlab ci) fail, because of not finding files on cache.nixos.org (https://cache.nixos.org/f7jj54jlfrh3fs5r1vh22l79addrxb6v.narinfo). This file returns a 404 and therefore brings nix-build to fail.
<Ben49>
Does anyone here have an idea what could cause that? Any help would be greatly appreciated.
<avaq>
Thanks energizer, I've looked into home manager before, but found the list of caveats intimidating. I'll look again. :P
<kenran>
When using nix-gitignore.gitignoreSource [] ./.; I get the expected behavior (gitignore is respected, but not sub-dir ones). Using gitignoreRecursiveSource [] ./.; I'd have expected it to work the same way except that .gitignores in subdirectories would be respected. Instead, I just get the whole directory without anything being ignored.
<avaq>
betaboon, do you manually edit this file?
<kenran>
What am I misunderstanding here?
<clever>
Ben49: does `date` report the right date/time?
<betaboon>
avaq: I'm not using home-manager either that's why i am creating the mimeapps.list with `environment.etc."xdg/mimeapps.list".text = ... ` in my configuration.nix
commandocrypto3 has quit [Ping timeout: 260 seconds]
Athestus has joined #nixos
LevelChart8 has joined #nixos
<Athestus>
Hello!
<Athestus>
Can I install single nerd fonts without installing all of them?
vidbina has joined #nixos
<Athestus>
there is `pkgs.nerdfonts` with everything
<Athestus>
but I only want BitstreamVeraSansMono Nerd Font
<Athestus>
And i struggle to search NUR
<srhb>
Athestus: Sure, you can delete whichever you want _after_ you've downloaded them all. If you're like me, however, you really wish that weren't the case. I have found no distribution of them that don't contain the full set. :P
<kloenk>
ikwildrpepper: so just set it to an empty folder?
<ikwildrpepper>
yeah, any folder writable to hydra
<ikwildrpepper>
kloenk: but I think the option is mostly useful when you run hydra with a s3 store
Athestus has joined #nixos
<kloenk>
thanks, I'm trying to run hydra with mimio, so s3 like
<ikwildrpepper>
ah cool
karantan has joined #nixos
iyzsong has joined #nixos
urkk has joined #nixos
alp has joined #nixos
kleisli has quit [Ping timeout: 260 seconds]
proofofkeags has joined #nixos
Athestus has quit [Remote host closed the connection]
proofofkeags has quit [Ping timeout: 258 seconds]
xavierm02 has joined #nixos
<xavierm02>
Hi. Is there some built-in way to ensure that any call to nix-env is followed by a call to <my-favorite-command>?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson>
Going entirely the other direction, direnv can be integrated with nix-shell, so that a Nix environment is loaded before/after your favorite command is run by direnv. I'm not sure if nix-env itself has the ability to be hooked.
<xavierm02>
The simplest way of doing it would be to make a bash alias / a "fake" nix-env script that calls the normal nix-env and then <my-favorite-command>, but that would not work for anything that uses the full path of nix-env to call it
Athestus has joined #nixos
<xavierm02>
My use case is that I'm using Qubes, and I want nix-env to copy .desktop files from ~/.nix-profile/share/applications to /usr/share/applications so that Qubes sees them
<simpson>
I'm not sure if direnv would help; I didn't realize how impure you need the effect to be. I don't see anything in nix-env's documentation which would help, either.
cantstanya has quit [Remote host closed the connection]
<Athestus>
Hi again! I have `texlive.combined.scheme-full` installed, yet when running `pdflatex` it complains about `umsb.fd` and `main.toc` being missing. Yet both files exist in the locations that pdflatex is searching
cantstanya has joined #nixos
<Athestus>
(/nix/store/f6c4jj2pslx3ffgjfil042i0g6ywb3x6-texlive-combined-full-2019/share/texmf/tex/latex/amsfonts/umsb.fd)! LaTeX Error: File `umsb.fd' not found.
<Athestus>
i.e. it searches the right location, yet cannot open it?
<Athestus>
(./main.toc) [2]Chapter 1.! LaTeX Error: File `main.toc' not found.
<Athestus>
same thing with the .toc
<Athestus>
It has no problems finding `umsa.fb` and similar
<Athestus>
which is weird since the two files are essentially the same thing
<{^_^}>
[nix] @imalsogreg opened pull request #3675 → Fetch commits from github private repos using Authorization header → https://git.io/JfyBQ
sbetrium has joined #nixos
garbas has quit [Ping timeout: 240 seconds]
jakobrs has joined #nixos
<jakobrs>
How can I download a path from a substituter *without* checking the signatures? I tried `--no-check-sigs`, but it still errors unless I manually add the signature to trusted-public-keys.
<DigitalKiwi>
hey clever Permission denied the ZFS utilities must be run as root.
Rusty1 has joined #nixos
<clever>
DigitalKiwi: what permissions does /dev/zfs have?
<jakobrs>
Hmm, it works as root
<DigitalKiwi>
clever: i tested your theory of if it would work after a reboot and it does
<jakobrs>
so presumably it just doesn't give any good error if you're not trusted
<clever>
jakobrs: when nix-daemon is at play, only a trusted user can bypass signature checks
<jakobrs>
But I'd expect at least a warning that I can't do --no-require-sigs
<clever>
DigitalKiwi: something must be breaking the permissions, youll need to figure out what you did to break it, and check /dev/zfs before and after running that cmd
<jakobrs>
I just got "warning: substituter does not have a valid signature for path" followed by "error: build failed"
<jakobrs>
Hmm, I am trusted though
<jakobrs>
So it's not that
LevelChart8 has quit [Ping timeout: 256 seconds]
<jakobrs>
And I could add it to --trusted-public-keys
magnetophon has quit [Read error: Connection reset by peer]
<clever>
jakobrs: the cache needs to be added in configuration.nix for it to get into nix.conf
<jakobrs>
I'm adding it using --substituters on the command line
<jakobrs>
And it works as root, but I am trusted
garbas has joined #nixos
garbas has quit [Remote host closed the connection]
MinceR has quit [Ping timeout: 260 seconds]
garbas has joined #nixos
<jakobrs>
> When used by unprivileged users
<{^_^}>
undefined variable 'When' at (string):315:1
<jakobrs>
I'd assume this refers to trusted-users?
<jakobrs>
erm... I can't write to /srv, but it's not read-only
<hyperfekt>
What is the canonical way to extend the shell for a package with extra tools? Do I just use .overrideAttrs or is there a dedicated function?
<jakobrs>
Also lsattr fails "inappropriate ioctl"
<jakobrs>
so I'm going to reboot
jb55 has quit [Remote host closed the connection]
asymptotically has quit [Remote host closed the connection]
<alexarice[m]>
LevelChart8: in output devices there is a set as fallback button
<{^_^}>
[nixpkgs] @mweinelt opened pull request #89919 → hostapd: apply patches for CVE-2020-12695 → https://git.io/Jfyzr
alp has joined #nixos
<LevelChart8>
Yes, but the audio still plays out of the speakers when the headphones are set as the fallback.
<alexarice[m]>
you can go onto the playback tab and switch the output manually
<LevelChart8>
Yes!!
<LevelChart8>
Thank you.
<alexarice[m]>
no problem
<n3t>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<n3t>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries unstable escape'' paste declarative escape" tofu library overlay ping -a pinning unfree ifd profiling ask botsnack which-channel xml pr xy tofu-vim wololo imperative nixlang++ cache fancy-uninstall pointers invite pills stateversion home-manager runtimedeps matrixbridge channels thesis exec
<n3t>
What is a CLI equivalent of `,locate`?
<{^_^}>
[nixpkgs] @mweinelt opened pull request #89920 → hostapd: apply patches for CVE-2020-12695 → https://git.io/Jfyzi
<ivann>
How do I make a program accessible to another one? My spacemacs config require sqlite3, how do I add sqlite to emacs package path? I guess I should use `pkgs.emacs.overrideAttrs` but I'm not sure what to override.
<alexarice[m]>
ivann: you could use `wrapProgram` to add a program to the path for emacs
lilpea has quit [Read error: Connection reset by peer]
<infinisil>
mdlayher: Looking pretty good, I'll leave some feedback :)
<mdlayher>
infinisil: thanks so much! this is my first time doing this so i'm not sure what the expected patterns are. i just looked for a similar example in the repo and found a way to go from Nix to TOML.
<LevelChart8>
I have an executable that I downloaded from a third party. On other Linux distros, it runs with `$ ./ProgramName`, but on NixOS it returns no such file or directory. When I drag the file into Konsole to get the pwd, it still returns the same error.
<LevelChart8>
Is there a special way to run downloaded executables?
orivej has joined #nixos
<n3t>
LevelChart8: it should at least start. Did you `cd` to the directory where the program is?
<n3t>
Alternatively you can provide an absolute path, like `/home/levelchart8/downloads/ProgramName`.
<LevelChart8>
I have tried within the dir and with absolute path.
<LevelChart8>
With and without `~` and `.` preceding the path.
<lewo>
LevelChart8: it seems you have to use patchelf to set the dynamic loader
<MarcWeber>
Anybody using amd ryzen notebook? In my case amdgpu works fine hibernate worsk, but s2idle and suspend fails (cannot wake up GPU ring fails). using latest kernel, firmware, bios, mesa, libdrm ... but I still suspect that the problem is the bios. Windows doesn't seem to have any isuse.
kenran_ has quit [Ping timeout: 258 seconds]
maxter has joined #nixos
drewr has joined #nixos
commandocrypto has joined #nixos
commandocrypto4 has quit [Ping timeout: 256 seconds]
<kaliumxyz>
I've added a port to allowed tcp ports yet the firewall still blocks it.
zupo has joined #nixos
<kaliumxyz>
what else is there?
<AmandaC>
Did you `nixos-rebuild` after that?
<kaliumxyz>
I did.
<kaliumxyz>
I'm using the nixops server on this image though, without nixops, but am not convinced that is a factor.
<AmandaC>
`nixos-rebuild switch` or boot? If the former, I'm out of ideas, the latter requires a reboot
<kaliumxyz>
I'm running nix-build and nix-env to set the profile using a script, I'll test with the normal rebuild script now.
raghavsood has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 0 commits to fetchurl-no-hash: https://git.io/JfyKk
<kaliumxyz>
ok yea my script is bust
<kaliumxyz>
sigh.
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<raghavsood>
Did anything change regarding buildInputs and nativeBuildInputs between 20.03 and unstable? I had a package which compiled find with libtool in buildInputs in 20.03, but now requires that libtool be put in nativeBuildInputs
klntsky has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
klntsky has joined #nixos
wnklmnn_ has joined #nixos
wnklmnn has quit [Read error: Connection reset by peer]
alp has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ofir has joined #nixos
lilpea has quit [Ping timeout: 246 seconds]
<ofir>
Hi guys, is it possible to build nix on WSL?
lilpea has joined #nixos
<{^_^}>
[nixpkgs] @scaredmushroom opened pull request #89941 → WIP pythonPackages.pypdftk: init at 0.4 → https://git.io/JfyKK
<ofir>
I get this one: /nix/store/c98k0shcp2yp69g81mqhbqw3xbxvnk0r-gnutar-1.32/bin/tar: nixpkgs-20.09pre228453.dcb64ea42e6/pkgs/applications/networking/p2p/qbittorrent/default.nix: Cannot open: Permission denied
<qubasa>
Hmm I discovered today that compiling static c binaries under NixOS is not a supported use case. As soon as you add the -static flag to gcc or clang you get: ld: cannot find -lc
<dminuoso>
Qubasa: Drepper himself filled glibc intentionally with all sorts of bugs to make statically linking against glibc impossible, because he was on a evil dictator mission to evangelize the developer community.
<dminuoso>
Because he thought he knew better.
<gchristensen>
that is probably off topic
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qubasa>
Really? Like for real?
<{^_^}>
[nixpkgs] @KoviRobi opened pull request #89951 → nixos/users-groups: Use user name not attribute name for /etc/profiles/… → https://git.io/JfyPZ
cole-h has joined #nixos
<dminuoso>
Qubasa: Yes.
<qubasa>
Oh wow
justanotheruser has joined #nixos
vidbina has joined #nixos
<qubasa>
gchristensen: Yeah but the use case for me was more for manually building stuff ^^
GracePrincess has joined #nixos
<dminuoso>
gchristensen: Do you know whether glibc.static *still* requires a dynamic libc.so?
<ruuda>
Hi, I’ve had two pull requests on Nixpkgs open for three weeks now. One of them has been reviewed by a non-maintainer of the package, but now they are stuck without response from the maintainers. What can I do to help move them forward?
ph88 has joined #nixos
<pistache>
ruuda: there is a thread on the discourse where you can mention them for attention
<pistache>
I think there is one for already reviewed PRs, and for PRs to be reviewed
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.crowbar: init at 0.2 »: https://git.io/Jfyy3
proofofkeags has joined #nixos
konobi has joined #nixos
<T0pH4t>
So I'm trying to put a demo package together for c++ aws lambda and nix refuses to link any package with it. Meaning when I go to link a demo project it fails to find the symbols in the .a file even though I know the demo is valid. I can validate its valid by manually building the aws-lambda project inside nix and linking it. The package I construct for aws just doesn't seem to generate a valid
<T0pH4t>
binary. Not sure if anyone would be able to help with this. I have a public git repo to share.
<karantan>
@b42 do you mean `services.mysql.enable.serviceConfig.Restart = lib.mkForce "on-failure";`? because I don't see `systemd.services.mysql.serviceConfig.Restart` option
chloekek has quit [Ping timeout: 265 seconds]
magnetophon has quit [Read error: Connection reset by peer]
<vandenoever>
4500U needs some handholding freezes when booting with 5.6 kernel
<karantan>
aha lol nvm.
kenran has quit [Ping timeout: 246 seconds]
<karantan>
got it
magnetophon has joined #nixos
<simpson>
Is there documentation for nixos-hardware recommendations and rationales? I'm thinking of adding my own quirky hardware into the repository, but want to understand what I'm buying into.
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
Joestar79 has joined #nixos
<Joestar79>
I'm trying to set kubectl to a specific version, but I'm not sure how to properly do it
<Joestar79>
I tried using overlay and also niv,.but failed so far
toraritte has quit [Remote host closed the connection]
<Joestar79>
Any help would be very much appreciated
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #89971 → python3Packages.duecredit: init at 0.8.0 → https://git.io/JfySN
<simpson>
On one hand, because kubectl is written in Go and versioned alongside the rest of k8s, you may need to use an older nixpkgs even to have the version that you want available. OTOH, usually a too-new kubectl isn't a problem for practical use. (Probably not the help you wanted.) What have you tried and how has it not worked?
<selfsymmetric-mu>
My `./links` is 200GB and garbage collection (as root) doesn't clean it up. How can I tell which packages are taking up the most space?
<selfsymmetric-mu>
It might be shells. How can I garbage collect old shells?
<aanderse>
if i uncomment that should i be able to push overlays to managed machines?
<clever>
aanderse: line 9 makes the overlay impact the build being deployed, line 17+13 makes the overlays get copied, and impact the remote machine's builds
<selfsymmetric-mu>
Hmm. I have traced /nix/store/xw9w7l93ksdbcjb9jgpsarya3x9vq5ns-ghc-8.8.3 to /proc/8208/environ, that's what's taking up the space. Looks like one of my nix shells.
<selfsymmetric-mu>
How do I clean up old nix-shell garbage?
<infinisil>
selfsymmetric-mu: Close the shell and run a GC
<selfsymmetric-mu>
This is definitely my fault. I tried to persist a shell at some point and I forgot how I did it. Now I got what I wanted. XD
<infinisil>
Hehe
<selfsymmetric-mu>
I do not have keep-derivations or keep-outputs in my nix.config.
<selfsymmetric-mu>
*/etc/nix/nix.conf
<selfsymmetric-mu>
And I don't have them set in `nix.` in configuration.nix either…
<infinisil>
keep-derivations is true by default btw
<selfsymmetric-mu>
Oh, huh.
<infinisil>
But this would only keep .drv files in the store, which won't take up much space
<selfsymmetric-mu>
I see. keep-outputs is the problem then?
<infinisil>
That's turned off by default
<infinisil>
I'm not entirely sure what the problem is here
<infinisil>
You can see why paths are persisted with `nix-store -q --roots /nix/store/...` fyi
<selfsymmetric-mu>
infinisil: Well, I noticed that I'm running out of disk space, even with garbage collection, and I notice that a lot of space is taken up by ghc, which for me lives in a nix-shell.
<selfsymmetric-mu>
If I pick a ghc and do that, I get these two:
<selfsymmetric-mu>
sshow: if you look at the nix expression for `package`, it'll have inputs at the top, and a dictionary output at the bottom. `override` changes the inputs, `overrideAttrs` changes the outputs.
<energizer>
shoulda been called overrideArgs
<selfsymmetric-mu>
totally
<selfsymmetric-mu>
infinisil: Okay, so duh, okay, those are processes, but I'm looking at `ps -aux` as root and those processes aren't alive anymore. I'm not sure why gc isn't picking them up.
<sshow>
infinisil++ selfsymmetric-mu++
<{^_^}>
infinisil's karma got increased to 311
<{^_^}>
selfsymmetric-mu's karma got increased to 4
simba1 has joined #nixos
tobeportable has quit [Ping timeout: 272 seconds]
<infinisil>
:D
<infinisil>
selfsymmetric-mu: Maybe try a GC now?
<selfsymmetric-mu>
infinisil: will do
sheepfleece has joined #nixos
<selfsymmetric-mu>
infinisil: `0 store paths deleted, 0.00 MiB freed`
<infinisil>
Hm, does the directory at /proc/{9901,9918} still exist?
<{^_^}>
[nixos-search] @garbas pushed 2 commits to import-hydra-builds: https://git.io/Jfy5S
<selfsymmetric-mu>
infinisil: Whoa, it DOESN'T
<selfsymmetric-mu>
hmmmmmmmmm
<selfsymmetric-mu>
this is a thinker
<infinisil>
Well the processes don't run anymore, so I'd have expected this :)
<selfsymmetric-mu>
infinisil: Thanks very much for your help! I'll have to think about what's going on in my machine a bit.
<selfsymmetric-mu>
I've definitely confused myself but I think I should sleep on it. Maybe I'm spawning things somehow…?
<infinisil>
I never like suggesting this as a solution, but rebooting would probably help :P
<selfsymmetric-mu>
You know the story about Tom Knight and the Lisp machine?
* infinisil
does not
<selfsymmetric-mu>
He finds a student rebooting a Lisp machine over and over.
<selfsymmetric-mu>
Tells them, "you can't just fix a machine by power cycling it with no understanding of what's going on!"
<selfsymmetric-mu>
Tom Knight walks over to the machine. Turns it off. Turns it on.
<selfsymmetric-mu>
The machine works.
agsdheidjd has quit [Ping timeout: 260 seconds]
<aanderse>
clever: sorry for the delay, got pulled away ... thanks very much :)
<aanderse>
clever++
<{^_^}>
clever's karma got increased to 456
<clever>
selfsymmetric-mu: are you using sudo with any of the recent nix commands?
<infinisil>
selfsymmetric-mu: Lol nice
<selfsymmetric-mu>
clever infinisil: here's something interesting I found. I have `/nix/var/nix/profiles/system-846-link -> /nix/store/jz78if7mpwxabjysdmvyqydbgs9dgn7i-nixos-system-mus-20.03beta874.b0c285807d6`, despite the fact that `nix-env --list-generations` only lists `1 2018-05-27 18:10:40 (current)`.
<selfsymmetric-mu>
Somehow those old profiles from beta are still hanging around in my /nix/store.
<selfsymmetric-mu>
clever: I'm using sudo for everything as a rule.
<clever>
selfsymmetric-mu: you can also: nix-env --profile /nix/var/nix/profiles/system --delete-generation 846
<clever>
selfsymmetric-mu: its all in the `man nix-env` docs
<selfsymmetric-mu>
clever: This has taught me a lot, and yeah, I'll definitely need to refresh myself with the manual.
<selfsymmetric-mu>
…which makes it all the more embarrassing now that I realize what's wrong. The helper I've been using to run my gc command has been eating the --delete-older-than flag.
Wizek has quit [Quit: Connection closed for inactivity]
<clever>
that would do it!
<selfsymmetric-mu>
oyyyyyyyy mea maxima culpa
<selfsymmetric-mu>
But thank you for teaching me!!
<sshow>
How can I override the outPath for the package in order to set the package root to a subdirectory after fetchgit? I tried (builtins.fetchGit {[...]}).override { outPath = "..." }, but I'm using the wrong syntax, I think
<infinisil>
sshow: Oh that's very hacky. Generally the way to set a subdirectory is to use `.overrideAttrs (old: { src = ...; sourceRoot = "source/<subdir>"; })`
<{^_^}>
[nixpkgs] @jonringer merged pull request #89544 → pycurl: Exclude another flaky test → https://git.io/Jf1lg
<{^_^}>
[nixpkgs] @jonringer pushed commit from @nh2 to master « pycurl: Exclude another flaky test. Fixes #77304 »: https://git.io/Jfybi