silver has quit [Read error: Connection reset by peer]
kisonecat has quit [Ping timeout: 246 seconds]
Supersonic has quit [Ping timeout: 252 seconds]
timon37 has quit []
acarrico has quit [Ping timeout: 245 seconds]
kingemp has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
ashkitten has joined #nixos
epicmetal has quit [Quit: epicmetal]
labancle has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<duairc>
So due to my ongoing difficulties with MATE, I decided to give Gnome flashback a try. One thing I've noticed is that gnome-panel is not picking up any applets from gnome-applets.
<duairc>
It prints this error message: Error opening directory “/nix/store/0i1pj3501zrzq4rrmk9ds84w1afrgwa6-gnome-panel-3.30.0/share/gnome-panel/applets”: No such file or directory
<duairc>
It seems that path is hardcoded somewhere whereas it should probably be something liks /run/current-system/sw/share/gnome-panel/applets, because that's where the applets from gnome-applets end up
<duairc>
But I think I'm missing something, because that can't really be right either, because what if the user installs applets in their own profile?
ashkitten has quit [Ping timeout: 245 seconds]
<duairc>
How does any of this ever work?
<duairc>
So I figured, I'll try to see how mate-panel does it... and the code seems pretty much the same (it is a fork). But I've compiled my own mate applets and installed them with nix-env and mate-panel does pick them up
<duairc>
I wonder what I'm missing
<{^_^}>
[nixpkgs] @kballard opened pull request #53728 → hexyl: init at 0.3.0 → https://git.io/fhZg8
ng0_ has joined #nixos
sary has joined #nixos
ng0 has quit [Ping timeout: 256 seconds]
<gchristensen>
shlevy: so I spent a few minutes working towards a store-path-as-~, and saw all the files in ~ that I want to exist, just don't love their location (like .lesshst) -- what do you do? seems ... eh, annoying
<gchristensen>
shlevy: also, are you able to switch ~ store paths while logged in okay?
ashkitten has joined #nixos
<samueldr>
gchristensen: at one point I was thinking of doing $HOME bankruptcy and have my actual files outside of $HOME in like $REAL_HOME and $HOME be set to something like $REAL_HOME/Settings (and XDG_CONFIG too to something similar) because of all that annoying cruft :/
griff_ has joined #nixos
sir_guy_carleton has joined #nixos
<duairc>
I wonder what I'm missing
detran has joined #nixos
<duairc>
Sorry, didn't mean to send that again
<duairc>
worldofpeace: I know it's WIP, but I guess I'm asking a more general question about how paths work in NixOS. Like is there a single place on the system where everything gets symlinked together, and if not, are there loads of different PATH-type environment variables that are getting magically passed around behind the scenes?
<gchristensen>
samueldr: you've seen shlevy's solution? his ~ was a tmpfs for a while, now no longer.
<samueldr>
gchristensen: yeah, stumbled upon it
<samueldr>
I'm thinking those are not mutually exclusive
<gchristensen>
~ as a tmpfs seems terribly dangerous
Mr_Keyser_Soze has joined #nixos
<samueldr>
I was thinking about doing it as a fuse FS with shenanigans like redirecting known good and unknown writes
<samueldr>
(and reads)
<samueldr>
so it's a bit less scary to lose things (if you trust the fuse fs lol)
<samueldr>
but at the same time: if you lose something, it's probably not going to have been in your home for a long time
<samueldr>
(unless you never reboot)
<gchristensen>
I have an idea... *writes it up*
Mr_Keyser_Soze has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @veprbl pushed to master « adv_cmds: switch url to use https »: https://git.io/fhZg2
<gchristensen>
a bit annoying since it doesn't update without a reboot
<samueldr>
since I don't have experience with zfs I can't see anything wrong, though with that at least you keep your things available for whenever you lose anything
pareidolia has quit [Ping timeout: 264 seconds]
<gchristensen>
eliminating places of state seems best... not papering over it.
<aleph->
Man sharing state across threads sucks
o1lo01ol1o has joined #nixos
pareidolia has joined #nixos
<gchristensen>
erlang's GC is nice there, aleph-
<aleph->
gchristensen: So after I finish this Golang CI system, I'm porting some Erlang stuff to Go actually
<gchristensen>
aye
<aleph->
gchristensen: My problem is, spinning off a goroutine holding a pointer to a Worker struct, the goroutine doing some tcp stuff and also updating info on the struct, and then trying to read updated info on the struct back in main() so I can schedule stuff.
<Myrl-saki>
Can anyone review #53600 ?
<{^_^}>
https://github.com/NixOS/nixpkgs/pull/53600 (by adrianparvino, 2 days ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
<aleph->
I sorta get the bits and pieces of what I was told to do to write stuff into the goroutine/struct
<aleph->
But reading out is kinda eh
<detran>
hello, I'm trying update the leiningen version, but when I try to build it with nix-build -A I get this error:
<detran>
error: cannot auto-call a function that has an argument without a default value ('stdenv')
<detran>
how do I fix that?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<samueldr>
I'm not 100% sure, but this seems like a callPackage invocation is required
<samueldr>
,callPackage
<{^_^}>
If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<AK>
worldofpeace: error: The option `fonts.fonts' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/config/fonts/fonts.nix' is already declared in `/etc/nixos/fonts.nix'.
<AK>
and is it normal for /per-user/root/ or how to enable my own user ?
cyounkins has quit [Ping timeout: 268 seconds]
griff_ has joined #nixos
sanscoeur has quit [Remote host closed the connection]
appleclusters has quit [Quit: Connection closed for inactivity]
hamishmack has joined #nixos
sanscoeur has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
ottidmes has quit [Ping timeout: 240 seconds]
eadwu has quit [Ping timeout: 252 seconds]
<AK>
I have a package polybar in nixpkgs. but with mpd built in support. so how can I edit the file and enable mpd support?
Supersonic has joined #nixos
<worldofpeace>
AK: ? I'd really like to see how you've used `fonts.fonts` from reading that error.
<yl[m]>
19:59 <yl[m]> Hey guys, at work we're re-defining our entire workflow and currently Nix is responsible for the dev environments and the CI. We are moving towards a mono repo and we have decided to use Bazel (choice was between Bazel and nix-build). There's one question that I was not able to answer that pushed Bazel forward. Consider two binaries A and B both dependent on a library C and a commit that touches on C, can nix
<yl[m]>
figure out that
<Ashy>
has anyone successfully run azure storage explorer on nixos?
<Ashy>
i can't find a nix derivation for it and the binary in the "linux" tarball won't run on nixos for some reason
<lopsided98>
yl[m]: It sounds like you are trying to use Nix as a build system instead of something like CMake, autotools, or in you case Bazel. Is that right? While Nix could be used that way, it is generally used at a higher level in conjunction with a build system that manages the dependencies between individual source files (such as Bazel).
<lopsided98>
Nix would normally be used to manage the build at a higher level, where there would be a single derivation (package) for a particular application or library in you code base. You can also build docker images within Nix
<lopsided98>
I have to go now, but maybe that helps a little (or maybe I'm completely misunderstanding what your trying to do)
jtojnar has quit [Quit: jtojnar]
unyu has quit [Remote host closed the connection]
unyu has joined #nixos
kochev has joined #nixos
unyu has quit [Quit: brb again]
unyu has joined #nixos
okuu has joined #nixos
<AK>
worldofpeace: Thanks polybar problem solved
<worldofpeace>
AK: Glad I could help :)
<yl[m]>
lopsided98: thanks for the explanation, yes you understood me right. We will stick with bazel for now then
<AK>
worldofpeace: I now would work for fonts
jasongrossman has joined #nixos
Boobie has joined #nixos
<worldofpeace>
AK: How have you declared `fonts.fonts`?
okuu has quit [Remote host closed the connection]
<AK>
worldofpeace: I have no fonts.fonts in configuration file.
<worldofpeace>
AK: I'm sorry, I don't understand the issue?
<AK>
worldofpeace: I just did fonts.fonts = [pkgs.terminus_font];
sanscoeur has quit [Remote host closed the connection]
<worldofpeace>
AK: can you paste `/etc/nixos/fonts.nix`?
<detran>
is there a tool that can tell you the sha256 of something you get with fetchurl? I've tried `wget <url> | sha256sum`, but it's complaining that the hashes don't match
<detran>
*and nix-build is complaining that the hashes don't match
<simpson>
detran: nix-prefetch-url
<simpson>
,locate nix-prefetch-url
<{^_^}>
Found in packages: nix, nix.debug, nixUnstable, nix-bash-completions
<worldofpeace>
detran: ,tofu
<simpson>
Oh, it's in the standard `nix` package. So it should be available to you already.
<worldofpeace>
,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.
<detran>
sorry, cat stepped on keyboard : )
<simpson>
worldofpeace: Note that, for `fetchurl` in particular, we *can* prefetch fine and the tool is supported.
<simpson>
worldofpeace: Right, replacing the older nix-prefetch-git and friends.
<porrifolius>
Does anybody have the haskell-ide-engine installed and working in their editor? I'm confused as to what I have to explicitly install... I've got domenkozar's hie-wrapper installed, the LanguageClient-neovim plugin, and some haskellPackages eg ghc-mod, brittany, hlint.
<porrifolius>
Hitting F5 and reformatting code works, lots of other stuff doesn't. Do I have to manually figure out all the little tools that haskell-ide-engine uses to get the job done and install them myself?
<porrifolius>
Or is the domenkozar/hie install supposed to pull them in? Or am I supposed to be doing some nix trickery to make a derivation out of the haskell-ide-engine git repo and install it?
joshie has joined #nixos
unyu has quit [Quit: brb]
unyu has joined #nixos
<detran>
ok, I'd like to install my updated version of leiningen, the manual says `nix-env -i leiningen -f pkgs/development/tools/build-managers/leiningen/default.nix`, but that's giving this error:
<detran>
error: cannot auto-call a function that has an argument without a default value ('stdenv')
<detran>
I tried using -E to run an expression, but that doesn't seem to work with nix-env
<wedens>
I've installed qutebrowser via nix on Arch, and I get "could not initialize GLX". are there some caveats?
s2mitrov has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
<fpletz>
wedens: 3d acceleration and webgl will probably not work for you
<fpletz>
wedens: this is due to the fact that the package does not directly depend von the opengl drivers because nixos will link those depending on your hardware configuration into /run/opengl-driver
esmerelda has joined #nixos
<fpletz>
you could try to fix that by symlinnking /run/opengl-driver to /usr if the api/abi of the glx lib of arch matches
tbenst has joined #nixos
<tbenst>
Hi there! I'm making a nix derivation whose executables call java. This works if I first do `nix-env -iA nixos.jdk` and then run the executable, but I'm guessing this isn't the "nix way" ;)
<fpletz>
hi tbenst, the standward way is to add a wrapper that appends the jdk to the PATH environment variable
<fpletz>
you can just grep for `makeWrapper` and/or `wrapProgram` to find examples in nixpkgs
<tbenst>
interesting, thanks. I'll give that a try
<wedens>
fpletz: makes sense. I expected this kind of problems. it would be too good if absolutely everything worked with nix on non-nixos :)
<esmerelda>
hey, how do I get the value of an argument specified with --arg or --argstr?
rprije has quit [Remote host closed the connection]
<fpletz>
esmerelda: these are just regular attrset arguments to a function that is called if you instantiate/build the expression
rprije has joined #nixos
<fpletz>
esmerelda: for instance: { foo }: "the value is ${foo}"
thomasjm_ has joined #nixos
<esmerelda>
ahhhh cool, got it!
<porrifolius>
benkolera: Hmmm, more serious problems perhaps... I'm getting some sort of "[Error] Got error while processing diagnostics: readCreateProcess: /nix/store/w4nj.../bin/cabal-helper-wrapper..." when nvim starts up with a haskell file. Not sure what the full error is, it disappears on me. The utility binaries are in the PATH.
<benkolera>
Yeah if the cabal helper wrapper dies then lots of things don't work.
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<benkolera>
It'll be fixing that. Usually needing to cabal configure in the nix-shell or making sure the right version of the cabal lib is around.
<benkolera>
Making that error not disappear will be the first step. It's normally something pretty easy once you know the error.
s2mitrov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<esmerelda>
is it possible to call an override from nix-shell?
<fpletz>
esmerelda: you mean something like this? nix-shell -p 'hello.override { stdenv = stdenvNoCC; }'
vk3wtf has quit [Ping timeout: 252 seconds]
<esmerelda>
fpletz: well, I've sort of stumbled into a frankensteinian way of doing things, but there might be a better way:
<esmerelda>
nix-shell ~/.nix-home/all-envs.nix -A env-python --arg extraPkgs "[ ''requests'' ]"
<esmerelda>
then all-envs.nix contains
<esmerelda>
env-python = python-env.override {
<esmerelda>
inherit extraPkgs extraPaths;
<esmerelda>
};
<esmerelda>
which then triggers the envFun that returns a mkDerivation
<esmerelda>
my end-goal is to have a simple one-liner I can use to initialize a python dev environment with arbitrary nix expressions and extra packages included
neminis has joined #nixos
<neminis>
hello, how can i fetch a file without specifying the sha256? fetchurl wants a sha256 but i just want nixos to download a file
<esmerelda>
neminis: nix-prefetch-url is your friend
<neminis>
ty
rprije has quit [Remote host closed the connection]
<wedens>
neminis: builtins.fetchurl
rprije has joined #nixos
<neminis>
even better ty
johnnyfive has quit [Quit: I quit now.]
hedning has joined #nixos
* esmerelda
wonders to herself when builtins.bitXor is useful
jackdk has quit [Ping timeout: 250 seconds]
simukis has joined #nixos
<fpletz>
esmerelda: hm, how is python-env defined? using python.withPackages or something else?
neminis has quit [Ping timeout: 256 seconds]
<fpletz>
not sure if this is applicable because it depends on what you're doing to the python-env, but for python I like to do oneliners like: nix-shell -p 'python3.withPackages (ps: [ ps.requests ])'
<{^_^}>
[nixpkgs] @nalbyuites opened pull request #53733 → pgsanity: init at 0.2.9 → https://git.io/fhZaO
<esmerelda>
fpletz: oh, it's turtles all the way down. I'll post a gist
<fpletz>
:)
nalbyuites has joined #nixos
aleph- has quit [Ping timeout: 246 seconds]
<drager>
What's the prefered way when I want to install an application that cannot be found by searching for it via nix?
sanscoeur has joined #nixos
rprije has quit [Read error: Connection reset by peer]
<esmerelda>
I'm still definitely learning... this is the easiest way I've found to wire my custom python shell into arbitrary nix expressions for python packages
sanscoeur has quit [Remote host closed the connection]
<AK>
if I'm not wrong, we don't need dotfiles for a program if we configure it through configuration.nix?
<esmerelda>
configuration.nix affects all users. per-user config is just like someone with their own nix installation and profile
<esmerelda>
also, you may want multiple different types of shells defined, like I have set up for python (with pydbgp and neovim) or C# (with VS Code) etc.
tzemanovic has joined #nixos
<AK>
esmerelda: I have nixos on my laptop so
<AK>
I'm the only user on it
Ariakenom has joined #nixos
cfricke has joined #nixos
palo1 has joined #nixos
<ldlework>
AK you learn so fast
kochev has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
rauno has quit [Ping timeout: 252 seconds]
tzemanovic has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
<AK>
ldlework: Thank you ;-) It's my 2nd day on nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<{^_^}>
[nixpkgs] @agentpt5 opened pull request #53735 → Flexget 2.17.20: add transmissionrpc as dependency → https://git.io/fhZaB
cfricke has quit [Ping timeout: 258 seconds]
Mateon3 has joined #nixos
<AK>
services.mpd.musicDirectory = "${HOME}/mus"; is there something wrong?
unyu has quit [Quit: brb]
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
<fpletz>
esmerelda: hm, weird, the code doesn't look wrong to me and I just tried a minimal test case in nix repl and it does succeed
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @hedning opened pull request #53736 → gtk3: fix segfaults when opening dialogs → https://git.io/fhZaa
<fpletz>
esmerelda: when trying to run your code I get different errors but the override seems to work though
esmerelda has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @hedning opened pull request #53738 → libmediaart: turn off broken tests until fixed → https://git.io/fhZaX
paulvictor has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellacosta has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
tty777 has joined #nixos
<thomasjm_>
hello, does anyone know why nodejs would fail to install with exit code 2, with the output cutting off abruptly during the install process? output looks like this: https://gist.github.com/thomasjm/d924ff2c08cd7e6222777f0c367581ee . i'm kind of stumped because i can build/install it successfully in nix-shell, but it doesn't work from nix-build
o1lo01ol1o has quit [Ping timeout: 250 seconds]
eyJhb has joined #nixos
<AK>
mpd service not found.
<eyJhb>
Has anybody experienced that the cursor will blink/fade rapidly in Chromium, when hovering over the tabs at the top? (moving across the tabs)
ZoomZoomZoom has joined #nixos
Ariakenom has quit [Quit: Leaving]
<ZoomZoomZoom>
Hi everyone! Any tips on running multihead multigpu setups?
labancle has joined #nixos
<labancle>
hi
esmerelda has joined #nixos
<esmerelda>
fpletz: oh, I should have mentioned that I fixed it before I pasted it!
<fpletz>
ah, great :)
rauno has joined #nixos
spacefrogg has quit [Ping timeout: 250 seconds]
spacefrogg has joined #nixos
<labancle>
can anyone tell me how I can run a few shell commands from my configuration.nix file?
jeaye has quit [Quit: WeeChat 2.0]
<labancle>
more specifically; I want to create a few symlinks when nixos boots up (if they dont already exist)
<symphorien>
a "module" is for nixos (so system configuration) not packaging software
<drager>
Oh ok
<symphorien>
but I imagine you get the point
griff_ has quit [Ping timeout: 245 seconds]
<drager>
Yeah, where would you keep these? I saw somewhere about forking nixpkg and keeping your own fork and then bring in upstream. Is this what you do in this case?
<symphorien>
yes. You don't absolutely need to fork nixpkgs but it is not more trouble to do so and then the PR is a click away
<drager>
So it's common to package things and then send PR's that gets into upstream?
<symphorien>
well it depends on the package of course.
<drager>
Yeah
<drager>
Thank you for all the answers!
owickstrom has quit [Quit: Leaving]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<AK>
dunno why I started loving this yet innocent looking nixos :-)
<duairc>
I'm trying to split my configuration.nix up into smaller, independent modules
<duairc>
I want to write a networkmanager one, which enables networkmanager, installs networkmanagerapplet and adds "networkmanager" to the extraGroups of every user defined in users.users
Dedalo has joined #nixos
<duairc>
It's the last one that's causing a problem, infinite recursion as you might imagine
<duairc>
I know there's mkIf that magically fixes that in certain cases, but I don't think that's exactly what I need here
orivej has quit [Ping timeout: 272 seconds]
<duairc>
But how does mkIf do it, and can I do something similar here?
<AK>
I would shorten it once I'm happy with my setup. I'm thinking of `imports` and I'll remove all those things and add another file.nix in /etc/nixos then import it. I think that would work.
<immae>
Hi everyone! I have this warning with nixops when deploying: ''warning: The option `ipAddress' defined in `/tmp/nixops-tmp4qK0KF/physical.nix' has been changed to `ipv4.addresses' that has a different type. Please read `ipv4.addresses' documentation and update your configuration accordingly.'' (it’s a hetzner server) I would like to update the ipAddress to use the new ipv4.addresses, but it’s not in my
<immae>
configuration file. I can see it in the nixops sqlite database though, what way do I have to fix the value? (I don’t want to destroy the current server of course :p )
<AK>
As I said I'm newb so don't even know if that's the true way but how much I have learnt in these two days with nixos I'm sure, it will
<AK>
immae: your configuration.nix?
<immae>
AK: it’s not in there, it’s written by nixops
<duairc>
wedens: The recursion is on config.users.users I'd imagine, it's defined in terms of itself
<immae>
in particular some part of the configuration is (computed at creation and) written in an sqlite database, and it includes the one I’m talking about
<AK>
cool
<wedens>
duairc: I don't think you can just add every user to the group like that. I'm not entirely sure though
<immae>
The problem is that I see no other way of fixing the configuration than to go edit the sqlite value, so I wondered if I have other options that I missed
<duairc>
wedens: There must be some way I can do this so that I only have to declare the users once, and if I enable my networkmanager module, then everyone is added to the group?
<wedens>
duairc: do you get infinite recursion error?
<duairc>
wedens: Yeah
<wedens>
duairc: how about something like `users.groups.networkmanager.members = config.users.users`. I'm not sure what value it'll have in the end though
<duairc>
wedens: Ah, I didn't know about users.groups. That could work.
<AK>
is there
<AK>
aan
<AK>
is there a way to set python3 as default python? I can't find an option
<duairc>
wedens: That seems to have worked, thanks!
<wedens>
duairc: have you checked that it doesn't result in an empty list? :)
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « sbcl: fix a thread safety bug with an upstream patch »: https://git.io/fhZrA
<duairc>
wedens: Haha, it actually adds every user on the system... I guess I want to filter isNormalUser or something
strobelight has quit [Read error: Connection reset by peer]
init_6 has joined #nixos
<siers>
two of the nix shell expressions for react-native aren't building :(
Synthetica has joined #nixos
<esmerelda>
builtins.toPath "./foo" expands to /home/esmerelda/foo inside nix repl, but it's not expanding for some reason in my invocation of nix shell... is there a reason?
<wedens>
esmerelda: you may want to do `toString ./foo`
rauno has quit [Ping timeout: 268 seconds]
<esmerelda>
wedens: it's already a string though
iyzsong has joined #nixos
<esmerelda>
it's being passed to callPackage, which is complaining
ng0 has quit [Quit: Alexa, when is the end of world?]
IRC-Source_40609 has joined #nixos
knupfer has joined #nixos
agander has quit [Ping timeout: 250 seconds]
Dedalo has quit [Ping timeout: 245 seconds]
agander has joined #nixos
<mudri>
I submitted this pull request a while ago. It adds to the changelog, so leads to a minor merge conflict. How can I best get it to move forward? https://github.com/NixOS/nixpkgs/pull/53080
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danbst has joined #nixos
<danbst>
\o
o1lo01ol1o has joined #nixos
esmerelda has joined #nixos
<danbst>
is there shortcut in Nix for a fake sha256 attribute? Like, write `sha256 = "fake";`, wait it errors out and prints correct hash?
<etu>
!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.
<danbst>
oh
<danbst>
my main problem is that I never can remember how many digits should be in hash, so I have to google fake one
<etu>
danbst: I usually steal a hash from some place else and just change a few chars so it should be wrong, that way I don't have to guess how many chars to put in :p
<danbst>
so you google to, right
<danbst>
*too
<etu>
danbst: "some place else" is another package or so
<danbst>
gotcha
<etu>
:)
o1lo01ol1o has quit [Remote host closed the connection]
rauno has joined #nixos
<danbst>
I'd like than `sha256 = null;` would generate error with correct hash, rather than "error: value is null while a string was expected"
strobelight has joined #nixos
<Synthetica>
danbst: Or a lib.emptyHash or something
Dedalo has quit [Ping timeout: 272 seconds]
<danbst>
or, `sha256 = "";`. It generates "error: hash '' has wrong length for hash type 'sha256'", but maybe better would be to include real hash
<Synthetica>
Any of those would be good
<drager>
How long would things I install via `nix-env` be present on the system? I mean if I run `nix-env -i` and later changes `configuration.nix` and do other changes so a new entry is added and then I install packages via `nix-env` and then I rollback for some reason. Packages only from the first `nix-env` run will be present then?
<danbst>
drager: in your case everything you've installed with nix-env will be present, no matter how many and in which order `nixos-rebuild switch --rollback` you do
<danbst>
or are you talking about `nix-env` rollbacks?
<drager>
danbst: Oh okey
<adisbladis>
danbst: re hash shortcuts: You can use the output from sha256sum
<danbst>
though I like the lib.fakeSha256 approach. It would be 1) easier to notice that it is fake one, 2) less typing
<jonaswouters>
if a package's hash (from the stable or unstable channel) is no longer up to date, and thus does not want to install the package, is there an easy way to ignore the hash?
<{^_^}>
[nixpkgs] @vcunat pushed commit from @hedning to staging-next « gtk3: fix segfaults when opening dialogs »: https://git.io/fhZKZ
<danbst>
jonaswouters: no, you have to override/remove affected package
<Synthetica>
jonaswouters: "A package's hash"? The hash for the source? Or for the whole package?
<drager>
How do you guys handle different versions of programming languages such as python 2 and python 3? For e.g. Rust, do you still handle rust versions etc using rustup?
<gchristensen>
for python I have a shell.nix per project, and the shell.nix refers to python2 or python3
<gchristensen>
for rust, I have a shell.nix per project, and the shell.nix refers to rustA or rustB :)
<drager>
Oh okey, and you keep those in version control for the specific project?
<gchristensen>
yea
<drager>
Cool
<drager>
And if it's an lets say open source project where you can't check them in?
<gchristensen>
I'll put a shell.nix in there anyway, and not commit it
<drager>
Sounds reasonable, thanks!
<Yaniel>
or put the project on nixpkgs
<gchristensen>
nix-shell is good stuff. I use it for everything. I don't have much of anything installed globally, because I use shell.nix for everything
<Yaniel>
then you can use the package to set up a nix-shell
<drager>
gchristensen: Yeah, it sounds great. Haven't gotten to it yet since I'm new with nixos etc
<drager>
Yaniel: How do you mean?
<Yaniel>
write a package definition for it and submit it to the nixpkgs repo
<Yaniel>
because you can use nix-shell to get an environment suitable for a given package as well
<Yaniel>
(not sure of that pulls in dev dependencies or only runtime though)
<drager>
I'm not sure I follow. If I write a private anything using Rust that is private and I want to use rustc 1.31, how would that work as you write?
<ben>
I think the suggestion is for when there's an open source project that is on github but doesn't want to ship a .nix file, not for private things
<Yaniel>
if you want to hack on something privately you'd just use a shell.nix
<Yaniel>
but if it's a public project you might as well package it publicly
<drager>
Ah alright!
<drager>
Yeah, that sounds like a good plan
<Yaniel>
the .nix file is going to be almost the same for shell.nix and a package anyway
<drager>
ah ok
<drager>
Thanks!
esmerelda has quit [Ping timeout: 272 seconds]
<Twey>
drager: For py2/py3 we have python/python3 symlinks anyway, and we use python.withPackages, which uses Python site-packages directories to make sure the dependencies don't conflict
<Twey>
drager: (as a local developer who isn't packaging you can stick one in a shell and use venv/pipenv/env-of-the-week normally if you prefer)
<duairc>
wedens: But that would only be for if I was trying to replace it with another package, right? It will still be in the list
<wedens>
__monty__: there is replaceStrings
<danbst>
duairc: no. If package isn't a core one, you can make it null via overlay. So it will be technically in list, but will be null (or an empty derivation)
<Taneb>
Is it known what NixOS 19.03 will be codenamed?
<duairc>
danbst: But what if some other packages depends on it, I don't necessarily want to make it null, I just don't want it showing up in environment.systemPackages?
<wedens>
__monty__: use @var@ (default substitution syntax for nix)
iyzsong has quit [Ping timeout: 246 seconds]
<wedens>
__monty__: you _can_ use ${var}, btw
Makaveli7 has quit [Quit: Leaving]
<wedens>
you'll just need to be careful to escape when you replace
init_6 has quit [Ping timeout: 258 seconds]
<__monty__>
Default as in that's automatically interpolated when using readFile? Or default as in convention?
<wedens>
__monty__: there is also substituteAll, but it produces a path in the store, not just a literal string
gagbo has quit [Ping timeout: 272 seconds]
<wedens>
__monty__: e.g. substituteAll uses @var@ for subtitution
init_6 has joined #nixos
<__monty__>
And that syntax is only for substituteAll?
<duairc>
danbst: Actually, in this case I can solve this with an override. I'm using MATE but I don't want Gnome terminal installed. But I do have services.xserver.desktopManagers.gnome3.enabled = true;, because that does some magic that makes MATE work better. But I can make an overlay that takes gnome-terminal out of pkgs.gnome3.corePackages
<wedens>
__monty__: no idea, tbh :)
<__monty__>
wedens: Alright, np, thanks.
<Synthetica>
__monty__: If you want different syntax, you could use some sed magic in a derivation
<srhb>
__monty__: substite and the other bash functions all use the @varName@ syntax if you use subst-var over replace. What are you actually trying to do? :)
<__monty__>
This was about being able to write a config file with syntax highlighting. It's broken when it's included in an expression as a multi-line string.
<__monty__>
However, there's interpolation in the string currently. So I'm looking for a replacement.
<danbst>
this is a Nix expression to obtain list of all systemPackages, which module generates. You then filter it and mkForce in you configuration.nix resulting expression
<danbst>
instead of <nixpkgs/nixos/modules/programs/ssh.nix> you should put your configuration file
<srhb>
__monty__: Avoiding readFile and friends and using the shell substitution files sounds like the right solution then.
<srhb>
er, shell substitution functions*
dslegends has joined #nixos
erictapen has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @yorickvP opened pull request #53756 → nixos/borgbackup: use coercedTo instead of apply on `paths` → https://git.io/fhZit
<wedens>
I've had a problem with readFile { substituteAll { .. } } just yesterday. so yeah, avoid that :)
<danbst>
but make sure you never introduce infinite recursion. So you should have configuration.nix = import ./configuration_real.nix; environment.systemPackages = lib.mkForce (that expression);, and ./configuration_real.nix should contain your current configuration
<danbst>
duairc: ^
<__monty__>
srhb: Shell substitution functions? substituteAll? So I have to export all the things I'm now interpolating as environment variables?
detran has quit [Ping timeout: 268 seconds]
<duairc>
danbst: That's definitely a bit too crazy, but I appreciate you showing me that. I'll see if I can trick gnome into thinking gnome-terminal isn't a core package.
<srhb>
__monty__: Either that or use substituteInPlace with --replace or something similar
<__monty__>
So unless substitute has an advantage I'm not sure why to depend on nixpkgs for this?
alex_giusi_tiri has left #nixos [#nixos]
<danbst>
duairc: nice! btw, is MATE better than gnome shell? Maybe I should switch too?
<duairc>
danbst: It's definitely a bit rough around the edges in Nix, but I'm getting there. I actually use i3 as my window manager but I like having a desktop environment as well. Gnome Shell doesn't support that.
<srhb>
wedens: Ah, I didn't know that one.
<{^_^}>
[nixpkgs] @Mic92 merged pull request #53747 → linux: Adds patch for fixing wifi on raspberry pi → https://git.io/fhZod
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.09: https://git.io/fhZi2
<duairc>
Gnome Flashback *does* support that, it's descended from the same codebase as MATE, in theory it should be the same, but it's only just been packaged for NixOS and it's even rougher around the edges than MATE (tried it out last night)
<srhb>
Wait, I guess I did. I just seldom use it manually. If ever.
<wedens>
srhb: it's pretty convenient to do `substituteAll { src =./file; inherit some_dep; };` :)
<srhb>
Yeah.
<duairc>
I actually use MATE with mostly gnome applications, I just prefer mate-terminal because gnome-terminal removed support for transparency. I guess I could equally just patch it back in, Ubuntu even has a patch for that, Nix makes that easy, but I don't want to do too many source-level patches or else I'll just be compiling all the time
LnL7 has quit [Quit: exit 1]
<duairc>
danbst: I did try out Gnome Shell in Nix yesterday though. Do you find GDM to be really buggy? In particular everytime I did nixos-rebuild it restarted display-manager.service (which I thought it wasn't supposed to do, it doesn't do it for lightdm), and half the time it wouldn't come back up. I thought it might be a wayland thing so I disabled that but the behaviour was still more or less the same.
<srhb>
__monty__: fwiw, exporting to bash env vars in stdenv.mkDerivation is as simple as setting foo = bar; attributes in the attrset passed to mkDerivation, so it's not horrible.
LnL has joined #nixos
LnL is now known as Guest62394
orivej has quit [Ping timeout: 246 seconds]
Guest62394 has quit [Client Quit]
<danbst>
duairc: yes, I've had this bug too, but long ago. Recent half-year was clean regards to this
tzemanovic has joined #nixos
LnL7 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<__monty__>
srhb: Noted, thanks for the advice.
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
LnL7 has quit [Client Quit]
LnL has joined #nixos
LnL is now known as Guest25575
<betaboon>
is github down ? oO
<wedens>
betaboon: works on my machine (tm)
<__monty__>
Not down for me either.
<betaboon>
weird on my phone it works. on my landline i get timeouts
<gchristensen>
that maintenance only applies to the scheduled services brownout
hyper_ch2 has quit [Ping timeout: 256 seconds]
<betaboon>
for me github.com resolves to 192.30.253.112 and 192.30.253.113. according to https://api.github.com/meta they also resolve to some 185 addresses. those 185 are pingable for me. the 192 ones are not
<betaboon>
now the are back... maybe my ISP fucked up _again_
<wedens>
Synthetica: thanks! I'll wait for the cache :)
<danbst>
gchristensen: "I don't have much of anything installed globally, because I use shell.nix for everything" - but how do you solve a gc-root pinning? Do you write nix-shell wrappers for each project?
<srhb>
danbst: The easy solution is to not gc :P
<wedens>
danbst: .direnv maybe?
<gchristensen>
danbst: srhb's solution is pretty much what I do, I don't GC very often. once every 3mo or so? maybe even less.
<gchristensen>
danbst: but I'm moving to a tool I've been hacking about on which auto-gc-roots nix-shells.... maybe one day it'll be OSS
<Baughn_>
I suppose it does need to scan the entire FS.
<Synthetica>
Can't we compile just systemd with gcc8? Or wouldn't that fix the problem?
<Baughn_>
gcc8 + some compiler flags.
<Baughn_>
But IME it's a bad idea to mix and match compiler versions for core software.
<{^_^}>
[nixpkgs] @dotlambda merged pull request #53756 → nixos/borgbackup: use coercedTo instead of apply on `paths` → https://git.io/fhZit
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @yorickvP to master « nixos/borgbackup: use coercedTo instead of apply on `paths` (#53756) »: https://git.io/fhZXa
<Baughn_>
The real problem here is, of course, that it's written in C. :X
devalot has joined #nixos
<gchristensen>
ekleog tells me that the bug is not due to C, but is an architectural problem which wouldn't be solved by an arbitrary, memory-safe languages
fendor has quit [Ping timeout: 258 seconds]
<freusque>
are there any good examples of private package repositories that accept package overrides?
<freusque>
I have a private collection at work, which is a set of "callPackage" generated attributes, returned in "{} in pkgs // argopkgs" fashion
<freusque>
I want package overrides to work on this private package set, though.
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « claws-mail: 3.17.2 -> 3.17.3 »: https://git.io/fhZX1
<ottidmes>
,overlays freusque
<{^_^}>
ottidmes: Did you mean overlay?
<{^_^}>
freusque: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
dbmikus_ has joined #nixos
<freusque>
aha
<freusque>
thanks!
RRedcroft has joined #nixos
<freusque>
I'm wondering
<freusque>
has anyone tried to write a nixpkgs to haddock/hackage converter?
Makaveli7 has joined #nixos
<freusque>
AFAIK there is no augmented source browser for nixpkgs ATM, aside from the nixpkgs package search page on nixos.org?
<teehemkay>
I'm using nix on macos with the multi-user config. The version of `<nixpkgs>` in channels_root is `nixpkgs-19.03pre160749.3a393eecafb` which seems to date back to November. It doesn't seem that `nix-channel --update` really updates `<nixpkgs>` nor that `nix search -u`
<teehemkay>
srhb: my user (there's nothing in my ~/.nix-defexpr/channels)
<ottidmes>
freusque: there might have been some experiments, but I do not know of any myself, you can use `nix search ...` and to get the source location of most packages there is also `nix-instantiate --eval --expr 'let pkgs = import <nixpkgs> { }; in pkgs.git.meta.position'` (in this case for the git package)
<srhb>
teehemkay: Check root, as Synthetica suggested :)
<teehemkay>
Synthetica: I've tried that, no change.
<Synthetica>
What does sudo nix-channel --list say?
<teehemkay>
Synthetica: Thanks for your help. Finally got it to update: i had to first `sudo -u root` and *then* `nix-channel --update` for it to work (`sudo -u root nix-channel --update` didn't work either)
<clever>
teehemkay: root is the default user, so `-u root` isnt needed
<teehemkay>
clever: Yes. I mean I had to `sudo -u root bash`
<clever>
teehemkay: you want `sudo -i`
<samrose_>
I have an application that is packaged to run on nixos, the application in turn will end up downloading binaries and running them on nixos. Is there a straightforward/recommended way to do this in nixos? are there specific directories where an application should place data, and binaries that are not part of "closures"?
<teehemkay>
clever: Oh I had forgotten that one, thank you 😀
<samrose_>
ben: I'll try it thanks. And I also found buildEnv from pkgs/build-support/buildenv and will investigate it
<ben>
re: steam-run, my first thought was also whether you are packaging steam :)
<freusque>
yeah, make-derivation is a big one, I suppose.
chessai has quit [Remote host closed the connection]
<ben>
samrose_: if they're spooky non-nixos binaries that make weird assumptions about where their dependencies live, yeah, the whole build-fhs-* stuff sounds useful
<samrose_>
ben: yeah, I am not packaging steam, so I might not start there. I forgot about https://nixos.org/patchelf.html too
<freusque>
I have limited experience with PL design so any remark I can make is hazy anyways, thanks.
<ben>
steam-run is just a wrapper script for that apparently
<samrose_>
ah, made for steam-like binaries or something like that ok
<ben>
freusque: there was some recent talk about designing a new module system. i only recall that it involves a bunch of angle brackets, sorry.
<Mic92>
Taneb: ok. If you think this is a bug, it is the best to open an issue upstream at https://github.com/zfsonlinux/zfs/ with the commands you have entered.
<infinisil>
haslersn: Don't Nixos containers do that?
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
<haslersn>
infinisil: nixos-shell is a command that creates a NixOS container. I don't want to change my configuration when test-deploying some project
<haslersn>
infinisil: nixos-container seems to be stateful. nixos-shell creates the container, starts it, mounts the current directory and logs you in as root.
<{^_^}>
[systemd] @fpletz pushed 4 commits to nixos-v239-security: https://git.io/fhZMy
<AK>
so do I have some bad affects if these files aren't real files and links?
<{^_^}>
[systemd] @fpletz pushed 0 commits to refs/tags/nixos-v239.20190110: https://git.io/fhZM9
<rain1>
How do I get video thumbnails in pcmanfm in nixos?
<jacereda>
srhb: I see, thanks
npmccallum has joined #nixos
<{^_^}>
[nixpkgs] @kwohlfahrt opened pull request #53767 → ssh: put custom options before generated options → https://git.io/fhZMH
<betaboon>
hello #nixos, i want to build a haskell package (namely postgrest). it is available in nixpkgs but only in version 5.1.0, the latest release i 5.2.0 (which is not yet available on hackage). the one in nixpkgs doesnt build. which options to i have ?
<{^_^}>
cannot import '/nix/store/vp9gi4dbhjl3spp3x832srbn5a0ddf15-cabal2nix-postgrest-5.1.0', since path '/nix/store/fyqk650phg4bc5id8jxpqxsycccw3cp0-cabal2nix-postgrest-5.1.0.drv' is not valid, at /var/lib/...
<clever>
betaboon: you can also use this to load any version that happens to be in all-cabal-hashes
<Synthetica>
clever: til
<clever>
but it relies on IFD, and {^_^} has IFD disabled for security
ng0 has joined #nixos
<srhb>
betaboon: Once you have that done, you can use overrideCabal and friends to fix any build errors.
<AK>
rain1: I have to install some ffmpeg vidoe thumbnailer for that what you want but my file manager is ranger
<betaboon>
srhb: thanks for the pointers. will read up and try :)
chessai has joined #nixos
<rain1>
thanks I installed ffmpegthumbnailer AK
<rain1>
but it did not make thumbnails happen
acarrico has quit [Ping timeout: 246 seconds]
<rain1>
ranger file manager is not graphical?
orivej has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.fido2: run tests »: https://git.io/fhZDf
<AK>
rain1: ranger is cosole based. and I'm still wandering to search the thumbnailer name ;-)
<AK>
lemme install it and it will work for me then I'll help you too
drakonis has joined #nixos
Alling has joined #nixos
mkoenig has quit [Ping timeout: 258 seconds]
<Alling>
Hello awesome #nixos! I decided to make the move from Windows on my desktop as well, so that I can use my 3x 1440p monitors for programming instead of a measly 1080p laptop monitor.
<wedens>
gchristensen: hey, I've noticed you have twemoji-color-font in your config. can you actually see emojis with color in e.g. terminal?
<betaboon>
Alling: congrats :)
<Alling>
However, I don't understand how to get any signal at all on my two PG278Q:s, connected with DP to my GTX 980. My DVI monitor works fine, but that's it. All DP outputs are "disconnected" according to xrandr.
<gchristensen>
wedens: I don't seem to, in sakura
<Alling>
They work just fine on Windows, but they are completely dead on NixOS.
<AK>
Alling: welcome to linux world
mkoenig has joined #nixos
<Alling>
But when I connected one of them to my laptop, it worked (at 60 Hz due to Intel GPU).
shpx has joined #nixos
<Alling>
I'm also wondering how to use Wayland, or even how to tell if I'm using Wayland, or just how to get rid of the MASSIVE tearing everything I do suffers from.
<Alling>
But first things first. Is there any way to make a PG278Q work on NixOS with an Nvidia GPU?
Alling has left #nixos [#nixos]
Alling has joined #nixos
<Alling>
Back to Windows then, I guess. It was worth a try. I'll be staying with NixOS on my laptop though.
<AK>
rain1: I got it working with ffmpegthumnailer in cosole without ranger. lemme reboot
<betaboon>
Synthetica: in your gist: line 1+2 == new, line 4+5 == old !?
<betaboon>
and how would i apply a patch to that dependent package ?
<AK>
betaboon: I don't wanna use systemd-boot.
<betaboon>
AK: i use refind and boot the kernel with efistub.
<Synthetica>
betaboon: No, you include both instead of 75-77 of the original file
<Synthetica>
both/all
<Synthetica>
betaboon: Depends on how you are building the package
<AK>
I'm sure if I create an entry for nix with efibootmgr, it will work. but what about the configuration.nix which has systemd variable in it? Do I have to remove it and it has no effect on config?
<{^_^}>
[nixpkgs] @nlewo merged pull request #52870 → dockerTools: allow to pass extraCommands, uid and gid to buildLayered image → https://git.io/fhTUw
<ekleog>
Baughn_: about stack clash, I'm pretty sure this specific problem affects not only C but any language that allows arbitrary large `alloca`, not necessarily C, and technically the C code is most likely UB-free and perfectly well-defined acc. to the C standard (at least this part), the issue is that the actual implementation uses real-world memory and real-world memory is not an ideal stack and heap, but is some
<ekleog>
flat addressing where the stack and heap are mixed together
<ekleog>
and this breaks the abstraction boundary that C was supposed to provide, because when the stack grows too big it collides into the heap
<Synthetica>
betaboon: I think you'd put it in args, but I'm not sure
<Baughn_>
ekleog: That's a bug in GCC then, but fair enough.
<{^_^}>
[nixpkgs] @tbenst opened pull request #53769 → add bftools, a java cmd tool for converting bioformats. → https://git.io/fhZyn
drakonis_ has quit [Ping timeout: 240 seconds]
Dedalo has quit [Ping timeout: 268 seconds]
<duairc>
betaboon: I don't think it even needs one. Can you do a sanity check for me? Can you add a line to /etc/nixos/configuration.nix, like nixpkgs.overlays = [import /tmp/blah.nix];, and make /tmp/blah.nix just something like (self: super: {}), and tell me if you get infinite recusion?
dsiypl4 has joined #nixos
<betaboon>
duairc: i am doing that in one of my deployments and can say it works
<duairc>
betaboon: It's not working here :/
Alling has quit [Ping timeout: 256 seconds]
<duairc>
betaboon: Like I'm literally just doing an empty overlay now and getting infinite recursion
<betaboon>
duairc: i do it like this: `nixpkgs.overlays = import ovarlays.nix;` overlays.nix: `[ (import ./overlay/default.nix) ]` overlay/default.nix: `self: super: {}`
<betaboon>
duairc: when using <nixpkgs-overlays> i use `export NIX_PATH=$NIX_PATH:"nixpkgs-overlays=$(pwd)/overlays.nix"`
<duairc>
Oh FFS it was my shitty syntax, I needed parens around (import /tmp/blah.nix)
sheth has quit [Quit: Lost terminal]
<duairc>
Too used to Haskell where there's a comma between list items
<duairc>
betaboon: Thanks for your help!
<AK_>
vim supertab ? how to install it?
<betaboon>
duairc: you're welcome
griff_ has quit [Quit: griff_]
<ottidmes>
is there an easy way to test whether my nativeBuildInputs are correct?
nwspk has quit [Quit: Quit: *.banana *.split]
<betaboon>
can i change the ghc version when building with callCabal2nix ?
<ottidmes>
betaboon: haskell.packages.ghc822.callCabal2nix ... should probably work
nwspk has joined #nixos
<betaboon>
ottidmes: thanks will try
knupfer has quit [Ping timeout: 268 seconds]
Dedalo has joined #nixos
ris has joined #nixos
<c00w>
Anyone know if there is already an effort to automate package updates?
<ottidmes>
c00w: there is, ryantm has a bot that automatically tries to update packages based on updates being done by other distros using information available on repology
<infinisil>
It's actually a list of entries now, and to calculate the karma it needs to loop through them
<LnL>
you should probably blacklist that one tho, it's pretty annoying if we can't mention the language anymore without getting spammed by a bot
ststefa[m]1 has joined #nixos
<{^_^}>
[nixpkgs] @leo60228 opened pull request #53771 → Fix Numpy on PyPy → https://git.io/fhZSw
simukis has joined #nixos
kisonecat has quit [Ping timeout: 258 seconds]
<Synthetica>
infinisil: Int is finite-precission, so with enough ++'s , you can reach underflow :P
<klntsky>
How do you `killall` on nixos? I find looking into `ps` output every time to get the pid quite annoying. Maybe it's time to write a wrapper script
Drakonis__ has quit [Read error: Connection reset by peer]
<Synthetica>
klntsky: killall is a package (I think it's defined in unixtools) that can be installed lika any other
<gchristensen>
you want to kill a process by name?
<klntsky>
gchristensen: yes, by the name of the binary. killall just can't guess it because of the store path.
<klntsky>
gchristensen: yes, pkill works fine. for some reason killall does not properly handle processess started via symlinks, e.g. it does not kill dunst daemon when it is started by home-manager.
<clever>
klntsky: i recently noticed, that killall only accepts the truncated name, as seen by `ps`, but not the full name from `ps aux`
<clever>
klntsky: i believe the reason, is that the truncated name is a fixed-width char[] in the kernel, but the full name is argv[0], in the procs ram, which may be in swap
<clever>
so there is a cost to getting the full name
aleph- has joined #nixos
simukis has joined #nixos
<danbst>
clever: nice insight!
<clever>
danbst: oh, and check the `-e` flag in `man killall`
agander_ has joined #nixos
<danbst>
clever: I'd rather alias killall="echo use pkill"
<gchristensen>
curious they added a new .1 at the end instead of .0 -> .1. I wonder what they think that .0 is for :)
<Synthetica>
They already released 0.34.1, so they painted themselves into a corner
<gchristensen>
ah :)
fendor has quit [Ping timeout: 272 seconds]
Guest29947 has joined #nixos
Guest29947 has quit [Excess Flood]
Guest29947 has joined #nixos
Guest29947 has quit [Max SendQ exceeded]
qushu has joined #nixos
Guest29947 has joined #nixos
Guest29947 has quit [Read error: Connection reset by peer]
<infinisil>
Synthetica: Would love to hear some review, can you tell me in #nixos-chat?
<qushu>
The documentation suggests something like `nix-shell -p 'python35.withPackages(ps: with ps; [ numpy toolz ])'`. Is there a way to adjust this so that tests don't get run for numpy and toolz?
W1lkins has quit [Remote host closed the connection]
<AK_>
cp: missing destination file operand after '/nix/store/n6k6lbagxabjk9ghyfvb13q9l8yak0hk-extra-utils/share/consolefonts/font.psf'
W1lkins has joined #nixos
<AK_>
Try 'cp --help' for more information.
<AK_>
builder for '/nix/store/q0jn27nlk11y85qmwzxkjdh7567gljrl-extra-utils.drv' failed with exit code 1
<AK_>
cannot build derivation '/nix/store/ncmi1k1lmplx3bphfxgw82a4f041d7m6-stage-1-init.sh.drv': 1 dependencies couldn't be built
<AK_>
cannot build derivation '/nix/store/fi4rf3am6r3zixaw4myz366r0l67z9mh-initrd.drv': 1 dependencies couldn't be built
<AK_>
cannot build derivation '/nix/store/j8zd1xhdc6pfl0bdw96k9xncivlzi3xh-nixos-system-9y-19.03pre165037.eebd1a92637.drv': 1 dependencies couldn't be built
<AK_>
error: build of '/nix/store/j8zd1xhdc6pfl0bdw96k9xncivlzi3xh-nixos-system-9y-19.03pre165037.eebd1a92637.drv' failed
<clever>
AK_: you likely tried to copy doesntexist.* to $out/foo and with nullglob on, it turns into just `cp $out/foo`
W1lkins has quit [Client Quit]
<AK_>
clever: I just did a `nixos-rebuild switch`
<clever>
AK_: something in your extra-utils derivation is broken, check `nix show-derivation /nix/store/q0jn27nlk11y85qmwzxkjdh7567gljrl-extra-utils.drv`
<Dedalo>
I can't manage to install Python3 guys. I'm following the instructions of the Python NixOS wiki, but it's not clear to me where should I put the example snippet. I have tried to use `let` `in`, outside environment.systemPackages, inside, nothing works
<AK_>
clever: yeah that font in config doesn't make a difference. but still I can setfont with it once I find and cd into the dir where ter-v32n.psf is located.
ixxie has quit [Ping timeout: 250 seconds]
<AK_>
clever: but this font (ter-v32n) was already there. and had no side affects. maybe with new variables something is changed.
<clever>
AK_: or the font was removed from a vital package
<clever>
your config builds if i remove that font from it
<AK_>
clever: s/remove/replace with/g please ;-) (something like that bigger fonts)
<{^_^}>
[nixpkgs] @timokau opened pull request #53777 → neovim-qt: add desktop file to wrapper → https://git.io/fhZHI
<clever>
AK_: in general, if the xserver is enabled, i never touch the console, so console fonts dont matter
<AK_>
clever: commenting out the i18n consolefont did the trick. I wanna know the reason. lemme reboot first.
ddellaco_ has quit [Remote host closed the connection]
mmlb2 is now known as mmlb
ddellacosta has joined #nixos
AK has joined #nixos
<lassulus>
nix-shell -p kdenlive --run kdenlive segfaults for me, does someone know a fix/
<lassulus>
?
ddellacosta has quit [Ping timeout: 258 seconds]
kai_w has joined #nixos
<kai_w>
Do I need to do anything special when packaging a python package with mkDerivation instead of buildPythonPackage?
<kai_w>
If I build my package, I have the module in $out/lib/pythonX.Y/site-packages/module, but if I do python.withPackages it's not present
<kai_w>
not in $out of python.withPackages and not importable
<symphorien>
kai_w: is your package built with exactly the same python as in python.withPackages ?
<symphorien>
withPackages silently discards derivations which are not python modules for the exact same python
kisonecat has joined #nixos
kisonecat has quit [Client Quit]
knupfer has quit [Ping timeout: 264 seconds]
<AK>
warning: name collision in input Nix expressions, skipping '/home/z/.nix-defexpr/channels_root/nixos'
imdoor has quit [Quit: imdoor]
<clever>
AK_: you added a channel called nixos to a non-root user, the nixos channel should only exist on root
<jabranham>
wait, so my user accounts should be using the nixpkgs channel, not the nixos channels?
<tobiasBora>
Hello,
<clever>
jabranham: they should be inheriting the nixos channel, from the root user
<clever>
jabranham: all of roots channels are available to other users, which is why AK_ got a collision when both users have a channel with the same name
<jabranham>
clever: but if I want to use the stable channel for root and unstable for users, I should be using nixpkgs not nixos channel?
<jabranham>
(for users)
<clever>
jabranham: you can just add the unstable channel to root as well, and call it unstable
<clever>
then all users can freely access it
<clever>
about the only time to use non-root channels is when your on a shared machine and lack root
<jabranham>
clever: but then wouldn't that update the entire system to the unstable channel?
erictapen has quit [Ping timeout: 252 seconds]
<clever>
jabranham: nixos-rebuild always uses the channel called nixos, so it wont use the channel called unstable
<jabranham>
clever: ah, OK that makes sense
<clever>
jabranham: nix-env, takes a channel name, so `nix-env -iA nixpkgs.foo` uses the channel called nixpkgs
<tobiasBora>
How could I get the list of all failed ssh connection? I tried several files in /var/log/, but I can't find "usual" files
<betaboon>
i have a haskell package (critbit) which fails to build claiming "Encountered missing dependencies: base >=4 && <4.11" while its cabal-file states `build-depends: base >=4 && < 5` while base in hackage-packages is 4.12. what am i missing here ?
<clever>
tobiasBora: journalctl -u sshd
<clever>
betaboon: double-check which derivation is actually failing, a few lines down from that error
<clever>
betaboon: its clearly critbit thats failing, double-check the cabal file in this tar, unpacking source archive /nix/store/p4797yi3qwwzy7pkmqggzjm26lh4xsf9-critbit-0.2.0.0.tar.gz
<betaboon>
ah so "revision = 1" causes it to take a modified cabal-file from hackage which (in difference to the original file) states "base .. < 4.11" ?
<tobiasBora>
clever: journalctl -u sshd shows me only connection from 30-31 october, any idea why?
kisonecat has joined #nixos
<clever>
tobiasBora: nope
<tobiasBora>
clever: forget, I'm just stupid
<tobiasBora>
sorry
<clever>
tobiasBora: scrolling?
<tobiasBora>
clever: I exit while I just scolled once, and then I forgot that I was back to console, and I was scrolling with the mouse the two pages I scrolled before quitting... Today is not my day
<clever>
ah
freeman42x has joined #nixos
<betaboon>
clever: i just tried to set `revision = "0"` via `overrideAttrs` but that doesnt seem to solve my problem. any hint ?
<clever>
betaboon: just remove the revision entirely
<clever>
oh, but override attrs has trouble removing
eadwu has joined #nixos
<clever>
just use cabal2nix or callHackage then
<clever>
or doJailBreak to ignore the version limits
<betaboon>
clever: i tried `revision = null` first.
mbrgm has joined #nixos
growpotkin has joined #nixos
kisonecat has quit [Ping timeout: 258 seconds]
<growpotkin>
Hey has anybody had luck getting steam to work with a bluetooth controller?
<growpotkin>
I have seen a few for how to setup the steam controller and tried to use those as a guide
<growpotkin>
Even a simple app to let me test a gamepad would be a big help so I can try to isolate the problem to a Steam issue or a gamepad issue (udev)
<Ralith>
growpotkin: I'm not certain, but `evtest` might work for testing
<Ralith>
never tried it on bluetooth devices before
<clever>
growpotkin: https://html5gamepad.com/ tests things from the same general end that steam expects it to work on
kvda has joined #nixos
obadz has quit [Quit: WeeChat 2.3]
<growpotkin>
clever: should I expect that site to play nicely with Chromium?
<clever>
evtest is much lower level and gives all the dirty details
<clever>
growpotkin: yep
<growpotkin>
lol debuggin on NixOS always teaches me so much haha
<Ralith>
web is it's own teetering pile of fragile nonsense of course
kvda has quit [Client Quit]
<clever>
https://html5gamepad.com/ seamlessly detects when i connect a usb gamepad, and just starts working
<growpotkin>
I kind of expect every program to need a special treatment
Boobie has quit [Quit: This computer has gone to sleep]
<growpotkin>
thanks y'all I will try that site
<growpotkin>
on another note is there a preference between `chromium` and `chromium-browser` ?
kvda has joined #nixos
<growpotkin>
is one of them a NixOS wrapper or are they both from Google?
<betaboon>
growpotkin: i prefer vivaldi XD
<clever>
growpotkin: chromium-browser is just a symlink to chromium
<growpotkin>
thank you
<growpotkin>
whats Vivaldi (besides the violinist)
<growpotkin>
yeah I followed that guide and added those to 99-local.rules
<growpotkin>
I also tried making 99-bluetooth.rules, which some folks had suggested but had no luck with that
<kai_w>
ah, I just put them in the services.udev.extraRules option, apparently that goes into 99-local.rules
<growpotkin>
yeah they do, but when I was trying to get real picky I tried adding the extra file, I'm not deeply familiar with udev rules so I wasn't sure if the filename mattered
goibhniu has quit [Ping timeout: 272 seconds]
Ariakenom has quit [Quit: Leaving]
orivej has quit [Ping timeout: 272 seconds]
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 258 seconds]
chessai has quit [Remote host closed the connection]
johann__ has joined #nixos
bitnotri has joined #nixos
<growpotkin>
is `pkgs.bluezFull` deprecated?
cyounkins has quit [Remote host closed the connection]
<betaboon>
can i just say that i love the .diff and .patch urls of github :)
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Ma27 to master « bonfire: fix build »: https://git.io/fhZ7J
AK has quit [Remote host closed the connection]
mkoenig_ has quit [Ping timeout: 272 seconds]
shibboleth has quit [Quit: shibboleth]
mkoenig has joined #nixos
<betaboon>
growpotkin: i use bluetoothctl which is part of bluez-5.5. works for me
strobelight has quit [Ping timeout: 246 seconds]
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 268 seconds]
kai_w has quit [Quit: Konversation terminated!]
simukis has quit [Quit: simukis]
<growpotkin>
betaboon: thanks
<growpotkin>
Has anybody tried installing 2 copies of Nix on one machine?
<growpotkin>
I am migrating over to a new hard-drive
<growpotkin>
but I'm having issues booting into the second copy
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<growpotkin>
possibly because both are labeled "nixos"?
porrifolius has quit [Quit: Leaving]
labancle has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<growpotkin>
during the install process I do all the installs using the actual partition rather than "by-name/nixos" and it installs without a hitch, but when I'm booting up the new OS is never detected
agander_ has quit [Ping timeout: 246 seconds]
<growpotkin>
I am considering unplugging one hard-drive to see if it will pick up the second then, but I thought I'd see if anybody else had dealt with this.