<{^_^}>
[nixpkgs] @veprbl opened pull request #101433 → pythonPackages.pyobjc: remove sauyon from maintainers → https://git.io/JT2Um
aleph- has joined #nixos
cantstanya has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @andir opened pull request #101434 → firefox: disable LTO by default due to segfaults with wayland → https://git.io/JT2UB
cantstanya has joined #nixos
kirc has quit [Quit: kirc]
sss has joined #nixos
<pumpy>
can configuration.nix import a glob? i want to have a /etc/nixos/conf.d/ type dir that any file i drop into it that ends with .nix will be imported
<pumpy>
or even any file in the dir no matter what the extension
<hexa->
I don't believe so
<clever>
pumpy: builtins.readDir returns a list of files
ris has quit [Ping timeout: 264 seconds]
<pumpy>
clever so i'd do imports = [ builtins.readDir("/etc/nixos/conf.d") ];?
<clever>
pumpy: that will fail in 2 ways
ericsagnes has quit [Ping timeout: 246 seconds]
<pumpy>
how can i do what i wanna do then?
<clever>
1: the () are in the wrong place, that list contains a function and a string
<clever>
2: that returns a list of strings, for just the names, not paths, you need to use map to append each to a path
<clever>
3: the arg to readDir cant be quoted either
<hexa->
> (builtins.readDir "/etc/nixos")
<{^_^}>
access to path '/etc/nixos' is forbidden in restricted mode
<pumpy>
clever i tried `imports = [ ./hardware-configuration.nix (map (x: /etc/nixos + "${x}") (builtins.readDir /etc/nixos)) ];` but it error "value is a set while a list was expected"
<pumpy>
well /etc/nixos/conf.d actually
<clever>
pumpy: oh yeah, and builtins.readDir doesnt return a list of strings
<clever>
pumpy: pop open `nix repl` and then try to eval `:p builtins.readDir /etc/nixos`
<pumpy>
clever did that on /etc/nixos/conf.d it returned { "home-manager.nix" = "regular"; }
<clever>
yeah, so its a set where the keys are filenames, and the values are the type
<{^_^}>
[nixpkgs] @veprbl pushed to master « pythonPackages.pyobjc: remove sauyon from maintainers »: https://git.io/JT2TP
<clever>
now try :p builtins.attrNames (builtins.readDir /etc/nixos)
<pumpy>
there we go!
ericsagnes has joined #nixos
<pumpy>
clever can't coerce a list to a string from `imports = [ ./hardware.nix (map (x: /etc/nixos/conf.d + "${x}") (builtins.attrNames(builtins.readDir /etc/nixos/conf.d))) ];`
<pumpy>
^ error
<clever>
pumpy: map returns a list, you then put it inside imports, a list
<clever>
pumpy: so that is [ ./hardware.nix [ ./cond.f/home-manager.nix ] ];
<clever>
you want ++ to concat 2 lists together
<{^_^}>
[nixpkgs] @IvarWithoutBones opened pull request #101436 → pythonPackages.imdbpy: init at 2020.9.25 → https://git.io/JT2kW
<pumpy>
or does that need an outer () for it to eval?
<clever>
yeah
<pumpy>
ah
<clever>
the outer () is only for lists
<clever>
because they dont use , and eat your function args
<pumpy>
clever actually had to add a / to the template like: `imports = [ ./hardware.nix ] ++ (map (x: /etc/nixos/conf.d + "/${x}") (builtins.attrNames(builtins.readDir /etc/nixos/conf.d)));`
<aquarial>
I have nix installed on ubuntu. I wrote a [default.nix] file for a custom tool I want to use. Is there a file/location I can callPackage this tool to install it into local/bin?
<aquarial>
I think home-manager is a solution, but it seems complex to me. I'd rather directly manager dotfile history
<clever>
aquarial: you can just nix-env -f /path/to/default.nix -iA foo
c4droid has joined #nixos
<clever>
aquarial: and it will grab whatever { foo = ...; } has been set to, and install it
<clever>
the binary will land in ~/.nix-profile/bin/
<c4droid>
I just installed xmonad and haskellPackages.xmonad-contrib, when I execute xmonad --recompile, the ghc cannot find xmonad library
<clever>
c4droid: you must install it with `services.xserver.windowManager.xmonad.enable = true;` to make it find ghc properly
<aquarial>
works
c4droid` has joined #nixos
c4droid has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @IvarWithoutBones opened pull request #101439 → [20.09] pythonPackages.pyotp: disable on Python27 → https://git.io/JT2m9
c4droid`` has joined #nixos
<c4droid``>
Have any solution for my problem?
<clever>
2020-10-22 23:29:50 < clever> c4droid: you must install it with `services.xserver.windowManager.xmonad.enable = true;` to make it find ghc properly
gxt has quit [Ping timeout: 240 seconds]
AstroBadger has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<c4droid``>
clever: I install xmonad using that way
buckley310 has joined #nixos
c4droid` has quit [Ping timeout: 260 seconds]
gxt has joined #nixos
justan0theruser has quit [Ping timeout: 272 seconds]
<c4droid``>
The error say cannot find module
<clever>
c4droid``: xmonad wont see any library you install normally, you must use services.xserver.windowManager.xmonad.extraPackages
justHaunted has quit [Read error: Connection reset by peer]
justHaunted has joined #nixos
<{^_^}>
[nixpkgs] @aszlig pushed commit from @edolstra to release-20.03 « test-driver.py: Fix deadlock when the log queue gets full »: https://git.io/JT2nJ
<iqubic>
So, I'm trying to run `sudo nixos-rebuild switch` and it's failing for some reason. I'm on all unstable, if that matters. Here's a the last chunk of output from the terminal. https://dpaste.com/5NQLYACLX
<nicolas[m]>
Are there any Zig packages on Nixpkgs to have an example build? I would like to package a tool and I have no clue how to go about it
<jdnixx>
euank: just now seeing your message from earlier today, but thanks I'll try out that gist to switch to master
<jdnixx>
also didn't know about status.nixos.org
<jdnixx>
how come it shows nixpkgs-unstable as being 7 days old where the lesser (more stable) releases are newer (2-3 days old)?
<cole-h>
iqubic: Remove `aspellDicts.en-science` from your packages list
<cole-h>
idk why, but it's been doing that
<iqubic>
Really? That's so strange.
<iqubic>
I'll see if that works.
<cole-h>
It's only that one dictionary, too.
<iqubic>
Oh, not en-computers or anything else?
<iqubic>
Alright, yeah, it's just that one dictionary.
Supersonic112 has joined #nixos
<dtz>
Is there an issue for en-science failing? If not please make one! Ty :)
<{^_^}>
#101194 (by acowley, 2 days ago, open): aspellDicts: force grep to treat dictionaries as text files
zakame has joined #nixos
cjpbirkbeck has quit [Quit: Goodbye, take care]
justanotheruser has quit [Ping timeout: 272 seconds]
ugubok has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #101441 → ruby: fix build on darwin → https://git.io/JT2cX
<iqubic>
So, the rebuilding of my configuration just finished, and after all the various services were reloaded, I see this message in the terminal: https://dpaste.com/F9GB8FL4G Internet connection seems fine. Should I be concerned?
endformationage has quit [Quit: WeeChat 2.9]
iqubic` has joined #nixos
jdnixx has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @samueldr merged pull request #101194 → aspellDicts: force grep to treat dictionaries as text files → https://git.io/JT0mX
buckley310 has quit [Quit: Connection closed for inactivity]
<etu>
energizer: Well, FHS describes the filesystem hirarchy used by most distros (say: Ubuntu, Debian, ...). It's mostly just nix (and guix) that actually break FHS.
<etu>
energizer: So you probably have used it without knowing unless nixos is your first distro ;)
<etu>
energizer: afaik: It takes more space because it has to copy all the files into that output since it then will chroot there to run things and the symlinks would break if it wasn't copied.
<energizer>
etu: oh that's not so bad
<energizer>
etu: doc says "It creates an isolated root with bound /nix/store, so its footprint in terms of disk space needed is quite small. "
<energizer>
so i wonder why that isn't the default
<energizer>
ie why don't we just always use buildFHSUserEnv
palo1 has joined #nixos
maxdevjs has quit [Ping timeout: 272 seconds]
<simpson>
It'd be slow, and also there's a bootstrapping/homoncular problem with creating the FHS environment's own tools, and also it's not congruent with the goal of taming packages and removing ambient authority.
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
<energizer>
simpson: buildFHSUserEnv puts the package in a sandbox, right? so is the authority any more ambient in an FHSUserEnv than in the normal /nix/store/ location?
itc-ger has joined #nixos
sangoma has joined #nixos
<simpson>
energizer: Taming a package is about altering its relationship to the packages around it. When I think of what FHS enables, I usually first think of Steam, which is a foreign package manager that subverts our entire taming scheme. So yeah, there's definitely something leaky about the FHS abstraction.
<energizer>
i havent used steam on nixos but i'm guessing its package manager installs into ~/.local/share, which is the same it would do under /nix/store anyway, no?
<energizer>
i havent used steam on nixos but i'm guessing its package manager installs into ~/.local/share, which is the same it would do if steam were installed without FHSUserEnv anyway, no?
<simpson>
Sure. Steam's basically not really tameable as-is. (There's legal obstacles; I'm so tired of copyright law.)
<{^_^}>
[nixpkgs] @jonringer opened pull request #101444 → nixos/doc: list added modules → https://git.io/JT22J
ManiacOfMadness has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
CyberManifest has joined #nixos
<hr[m]>
Could someone with merge permissions in nixpkgs please merge #101126 It's been reviewed by both package maintainers and has been waiting a few days. Thanks in advance.
<eyJhb>
How can I make nix-store availabe on a ssh login on a Ubuntu machine? Currently I have installed nix on the machine, and it sources the file when I do a normal ssh machine and then execute nix-store, but when I do ssh machine command, then it will not work
<mschwaig>
I'm looking into flakes for the first time. I can build build a rust project based on this example: https://github.com/berbiche/sample-flake-rust, but I can't figure out how to make 'nix flake check' run 'cargo test'.
<mschwaig>
Is 'nix flake check' even meant for running tests? :/
dbmikus has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @primeos pushed to master « chromium: Add some brief documentation »: https://git.io/JT2Su
olav_ has joined #nixos
<olav_>
Relative Nixos noob here : I am trying to install rPackages.RPostgres on 20.03 and it breaks complaining that /bin/bash is missing
<olav_>
Its the first time that a package from the stable branch is just unable to install for me, and I am unsure about what to do?
<olav_>
1. It was my understanding that there is a build check of packages for stable and the packages on there actually do build. Or is that a misunderstanding?
<olav_>
2. It also my understanding that the only way to do something about this is to fix this in the channel and then wait for the fix to be merged?
<{^_^}>
[nixpkgs] @wedens opened pull request #101450 → radeon-profile-daemon: init at 20190603 → https://git.io/JT29z
<dminuoso>
olav_: Without knowing the details of your problem, nixos does not comprehensively build all packages on ever ycommit.
<dminuoso>
for some, we attempt to mark packages as broken when we can (this is the case with haskellPackages)
<dminuoso>
Presumably rPackages is rust packages?
<olav_>
ahh okay
<olav_>
No its the programming language R
<dminuoso>
Ah
<olav_>
Its for Statistics
<dminuoso>
olav_: The right way is to identify the maintainer, open an issue on github and include a reference to them there, such they get notified.
<olav_>
What would be the best step forward - should I attempt to overwrite the derivation locally?
<dminuoso>
At the very least
<dminuoso>
Sure, you can do that too!
<olav_>
It has no maintainer :/
<dminuoso>
git blame then :)
<dminuoso>
Someone had to ship that
<olav_>
I would be very interested in helping with fixing this
<olav_>
But I am not strong in the Nix language yet
<dminuoso>
Author: Ryan Mulligan <ryan@ryantm.com>
<olav_>
Thanks!
<dminuoso>
Ah hold on, no. That's just someone who made the last fix
<dminuoso>
Give me a moment
<dminuoso>
olav_: There's nobody responsible because this seems to be autogenerated
<olav_>
Do you have a link for a resource on how to approach fixing a derivation?
<dminuoso>
olav_: I think it's already fixed
<dminuoso>
73ae8e53e24b
<dutchie>
ryantm is a bot, so probably won't be that helpful at responding to questions
<olav_>
Oh really?
<dminuoso>
olav_: Judging from the error and the content of the above patch, Id say it should work.
<olav_>
But I just updated my nix-channel and tried again
<dminuoso>
However, I can reproduce the error locally
<dminuoso>
That's really interesting
<olav_>
I can see that the error also happened in 2018
<dminuoso>
Because there's an override that runs `patchShebangs configure`
<dminuoso>
olav_: One option is to `git bisect`
<dutchie>
well, ryantm appears to be a real human, but afaik most of the commits in his name are due to a bot
<dminuoso>
See what commit introduced the regressoin
nschoe has quit [Remote host closed the connection]
nschoe has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #101453 → docker: use upstream repo for containerd → https://git.io/JT2FT
<supersandro2000>
mikroskeem: created a PR to fix the URL
<mikroskeem>
:)
<mikroskeem>
thanks
<supersandro2000>
s/URL/git/
<mikroskeem>
however i'll comment under the cg v2 issue
<nschoe>
Hi back. I've cloned evils's fork (to try Kicad 5.1.7). But I think I'm missing something: why is it that when I type 'nix-env -I nixpkgs=/home/nschoe/nixpkgs -qaP --description kicad' it still tells me "5.1.5".but when I do 'nix-shell -I nixpkgs=/home/nschoe/nixpkgs -p kicad' it is now starting to pull and build lots of packages (to build 5.1.7) ?
<nschoe>
Doesn't the -I flag works the same for nix-env and nix-shell?
<{^_^}>
[nixpkgs] @mweinelt pushed 2 commits to release-20.09: https://git.io/JT2FM
<{^_^}>
[nixpkgs] @arapov opened pull request #101454 → RFC: uboot: init Hardkernel Odroid C4 board and drop Armbian deps for Odroid C2 board → https://git.io/JT2Fd
werner291 has joined #nixos
simonpe^^ has joined #nixos
ManiacOfMadness has joined #nixos
<simonpe^^>
hiya! I'm looking for a simple way to modify nix files through a script, what tools are available for me to do that?
<simonpe^^>
something like jq for nix expressions would be sweet
supercoven has joined #nixos
eoli3n__ has quit [Ping timeout: 256 seconds]
<lassulus>
well nix is a programming language and not a data format, so the best way to modify nix data would be to use nix itself. You could also import json in nix and modify it beforehand with jq or something
<simonpe^^>
lassulus: mm yes, are there any obvious alternatives to json that I should consider?
<eyJhb>
clever++ for kexec repo again
<{^_^}>
clever's karma got increased to 532
<supersandro2000>
simonpe: what do you want to modify? hashes, urls, syntax, the entire thing?
<gchristensen>
nix-env is a strange one, nschoe. you could nix-build the package and then nix-env -i ./result
<eyJhb>
I have this inet_featuretool with a shebang here `#!/usr/bin/env python3`, I have modified the script to patchSheBangs like so - https://termbin.com/ezk8 but it still have the env python3...
<eyJhb>
No clue what I am doing wrong here
<Ke>
I use indeed JSON for some data that configures both debian and nixos, though I do not edit it automatically
hmpffff has quit [Ping timeout: 240 seconds]
<nschoe>
gchristensen: oh? Okay. So 'nix-build -I nixpkgs=/home/nschoe/nixpkgs -A kicad' then?
<gchristensen>
yea
<gchristensen>
well
<gchristensen>
nix-build /home/nschoe/nixpkgs -A kicad
seku has joined #nixos
<nschoe>
gchristensen: no '-I' option?
hmpffff has joined #nixos
<eyJhb>
I am going insane over this, it makes no sense
<gchristensen>
eyJhb: `python` is python2, not python3
alp has quit [Ping timeout: 240 seconds]
jul1u5 has joined #nixos
dbmikus has joined #nixos
jul1u5 has quit [Remote host closed the connection]
<eyJhb>
gchristensen: It is quite a annoying thing :( But of course it makes perfect sense
<{^_^}>
[nixpkgs] @sdier opened pull request #101455 → igmpproxy: init at version 0.2.1 → https://git.io/JT2pm
<{^_^}>
[nixpkgs] @doronbehar opened pull request #101456 → yed: wrap With wrapGAppsHook - fixes #101135 → https://git.io/JT2pl
<gchristensen>
it'd be cool if it could error if it can't fix a shebang
<eyJhb>
But then again, patchShebangs <dir> would then not be that nice :p
<gchristensen>
why not?
<gchristensen>
you didn't want to make the shebangs corect?
FRidh has joined #nixos
itc-ger has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 260 seconds]
<FRidh>
I keep getting "Bad file descriptor" and "Too many open files" when switching nixos to github:NixOS/nixpkgs/cfed29bfcb28259376713005d176a6f82951014a. Any idea what is causing it?
<supersandro2000>
FRidh: Watchman?
<FRidh>
not running that as far as I know
dbmikus has joined #nixos
saschagrunert has quit [Quit: Leaving]
<FRidh>
note: currently hard linking saves 17592186044416.00 MiB
<pumpy>
would i do xsession.windowManager.i3.enable in home manager's home.nix or services.xserver.windowManager.i3.enable in configuration.nix? im new to nixos and need help understanding how to decide whether to choose a systemwide or user config option if i have the choice. ty!
<aanderse>
stigo++
<{^_^}>
stigo's karma got increased to 3, it's a crit!
<stigo>
o_O :)
<gchristensen>
can anybody check this: if you run systemd-cgtop as your user or root, do you see values in the Input/s Output/s ? I don't, despite using cgroupv2 and having the io controller enabled for most of my cgroups
<dutchie>
nothing on either, on nixos-unstable without any tweaks to systemd/cgroups
<dutchie>
21.03pre246543.24c9b05ac53
<FRidh>
indeed nothing on either
<gchristensen>
hm
<simonpe^^>
supersandro2000: I want to add stuff to some lists
<supersandro2000>
go with json
<simonpe^^>
`{}: let hello = [ "world" ]; in { hello, ...otherstuff... }`
<gchristensen>
dutchie, FRidh: what filesystems do you use?
<pumpy>
would i do xsession.windowManager.i3.enable in home manager's home.nix or services.xserver.windowManager.i3.enable in configuration.nix? im new to nixos and need help understanding how to decide whether to choose a systemwide or user config option if i have the choice. ty!
<{^_^}>
[nixpkgs] @ryantm opened pull request #101465 → sonar-scanner-bin: rename to sonar-scanner-cli, 3.3.0.1492 -> 4.5.0.2216 → https://git.io/JTaLo
<pinpox>
Hi, I'd like to package this app for nixpkgs https://github.com/solusipse/fiche Could anyone give me a rough guidance on how to do that correctly?
<pinpox>
It should include the service aswell, so it can be started like other services
<mikroskeem>
hopefully this helps with cg v2 migration plans :)
<aminechikhaoui>
pinpox that should be fairly simple as it doesn't look like that app has external dependencies other that what stdenv.mkDerivation would provide already
<aminechikhaoui>
running services would require adding a NixOS module if you're planning to run it on NixOS
<mikroskeem>
(hunting cg v2 myself mainly because monitoring per-cgroup psi has made my life a lot easier)
<pinpox>
aminechikhaoui: is adding a nixOS module a problem? I've not done that before
<pinpox>
I've forked and checked out nixpgks, I'll try to follow the guide and create a PR draft so I can ask about the progress
<{^_^}>
[nixpkgs] @grahamc merged pull request #101416 → tailscale: Include version in build flags → https://git.io/JTgdZ
<{^_^}>
[nixpkgs] @TredwellGit opened pull request #101467 → chromium: use official build settings → https://git.io/JTamQ
dbmikus has joined #nixos
eoli3n_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @alirezameskin opened pull request #101468 → zktree:: init at 0.0.1 → https://git.io/JTaYO
dbmikus has quit [Ping timeout: 260 seconds]
whatisRT has joined #nixos
<pinpox>
aminechikhaoui: Ok, I'll try that. I'm just now looking more thorougly at the repo, it seems like it hasn't been updated in 3 years. The tool seems to work file at https://termbin.com, is that something I should be concerened about? still worth packaging?
<aminechikhaoui>
pinpox I haven't actually checked the tool, but yeah if you were planning to add it to nixpkgs maybe it's not a good idea if it's not actively maintained or widely used as every package addition increases the maintenance burden for nixpkgs. But if you were planning to package it for your personal use it can be done outside of nixpkgs as well.
<{^_^}>
[nixpkgs] @zowoq merged pull request #101442 → valgrind: disable on darwin → https://git.io/JT2u6
<{^_^}>
[nixpkgs] @zowoq merged pull request #101453 → docker: use upstream repo for containerd → https://git.io/JT2FT
<{^_^}>
[nixpkgs] @zowoq pushed commit from @SuperSandro2000 to master « docker: use upstream repo for containerd »: https://git.io/JTaOg
ericsagnes has quit [Ping timeout: 260 seconds]
dbmikus has joined #nixos
<{^_^}>
[nixpkgs] @pinpox opened pull request #101469 → initial commit based on gnu-hello → https://git.io/JTa3L
davidv7 has quit [Ping timeout: 272 seconds]
<pinpox>
aminechikhaoui: I have opened a draft pull-request for further discussion, adapted from the gnu-hello example
Soo_Slow has quit [Quit: Soo_Slow]
dbmikus has quit [Ping timeout: 260 seconds]
<pinpox>
aminechikhaoui: Don't really know how widely it is used. I find it very handy and have been using it for years, It's just a pastebin that you can use with netcat like this "cat file.txt | nc termbin.com 9999"
Rusty1 has joined #nixos
<pinpox>
Has a few open issues, but nothing breaking
werner291 has joined #nixos
<ptrcmd>
I want to enable sof-firware on the default nixos 20.03 kernel..and I added hardware.firmware = [ pkgs.sof-firmware ]; to my configuration.nix
<ptrcmd>
when I run "dmesg | grep sof", I don't see any output related to the sof-audio-pci
Ariakenom has quit [Quit: Leaving]
<ptrcmd>
I am on linux 5.4.72
<turbo_MaCk>
Was there any breaking change in nixos unstable? I'm not able to rebuild my system with --upgrade -- fails on user-environment.drv
cfricke has quit [Quit: WeeChat 2.9]
<jared-w>
If you're using nvidia drivers, nvidia borked their software on linux 5.9
<{^_^}>
[nixpkgs] @aquarial closed pull request #101279 → redshift-plasma-applet: update patchPhase to fix manual updates, don't use upstream → https://git.io/JTu1V
<turbo_MaCk>
I'm not. I have thinkpad with intel and desktop with AMD.
<jared-w>
Hmm. Not sure, then. In general, nixos unstable makes breaking changes relatively-ish often and if you're going to update frequently, you'll likely want to use a pinned nixpkgs version rather than channels so that you can roll forward as well as backwards
<turbo_MaCk>
ah got it... I think the problem is in /nix/store/v3m40ghhnl2xf9lj7q7bxq2bffmdacxa-aspell-dict-en-science.drv
<gchristensen>
turbo_MaCk: probably should post more information :)
<dutchie>
turbo_MaCk: there's a fix for that merged
<turbo_MaCk>
ptrcmd: Sorry I joined late to see what you're trying to solve. Can you sum it up in case I can help?
johnny101 has quit [Ping timeout: 258 seconds]
<ptrcmd>
turbo_MaCk: I am to get microphone to work on my system
<ptrcmd>
turbo_MaCk: I am using a dell inspiron 7590 w/ nixos 20.03
<ptrcmd>
turbo_MaCk: and linux 5.4.72 from nixos stable
<ptrcmd>
turbo_MaCk: and I added hardware.firmware = [ pkgs.sof-firmware ]; to my configuration.nix
<ptrcmd>
turbo_MaCk: currently it seems that this is not enough
<turbo_MaCk>
ptrcmd: first thing I would check is if you have sound.enable = true; hardware.pulseaudio.enable = true; hardware.pulseauidio.package = pkgs.pulseaudioFull;
<turbo_MaCk>
what I would try is to set boot.kernelPackages = pkgs.linuxPackages_latest;
<ptrcmd>
turbo_MaCk: thanks. I am going to try this option now.
<ptrcmd>
turbo_MaCk: oh well, building this config is going to take sometime on my laptop
<ptrcmd>
oh I was wrong. the build just completed heh
<turbo_MaCk>
ptrcmd: let me know if it helped. Anyway I'm worried I don't have any other advice other than looking into kernel.
<ptrcmd>
so I am going to reboot and see if it works
avn has joined #nixos
<turbo_MaCk>
sounds good
<ptrcmd>
turbo_MaCk: hmm..so, with this change, I can see my mic in pavucontrol
<turbo_MaCk>
fire some some sw to test if it works :)
<ptrcmd>
turbo_MaCk: I wasn't able to get my mic to work (I tested it in audacity) before my laptop hanged :(
<ptrcmd>
turbo_MaCk: looks like it's not stable
<ptrcmd>
turbo_MaCk: the linuxPackages_latest stuff
<ptrcmd>
turbo_MaCk: on my laptop
<ptrcmd>
sad
<turbo_MaCk>
you can try other version of kernel packages. Anyway it will eventually be supported byt these driver things come hand in hand with kernel.
<turbo_MaCk>
you can use nix repl and then :load <nixpkgs> to explore te attributes in kernelPackages
<{^_^}>
[rfcs] @dasJ closed pull request #79 → [RFC 0079] No more direct pushes to master and release branches → https://git.io/JT0c3
<ptrcmd>
turbo_MaCk: thanks :)
<ptrcmd>
yeah :l <nixpkgs> is handy
<turbo_MaCk>
good luck resolving this. I'll hang around there in case you make some progress feel free to ping.
<ptrcmd>
thanks :)
<{^_^}>
[nixpkgs] @bjornfor opened pull request #101472 → parallel: fix calculation of max line length → https://git.io/JTaW2
growpotkin has joined #nixos
dansho has joined #nixos
<turbo_MaCk>
in worst case you'll be stuck with RMS style opsec device... you'll just need to find a way to break your webcam as well :D
<pinpox>
If there are no further required changes it's up for merging
nDuff has joined #nixos
meh`_ has joined #nixos
<turbo_MaCk>
pinpox: you'll need to wait for commiter (which I'm not, I'm just maintainer with no write to master). Reviews from maintainers are only to help commiters.
<pinpox>
turbo_MaCk: Ok, I see. I made your changes and pushed, hope that is correct now
meh` has quit [Ping timeout: 246 seconds]
malook has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #101473 → nixos/nixos-build-vms: use `pkgs.qemu` for virtualisation → https://git.io/JTa4L
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #101475 → flake.nix: Make all nixosSystems overridable → https://git.io/JTauB
never_released_ has quit [Ping timeout: 264 seconds]
never_released has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #101476 → pythonPackages.pystray: mark linux only → https://git.io/JTauH
lsix has quit [Quit: WeeChat 2.9]
eoli3n_ has joined #nixos
alp has quit [Ping timeout: 272 seconds]
eoli3n has quit [Ping timeout: 256 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbmikus has joined #nixos
<{^_^}>
[nixpkgs] @marius851000 opened pull request #101477 → plasma-workspace: add glib-networking and gstreamer as dependancies (for environment variable) → https://git.io/JTazQ
<simpson>
nixpkgs question: Is there a general practice for wiring up languages whose toolchains have some sort of pure execution, so that both the language toolchain and Nix agree that a certain binary is sending certain Nix-managed inputs to outputs purely?
<tpw_rules>
fetchFromGitHub is behaving weird for me with regard to revisions. i have my src = fetchFromGitHub {rev="v1", sha256="abc"} and the derivation works. i want to update to v2 so i set src = fetchFromGitHub {rev="v2", sha256="abc"} because i don't know the new hash, but it still builds v1. i change the hash to something bogus, it says the hash it got is "def", so i put src = fetchFromGitHub {rev="v2", sha256="def"} and now the derivation
<tpw_rules>
builds v2
<simpson>
IOW is there an accepted way to extend the acceptable languages for writing builders?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTaKk
Guest8470 has joined #nixos
<Guest8470>
Hello. Does anyone know how to link `libatomic.so.1`? I need it in an autoPatchElf step.
<clever>
,locate libatomic.so.1
<{^_^}>
Found in packages: gcc-unwrapped.lib
emmanuel_erc has joined #nixos
rotaerk has joined #nixos
<emmanuel_erc>
hello there
<Guest8470>
nice. I'll try. Btw, is there a command line version of what you did?
<emmanuel_erc>
Is it normal for some attributes to be not present when using overrideAttrs?
Jonathan20 has joined #nixos
<Jonathan20>
Hey, quick question. I am trying to use SDL2 in an app of mine, I am getting link errors. I think the problem might have to do with the `dontDisableStatic` parameter in the Nix expression, how do I change that?
<Guest8470>
clever: ^^
<Jonathan20>
(In a shell.nix)
<emmanuel_erc>
In particular, I 'm trying to override the py attribute in the derivation of libxml2 (which is in nixpkgs btw)
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<clever>
Guest8470: ^
<Guest8470>
clever: Thank you :)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-skylighting: update override for the new version »: https://git.io/JTaKu
meh`_ has quit [Ping timeout: 264 seconds]
<Jonathan20>
`pkgs.SDL2.override {withStatic = true;}` is not working.
maxdevjs has joined #nixos
<Jonathan20>
`error: cannot coerce a set to a string, at . . .`
<Jonathan20>
Right, makes sense. I am not very fluent at the nix language.
<emmanuel_erc>
Actually, got a better question. I think I understand why I'm running into a problem.
alp has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JTa63
cosimone has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTa6n
<emmanuel_erc>
in the definition of overrideAttrs, it seems that mkDervation is already called before you override any of the attributes. The attribute that I want to override seems to only be there "before" the call to mkDerivation.
cosimone has joined #nixos
cosimone has quit [Client Quit]
<{^_^}>
[nixpkgs] @sikmir opened pull request #101485 → openscenegraph: enable on darwin → https://git.io/JTa6E
NinjaTrappeur has quit [Ping timeout: 260 seconds]
<tpw_rules>
fetchFromGitHub is behaving weird for me. i have my src = fetchFromGitHub {rev="v1", sha256="abc"} and the derivation works. i want to update to v2 so i set src = fetchFromGitHub {rev="v2", sha256="abc"} because i don't know the new hash, but it still builds v1. i change the hash to something bogus, it says the hash it got is "def", so i put src = fetchFromGitHub {rev="v2", sha256="def"} and now the derivation builds v2
<cole-h>
That's because the source is cached based on that sha256 hash.
<cole-h>
So if you don't change it, it will think it doesn't need to fetch anything new, even though the rev changed.
<cole-h>
,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. For inserting 52 0's in vim: <esc>52i0<esc>
<tpw_rules>
i mean i used a certainly wrong hash and it didn't work ;P
<tpw_rules>
but that's good to know. thank you
<cole-h>
It's not "certainly wrong" if it's an existing hash :)
<cole-h>
It might be wrong in the context, but it exists and thus is not wrong-wrong.
zakame has quit [Ping timeout: 260 seconds]
<pr06lefs>
do the normal build phases get run by nix-shell?
zakame has joined #nixos
<pr06lefs>
I'm looking to modify $NIX_CFLAGS_COMPILE in my shell.nix. not sure what phase to do that modification in? configurePhase?
<cole-h>
If you run it like `nix-shell -A attr`, no.
<theuni>
not sure what the state today is, but i did experience issues when just keeping an old hash while working on a new expression because it would just simply pick up the old "thing" instead of fetching the new item and comparing it to the hash. maybe that was fixed/changed at some point?
<pr06lefs>
this worked for me, not in any build phase: NIX_CFLAGS_COMPILE = "-isystem ${lib.getDev gnome2.libglade}/include/libglade-2.0";
<pr06lefs>
and then the rest of the normal stuff is appended later I guess
hmpffff has quit [Ping timeout: 272 seconds]
<cole-h>
theuni: That's the problem -- it picks up the old thing because it's cached based on its hash (the provided sha256)
<cole-h>
"problem"
<cole-h>
If the hash doesn't change, Nix assumes the contents haven't changed, regardless of anything else that has chanegd
<pumpy>
using home-manager services.keybase.enable enables the daemon in home manager but i still gotta add keybase-gui to systempackages?
Izorkin has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
plakband has joined #nixos
Guest8470 has quit [Quit: Connection closed]
<pumpy>
i import any config dropped into /etc/nixos/conf.d into my configuration.nix. `(map (x: /etc/nixos/conf.d + "/${x}") (builtins.attrNames(builtins.readDir /etc/nixos/conf.d)));` but how can i make it only pick up files that END IN .nix pls?
<pumpy>
ansible makes file.nix.backups and those are getting imported too :(
<gchristensen>
> builtins.filter
<{^_^}>
<PRIMOP>
plakband has quit [Client Quit]
<pumpy>
hm
<gchristensen>
and I'm not sure how to do a substring, nix isn't really "for" this type of programming so I don't do it much
<pumpy>
so i add a filter around the attrNames to check if it ends with .nix. how in nix to check string ending?
<gchristensen>
builtins.stringLength and builtins.substring
<theuni>
cole-h: for all things that are fantastic with nix/nixos in it's design there's a number of usability issues that make it "fun" at not-so-opportune moments ;)
alp has quit [Ping timeout: 272 seconds]
maxdevjs has quit [Ping timeout: 256 seconds]
<pumpy>
gchristensen are you thinking i get last 4 chars of string and see if it equals .nix?
<gchristensen>
yea
<pumpy>
what's stringLength for? to make sure it's >=4 long first?
<gchristensen>
no, to know where to start in the string
<pumpy>
oh, length - 4?
maxdevjs has joined #nixos
<pumpy>
gchristensen ^
maxdevjs has quit [Remote host closed the connection]
<dminuoso>
Mmm. So when we setup a nixos machine, we generally always follow the same routine and exact same partitioning commands. Does nixos have the facility to create a custom iso that will invoke predefined commands?
maxdevjs has joined #nixos
<dminuoso>
Ideally I want a low-effort fresh nixos vm that I can just spool up
<emmanuel_erc>
tpw_rules: So I'm trying to get rid of the python interpreter in my build. It seems to be brought by the "py" output of nipkgs.libxml. It is necessary for it to be there?
<emmanuel_erc>
Based on what you said.
<infinisil>
,tias pumpy
<{^_^}>
pumpy: Try it and see! (then tell us what you saw)
Izorkin has quit [Ping timeout: 260 seconds]
<tpw_rules>
can you configure libxml without specifying python as an input?
<infinisil>
Reventlov: -> #nixos-chat
<Reventlov>
infinisil: well, I'm really sure it can apply to nixos, as nixos distributes youtube-dl too.
<infinisil>
Oh you meant it in that regard
<Reventlov>
yeah, since nixpkgs is on github too (even if this case, this wasn't covered)
<infinisil>
Well, I'm just lmaoing here at how they expect the DMCA to have the effect they want xD
<infinisil>
Like, as if they could just tell github to take that down, and even if, the source code can be forked and copied to hundred other sites
<tpw_rules>
easy: because it needs constant and vigilant maintenace
<tpw_rules>
maintenance
<pumpy>
infinisil what's ,tias mean?
<infinisil>
pumpy: Look at what the bot replied
<gchristensen>
Reventlov: we don't host the youtube-dl source, it is unlikely we'd get anything about it
<pumpy>
infinisil why do you keep saying tias at me?
<gchristensen>
he is hoping you will try it and see
<gchristensen>
20:12 <{^_^}> pumpy: Try it and see! (then tell us what you saw)
<pumpy>
hm i didnt see that, i ignored the bot
<pumpy>
too noisy
<pumpy>
Reventlov someone should make a blacklist for any music the RIAA represents. it's all garbage anyway
<samueldr>
that's a bit off-topic, and a bad generalization
<pumpy>
its copyright poison is a virus that infects all other actually good media
rprije has joined #nixos
<infinisil>
samueldr++
<{^_^}>
samueldr's karma got increased to 288
meh` has joined #nixos
meh` has quit [Ping timeout: 260 seconds]
meh` has joined #nixos
<emmanuel_erc>
tpw_rules: I mean it always will be a buildInput. I just don't want the closure of my build to include the python interpreter if that can be done.
<emmanuel_erc>
All I really wnat to know for certain is if the python interpreter is an actual run-time dependency
<tpw_rules>
emmanuel_erc: i mean it looks like you can just pass pythonSupport = false to libxml? not sure i understand what you want
<emmanuel_erc>
But I would need to call the function specified in the file with callPackage (and set pythonSupport to false). I'm not entirely sure how to do that.
<emmanuel_erc>
Maybe I forgot something.
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #101485 → openscenegraph: enable on darwin → https://git.io/JTa6E
<est31>
simpson: at the very least, nix OS could clone/cache all git repos referenced, and make derivations build those
<supersandro2000>
Don't panic!
heatm1s31 has quit [Remote host closed the connection]
<est31>
then a takedown turns an availability problem into a problem of availability of updates
<est31>
not panicing
<Akira[m]>
takedown request isn't even valid, DMCA takedown is only for copyrighted material, "circumvention tools" have to be sued
<Akira[m]>
this will be fixed in the coming days...
<est31>
interesting, didn't know that
<est31>
anyways this reminds me I haven't used youtube dl since a while
<emmanuel_erc>
tpw_rules: If you're still there... All I want to do is make sure that the python interpreter is not in the closure of my build. I've tried using this expression "pkgs.libxml2.override { pythonSupport = false; }". Somehow python still shows up in the closure (I'm using nix why-depends to find it)
<est31>
should try it out again
<Yaniel>
also there's the argument to be made that ytdl is used for compatibility reasons, which apparently has an explicit exception in the DMCA
<supersandro2000>
> the source code expressly suggests its use to copy and/or distribute the following copyrighted works owned by our member companies:
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):345:131
<tpw_rules>
emmanuel_erc: i don't really know much about nix. i don't know
<supersandro2000>
basically you linked 3 videos in your tool which shows that your protection is easily circumventable
ManiacOfMadness has joined #nixos
<emmanuel_erc>
ok
commander has joined #nixos
exco has quit [Ping timeout: 246 seconds]
<pumpy>
https://dpaste.org/5ji5 error that undefined var 'filter'. why it undefined it's a builtin just like map no?
<samueldr>
pumpy: builtins are not part of the global scope
<samueldr>
pumpy: map is a specific case here
<samueldr>
pumpy: you can open `nix repl` and use [tab] to view what's in that scope
<samueldr>
all double-underscored identifiers are internal and not for use :)
<pumpy>
just seems like something called "builtin" shouldn't need a special step to import it :D
<clever>
builtin is more for things implemented in c++
<clever>
lib also contains references to all builtins
<clever>
so you can just throw a `with lib;` at the top, and then it will find everything
<jared-w>
Which, honestly, I kinda wish more things were. I know it's unreasonable to do any "real" programming in nix, but speed improvements are always nice
<dminuoso>
There's still some glue missing for UEFI, but I think this is a good starting point.
davidv7 has joined #nixos
<dminuoso>
(I bet in 6 weeks from now Ill have a packet-nixos equivalent)
jtobin has quit [Quit: Lost terminal]
dbmikus has quit [Ping timeout: 260 seconds]
shibboleth has quit [Quit: shibboleth]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
laduke-132 has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
Rusty1 has quit [Quit: Konversation terminated!]
Tenzer has quit [Quit: Connection closed for inactivity]
zupo has quit [Ping timeout: 260 seconds]
czer00 has quit [Quit: WeeChat 2.9]
Izorkin has joined #nixos
zupo has joined #nixos
<laduke-132>
hey, i'm trying to get a c++ hello world env going. I'm looking through here https://nixos.wiki/wiki/C . I keep getting iostream not found, so I'm missing some standard stuff. Not sure if a darwin specific issue.
<clever>
laduke-132: are you in nix-shell?
<laduke-132>
yeah
<laduke-132>
looking at the shell.nix from the cmake section currently
<pumpy>
for builtins.readDir is a path of ./foo relative to dir the config.nix file is in?
<clever>
pumpy: all relative paths are relative to the file the path is within
<clever>
pumpy: nix turns them into absolute paths as it parses the file
<pumpy>
great
<pumpy>
clever++
<{^_^}>
clever's karma got increased to 534
<clever>
laduke-132: can you run `cat shell.nix hello.c ; cmake .` and then take a screenshot and upload it somewhere?
<laduke-132>
stanby
dmedinag has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar pushed 23 commits to gnome-3.38: https://git.io/JTadP
<dmedinag>
hey there! I'm looking for help to build my first derivation, is there anyone around to help out? I just have one issue to solve that I've been fighting against for a couple of hours now
<laduke-132>
if there's a repo somewhere with a hello-world (that uses iostram or something) and a shell.nix. that'd be cool to look at
<{^_^}>
[nixpkgs] @bbigras opened pull request #101503 → angle-grinder: init at 0.15.0 → https://git.io/JTadN
<dmedinag>
context: if I run `nix-shell -p pkg-config openssl`, I can get a successful status code for `pkg-config libssl` (run by the makefile). But in my builder, I'm getting the opposite
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<dmedinag>
I found out that the openssl package that is being loaded in the builder is not the same as the one in the shell:
<clever>
dmedinag: it looks like your re-writing half of the nixpkgs utils from scratch
<clever>
dmedinag: you just want to use the existing callPackage in nixpkgs, rather then making your own
<clever>
dmedinag: same for mkDerivation, just use stdenv.mkDerivation
<dmedinag>
the one in the shell is `/nix/store/7figba9q8yrgz4gj9yhqgjri97h9snsb-openssl-1.1.1g` (which contains a /lib dir), but the one in the build script is `/nix/store/q0ajpzppqfrlbzbddbbzv1w6vfzydhk5-openssl-1.1.1g-bin`
<dmedinag>
oh, well. Following the nix pills I probably didn't get far enough haha my bad
<clever>
dmedinag: pkg-config relies on setup hooks, and your mkDerivation likely doesnt handle those properly
<clever>
dminuoso: in my case, i didnt have a directory of sources, so i made a custom unpackPhase, and i lacked a makefile, so i just threw in a buildPhase too
<laduke-132>
which is it's own fun thing to figure out
<clever>
dminuoso: and the pkgsCross part, makes it magically cross compile to arm instead
<clever>
laduke-132: you generally dont want to add compilers to the inputs, you want to instead change the stdenv
alp has quit [Ping timeout: 272 seconds]
<clever>
laduke-132: such as clangStdenv.mkDerivation
<clever>
though i dont see one for clang10...
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @sikmir opened pull request #101507 → python3Packages.pygmt: init at 0.2.0 → https://git.io/JTabz
<laduke-132>
I'll check it out. No idea what I'm doing
Rusty1 has joined #nixos
<evanjs>
discovered https://github.com/imtbl/hyve but then realized there are a few sub projects that use yarn/vue etc to build. I was able to generate the main yarn.nix, but I'm not sure what approach I should take for the sub projects 🤔
<danderson>
anyone happen to have a git repo of nixos configs that use flakes? I'm switching mine to flakes and looking for how folks organized their files given flakes's constraints.
<{^_^}>
[nixpkgs] @jtojnar pushed to gnome-3.38 « webkitgtk: clean up »: https://git.io/JTapx
is_null has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @colemickens opened pull request #101514 → fluffychat: init at v0.20.0 [major wip] → https://git.io/JTahc
seku has quit [Quit: Connection closed]
mbrgm_ has joined #nixos
<colemickens>
I didn't have to change the layout the core of my actual configs much for flakes: https://github.com/colemickens/nixcfg I've got cloud vms, raspberry pis, regular x86_64 laptops in there, custom packages, an overlay and my nixos hosts. Hopefully it's helpful, lmk if you have questions danderson .
<nbathum>
trying to package up what will become pythonPackages.diagrams
<nbathum>
but it needs an older pythonPackages.graphviz -_-
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm_ is now known as mbrgm
<nbathum>
have something working outside of nixpkgs, but now trying to figure out where to put this override
<nbathum>
some python libraries have a `let myPkg' = ... in` where they need to tweak a (python) input
<nbathum>
but pythonPackages.graphviz takes graphviz as an input
<{^_^}>
[nixpkgs] @r-burns opened pull request #101515 → blugon: fix build on darwin → https://git.io/JTajL
<nbathum>
I suppose I'll just get something working and put it up as a draft so that someone with more python and nixpkgs knowledge can suggest how to do this properly