Drakonis has quit [Read error: Connection reset by peer]
<infinisil>
jcrd: just wrap () around the result of the first one, the apply the other to that
<jackdk>
alienpirate5: if tobin is simple you might be able to use ax_cc_for_build from autoconf-archive and write out the compilation rule for tobin by hand. alternatively, can it be ported to a scripting lang, or pushed it into a subpackage and subconfigure it with --host=$build ?
<{^_^}>
[nixpkgs] @risicle opened pull request #65115 → blockbook: increase ulimit -n on darwin for packr execution → https://git.io/fjMsE
jluttine has quit [Ping timeout: 248 seconds]
Drakonis has joined #nixos
jasongrossman has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjMs2
jasongrossman has joined #nixos
hamishmack has joined #nixos
day|flip has joined #nixos
<alienpirate5>
jackdk: so I would have to write major patches to the alsa-firmware build system?
<alienpirate5>
:/
<alienpirate5>
i don't like that
<jackdk>
well those would be the "proper" way to do this. alsa-firmware seems low-level enough that someone from another distro has considered cross-compilation. see if gentoo etc have looked at this?
mexisme has joined #nixos
<alienpirate5>
tobin is a custom C script written for each separate firmware
<alienpirate5>
and the firmwares themselves are written as arrays in C header files
<alienpirate5>
I could probably put together some scripts to parse them
<jackdk>
is it generated at build time? can you maybe build it manually just after configure? make only cares about timestamps, after all...
<alienpirate5>
it is static
<jackdk>
so in postConfigure you could call cc, then cross fingers
<jackdk>
there might be nixpkgs-flavoured wrangling that I don't know about to get a toolchain for the build machine
___laika has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
<jackdk>
I'm going afk for a while, but I hope that helps
<emily>
is there a nicer pattern to allow easy `nix build`ing in subpackage directories of a project than making a the-package-name/default.nix like `{} @ attrs: (import ../default.nix attrs).the-package-name` for every directory?
fusion809 has quit [Remote host closed the connection]
<delroth>
anyone here knows who maintainers.f-breidenstein is on github? maintainer-list says @f-breidenstein but that account doesn't exist.
fusion809 has joined #nixos
___laika has joined #nixos
ryantrinkle has joined #nixos
oida has quit [Ping timeout: 260 seconds]
___laika has quit [Ping timeout: 246 seconds]
oida has joined #nixos
Guanin has quit [Remote host closed the connection]
<selfsymmetric-mu>
I'm having HTTP timeouts in my build.
<selfsymmetric-mu>
I'm trying `--keep-going`, not sure if that's going to help.
<selfsymmetric-mu>
How can I keep partial cached results from failed builds?
<selfsymmetric-mu>
I'm running on a low-powered machine, so any caching helps.
<shandogs>
Does anyone have an example (dotfiles etc) of how to install an arbitrary cargo crate using nix? I can't quite figure the right incantations.
<shandogs>
ashkitten: I have something similar but how do I hook it into my configuration.nix?
<ashkitten>
shandogs: callPackage
<selfsymmetric-mu>
Is there a way for me to increase the timeout, or number of retries?
<selfsymmetric-mu>
I think my connection is shaky. Need more robustness from `rebuild switch`.
<ashkitten>
selfsymmetric-mu: can you get it with curl?
<selfsymmetric-mu>
ashkitten: How?
<selfsymmetric-mu>
`cache.nixos.org`?
<ashkitten>
yeah
<selfsymmetric-mu>
How can I pull everything I need as a separate step?
<ashkitten>
well if you try to build something separately it'll be put into your nix store
___laika has joined #nixos
<selfsymmetric-mu>
I don't understand how that's relevant.
<selfsymmetric-mu>
Are you saying that curl's not the default and I can use it?
<selfsymmetric-mu>
It think the HTTP/2 timeout I was getting before was in fact from curll.
<selfsymmetric-mu>
*curl
<ashkitten>
no, i wanted to know if you had tried accessing it another way to test if there's something wrong with your networking
<selfsymmetric-mu>
Ah, I see!
<selfsymmetric-mu>
Yes, networking is okaaay, but possibly spotty.
<selfsymmetric-mu>
As in, ping, speedtest, all good when I test.
<selfsymmetric-mu>
But occasionally a step will take a bit too long and something conks out.
<ashkitten>
it won't refetch things it already has
dbmikus has joined #nixos
<selfsymmetric-mu>
And I can connect to `cache.nixos.org` as well.
<ashkitten>
so just try again i guess
<selfsymmetric-mu>
Oh good!
<selfsymmetric-mu>
In that case if I retry enough times it will get there. Good!
<selfsymmetric-mu>
Thank you ashkitten.
<ashkitten>
yeah np
<selfsymmetric-mu>
I was worried that it was starting from scratch each time.
<selfsymmetric-mu>
ashkitten++
<{^_^}>
ashkitten's karma got increased to 1
<ashkitten>
woo, first karma
<ashkitten>
i've helped one (1) person
<shandogs>
ashkitten++
<{^_^}>
ashkitten's karma got increased to 2
<shandogs>
:D
<ashkitten>
heh
___laika has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @kalbasit merged pull request #65119 → awscli: fix the build by disabling pyyaml tests → https://git.io/fjMsQ
<{^_^}>
[nixpkgs] @kalbasit pushed to master « awscli: fix the build by disabling pyyaml tests (#65119) »: https://git.io/fjMGw
sb0 has joined #nixos
Henson has joined #nixos
Myhlamaeus has joined #nixos
<ashkitten>
still don't have any idea how to use a custom nixpkgs for this
<Henson>
when booting NixOS, is there a way to have it display a nice graphical boot screen to hide the text console stuff, similar to what Ubuntu or Kubuntu do upon boot, until x11 takes over?
wfranzini has quit [Remote host closed the connection]
tput has quit [Ping timeout: 272 seconds]
wfranzini has joined #nixos
tsrt^ has joined #nixos
<clever>
Henson: enable plymouth
<Henson>
clever: thank you. I am testing KDE on NixOS out in a virtual computer in preparation for switching from Kubuntu to NixOS on my laptop.
<Henson>
clever: is there some expiry to the nix output cache that Hydra keeps? 10 years from now will 19.03 packages still be available in the cache should somebody want them?
<clever>
Henson: cache.nixos.org currently has no garbage collection at all
<ashkitten>
jeez, how big is its store?
<Henson>
clever: it must be using up a huge amount of space!
<clever>
ashkitten: in the terrabytes, gchristensen knows the full number, its all in S3
<ashkitten>
haha
<Henson>
wow
<Henson>
I guess terabytes actually isn't all that much now adays, especially if it's in S3.
jmeredith has quit [Quit: Connection closed for inactivity]
<jasongrossman>
IIRC it's something like 180 TB?
<jasongrossman>
Hm. Maybe it's 1.8 TB.
<day|flip>
for all the package install without any gc?
ryantrinkle has quit [Ping timeout: 246 seconds]
<jasongrossman>
Yes.
<clever>
worldofpeace: Bisecting: 293 revisions left to test after this (roughly 8 steps)
<clever>
worldofpeace: i gave up doing skip whenever it failed to build, and just debugged why, lol
<{^_^}>
[nixpkgs] @kalbasit pushed to master « bazel-watcher: fix the hash of the fetchAttrs »: https://git.io/fjMGM
fusion809 has quit [Remote host closed the connection]
<Netsu>
If I need derivation to install some files in /home directory, can I have such files in derivation itself, and let somehow to install it. Or it would be better to add hacky scripts to docker generation directly?
<Netsu>
which directories able to install from $out?
<clever>
Netsu: a derivation is only ever able to install to its outputs, all in the /nix/store/, all starting with a hash you cant control
<clever>
Netsu: by default, `outputs = [ "out" ];` so you only have $out to install to
<Netsu>
yes, I know, but if I did install in derivation something to $out/user/bin, it would be at /user/bin in targed image. So could I do have $out/something same way to get /something after installation?
<Netsu>
Actually I export derivation by `dockerTools.buildLayeredImage` then
wfranzini has quit [Remote host closed the connection]
andgate has quit [Remote host closed the connection]
<pamplemo1sse>
I am looking to use objdump to analyze arm binaries, from an x86_64 machine.
<pamplemo1sse>
I expected that by using `nix-shell -p binutils --arg targetPlatform '{ isAarch32 = true; isLinux = true; }'`, then the `objdump -i` run from the given shell would display something related to arm support...
<{^_^}>
[nixpkgs] @cleverca22 opened pull request #65133 → fix the vmWithBootloader attribute of nixos → https://git.io/fjMZc
<clever>
worldofpeace: ^^^
<worldofpeace>
Great, though I definetely feel the comment there about "mixed mess of nix expressions and shell script stuff" to be valid :P. my eyes.
<worldofpeace>
testing the fix, though no doubt should produce the desired result
rsoeldner has quit [Read error: Connection reset by peer]
rsoeldner has joined #nixos
grahamc[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
aniketd[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30 days."]
kevincox[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
<clever>
worldofpeace: i'm heading off to bed now, PM me if you find any results
<gyroninja__>
pamplemo1sse: If you were looking for just a nix-shell command you could use something like `nix-shell '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.armv7l-hf-multiplatform' -A binutils-unwrapped`
<pamplemo1sse>
gyroninja__: oh, right... although, weirdly, it did not seem to be available in my PATH (but found arm-none-linux-gnueabi-objdump in the nix store)
<gyroninja__>
and then you could run objdump with armv7l-unknown-linux-gnueabihf-objdump
<worldofpeace>
clever: 👍️
zupo has joined #nixos
<pamplemo1sse>
gyroninja__: cheers :)
<gyroninja__>
yeah I'm not too sure how it all exactly works on the nix end myself
danielrf[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30 days."]
Moredread[m]1 has quit [Quit: Idle kick: User has been idle for 30 days.]
zupo has quit [Client Quit]
zupo has joined #nixos
dejanr has joined #nixos
peel has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30 days."]
nbardiuk has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30 days."]
Lev[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
bpye has quit [Quit: Idle kick: User has been idle for 30 days.]
wangoe[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
ploupiboulba[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
benkolera has left #nixos [#nixos]
<srhb>
dejanr: It's almost as simple as it gets.
saikrishi1109[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
<srhb>
dejanr: But you can use encrypted zfs if you like instead.
liberiga has joined #nixos
<srhb>
dejanr: I know that guide uses luks instead of zfs encryption because of the slight leakiness of zfs encryption.
<srhb>
I use ZFS on LUKS too, for the same reason.
<srhb>
It's not terribly complicated.
<srhb>
luks->(part1: boot, part2: zpool), done.
Manish[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<dejanr>
srhb: any other tutorial you could recommend?
Torus[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
<dejanr>
previous link didn't work for me
<srhb>
dejanr: I'd just do luks and then zfs. I'm sure you can find guides for each. Only thing to be aware of is that you might have to generate the hardware-configuration.nix entries for LUKS yourself, the installer tends to not pick them up.
<srhb>
As in, find a seperate guide for each.
TaoHansen[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
<dejanr>
thanks, will do try it like that then
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
dbmikus has quit [Remote host closed the connection]
nrdxpmatrixorg[m has quit [Quit: Idle kick: User has been idle for 30 days.]
alexoundos[m] has quit [Quit: Idle kick: User has been idle for 30 days.]
___laika has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit opened pull request #65134 → awscli: fix the tests by patching pyyaml → https://git.io/fjMZg
<{^_^}>
[nixpkgs] @FRidh merged pull request #65086 → libxkbcommon: fix build on darwin with upstream patch → https://git.io/fjMTx
<{^_^}>
[nixpkgs] @FRidh pushed commit from @worldofpeace to staging-next « libxkbcommon: fix build on darwin with upstream patch »: https://git.io/fjMnY
gratto has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed commit from @mmahut to staging-19.03 « openjpeg: CVE-2019-12973 #64182 »: https://git.io/fjMn3
<mix>
Hello everyone. I have a simple cronjob which runs a script to log battery level that writes a date and an output of `acpi` command to a file. Normally the script works but when run in a cron job it only writes down the date. (as if `acpi` call got ommited). I wonder if it is in a ny way specific to nixos, I cannot find anything to understand such behaviour :(
<jackdk>
how are you generating your crontab, and is this nixos or nix-on-other-linux?
<mix>
nixos, I just followed the basic example in the manual which prints date, then made this and prinint acpi into a separate script
<jackdk>
(my thinking is that your script is picking acpi out of your path when run by hand, but the directory containing acpi is not in $PATH when run by cron)
<jackdk>
can you link me the example?
pmiddend has joined #nixos
orivej has joined #nixos
mix has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @das-g to master « doc: put Java software's build-time dependencies into nativeBuildInputs »: https://git.io/fjMcW
<{^_^}>
[nixpkgs] @aanderse merged pull request #64365 → nixos/tt-rss: remove deprecated usage of PermissionsStartOnly, specify a group to run service as, and fix local pgsql da… → https://git.io/fj6AT
<Miyu-chan>
I had to remove support for SSH stuff, because I needed the S3 support specifically. I've been meaning to readd it, but other things are keeping me busy. :/
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #65163 → pyscard: fix darwin build, remove pcsc library mixing → https://git.io/fjMWM
<tilpner>
Oh, I like that one more than the one currently in nixpkgs
<Miyu-chan>
tilpner: I feel like the one in Nixpkgs has way better support for systemd services though.
<tilpner>
Ehh? Do you just mean that it uses those protect* options?
<Miyu-chan>
Yeah. A few things I wanted to add is that `nixos-rebuild` will proc an upload, and PrivateTmp helps with that. I haven't read the other stuff, but StateDirectory is also pretty interesting, as duplicity has a caching mechanism.
<tilpner>
"proc an upload"? I have no idea what that means
<Miyu-chan>
s/proc/trigger/
<Miyu-chan>
Err, does that help?
<tilpner>
I now understand what you mean, but not why you want that
Yakulu has left #nixos ["Disconnected: Received SIGTERM"]
Yakulu has joined #nixos
<infinisil>
NfixEstrada[m]: Oh, that's a reason why nobody should use .bin, but getBin instead, the module is at fault here
magnetophon has joined #nixos
<infinisil>
NfixEstrada[m]: As a workaround you can specify `outputs = [ "bin" ]` in your override and use $bin everywhere instead of $out
<infinisil>
AH wait
deech has joined #nixos
<infinisil>
Much simpler is to just do `package = <your package> // { bin = <your package>; }
<NfixEstrada[m]>
Where should I do this? In the override?
<NfixEstrada[m]>
Or in the package part of the module?
<infinisil>
Whatever you use to override the package
<infinisil>
I demonstrated with the `package` option from the module, but you can also do it in an overlay
<deech>
Hi, I have a Haskell package that bundles a C++, C, Haskell library and executables that need to be built in that order and I'm trying to write a Nix expression for it. Can anyone point me to something similar in Nixpkgs? It doesn't have to be Haskell, I'm having trouble understanding how to write a Nix expression for a package that has multiple dependent artifacts.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjM8l
<NfixEstrada[m]>
infinisil: Thanks! It's working now! <3
<infinisil>
Cool :)
<infinisil>
deech: I'd put each of them in a different derivation, then have them depend on each other
mexisme has quit [Ping timeout: 272 seconds]
<deech>
infinisil: Do you have know of any package that show how to do that? Also I need some environment/header variables carried over from one build to the next.
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
endformationage has joined #nixos
__monty__ has joined #nixos
stepcut has joined #nixos
<NfixEstrada[m]>
I'm trying to use NixOps to deploy to my RPI, but the following message appears: `error: a 'aarch64-linux' with features {} is required to build '(...)/aarch64-unknown-linux-gnu-binutils-2.31.1.drv', but I am a 'x86_64-linux'`. I have both `nixpkgs.system = "aarch64-linux"` and `nixpkgs.crossSystem.system = "aarch64-linux"`. What am I doing wrong?
aexoxea has quit [Quit: Goodbye!]
b has quit [Quit: Lost terminal]
jakkn has joined #nixos
<gchristensen>
NfixEstrada[m]: you need to set up your raspberry pi as a remote builder
<gchristensen>
let me check to see if there are good docs on that yet
npmccallum has quit [Read error: Connection reset by peer]
Soo_Slow has joined #nixos
roconnor has quit [Quit: Konversation terminated!]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seppellll has joined #nixos
freddie-freeload has joined #nixos
<andi->
mkaito: I gave up on trying.. I just use cargo build / install for that
<mkaito>
so do I, but I want to run migrations on the server, and diesel_migrations requires glibc 2.29 D:
<andi->
yeah yeah yeah :/
<andi->
I think tazjin also used diesel (at his last job?) and they tried hard to get the CLI working without success
<mkaito>
the best part is, it builds just fine in a pure nix shell
<mkaito>
so buildRustPackage is frubbing it up somewhere
<freddie-freeload>
Hi I am trying to install NixOS on a T450s and for some reason it doesn't boot. First I tried my configuration from my T440s and now also a vanilla configuration with `boot.loader.systemd-boot.enable = true;`. There is a hint in the docs that one might have to add kernel modules which provide mounting capabilities. Might this be the problem?
Thra11 has quit [Ping timeout: 248 seconds]
<andi->
mkaito: oh that hack.. I tired buildRustCrate and that is even worse. carnix was (is?) missing a few features that were being used last time I tried.
<mkaito>
I have no idea what's up with carnix, given that the only existing documentation is completely wrong.
<tazjin>
andi-: we did get the diesel CLI working
<andi->
oh? How?
<tazjin>
I am currently not near a computer, can check in the evening if I still have that derivation
<mkaito>
tazjin: would you mind posting it somewhere? I won't be on later today.
<mkaito>
assuming you still have it
<andi->
tazjin: would be great :-)
<thoughtpolice>
Okay, I'm a bit out of date on all this, but here's a scenario: let's say I have a C project built with Nix and some code I want to port to aarch64. What's the "correct" way to change my stdenv to, say, an aarch64 cross compiled one?
<tazjin>
if I don't forget! Actually; email me about it if it's important (at Gmail)
<thoughtpolice>
(I could just use an aarch64 builder, but I think this is easy enough to get away with under qemu user mode)
<mkaito>
well I need either that or update nixpkgs glibc. I'm not even sure which one is worse.
<infinisil>
thoughtpolice: You mean cross-compile it?
<thoughtpolice>
Right.
<infinisil>
> pkgsCross.aarch-multiplatform.hello
<{^_^}>
attribute 'aarch-multiplatform' missing, at (string):255:1
<{^_^}>
#65133 (by cleverca22, 11 hours ago, open): fix the vmWithBootloader attribute of nixos
<thoughtpolice>
Right, I've done this quite a lot in the past but I know the cross infrastructure has shifted around a bunch in recent memory
jakkn has quit [Ping timeout: 245 seconds]
<thoughtpolice>
(As in like, the past 1-2 years)
<mkaito>
tazjin: I've dropped you a mail :)
DariusTheMede has joined #nixos
<infinisil>
thoughtpolice: Well you'll probably want to use all dependencies from that set, so including callPackage
<thoughtpolice>
And I don't have that code anymore (it was `$WORK` related) so yeah
<infinisil>
thoughtpolice: Not sure why you want to use bootstrapPkgs though
<infinisil>
clever: Damn, that's a long time
<thoughtpolice>
infinisil: This is a project that has a pinned dependency set so I can get away without even using callPackage by just manually referencing the libraries.
<clever>
infinisil: the problem was an unrelated bug in the middle, that also had zero output, and i was trying to just `git bisect skip` it all away
<thoughtpolice>
The bootstrap pkgs is what I get from builtins.fetchTarball
<clever>
infinisil: in the end, i had to fix that 2nd bug before i could bisect the 1st bug!
<tazjin>
mkaito: 👌
<infinisil>
clever: Hehe, damn bug chains
DariusTheMede has quit [Read error: Connection reset by peer]
DariusTheMede has joined #nixos
magnetophon has quit [Ping timeout: 272 seconds]
otulp has quit [Remote host closed the connection]
DariusTh` has joined #nixos
liberiga has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
DariusTheMede has quit [Ping timeout: 268 seconds]
shibboleth has joined #nixos
<freddie-freeload>
Hi! I am trying to install NixOS on a T450s and for some reason it doesn't boot. First I tried my configuration from my T440s and now also a vanilla configuration with `boot.loader.systemd-boot.enable = true;`. There is a hint in the docs that one might have to add kernel modules which provide mounting capabilities. Might this be the problem?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
___laika has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<freddie-freeload>
clever: For some reason it just goes back into the list of bootable devices.
<clever>
freddie-freeload: then its nothing to do with kernel modules
<clever>
freddie-freeload: if you boot back into the installer, what does `efibootmgr -v` print?
___laika has quit [Ping timeout: 246 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oida has joined #nixos
___laika has joined #nixos
<freddie-freeload>
clever: I was just writing Manjaro on my usb-stick, after being stuck too long. Gonna copy the nixos-installer image and see what `efibootmgr -v`prints. :) Thanks for the hint!
markus1189 has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
markus1189 has joined #nixos
<freddie-freeload>
clever: "EFI variables are not supported by this system"
<clever>
freddie-freeload: you didnt boot via efi, so you cant configure the machine properly for booting via efi
<clever>
freddie-freeload: either boot the USB again with efi, or do a legacy bootloader install, grub is what i prefer
<freddie-freeload>
clever: Is there any downside to installing grub instead of systemd-boot? :)
<clever>
freddie-freeload: i find grub is much better then systemd
<freddie-freeload>
Ah, interesting. I naively thought that grub didn't work with uefi-systems. Much to learn I have ;)
o1lo01ol1o has joined #nixos
<clever>
freddie-freeload: grub supports both legacy and efi
<clever>
freddie-freeload: grub even supports installing both at once on the same /boot/
<clever>
freddie-freeload: and grub supports "removable" efi, where it uses the same filename as the usb stick, tricking the bios into booting without having to mess with efi vars!
___laika has quit [Ping timeout: 246 seconds]
<freddie-freeload>
clever: Thank you so much!
o1lo01ol1o has quit [Ping timeout: 248 seconds]
srid6390803 has joined #nixos
DariusTh` has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
xdxd has quit [Ping timeout: 260 seconds]
wildtrees has joined #nixos
<iqubic>
So how can I tell if a given printer will work with Linux.
<iqubic>
I'm going to be buying a new printer today, and I want something that will actually work with NixOS/CUPS
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
ng0 has joined #nixos
<clever>
iqubic: google the printer model and linux
mmlb has joined #nixos
<ashkitten>
clever: oh heck, i should check out the removable efi option. one time i switched around which sata port my boot drive was hooked up to and it became unable to boot
<ashkitten>
had to boot from a usb drive and reinstall grub
<clever>
ashkitten: thats not where it would fail
<clever>
ashkitten: the efi vars contain the partition uuid for the ESP
<clever>
ashkitten: so it should have still found it
<ashkitten>
shrug
<ashkitten>
it didn't
ng0 is now known as nikita
nikita is now known as ng0
pamplemousse has joined #nixos
<freddie-freeload>
clever: Fun fact: I bought this notebook refurbished and someone disabled uefi and enabled legacy boot in the bios (I just found out)... :D omg -- if I wanted to troll other people, this might just be the way :D
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<karetsu>
ok this is driving me batty, I have DPMS disabled and my monitors are still turning off after 10 minutes idle - I have tried switching from gdm to lightdm in case it was kicking off some gnome settings, installing for standalone and as a service xscreensaver and nothing I do will let me control whether my screens go off other than moving something. This is annoying when netflix exists...
<kalbasit>
how can I get a `python.withPackages(ps: [ps.area])` within an mkShell? I tried including it within buildInputs and it did not expose the area python module. I also tried `(python.withPackages(ps: [ps.area])).env` but it does not work because it can't be a build dependency. I can't seem to find examples of that either.
<clever>
karetsu: what about `xset -dpms` or `xset dpms force on` ?
<karetsu>
clever: xset -dpms lets me toggle DPMS status, the problem is that something is completely ignoring DPMS setting and deciding 'fuck it, turn off'
<karetsu>
its currently disabled, but my screen has just blanked 5 minutes ago whilst I was watching something
<clever>
karetsu: turning off, or blanking?
<karetsu>
I didn't actually pay attention, give me 10 minutes ;)
roconnor has joined #nixos
roconnor has quit [Client Quit]
justanotheruser has quit [Ping timeout: 250 seconds]
<delan>
I’m packaging a src for which the vendor’s website (onlinesupport.fujixerox.com) throws HTTP 410 when the User-Agent is curl but works when I pass -H 'User-Agent: <my browser’s navigator.userAgent>'... is there an equivalent setting for fetchurl and nix-prefetch-url(1), or do I rehost the zip file, or...?
<jcrd>
how do the channels nixos-unstable and nixpkgs-unstable differ?
<clever>
jcrd: nixos-unstable has a lot of nixos testing done, to make sure it wont brick a nixos machine
<clever>
jcrd: nixpkgs-unstable doesnt test the nixos stuff, but does wait for darwin builds to finish, so mac users have cache coverage
<delan>
clever: nice, thanks! I guess for the nix-prefetch-url(1) we can just download the zip and use nix-prefetch-url file:///path/to/src.zip
<clever>
delan: or just tofu it
<clever>
,tofu delan
<{^_^}>
delan: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<delan>
TIL, thanks again!
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<karetsu>
clever: screens went into standby, neither of them is set to do so
xdxd has quit [Ping timeout: 260 seconds]
<clever>
karetsu: try installing xscreensaver? yes that sounds backwards
<karetsu>
I did that and having it installed did nothing
<karetsu>
as a daemon or as an app :(
<clever>
karetsu: try opening its config and see what its set to?
<jcrd>
clever: i see, so does nixpkgs-unstable get new packages sooner?
<Ralith>
X having a hundred different ways to standby screens, none of which are well documented and all of which may decide to enable themselves under unclear circumstances, is definitely a source of Fun
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<clever>
jcrd: depends mostly on if a nixos test is failing vs how slow the darwin builds are
<karetsu>
clever: whatever the defaults are, I changed nothing other than dpmsEnabled which I tried both true and false for and it seemed to have no effect
freddie-freeload has quit [Ping timeout: 260 seconds]
<clever>
karetsu: i think part of what is dropping dpms for me, is that i'm running synergy on my systems
<karetsu>
but I wasn't sure if that meant that xscreensaver would take over dpms, ignore it completely or what
<karetsu>
is synergy the shared pointer thing?
<clever>
karetsu: i think xscreensaver acts as a daemon, that tracks which applications are trying to block dpms (youtube, mplayer, vlc), and if none are blocking, will re-enable it within xorg
<clever>
karetsu: yep
<clever>
[5628:6057:0720/162027.676438:ERROR:object_proxy.cc(619)] Failed to call method: org.freedesktop.ScreenSaver.UnInhibit: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
<clever>
karetsu: i also notice this in my chromium stderr
<clever>
every time i (un)pause a youtube video, it tries to talk to the screensaver over dbus, to block dpms
wangoe[m] has joined #nixos
<karetsu>
I'll have a look at what firefox is spitting out thenm
<clever>
and the screensaver daemon is responsible for knowing when all blocks have been cleared, and managing the `xset dpms` level switch
justanotheruser has joined #nixos
<karetsu>
ty clever, will see what firefox is spitting out and more fiddling with xss
rsoeldner has quit [Ping timeout: 250 seconds]
karetsu has quit [Quit: WeeChat 2.4]
<jcrd>
clever: only nixpkgs-unstable has the new version of a package that was updated 6 days ago
<clever>
[clever@amd-nixos:~/apps/nixpkgs-master]$ nix-build nixos/release.nix -A tests.installer.lvm.x86_64-linux
rsoeldner has joined #nixos
szicari has joined #nixos
<_deepfire>
clever, if a certain Nixpkgs commit has a broken Haskell compiler configuration that says, f.e. 'hoopl = self.hoopl_3_10_2_1', where the latter attribute does not exist -- is there a way to undo the damage, without changing Nixpkgs source?
<jcrd>
clever: that's a handy app. ah, the hydra job reveals the last update was more than 6 days ago. it all makes sense
wfranzini has quit [Remote host closed the connection]
<clever>
_deepfire: an override should work, if you can insert it at the right stage
<{^_^}>
[nixpkgs] @samueldr merged pull request #65190 → nixos/tests: drop tomcat connector test → https://git.io/fjMRb
witchof0x20 has quit [Quit: WeeChat 2.4]
witchof0x20 has joined #nixos
<kalbasit>
I'm trying to create a version validator. The point of this validator is to validate the version of Python packages as I expect them, so I can catch updates when I bump the version of nixpkgs to notify the appropriate team. Here's what I have so far: https://gist.github.com/kalbasit/2b9984d8d5c53edd1048b574c8c8a4b2
dejanr has joined #nixos
<kalbasit>
I think the use of `builtins.attrNames` is preventing Nix from even collecting the value or go through the assertion
<kalbasit>
How can I accomplish this then?
<dejanr>
Hi, anyone knows where would be the appropriate place to put GRUB_CMDLINE_LINUX="fbcon=rotate:1"
justanotheruser has quit [Read error: Connection reset by peer]
<kalbasit>
infinisil: I was expecting the assert to throw an error since it's getting value false. It does not do that however.
abathur has quit [Ping timeout: 245 seconds]
eof has joined #nixos
<jcrd>
can i use buildLuarockPackage to make a custom lua package?
<infinisil>
kalbasit: Ah yeah, builtins.attrNames doesn't make anything evaluate, as attribute names are strict all the time anyways. The attribute values are still lazy
<infinisil>
kalbasit: It should throw when you evaluate the attribute values
<kalbasit>
hmmm alright, I'll give it a try by implementing the entire function when I get back home later tonight. Thanks infinisil
<clever>
infinisil: but the entire attrset could have been a thunk
<clever>
infinisil: builtins.attrNames would force all the keys at once, before returning the names
<clever>
`set = import ./foo.nix` for ex
shomodj has joined #nixos
<clever>
its a thunk, that will load&parse the given file later
<infinisil>
clever: But `builtins.attrNames set` will force no more than `set` would force
<clever>
infinisil: yeah
<kalbasit>
The idea is simple: How to make a requirements.txt that will return a list of python packages to the caller *after* asserting the version. This is to help me identify python version changes once I bump nixpkgs in the future so I can notify the affected teams
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kalbasit>
I meant a requirements.nix
<infinisil>
kalbasit: I'd combine all validations into a single value then
<infinisil>
Something like `if all valid packages then packages else throw "Some are invalid"
<infinisil>
Throws > Assertions because they allow setting an error message
__monty__ has quit [Ping timeout: 272 seconds]
dejanr has quit [Quit: WeeChat 2.5]
<kalbasit>
That might work. I wonder if I can include the actual affected dependency in the message
<kalbasit>
Also, FYI there's lib.assertMsg to assert with a message
iqubic` has joined #nixos
__monty__ has joined #nixos
iqubic has quit [Ping timeout: 250 seconds]
<infinisil>
kalbasit: Yeah, a better way would probably be to filter the attribute set by invalid packages, then transform this attrset into a nice error message if it's not empty
<kalbasit>
Oh that's an idea
andgate has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
<InFlames>
can someone help me understand what sha256 to use for extensions with vscode-utils.extensionsFromVscodeMarketplace with vscode-extensions
<InFlames>
I see a sha, but I can't figure out how this correlates to vs code extensions in the marketplace
<symphorien>
probably tofu
<symphorien>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<symphorien>
nix will give you the correct hash in the error message
domogled has joined #nixos
<InFlames>
when I used the wrong hash, it did error, but I don't recall it showing a correct hash, I'll try again though, thank you
<samueldr>
hmmm, having a weird issue with a freshly build aarch64 sd-image; from master
<samueldr>
instantly unpacking a fetched tarball (from fetchTarball) results in Wrote only 4096 of 6656 bytes then Cannot write: No space left on device
<samueldr>
the tarball is nixpkgs
FRidh has quit [Quit: Konversation terminated!]
<samueldr>
/tmp is not a tmpfs
<samueldr>
only one partition, fresh and not lacking in inodes
<samueldr>
anyway "Wrote only 4096 of 6656 bytes" doesn't sound like an inode issue
<iqubic`>
Why is it that most printers that work on linux only work on Debian or Fedora?
Guest71616 has quit [Quit: WeeChat 2.4]
ericsagnes has quit [Ping timeout: 250 seconds]
ambro718 has quit [Quit: Konversation terminated!]
ericsagnes has joined #nixos
<iqubic`>
So I'm trying to add a printer by ppd. I'm not sure how to get this to work.
<iqubic`>
I'm 90% certain that this ppd is valid.
<iqubic`>
The instructions on the wiki claim that this should be possible.