<matthewbauer>
haslersn: Not much in end result. One will add it to the PATH while the other doesn't
Rusty1 has quit [Quit: Konversation terminated!]
mbrgm_ has joined #nixos
<matthewbauer>
haslersn: I would recommend always putting them in the build inputs in all cases, however. Sometimes one binary will call another binary that is part of the package.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<elvishjerricco>
How would I override the glibc that stdenv uses to set `installLocales = false;`?
<NemesisD>
does anyone have any experience with nix-buffer for emacs? i'm trying to figure out a reasonable way to have emacs respect my project's environment if it has nix stuff
bemeurer has quit [Ping timeout: 255 seconds]
<jackdk>
what language is your project in? I use .dir-locals.el files with dante, which knows how to respect shell.nix
<reallymemorable>
is it ok to delete /tmp/hax
<reallymemorable>
its a write protected file but there doesnt seem to be anything in it when i open it in nano
<clever>
reallymemorable: ls -l /tmp/max
adetokunbo has quit [Quit: This computer has gone to sleep]
adetokunbo has joined #nixos
<reallymemorable>
s---rwx--- 1 root nixbld 0 Feb 20 15:24 /tmp/hax
<clever>
reallymemorable: thats not a file, thats a unix socket
adetokunbo has quit [Client Quit]
<reallymemorable>
oh
adetokunbo has joined #nixos
<clever>
reallymemorable: its safe to delete once you close the socat that had created it
<reallymemorable>
I ran nix-garbage-collector and now my nixbuilders are having trouble connecting to my repos again
adetokunbo has quit [Client Quit]
<clever>
reallymemorable: the hax socket requires an socat to be running, a GC is mostly unrelated
adetokunbo has joined #nixos
<clever>
but the GC will clear the outputs, and require you to fetch things again, which does need the socket
<bemeurer>
From the home-manager manpages, on L12 of the gist
stepcut has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<simpson>
Hm. My gdb fails to start; it gives the standard blurb, "munmap_chunk(): invalid pointer", then aborts. It does this even if run with no arguments. I don't have any kind of rc file.
rcshm has quit [Ping timeout: 250 seconds]
<samueldr>
bemeurer: this isn't valid nix, I'm wondering what the intent was behind
<samueldr>
and it looks like it should maybe be a multi-line string; the kind of string with a double-single-quote on each end
vk3wtf has quit [Ping timeout: 268 seconds]
<samueldr>
maybe some manual escape gone wrong?
rcshm has joined #nixos
<samueldr>
ah right
<samueldr>
> '''''''
<infinisil>
bemeurer: Yeah apparently somebody messed up the escaping
<infinisil>
Bot was dead whoops
<samueldr>
> '''''''
<{^_^}>
"''"
<samueldr>
it probably was conflated with escaping $ sequences
<samueldr>
> ''''${}''
<{^_^}>
"${}"
<samueldr>
from the manual: Since ${ and '' have special meaning in indented strings, you need a way to quote them. $ can be escaped by prefixing it with '' (that is, two single quotes), i.e., ''$. '' can be escaped by prefixing it with ', i.e., '''. $ removes any special meaning from the following $. Linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t, and ''\ escapes any other character.
<infinisil>
There should be a string escaping game, where you have some transformations (e.g. bash -> Nix -> Haskell), and you need to input correct syntax for it to end up as a specific target output :P
EEERRRRRRASMUS has quit [Read error: Connection reset by peer]
<samueldr>
I'm already frustrated
fusion809 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Fare has joined #nixos
chreekat has quit [Ping timeout: 252 seconds]
romildo has quit [Ping timeout: 252 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
silver has quit [Read error: Connection reset by peer]
chreekat has joined #nixos
drakonis1 has joined #nixos
rcshm has quit []
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
work_ has quit [Quit: Connection closed for inactivity]
<jackdk>
(I haven't been following scrollback and don't know what you're aiming to do)
<bemeurer>
jackdk: How could I verify it in a nix-repl?
<bemeurer>
jackdk: I'm porting my neovim config to home-manager
<bemeurer>
Oh, wait
<bemeurer>
I just realized I don't need these anymore :D
<jackdk>
I don't know neovim nor home-manager
wfranzini has quit [Remote host closed the connection]
stepcut has quit [Ping timeout: 250 seconds]
wfranzini has joined #nixos
<jackdk>
`:b (import <nixpkgs> {}).pkgs.llvmPackages.clang-unwrapped.lib` in a `nix repl` will build the derivation and show you where the output paths are
Orbstheorem has joined #nixos
ddellacosta has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
ikitat has quit [Ping timeout: 246 seconds]
chreekat has quit [Remote host closed the connection]
<oldandwise>
i have a Samsung Wifi USB dongle (which i tested working when inserted in another linux laptop). But it's causing my nixos wpa_supplicant to shutdown and i lost wifi. `lsusb` and `dmesg` can see it, somehow it felt like it is conflicting my existing wlp3s0. Logs shows https://termbin.com/kxqs
timokau has joined #nixos
vk3wtf has joined #nixos
endformationage has quit [Ping timeout: 272 seconds]
johnw has quit [Ping timeout: 246 seconds]
johnw has joined #nixos
timokau has quit [Ping timeout: 244 seconds]
abathur has quit [Quit: abathur]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
chreekat has quit [Remote host closed the connection]
noonien has quit [Quit: Connection closed for inactivity]
chreekat has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
Myhlamaeus has joined #nixos
mkoenig has quit [Remote host closed the connection]
reallymemorable has quit [Ping timeout: 250 seconds]
palo1 has joined #nixos
vincentpants has joined #nixos
<vincentpants>
guys. hello. I've never been on here. I'm falling in love with nixos but I can't figure out how the hell to explicitly install a specific package version number.
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
kvda has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @Mic92 opened pull request #58009 → glibcLocales: also build C.UTF-8 → https://git.io/fjfix
freeman42x has quit [Ping timeout: 252 seconds]
<vincentpants>
my system is stuck with opendht 1.7.4 , but the nixpkgs repo says 1.8.0, and this is making all my shit break
<vincentpants>
^ clarification*
drakonis has joined #nixos
bemeurer has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @mat8913 to release-19.03 « flatpak: Fix bubblewrap paths for icon-validator »: https://git.io/fjfPf
drakonis_ has quit [Ping timeout: 252 seconds]
bemeurer has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #57994 → Python language server 0.25.0 → https://git.io/fjfrV
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to release-19.03: https://git.io/fjfXs
timokau has quit [Ping timeout: 250 seconds]
<bricewge>
I don't understand why `nix-shell --pure -p tomb --command "tomb -h"` fail but `nix-shell --pure -p tomb zsh --command "zsh -c tomb -h"` works correctly...
<bricewge>
Is it possible there is an issue with `wrapProgram` there?
Makaveli7 has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
<johanot>
bricewge: how does it fail exactly?
<sphalerite>
bricewge: apparently tomb wants to use pinentry, but doesn't have it as a hardcoded dependency
vincentpants has joined #nixos
<bricewge>
It returns `tomb [E] Missing required dependency pinentry. Please install it.` but not with zsh
<{^_^}>
[nixpkgs] @dotlambda merged pull request #57926 → python.pkgs.hglib: use patch to specify hg path → https://git.io/fjfOO
<sphalerite>
bricewge: this makes sense, since users are likely to want to use different pinentries, e.g. the gtk one etc
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.hglib: use patch to specify hg path (#57926) »: https://git.io/fjfXc
linarcx has joined #nixos
<sphalerite>
bricewge: but the --pure means that /run/current-system/bin (if on nixos) and ~/.nix-profile/bin aren't on your $PATH
<sphalerite>
bricewge: presumably zsh sources some file that puts ~/.nix-profile/bin on the PATH anyway.
reinhardt has quit [Ping timeout: 255 seconds]
<sphalerite>
bricewge: but the solution, I'd say, is not to use --pure :)
<{^_^}>
[nixpkgs] @dotlambda pushed to release-19.03 « python.pkgs.hglib: use patch to specify hg path (#57926) »: https://git.io/fjfXW
<linarcx>
Hi guys. I'm creating a python package but get this error when i want to build it: `error: anonymous function at /home/linarcx/nixpkgs/pkgs/tools/networking/persepolis/default.nix:1:1 called without required argument 'buildPythonApplication', at /home/linarcx/nixpkgs/lib/customisation.nix:69:12`
<sphalerite>
linarcx: use python[3]Packages.callPackage rather than plain callPackage
<bricewge>
Actually I'm trying to fix the tomb package, and even adding pinentry to bindInputs doesn't change this.
<linarcx>
sphalerite: Why?
<sphalerite>
bricewge: you'd need to wrap it to add pinentry to $PATH. But IMO this isn't a packaging bug.
<sphalerite>
bricewge: also, I'd *append* pinentry to the PATH so if the user has their own pinentry installed that still gets preferred
<sphalerite>
linarcx: because pkgs.callPackage will only "fill in the blanks" with attributes from pkgs, but buildPythonApplication lives in pythonPackages and python3Packages
<bricewge>
sphalerite: It's already added to the PATH
<linarcx>
sphalerite: Ah, thank you.
<sphalerite>
bricewge: oh, so it is. That's odd.
goibhniu has joined #nixos
<bricewge>
sphalerite: And `nix-shell --pure -p tomb zsh --command "zsh -fc tomb -h"` shoudn't use the nix-profile and it have the same outcome
agander_ has joined #nixos
<bricewge>
Yes I know that's why I'm asking here, I don't really understand what's going on here
linarcx has quit [Ping timeout: 252 seconds]
<bricewge>
What's odd is if I change the interpreter of the wrapper from bash to zsh it works (still being in `nix-shell --pure`)
<sphalerite>
potentially related to the line in tomb `path+=( /sbin /usr/sbin )`..?
<sphalerite>
I wouldn't be surprised if this was related to tomb being written in zhs
<sphalerite>
zsh
<bricewge>
Maybe I d'ont know what it does it's saying "MAGIC"...
linarcx has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<bricewge>
It looks like it, do you know another package written in zsh where I can learn from
<timeyyy>
Hi, Fairly new to Nix, here. I'm testing it out just the package manager and am having trouble installing glibcLocales, I tried with the channels nixpkgs-unstable and nixospkgs-unstable. So `nix-env -iA nixos.glibcLocales` -> `error: expression does not evaluate to a derivation (or a set or list of those)`
<srhb>
timeyyy: You're using Nix on some other OS?
neminis has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @veprbl to release-19.03 « pythonPackages.pyhepmc: fix build »: https://git.io/fjf1M
<srhb>
timeyyy: I'm a git confused with the error you're getting. Can you pastebin the output of nix-channel --list ?
chreekat has joined #nixos
<{^_^}>
[nixpkgs] @dywedir pushed to master « maintainers: update email for dywedir »: https://git.io/fjf1D
<timeyyy>
Yes I'm using nix on mac.
lukego has joined #nixos
<srhb>
timeyyy: I would expect you to use either nix-env -iA nixpkgs-unstable.glicLocales or nix-env -iA nixospkgs-unstable.glibcLocales
<srhb>
timeyyy: Right, that's the problem. Here's the definition of glibcLocales: glibcLocales = if stdenv.hostPlatform.libc == "glibc" then callPackage ../development/libraries/glibc/locales.nix { } else null;
<srhb>
So essentially, it is null on Darwin.
<timeyyy>
Ok, Thanks for the help
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
drakonis has quit [Remote host closed the connection]
winem_ has joined #nixos
<srhb>
timeyyy: Sorry, I don't know how Darwin works really. :)
countingsort is now known as buffet
chreekat has quit [Ping timeout: 244 seconds]
kvda has quit [Ping timeout: 268 seconds]
vincentpants has quit [Ping timeout: 246 seconds]
chreekat has joined #nixos
<lukego>
I can't find working values for my LC_* locale variables on my NixOS box. It's really wearing me down with errors like: git: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed
<timeyyy>
srhb: No worries, Thanks for helping me out!
<lukego>
I've googled and chased a bunch of semi-related Issues but never come upon a solution. Does anybody know one?
<lukego>
The nearest I've come is setting LC_ALL=en which gives me warnings instead of errors: /nix/store/a9i0a06gcs8w9fj9nghsl0b6vvqpzpi4-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en)
orivej_ has quit [Ping timeout: 246 seconds]
adetokunbo has joined #nixos
alex`` has joined #nixos
sigmundv has joined #nixos
Jetien has joined #nixos
ilmu has joined #nixos
<das_j>
Is tehre anything special when overriding systemd in an overlay? I get an infitite recursion while evaluating the attribute 'buildInputs' of the derivation 'util-linux-2.32.1'
<{^_^}>
[nixpkgs] @DanielFabian opened pull request #58027 → Add gfxpayload to Grub → https://git.io/fjfME
<das_j>
Ah, utillinux = super.utillinuxMinimal; did the trick
ThatDocsLady_ has joined #nixos
tv has quit [Ping timeout: 250 seconds]
vincentpants has joined #nixos
<linarcx[m]>
Guys. When i want to build a python package locally, i get this error:
<linarcx[m]>
`FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'`
tv has joined #nixos
<__monty__>
Sounds like the package is missing its setup.py.
Makaveli7 has quit [Quit: Leaving]
rprije has quit [Ping timeout: 255 seconds]
Ridout has quit [Quit: Lost terminal]
<teto>
linarcx[m]: did you update the sha256 ? the setup.py exists on github so maybe you fetch the wrong src ?
<{^_^}>
[nixpkgs] @dotlambda opened pull request #58031 → elasticsearch-curator: add top-level package using older click → https://git.io/fjfDv
<mekeor>
i configured gitlab through nix on my server. any idea why i get "invalid login or password" error when i try to login with the initial-root-email and -password which i set in the configuration?
simukis has joined #nixos
<mekeor>
oh. services.gitlab.initialRootPassword is described as "Initial password of the root account if this is a new install". how can i force the configured inital-root-password to be reapplied? could i maybe simply delete /var/gitlab/ or so?
jbgi has quit [Ping timeout: 255 seconds]
periklis has quit [Ping timeout: 246 seconds]
<{^_^}>
[nix] @edolstra merged pull request #2739 → manual: include builtins.* for globally available builtins → https://git.io/fjfXL
johanot has quit [Read error: Connection reset by peer]
boogiewoogie has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
<aanderse-work>
zimbatm: you around?
Maxdamantus has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
Maxdamantus has joined #nixos
<gchristensen>
I'm running diffoscope in a very minimal nixos-container environment, and I get the error "setupterm: could not find terminfo database". diffoscope is a python program. anyone know the fix?
<gchristensen>
first, I'm putting a TERM=xterm in my env :P
rycwo has joined #nixos
Jackneill has quit [Ping timeout: 245 seconds]
jbgi has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
Jackneill has joined #nixos
pmiddend has joined #nixos
<pmiddend>
I'd like to use a newer version of "pylint" in my shell.nix. I was able to adapt the src attribute using overrideAttrs. But it needs a newer version of "astroid", too. How do I force that?
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
rycwo has joined #nixos
<tilpner>
linarcx: betaboon: Is that homepage really set correctly? It seems unrelated to me
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<betaboon>
tilpner: ?
<tilpner>
betaboon: I looked at your gist, and the description and homepage don't match up
<tilpner>
Did you copy that and forget to update the description?
<betaboon>
tilpner: yeah good find. i just copied the derivation from his reddit-post, fixed it and didnt look at that :D
drakonis has quit [Read error: Connection reset by peer]
<linarcx>
tilpner: I'll fix it.
drakonis has joined #nixos
<linarcx>
betaboon: Thank you so much. it's build and run correctly. but there is a small issue. i can't see any .desktop entry to launch it from rofi for example.
<sphalerite>
linarcx: you'll probably need to add your own. There's a convenience function makeDesktopItem in nixpkgs for that
<betaboon>
linarcx: there is one in their git. they do some very weird things in their setup.py i dont feel like fixing that for you.
<{^_^}>
[nixpkgs] @Twey opened pull request #58037 → NeoComp: init at 2019-03-12 → https://git.io/fjfSq
<waleee>
catern: it's not actually named gnupg-1.XX (and I'd go with "probably not" on the glob)
<dminuoso>
If nix teaches one thing, it's how horrible some packages in this world are. With so much configuration magic trying to locate libraries or hardcoded paths..
<dminuoso>
It's pretty awful. :(
chreekat has quit [Ping timeout: 244 seconds]
<slabity>
I know globs work when updating. But I don't think they work for installing...
<slabity>
Nor do I think that should work. Otherwise `nix-env -i '*'` would be an easy typo from `nix-env -u '*'`
domogled has quit [Ping timeout: 244 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
reallymemorable has joined #nixos
<waleee>
slabity: I'm amazed that some package managers allow globbing when installing or uninstalling
<{^_^}>
[nixpkgs] @globin pushed commit from @ciil to release-18.09 « atlassian-confluence: 6.11.1 -> 6.14.2 »: https://git.io/fjf9F
<musicmatze>
slabity: whoops, that certainly should not be allowed. Maybe file an issue for nix?
NickSeagull has joined #nixos
reallymemorable has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #58042 → erlang: cross compile support → https://git.io/fjfHT
knupfer has joined #nixos
hodor123456 has quit [Ping timeout: 252 seconds]
knupfer has quit [Client Quit]
knupfer has joined #nixos
reallymemorable has joined #nixos
<dminuoso>
Trying to make my first real derivation. How do I feed the path to a package to my builder script?
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #57814 → mg: use build system pkg-config → https://git.io/fjvR4
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjfHt
chreekat has joined #nixos
<dminuoso>
Do I just drop an attribute in the final derivation set and use how its fed into an environment variable?
domogled has joined #nixos
<clever>
dminuoso: 90% of the time, you dont want to set the builder attr, you want to use a string like buildPhase = ''...'';
<dminuoso>
clever: I see. Would I feed the dependencies by interpolating into the buildPhase string, or rather put them into the set and extract them via environment variables?
<clever>
dminuoso: by putting them into the buildInputs list
<dminuoso>
clever: Mmm. How do I recover a specific element then? I mean say I want to feed some `${pkgs.foo}/lib` path to the build process. If I add `pkgs.foo` to my buildInputs, it seems a bit messy to dig it out again, doesn't it?
rycwo has quit [Ping timeout: 252 seconds]
Maxdamantus has quit [Ping timeout: 272 seconds]
<clever>
dminuoso: if you add pkgs.foo to buildInputs, then it will be injected into the search path for gcc, and `gcc -lfoo` will find it automatically
<clever>
dminuoso: so you dont need to know where ${pkgs.foo}/lib is
buffet has quit [Quit: WeeChat 1.0.1]
vincentpants has joined #nixos
<dminuoso>
clever: Ah but Im not building with gcc. In my case I really do need to manually specify this ${pkgs.foo}/lib because of a really weird transitive dependency.
<dminuoso>
It's a hacky ruby native library.
<clever>
dminuoso: ah, then you probably want to just insert ${pkgs.foo}/lib somewhere in your buildPhase
<dminuoso>
clever: I see, I think I can make that work. Thank you a lot. :)
<{^_^}>
#57984 (by Slabity, 19 hours ago, open): Building ISO takes excessive amounts of time+memory
<slabity>
Just tried it on an EC2 m5a.24xlarge instance for shits and giggles to see if it would complete
<slabity>
Maxed out 371GB of memory and used only a single core
<LnL>
ah n/m same person then probably
buffet_ has quit [Client Quit]
reallymemorable has joined #nixos
<slabity>
It finally crashed with a stack overflow
buffet_ has joined #nixos
<slabity>
I wonder if something's wrong with grub2_efi
<{^_^}>
[nixpkgs] @dtzWill opened pull request #58055 → zsh: don't export HISTFILE and friends → https://git.io/fjfQ2
<alj[m]>
I can't get deploying to hetzner using nixops to work. someone here who can help me=?
<dminuoso>
Haskell question. Do you folks still use cabal v1-* with nix? I'd much prefer to go v2-* since it makes getting newer library versions much easier to control.
<alj[m]>
im getting the error "404 server not found"
<eyJhb>
4 restarts before systemd didn't fail booting. I. Love.This
technoidX has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #58056 → nilfs-utils: force malloc(0) realloc(0) to be valid → https://git.io/fjfQo
vidbina has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @liff opened pull request #58057 → vimPlugins.nord-vim: init at 0.10.0 → https://git.io/fjfQi
<boothead_>
kubectl get nodes shows my that there are: No resources found.
<gchristensen>
do you have swap enabled, boothead_ ?
rauno has quit [Remote host closed the connection]
<disasm>
I've deployed a change to hydra slaves to change max-jobs = 8 in nix.conf but my hydra slaves are still running a max of 4 jobs. Is there somewhere else that would limit the number of builds on a system?
<boothead_>
gchristensen: yup by the looks of it I do
<disasm>
boothead_: https://github.com/disassembler/devops-kubernetes is old but that's what I used for a meetup talk a couple years ago. Not sure how relevant it is anymore, but feel free to poke around.
<boothead_>
disasm: how's it going? Congrats on the release :-)
<disasm>
boothead_: pretty well, thanks!
<gchristensen>
boothead_: kubernetes refuses to start with swap, unless you tell it you know they don't like swapm
<linarcx>
Guys. how to list all icons and themes list in nixos?
<yurb>
I can have a python3.7 in a shell by runing nix-shell -p python37, but how to install it into the current profile?
<disasm>
boothead_: like I said, not sure if it still works with latest nixpkgs or not. Took me a few hours to build that out for a demo, but nixops deploy to d.o gave me a 3 node cluster functioning that I did the whole demo from :)
Tucky has quit [Quit: WeeChat 2.2]
<boothead_>
disasm: nice, thanks!
civodul has joined #nixos
erasmas has joined #nixos
agander__ has quit [Ping timeout: 245 seconds]
<slack1256>
yurb: nix-env -iA nixos.python37
<yurb>
thaks slack1256
<slack1256>
although that will be a python37 interpreter with just base libraries, you should read the python documentation on nixpkgs on how to install/setup python environment on the fly
ilmu has joined #nixos
<yurb>
slack1256: do you mean it won't have the standard library?
<slack1256>
It will just have the standard library, but not for example matplotlib
<slack1256>
to install a python with matplotlib you should use the following incarnation for example
<yurb>
thanks slack1256. Yeah, I saw that in the docs, and it's really amazing. In this case though I was looking at how to get just python3 interpreter in the main profile
<boothead_>
disasm: gchristensen do you have the k8s dashboard working?
noonien has joined #nixos
vincentpants has quit [Ping timeout: 252 seconds]
<noonien>
hello folks
<noonien>
is there a tool similar to `alsa`(the command) on debian for nixos?
<noonien>
i sometimes get a lot of noise on my headphones are i leave my laptop idling, i usually solve it with `sudo sh -c 'rmmod -f snd_hda_intel; modprobe snd_hda_intel'`, but sometimes this makes my deadphones not work at all until a reboot
<buffet>
noonien: isnt it contained in either alsa-{tools,utils}?
<timor>
noonien: that does not look like something that is available in nixpkgs....
drakonis has joined #nixos
<ryantm>
noonien: It would be possible to package it. You'd have to substitute some of the paths.
__Sander__ has quit [Quit: Konversation terminated!]
<noonien>
yeah, i've downloaded from the deb
<timor>
ryantm: are you sure the assumptions it makes make sense under NixOS?
<noonien>
did not seem to solve my issue anyway
<ryantm>
timor: Not at all :-/
rardiol1 has joined #nixos
pseudonom has joined #nixos
<timor>
noonien: Did you already search around for that issue? Seems like something someone else might have had....
<noonien>
i did a reload, and headphones no longer work :(
<noonien>
timor: yes, i did, couldn't find any solution
<noonien>
it seems to be a common issues, some other laptops exhibit this
<linarcx>
Hi. When i was in arch-linux i can simply jump between words in kitty terminal via: `Ctrl+Right` and `Ctrl+Left`, but in nixos it prints: `;5C` and `;5D`. why?
<goibhniu>
sometimes audio modules have particular options which can help
<pseudonom>
Is `nix-collect-garbage` superlinear? I had a bunch of stale system profiles and `sudo nix-collect-garbage -d` has now been running for the past ~14 hours
<manveru>
linarcx: different shell?
sigmundv has quit [Ping timeout: 252 seconds]
<jasongrossman>
linarcx: I don't get that behaviour, so the problem can't be NixOS (or not only NixOS).
<linarcx>
manveru: No. same shell.(zsh)
<noonien>
goibhniu: i'll take a look now, i remember tinkering in alsamixer not solving anything in the past
<manveru>
linarcx: behaviour here is that it deletes stuff...
<timor>
pseudonom: What file system is your nix-store?
<linarcx>
manveru: What's your shell and terminal-emulator?
<manveru>
linarcx: i just tried it with kitty/zsh
<manveru>
but same behaviour in Termite
<manveru>
but i use vi keybinds
<Ralith>
pseudonom: is it still producing output?
<manveru>
linarcx: you can maybe look for solutions using `bindkey`
<linarcx>
manveru: Let me try it.
imdoor_ has quit [Read error: Connection reset by peer]
<pseudonom>
timor: ext4
<manveru>
linarcx: i.e. `bindkey "^[5C" emacs-backward-word` maybe?
<betaboon>
linarcx: just running `bindkey` gives you the current bindkeys.
<pseudonom>
Ralith: Essentially all of that time, it's been hung on the last line of `deleting /nix/store/trash`. Which is normally what takes the longest for me
<betaboon>
linarcx: running `cat` (yes without arguments) and then typing the key-combination in question gives you its symbols
<betaboon>
linarcx: then use bindkey to configure stuff to your liking
<noonien>
pretty weird, even though no sound is making its way to the headphones, when i mute/unmute them there's an audible clicking sound
<Ralith>
pseudonom: that's when it does the bulk of the actual deletion, I think; you should be able to check for activity by looking at I/O stats or just watching `df`. Is it possible that your I/O is saturated?
<timor>
pseudonom: We had that situation on a VM, using xfs. Eventually it finished, but it also took several hours. No idea whether that has anything to do with superlinearity, though....
<pseudonom>
Ralith: df hasn't showed any additional space freed over that time. Let me try to find some more detailed IO stats
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Ralith>
pseudonom: `iotop` usually works okay
<pseudonom>
timor: Interesting. Maybe it is linear in the amount of garbage and just really slow
<Ralith>
I'm not sure how well it'll display metadata operations or deletes in general vs. reads/writes, but if your I/O is saturated then it'll display that at least
<Ralith>
it's possible you're just hitting a pessimal case in your fs, yeah
rycwo has joined #nixos
<linarcx>
manveru: Is it permanent?
<manveru>
linarcx: bindkey isn't, you have to put it into your .zshrc
<linarcx>
betaboon: Awesome tip. thank you. it's work now like a charm :)
<pseudonom>
Ralith: Doesn't seem to be saturated. Read is at a constant 0 and write flips between 0 KB/s and ~ 120 KB/s
<linarcx>
manveru: Thank you.
<Ralith>
pseudonom: that seems quite suspicious, then
<Ralith>
maybe poke around in /nix/store/trash and see what's going on in there?
<betaboon>
pseudonom: maybe no more free inodes on the device ?
<betaboon>
pseudonom: check `df -i`
<pseudonom>
betaboon: There's a healthy number IFree
Ariakenom has quit [Ping timeout: 252 seconds]
rycwo has quit [Ping timeout: 268 seconds]
<pseudonom>
There are 8669 things in /nix/store/trash. How naughty would it be to just try and delete those things manually?
<slabity>
Just got NixOS running on an old windows tablet :D
<Ralith>
man, that's hardly anything
<Ralith>
sounds like something is very broken
<Ralith>
if you're not interested in attaching a debugger and really getting your hands dirty, I wonder if killing and restarting the collection would help
<slabity>
Ralith: Getting a 32-bit bootloader on a 64-bit system was kinda hard :(
<betaboon>
slabity: hew was talking about pseudonoms problem
<slabity>
betaboon: Yea, just jokin around
<betaboon>
slabity: congrats for gettint it to run :D
<pseudonom>
Ralith: That would be attaching GDB to the running process?
<slabity>
Wanna see if I can get plasma mobile running on it...
<betaboon>
pseudonom: have you tried strace to check if it is stuck at something ?
<reallymemorable>
I understand that the gitFetch protocol im using is not the best
<reallymemorable>
i have no choice
<reallymemorable>
i am trying to figure out how to build my project regardless
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<pseudonom>
betaboon: The only output I see from `strace -p <pid>` is `rt_sigtimedwait([HUP INT PIPE TERM WINCH], ` which does seem slightly suspicious?
<betaboon>
pseudonom: hard to say with so little information ;)
ddellacosta has quit [Ping timeout: 252 seconds]
xantoz has quit [Ping timeout: 250 seconds]
<pseudonom>
(That's for the actual command running as root. If I `strace` the original `sudo` invocation, it's `restart_syscall(<... resuming interrupted restart_syscall ...>`)
<pseudonom>
Okay. I'll restart the command and try to strace the whole time
ddellacosta has joined #nixos
xantoz has joined #nixos
<pseudonom>
(Perhaps mildly informative is that SIGTERM doesn't kill the process, only SIGKILL)
<{^_^}>
[nixpkgs] @zimbatm closed pull request #58033 → nixos/httpd: always test the generated configuration → https://git.io/fjfDo
<slabity>
Kind of a long-shot, but I don't suppose anyone knows how to get plasma mobile on NixOS?
dashkal has quit [Ping timeout: 245 seconds]
<pseudonom>
Hmm. The problem now is that SIGKILLing the garbage collection process seems to have failed to clean up the lock so the process now hangs on `waiting for the big garbage collector lock...`
dashkal has joined #nixos
hakujin has joined #nixos
<pseudonom>
Is it safe to just delete `/nix/var/nix/gc.lock`?
<hakujin>
what's the correct way to GC hydra? I ran `nix-collect-garbage` on a box that was growing over 100G and it broke quite a bit of hydra's view of the world.
wfranzini has quit [Remote host closed the connection]
<tilpner>
Really? I would expect Hydra to keep roots on everything it needs
<gchristensen>
that is the proper way to go, hakujin
<gchristensen>
I wonder if you did anything else?
<hakujin>
oh hmm
<tilpner>
What did it break?
<slack1256>
What is the nixos way to enable systemd --user services?
<hakujin>
jobs stopped building due to failures
<hakujin>
I do have builds that depend on build products from other jobs, and I keep 5-10 builds per job, typically
<tilpner>
hakujin: Does /nix/var/nix/gcroots/hydra look reasonable?
<qyliss^work>
slack1256: systemd.user
<hakujin>
tilpner: I think so, yeah.
<tilpner>
hakujin: Can you tell what paths it deleted, that broke things?
<hakujin>
tilpner: I rolled back when I hosed things. I can try it again though.
<tilpner>
Don't expect much from me, I'm just making basic queries. I've yet to GC my Hydra
Thra11 has joined #nixos
pseudonom has quit [Remote host closed the connection]
<noonien>
is there a way to test if the problem is in pulseaudio or alsa?
dashkal has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #58063 → nss: cross compile support → https://git.io/fjf5D
<pseudonom>
Hmm. Just running the garbage collection command again seems to have more or less worked
<dminuoso>
gchristensen: I wish that nix had been a subset of Haskell. :-P
<gchristensen>
aye, but then I'd need to know Haskell!
<slack1256>
I think you can use dhall to generate nix though
rycwo has quit [Ping timeout: 244 seconds]
<illegalprime>
i borked my /nix when i moved it to another drive, any ideas what permissions I should set on /nix/var/nix/daemon-socket/socket ? i can run nix w/o root now
<slabity>
illegalprime: srw-rw-rw-
Thra11 has quit [Quit: IRC for Sailfish 1.0-alpha]
<illegalprime>
slabity: that's set correctly, who do you have it owned by? my error message is: error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused
<andi->
root
<slabity>
illegalprime: It's a socket owned by root
<andi->
actually that file should be created by the nix-daemon.socket service IIRC
<illegalprime>
andi-: maybe I should delete it and restart the daemon?
<andi->
just restart the service (& socket)
<slabity>
Yea, bad things will happen if you try and just make it yourself
rcshm has quit []
<illegalprime>
slabity: andi-: that worked! thanks a bunch!
agander_ has joined #nixos
pie_ has quit [Ping timeout: 244 seconds]
Fare has quit [Ping timeout: 252 seconds]
ilmu has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #58066 → dav1d: init at 0.2.1 → https://git.io/fjfd8
Myhlamaeus has joined #nixos
i1nfusion has quit [Remote host closed the connection]
<{^_^}>
[nixops] @PsyanticY opened pull request #1117 → ec2 backend: Remove support for AMI resizing <nixos 15.09 → https://git.io/fjfdE
i1nfusion has joined #nixos
<linarcx>
Guys. What is difference between `name` and `pname`?
<samueldr>
when name is missing, the (newer) mkDerivation will use "${pname}-${version}" automatically for name
<samueldr>
since 19.03
<samueldr>
(and earlier in some parts of nixpkgs)
<samueldr>
name is expected to have a version number appended for nix-env to work properly
<noonien>
i'm having some headphone problems, and someone over at #alsa is suggesting that alsa might have a startup script, so reloading the proper module might not be enough
<slabity>
noonien: Are you running PA?
<noonien>
i've disabled it
<slabity>
I'm guessing you're not using JACK either?
<noonien>
no, i've only left alsa enabled, so i can debug my issue
<goibhniu>
noonien: https://nixos.wiki/wiki/ALSA also has some tips, e.g. how to set the model for your audio card
Fare has joined #nixos
[Leary] has joined #nixos
fendor has quit [Ping timeout: 272 seconds]
<noonien>
hmm, haven't thought of that, will look at it, thanks!
Lears has quit [Ping timeout: 268 seconds]
joebobjoe has joined #nixos
Myhlamaeus has quit [Ping timeout: 252 seconds]
Myhlamaeus has joined #nixos
<joebobjoe>
nix is coded wrong
<joebobjoe>
objc[3326]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
<gchristensen>
interesting
<gchristensen>
joebobjoe: any chance you could submit a PR?
<joebobjoe>
I bypassed it by setting an env var to tell obj runtime not to crash in that case but I'm scared nix could invoke undefined behavior
<joebobjoe>
there is a PR
<gchristensen>
link?
<joebobjoe>
I don't know why it hasn't been resolved
<illegalprime>
i built a nixos image but it didn't come equipped with a /nix/var/nix/profiles/per-user/root/channels so I had to nix-channel --update, is that avoidable?
<yl[m]>
LnL: You mentioned the cacert was added to the buildInputs on staging
<yl[m]>
I'm looking for that one
<yl[m]>
is that a stdenv change?
[Leary] has quit [Ping timeout: 252 seconds]
linarcx has joined #nixos
arjen-jonathan has quit [Ping timeout: 252 seconds]
<LnL>
no, I changed cacert a while back to make it set those variables for you
<LnL>
a lot of stuff changed with staging, but it seems like somebody removed the explicit variables since they are not needed anymore
<mbrgm>
is there a way to parse yaml to nix datatypes using builtins?
Neo-- has quit [Ping timeout: 252 seconds]
<mbrgm>
or do you have to employ an external script/binary?
linarcx has quit [Client Quit]
wolfman154 has joined #nixos
<wolfman154>
Hello guys, I did not set a password for my user account when first installing nixos, now gnome is not letting me sign in through gdm, how do I sign in ?
erasmus has quit [Quit: END-AUMF]
<wolfman154>
?
<samueldr>
wolfman154: if you set a root password (you probably did) you could ctrl+alt+f1 to a virtual terminal, login as root, then `passwd $username`
slack1256 has quit [Remote host closed the connection]
vincentpants has quit [Ping timeout: 245 seconds]
<wolfman154>
samueldr: its not working?
<LnL>
yl[m]: SSL_CERT_FILE should also work for git
<samueldr>
how is it not working?
<yl[m]>
oh
i1nfusion has quit [Remote host closed the connection]
<yl[m]>
looks like it's working!! Thank you!
<wolfman154>
samueldr: it is not letting me sign in as root
<yl[m]>
LnL: I'm still confused about buildInputs and nativeBuildInputs. I assume cacert is a nativeBuildInputs correct?
i1nfusion has joined #nixos
<samueldr>
:/, it's possible that there was a bad password input while setting up the system, if you fail at inputting twice the same password (I often can't!) it will continue with a message, which is easy to miss
<wolfman154>
samueldr: was I supposed to set a password when I first installed it?
<samueldr>
wolfman154: I assume since it's a fresh system you have the iso still on hand?
<samueldr>
wolfman154: likely yes
<samueldr>
(a password for the root user that is)
<samueldr>
if you still have the iso on hand, you can mount the partitions as they were when installing, do NOT re-run nixos-generate-config (not needed) you should directly be able to nixos-install; it should be basically a no-op (a bit of time needed to build the config) and then it should continue with asking with the root password;
<LnL>
yl[m]: hmm, you're right only GIT_SSL_CAINFO and NIX_SSL_CERT_FILE seem to work for some reason
<samueldr>
alternatively nixos-enter could be used
<wolfman154>
samueldr: yes It ask me for a root password when installing but gdm isn’t letting it me sign in with root?
<samueldr>
ah, gdm won't
<samueldr>
login to a VT with root
<samueldr>
(ctrl+alt+F1/F2)
<samueldr>
it often happens that display managers won't allow root logins
chreekat has joined #nixos
<LnL>
yl[m]: but better to update the hook then instead
<{^_^}>
[nixpkgs] @kalbasit opened pull request #58071 → buildGoModule: remove cacert-related env vars in favor of cacert in b… → https://git.io/fjfbj
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
#58071 (by kalbasit, 28 seconds ago, open): buildGoModule: remove cacert-related env vars in favor of cacert in buildInputs
<wolfman154>
samueldr: ok from there how do I sign in as root
<zakkor>
hi guys, i have the emacs service enabled but it doesn't seem to load ~/.emacs.d/init.el when it starts
<yl[m]>
LnL: it works as expected, not sure if I need to add more variables to the hook
<yl[m]>
I tried building jx, it worked well
<samueldr>
wolfman154: I presume you see something like HOSTNAME login: _
<wolfman154>
samueldr: yes
<samueldr>
type root, then enter, it should ask for the password
<LnL>
yl[m]: ah NIX_SSL_CERT_FILE has precedence so it all 3 work for git
<LnL>
as for native vs build inputs, I'm not sure what is "more" correct in this case
<wolfman154>
samueldr: it works, thanks, I did not want to install it again, is it bad to set the user password in the configuration.nix when installing nixos ?
<LnL>
pretty sure both would work for cross since it's just a file / environment variable
vincentpants has joined #nixos
<samueldr>
wolfman154: users.users.USERNAME.password is a bit scary, I wouldn't use it except for testing purposes; hashedPassword is probably more fine, but then you could be broadcasting it if you make your config public
knupfer has joined #nixos
chreekat has quit [Remote host closed the connection]
<zakkor>
the manual even mentions adding stuff to .emacs.d/init.el, but if I run `systemctl --user restart emacs.service ` and then connect to it using emacsclient, none of my init.el changes are active
wolfman154 has joined #nixos
agander_ has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
<wolfman154>
Why does configuration.nix not let me install gdm3, only gdm?
<hlolli>
I'm trying to do a shebang nix-shell with graalvm8 as build input, but I get info that I haven't accepted the oracleJDK license. How can I pass down an accept into the shebang, since its not being picked up by my default.nix nixos environment?
<{^_^}>
[nixpkgs] @kalbasit opened pull request #58082 → buildGoModule: remove SSL env vars in favor of cacert in buildInputs → https://git.io/fjfAe
slack1256 has joined #nixos
erasmus has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit merged pull request #58082 → buildGoModule: remove SSL env vars in favor of cacert in buildInputs → https://git.io/fjfAe
<{^_^}>
[nixpkgs] @kalbasit pushed to release-19.03 « buildGoModule: remove SSL env vars in favor of cacert in buildInputs (#58082) »: https://git.io/fjfAU
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vk3wtf has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<yl[m]>
how to temporarly disable builders in a `nix-build` command again?
zupo has quit [Client Quit]
i1nfusion has quit [Remote host closed the connection]
zupo has joined #nixos
i1nfusion has joined #nixos
jbgi has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<yl[m]>
`nix-build --option builders "" `
zupo has quit [Client Quit]
Fare has quit [Ping timeout: 272 seconds]
<monokrome>
hmm I rebooted and rebuilt partitions and everything
<monokrome>
same issue gchristensen
<NemesisD>
how might i create a docker image using dockerTools that only contains a subset or 1 of the executables my haskell project builds?
<monokrome>
Is there a way to force it to install 64bit, not 32bit?
<monokrome>
(i386-pc is 32bit, right?)
<colemickens>
Is there a 'nixos development process' page anywhere? Can I start one on the Wiki? I'm curious if there's ever been discussion of SIGs for NixOS. Like a "Intel Graphics" SIG that maintains the various intel graphics bits (intel-hydrid-driver, intel-va, mesa/iris, etc) or a "Wayland" SIG that keeps track of wayland ecosystem tools and NixOS support for DE's with Wayland support. I know there are WGs, but they don't seem super
<colemickens>
active/organized?
jackdk has joined #nixos
<colemickens>
Some of it, I guess, would be around organizing stages of build updates, and I guess a more formal way of handling PR reviews/merges too? Maybe this is meant to all be done via the listed package maintainers?
Anton-Latukha has quit [Quit: Leaving.]
<samueldr>
monokrome: this smells funny
<samueldr>
monokrome: when booted in the installer, what does `uname -m` outputs?
<NemesisD>
i'm hoping i can use buildLayeredImage to create a docker image per executable i use and get sharing out of it
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
ng0 has quit [Quit: Alexa, when is the end of world?]
rycwo has quit [Ping timeout: 252 seconds]
hio has quit [Quit: Connection closed for inactivity]
<samueldr>
okay, so it doesn't look like the installation media is the wrong one (still needed to be counter-verified)
<samueldr>
is the configuration.nix a new one, or importing some complex stuff?
<samueldr>
could some complex stuff accidentally use pkgsi686 or something like that?
<samueldr>
because I don't really see how it would install the i686 system if booted x86_64
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<monokrome>
:/
elibrokeit has joined #nixos
<monokrome>
The device is pretty open and made for Linux, that's why I got it because the last 6 devices I've used NixOS on have ended up just not working
<samueldr>
the machine shouldn't be at fault, especially considering the installation media works
<samueldr>
how are you asserting you are installed i*86 ?
<samueldr>
i386-pc sounds like something grub would say
* colemickens
was thinking the same thing
elibrokeit has quit [Ping timeout: 252 seconds]
<samueldr>
is the system configured for "legacy" (mbr) boot?
<samueldr>
it might be that the grub install then uses grub2 which might report i386-pc, while I think it should still be able to boot a 64 bit os
<samueldr>
like, my at-home server-y nas-y machine is 64 bit, doesn't have uefi, boots in a 64 bit linux, but its /boot/grub folder has an i386-pc folder
<infinisil>
wolfman12345[m]: Check out home-manager#97
<erictapen>
I'm trying to make an app ready for cross compilation that requires the lib wayland as a host dep and ${wayland}/bin/wayland-scanner as a build dependency
<erictapen>
is there any way to hide the /bin path in the host dependency?