<{^_^}>
[nixpkgs] @risicle pushed 2 commits to release-20.09: https://git.io/JUldy
<andrewrk>
howdy! I'm running stable channel and I just updated today, and audio via my headphones via the analog jack suddently stopped working. This is pulseaudio, I verified the headphones work when plugged into my phone, and *going back to the previous nixos-rebuild version in grub did not fix it*
<andrewrk>
any ideas to troubleshoot?
<clever>
andrewrk: run alsamixer, switch to the alsa device (not pulse), and check if its muted?
<andrewrk>
pavucontrol recognizes when I plug and unplug the headphone and shows the volume meter responding to sound playback. I tried emitting sound via different applications
<andrewrk>
oh my god. I ran audacity once. could that be the culprit??
<clever>
the alsa behind pulse sometimes goes on mute
<clever>
it can also happen when drivers upgrade
<andrewrk>
alsamixer shows a meter that matches my system volume and responds to the system volume changes
<clever>
headphone may have its own meter, seperate from master
<clever>
try un-mute and turning up various things
<andrewrk>
the speaker channel makes the sound come out of my laptop even though headphones are plugged in
<andrewrk>
the Port dropdown in pavu control mutes speaker / unmutes Headphone (leftmost) and vice versa
<clever>
not sure then
<andrewrk>
thanks for trying
<clever>
did you reboot after doing rollbacks?
<andrewrk>
every time
<clever>
and check alsamixer again, on the older versions?
<andrewrk>
I mean I rolled back by rebooting and selecting a different grub version
<andrewrk>
no, I'll try that now, roll back + check alsamixer
<andrewrk>
brb
<colemickens>
I can do QEMU_OPTS="-display none" to get the nixos build-vm output to run headless, but the console isn't connected
<colemickens>
oh crap I was not trying to send that, the answer was virtualisation.graphics=false.
<clever>
colemickens: you must disable the display with a nixos option
<clever>
that one
kleisli has quit [Ping timeout: 244 seconds]
h0m1 has quit [Ping timeout: 240 seconds]
h0m1 has joined #nixos
<andrewrk>
alsamixer looks and behaves the same on the older nixos version and the newer one (new one is 20.03.2741.4364ff933eb (Markhor)) not sure how to check the older one without rebooting and looking at grub
<clever>
you can read the grub.conf in /boot/
teto has quit [Ping timeout: 244 seconds]
<andrewrk>
old one is NixOS 20.03.2741.4364ff933eb
<andrewrk>
I shined a light in the port, seems fine
<andrewrk>
I appreciate the troubleshooting suggestions. I think I'm going to give up for today
<andrewrk>
pulseaudio recognizes when I plug and unplug the headphones
<notgne2>
andrewrk (chat.freenode.net): wait, are you using a low-power intel laptop of some kind
<andrewrk>
not sure what you are asking
<andrewrk>
this baby has 16 CPU cores and 32 GB RAM
nixbitcoin has joined #nixos
ris has quit [Ping timeout: 244 seconds]
<notgne2>
oh, probably not what I was thinking of then
<notgne2>
I know some skylake chromebooks can be very weird with sound
<notgne2>
and misconfiguration can actually cause fires
nixbitcoin_ has quit [Ping timeout: 240 seconds]
<andrewrk>
I've been using audio on this laptop for years no problem. the only thing that happened in my setup that coincided with this issue is `nixos-rebuild switch --upgrade`
kleisli has joined #nixos
rajivr has joined #nixos
<notgne2>
with an ASUS C302 I had I wrangled with sound for months before giving up, got it working pretty easily after I switched to NixOS but one day after some random kernel update it started rapidly overheating again whenever playing sound
<notgne2>
I don't even remember what the fix or issue is, but embedded sound cards on laptops, especially chromebooks, I've heard to have many similar issues
<notgne2>
anyway I'd say that's probably not the issue you're having, but definitely watch the temperatures
icey_ has joined #nixos
MtotheM has quit [Quit: Leaving]
mvnetbiz_6 has joined #nixos
<andrewrk>
this is a bummer because it's unclear that this will ever be solved and I won't be able to listen to music anymore :(
<patagonicus3>
I've set up an NFS mount with options = ["x-systemd.automount" "noauto" "x-systemd.idle-timeout=1min"] and the autofs mount that shows up in `mount` does show the option `timeout=60`, but even waiting a few minutes after accessing the mount point, the actual NFS mount is still not unmounted. What am I doing wrong?
<patagonicus3>
For context: I have two machines that are not on all the time. I'd like to have automatic mounts for some NFS shares, but I'd like to automatically unmount them so it doesn't get annoying if the server shuts down before the client.
stiell has joined #nixos
nixbitcoin has quit [Ping timeout: 240 seconds]
nixbitcoin has joined #nixos
TheMule has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmohammadi98121 has joined #nixos
mmohammadi9812 has quit [Read error: Connection reset by peer]
da39a3ee5e6b4b0d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nf>
if i type `mkIf true 42` at a nix repl, i get some sort of internal object with a _type = "if" attribute. how do i evaluate that into 42?
<mvnetbiz_>
I can't find out why knot-resolver/kresd is running on my nixos machine. services.knot.enable = false and I cant find anything else in my configuration related to that
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ris has joined #nixos
<mvnetbiz_>
nf, how are you trying to use that? normally it gets evaluated by the module system
Extends has joined #nixos
Extends has quit [Client Quit]
Extends has joined #nixos
<nf>
ah, it's specific to the module system, ok
Extends_ has joined #nixos
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
Extends_ has quit [Client Quit]
<patagonicus>
nf: if you just want a conditional you can use `if val then "foo" else "bar"`. Or something like `lib.strings.optionalString val "foo"` (which returns an empty string if val is false).
marcusr has quit [Remote host closed the connection]
<gleber>
johanot: In relation to https://github.com/NixOS/nixpkgs/pull/45670. I was wondering. Would it be possible to make `easyCerts` mechanism work synchronously in relation to k8s systemd units? Currently IIUC there is no synchronization happening between them and various k8s systemd units would restart repeatedly until the certs appear on disk in the right locations. This makes tests very noisy and harder to debug than
marusich has quit [Remote host closed the connection]
prusnak_ is now known as prusnak
prusnak has joined #nixos
prusnak has quit [Changing host]
prusnak has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #97897 → exiv2: fix build on darwin → https://git.io/JU8UL
cptrbn has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peelz has joined #nixos
pgiarrusso has joined #nixos
philr has joined #nixos
<NieDzejkob>
how can I get a path for a specific package? On guix, I'd do "guix build hello", but "nix-build -A hello" results in "error: getting status of '/home/kuba/default.nix': No such file or directory"
<NieDzejkob>
extends: I want to get the path and make sure it is populated
<Extends>
what do you mean by populated ?
<NieDzejkob>
like, the actual output files are there
<NieDzejkob>
right now I know the path but it doesn't exist in my store
<Extends>
ah, because you haven't installed it
<NieDzejkob>
yeah?
<Extends>
using nix eval nixpkgs.hello.outPath gives me the path to where hello is installedwill be installed
cosimone has joined #nixos
dansho has joined #nixos
<NieDzejkob>
yeah, can I force the package to be installed into that path without adding it to a profile or launching a nix-shell I'll immediately close?
<NieDzejkob>
I want to try fixing firefox's screensaver inhibiting (when playing video), so I'm getting ready to modify the wrapper. But even without any changes, nix-build says it will build firefox-unwrapped locally instead of downloading it from Hydra. Why is that? How do I debug that? https://paste.debian.net/1163596/
domogled1 has joined #nixos
sangoma has joined #nixos
ScottHDev has joined #nixos
domogled has quit [Ping timeout: 244 seconds]
domogled1 is now known as domogled
arjen-jonathan has joined #nixos
rprije has quit [Ping timeout: 244 seconds]
kleisli has quit [Remote host closed the connection]
dermetfan has quit [Ping timeout: 244 seconds]
kleisli has joined #nixos
palo has quit [Quit: WeeChat 2.7.1]
TheMule has quit [Ping timeout: 246 seconds]
<gleber>
NieDzejkob: try doing `nix-store -r /nix/store/1213....-hello` - it will download this specific store object from a cache if there's one
kleisli has quit [Ping timeout: 244 seconds]
<NieDzejkob>
gleber: Thanks!
<NieDzejkob>
Hmm, wrt the firefox substitues, it seems that cache.nixos.org and hydra.nixos.org are separate caches? How can I authorize the latter? I guess I'll need to find its public key?
<gleber>
FWIW this path won't be in any gcroot, so it might get reaped by the garbage collection
<NieDzejkob>
yeah, I usually do stuff like that to quickly check what kind of stuff I can find in a package
<NieDzejkob>
like "is libXss part of libX11 or a separate package somewhere?"
<mallox>
hi, i want to rebuild my nixos but it fails bc "/nix/store/...-stdenv-linux/setup" sources "/nix/store/...-auto-patchelf-hook/nix-support/setup-hook" which is a buch of zero bytes!? any ideas?
<{^_^}>
[nixpkgs] @mweinelt pushed commit from @risicle to release-20.09 « pythonPackages.httpx: fix tests »: https://git.io/JU8ty
<leonardp>
has anyone got a working shell.nix for using gatsby.js?
[krow] has quit [Ping timeout: 240 seconds]
mariatsji has quit [Ping timeout: 240 seconds]
<leonardp>
i have a shell.nix that gives me a nodejs-10_x environment but installing gatsby-cli via npm doesn't seem to do anything except for downloading a lot of packages
<leonardp>
i do not want to pollute my environment with npm stuff so i want to avoid installing it globally
<leonardp>
any pointers?
shabius has quit [Quit: Leaving]
kreyren has joined #nixos
<{^_^}>
[nixpkgs] @MMesch opened pull request #97908 → add nodePackages.vega-cli: init at version 5.15.0 → https://git.io/JU8qz
knupfer has quit [Ping timeout: 256 seconds]
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<{^_^}>
[nixpkgs] @risicle opened pull request #97909 → [20.09] pythonPackages.pulp: fix by adding new dependency amply → https://git.io/JU8qy
<infinisil>
The answer to your question is "yes" because there's always a reason. But to actually know the reason you'll have to give more information :)
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
shibboleth has quit [Quit: shibboleth]
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
<zfnmxt>
Has https://github.com/NixOS/nixpkgs/pull/95907 broken fonts for anyone else? I'm using GohuFont and everything is kaput again, just like it was before the otb split.
<{^_^}>
#95907 (by rnhmjoj, 3 weeks ago, merged): pkgs/data/fonts: merge back the split otb output
<juliusdeane>
infinisil: ha ha ...
<juliusdeane>
well for background I updated my channel to nixos-unstable in order to get the utf8cpp package
<juliusdeane>
now I can install utf8cpp with `nix-env -iA`, but using it as a package in nix-shell doesn't work
<{^_^}>
[nixpkgs] @risicle pushed 2 commits to release-20.09: https://git.io/JU83J
<Henson>
hi everyone, I'm working on a NixOS configuration where some sub configuration files are being pulled into a master configuration file using an "import" statement. What's a good way to pass some options from the master file down into the sub configuration files? Can these somehow appear in the {config, pkgs, ....} line at the top of the sub config files?
<lassulus>
well the best way is to use options IMHO
<clever>
Henson: you want imports not plain import, then you can use { config, ... }: and just define your own config options
<Henson>
clever: yeah, sorry, I meant I'm using an "imports" statement.
TheMule has quit [Ping timeout: 244 seconds]
juliusdeane has quit [Ping timeout: 258 seconds]
<Henson>
lassulus, clever: so I need to create the options like in a NixOS module? I'm just looking for a lightweight way of passing a couple variables down into the sub config files.
<{^_^}>
[hydra] @dasJ opened pull request #814 → Make declarative jobsets a lot more usable → https://git.io/JU8sG
<{^_^}>
[hydra] @dasJ closed pull request #772 → Support multiple jobsets per Flake → https://git.io/JfiQP
<kaiha[m]>
I try to debug the error in the signal-desktop test (https://hydra.nixos.org/build/127123081) and it seems to fail due to network reasons. Lookup of hostnames seems not to work at all when the test is run.
<kaiha[m]>
Any hint for me how internet could be enabled in the test, [infinisil](https://matrix.to/#/@freenode_infinisil:matrix.org) ? Or is use of internet in the tests discouraged?
<infinisil>
You can't enable it
<infinisil>
For purity reasons
<infinisil>
Well, you can turn off the sandbox, but that's not accepted in nixpkgs, and probably shouldn't be accepted anywhere else either
<astro>
hi, I'm trying to make a nix flake, but building it requires getting some metadata from the git repo. how do I get this metadata?
juliusdeane has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @knedlsepp to master « python.pkgs.geopandas: 0.8.0 -> 0.8.1 »: https://git.io/JU8G9
sangoma has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
<evanjs>
Updated the issue with my comments, at least. Bah, totally unfamiliar with the haskell ecosystem and large updates like mass mark-as-unbroken-ings
<{^_^}>
[nixpkgs] @jonringer pushed commit from @rski to master « python3Packages.jenkinsapi: fix build »: https://git.io/JU8cI
xAndy___ is now known as xAndy
xAndy has quit [Client Quit]
xAndy has joined #nixos
zupo has joined #nixos
<abathur>
anyone know why Nix (installed with installer built from master) would throw "file 'nixpkgs' was not found in the Nix search path..." errors on daemon/multi-user installs but not on single-user?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
presto8 has joined #nixos
presto8_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #97894 → busybox: Fix 404 error by using git instead → https://git.io/JU8f5
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JU8WO
[krow] has joined #nixos
kroh has quit [Ping timeout: 265 seconds]
cptrbn has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cptrbn has joined #nixos
cptrbn has quit [Client Quit]
arjen-jonathan has joined #nixos
karantan has joined #nixos
rogue_koder has quit [Ping timeout: 246 seconds]
<judson>
Has anyone figured out a TOFU for nix expressions? I would love to be able to tighten the loop of plugging in lib.fakeSha256, and then c&p the "got" from the error in.
rogue_koder has joined #nixos
<{^_^}>
[nixpkgs] @NieDzejkob opened pull request #97927 → chez-modules: Fix path to csv-site. → https://git.io/JU8Wo
<judson>
I imagine a tool that would find fakeSha references, edit them in place, and then run nix build, capturing errors and replacing, until they're gone.
zakame has quit [Ping timeout: 244 seconds]
cosimone has quit [Quit: Quit.]
<judson>
Although, the loop I'm in right now is using a fakeSha as a default expression, so there'd need to be a check for "the wanted: error is a sha we wrote..."
<buffet>
hey im trying to wrapProgram rust-analyzer, however nothing im trying to do seems to work (supposedly because of the rust-analyzer/rust-analyzer-unwrapped thing)
<buffet>
any idea on how i can fix that?
<cole-h>
,tofu judson
<{^_^}>
judson: 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>
presto8 has quit [Quit: leaving]
<buffet>
i feel like that should probably mention lib.fakeSha256
<judson>
What is the story these days with Flakes?
<immae>
ah
kaivai has joined #nixos
Extends_ has joined #nixos
<immae>
That’s what I understand from their warning though
<cole-h>
It's probably more of a CYA
<judson>
I was asking because I keep thinking about building nix-tofu; but I hate getting into a project only to discover there's already a solution out there.
<cole-h>
It *might* be destructive under certain, hard-to-reproduce scenarioes
<immae>
ok
<immae>
That‘s good enough to have a try then, I guess :p
<cole-h>
(I've been using it since ~when I started getting into Nix{,pkgs} in ~February)
<immae>
(ok good to know)
<cole-h>
There's only one time it messed up (but didn't mess up the file).
<cole-h>
Well, didn't mess up the file destructively
<immae>
ok
<immae>
that’s the only thing I fear actually
alp has joined #nixos
<immae>
formatting it and losing my last hard-hour of work
<buffet>
as long as you format from inside your editor, you should be able to jsut press undo and have everything back anyways
<cole-h>
All it did was barf crap at the top of the file
<judson>
nixpkgs-fmt: exec rm -rf /
<immae>
ok
<immae>
that’s fine
<immae>
I shall try then
<cole-h>
As long as you use it from within an editor (where you can undo if something *does* go wrong)
<cole-h>
Or, you can just say "screw it" and let your editor handle indenting, etc, for you without worrying about that.
cr4y1 has joined #nixos
__monty__ has joined #nixos
TheMule has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<xensky>
i've just started using nixos and i'm confused about home-manager. i see a lot of recommendations for it, but i'm having trouble determining what it provides if i just want to install user packages and import dotfiles. is there more to it?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<judson>
That's basically it. But it allows you to manage your per-user packages yourself.
<{^_^}>
[nixpkgs] @marsam merged pull request #97917 → lefthook: use go 1.14 to build → https://git.io/JU8GM
<chipb>
I guess it probably allows management of user systemd services too. I think of it as nixos-rebuild for your home directory.
<xensky>
judson: so what does it mean to manage those myself? can i not manage per-user packages with just nix?
<chipb>
but then I don't bother with it either.
<chipb>
yes, you can use nix directly as your user.
<judson>
You can e.g. nix-env -iA to install packages for yourself.
<judson>
But where nixos-rebuild will let you e.g. update your whole system, things you've installed imperatively don't get updated that way.
kaivai has quit [Ping timeout: 258 seconds]
<judson>
It's very handy to manage your system (and your user environment) declaritively and then update with home-manager switch
<xensky>
yeah i would prefer to do as much declaratively as possible
<chipb>
might want to start small. it can be a bit much to swallow at once. :-)
dramforever has joined #nixos
<xensky>
i'm already overwhelmed, i try looking at other people's configs online and they're split across so many files
<chipb>
personally, I don't bother with home-manager (well, at least yet, I guess I might get the itch at some point). I have an ancient dotfiles repo that I've lightly extended to do basic nix package management, and I can't count on all machines I work on to practically have nix installed.
<chipb>
but I can certainly see its appeal for people.
orivej has quit [Ping timeout: 244 seconds]
<xensky>
i'm hopping between my fedora and nixos installs while i try it so for now i kinda just want to point them at the same dotfiles
lordcirth has quit [Remote host closed the connection]
knupfer has joined #nixos
karantan has joined #nixos
hiro99 has quit [Remote host closed the connection]
TheMule has quit [Ping timeout: 244 seconds]
civodul has joined #nixos
knupfer has quit [Remote host closed the connection]
<comex>
If I'm trying to build a package manually in nix-shell, is there a way to list the commands I need to run? Or otherwise 'debug' a build? It seems like this Haskell package has some custom phases, so I can't just do unpackPhase -> configurePhase -> buildPhase.
das-g[m] has left #nixos ["User left"]
dramforever has quit [Quit: Leaving]
das-g[m] has joined #nixos
<comex>
I can check the list of environment variables, find setupCompilerEnvironmentPhase and compileBuildDriverPhase, and guess that I'm supposed to run those. But that seems rather ad-hoc. And I don't even know how to run them: they're not defined as shell functions like the normal phases, but as shell scripts stuck into environment variables. Passing them to eval doesn't quite work.
<nf>
in flakes, how can i inspect the available attributes of the "self" input? is there a way to load that into a repl?
cole-h has quit [Quit: Goodbye]
zakame has joined #nixos
Heirlung has joined #nixos
kaivai has joined #nixos
rogue_koder has joined #nixos
TheMule has joined #nixos
<comex>
symphorien[m]: thanks, that works. it seems like I also need to change $TMPDIR for some reason, otherwise it plops files in there and, when run the second time, complains about overwriting
<chipb>
comex: you can also dump current (including non-exported) shell functions with "declare -f"
<comex>
mm, that's helpful
<chipb>
might have plenty more than you need though.
tobeportable has quit [Ping timeout: 244 seconds]
<comex>
oh, actually, it complains about overwriting (specifically, some `mv` commands do) even if I set TMPDIR to a clean directory. but if I manually enter y repeatedly, it proceeds with the build…
zakame has quit [Ping timeout: 265 seconds]
Rusty1 has quit [Quit: No Ping reply in 180 seconds.]
Rusty1 has joined #nixos
shabius has joined #nixos
zakame has joined #nixos
<colemickens>
maybe? I'm not a very good authority on nwg, or backporting policy, sorry. I feel like it makes sense anyway
<{^_^}>
[nixpkgs] @samuela opened pull request #97938 → Split up the vscode update.sh into separate vscode/vscodium update scripts → https://git.io/JU8uI
sputny has quit [Ping timeout: 244 seconds]
sputny1 is now known as sputny
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor has quit [Remote host closed the connection]
bennofs__ has quit [Remote host closed the connection]
bennofs has joined #nixos
ransom has joined #nixos
kaivai has joined #nixos
philr has joined #nixos
heywoodlh has joined #nixos
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
heywoodlh has quit [Remote host closed the connection]
sigmundv_ has joined #nixos
<xensky>
so since i want to just share my dotfiles between different OSes, is there a "nixy" way to import the dotfiles into .config/ or can i just ln them in?
<xensky>
ln as in link, not capital i n
alexherbo2 has joined #nixos
<notgne2>
xensky (chat.freenode.net): home-manager lets you set contents of various dotfiles
<notgne2>
that's what I did originally, though over time I ended up just using the native home-manager options more often, opting to just install home-manager even on my non-NixOS systems
<xensky>
notgne2: i suppose that's an option, using nix elsewhere
<notgne2>
xensky (chat.freenode.net): if you don't want to switch everything over to rely on home-manager, you can maintain your files separately and have home-manager put them into place for you on your more nix-y systems using something like `xdg.configFile."something/something".source = ./my-dotfiles/.config/something/something`
mbrgm has quit [Ping timeout: 244 seconds]
mbrgm has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #97941 → pythonPackages.pamqp: revert bump to fix pythonPackages.rabbitpy, bump pythonPackages.rabbitpy → https://git.io/JU8gT
<xensky>
might try that
<notgne2>
there's also `home.file` for the stuff that doesn't go in `~/.config`
<immae>
> let a = { foo ? false }@args: args.foo; in a {}
<{^_^}>
attribute 'foo' missing, at (string):323:31
<immae>
how is that? ^
<clever>
immae: args wont contain the default args
<notgne2>
xensky (chat.freenode.net): yes, like `home.file.".something"`
<xensky>
notgne2: cool
<immae>
clever: is there no way to obtain the default args in an attrset?
<clever>
immae: correct, you just have to `inherit foo;` somewhere
<immae>
yes but I wanted an attrset :D
<clever>
immae: `{ inherit foo; }`
<immae>
well I cannot avoid rpeeating it then (I have several default values in my case: https://tools.immae.eu/paste/gso1 and I wanted to avoid the repetition)
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
kleisli_ has joined #nixos
kleisli has quit [Remote host closed the connection]