<samueldr>
the letters are all bunched up in disorder here!
<drakonis_>
what now
<drakonis_>
its a joke
<drakonis_>
this wasn't even hostile
<samueldr>
drakonis_: no offense taken :)
s33se has joined #nixos
<samueldr>
oh, and two hours late, should've checked the timestamp (for the bluetooth question)
simukis has quit [(Ping timeout: 246 seconds)]
Supersonic112 has quit [(Ping timeout: 240 seconds)]
Supersonic112 has joined #nixos
s33se_ has quit [(Ping timeout: 260 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
derjohn_mob has quit [(Ping timeout: 246 seconds)]
stallion has quit [(Quit: stallion)]
byteflame has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
myguidingstar has joined #nixos
vaibhavsagar_ has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
byteflame has joined #nixos
krobelus has quit [(Quit: WeeChat 1.4)]
krobelus has joined #nixos
<base9>
@samueldr thanks for the reply. I think it might be that last hardware.pulseaudio.package that Im missing from my config.
<base9>
Let me double check
vaibhavsagar has joined #nixos
base9 has quit [(Remote host closed the connection)]
<deba5e12>
I feel like i'm still using a bunch of dirty tricks to make compiled libraries available to be linked against -- making libssl available to a lisp session, e.g. Right now, I'm just setting up a quick and dirty unix-style ~/usr hierarchy in my home directory and pointing LD_LIBRARY_PATH at it, but this feels distinctly un-nixlike.
base9 has joined #nixos
<deba5e12>
is there a system-wide way of making libraries available the same way I can make executables available? there must be
<base9>
samueldr: yup that last line did the trick for my bluetooth. Should that be mentioned in a wiki or manual somewhere?
<samueldr>
though, I had the suspicion something like that would exist since other distributions (archlinux) have an additionnal package to install (iirc)
<base9>
Wow, didn't know there was a search for NixOS options. Yeah, I saw that there was a pulseaudio-bluetooth package in other distros and couldn't figure out the equivalent.
<samueldr>
yeah, the options page (options in the menu at the top) is really useful
<samueldr>
I'm still new~ish to nixos, though
zeus_ has quit [(Remote host closed the connection)]
<base9>
Same, I think I installed it years ago but I had no idea what I was doing. I don't even want to imagine what my .conf looked like back then.
<samueldr>
oh, I did too dabble in, probably late 2015, then installed on a spare machine late in past year
<samueldr>
though, most of my learning experience was three weeks ago, when I switched my main computer
<samueldr>
since, well, the spare machine was a spare machine, did not see much use except a specific use
<base9>
Really the best way to learn any distro is diving in with both feet. I avoided Slack for the longest time until recently when it was main driver. Well thought out OS.
<drakonis_>
distro diving ey?
<drakonis_>
slack takes after the bsds
<drakonis_>
can't say the same about the other distros copying the bsds
<base9>
They don't call it DD for no reason
<drakonis_>
daily driver yeah?
<samueldr>
didn't want to commit to switching distro on my main machine, since it's both work and leisure
<samueldr>
now, I'm actually glad I did the switch
<drakonis_>
i do wish nixos had something that let it compete with qubes
<drakonis_>
a real interesting concept
<drakonis_>
minus the part the developers are so obsessed with security that they lack various useful things
<base9>
Is having multiple custom configs possible? I always wanted more options where I could have an i3.conf which would be more of a low-power mode when I'm out and about. Then a KDE.conf for when I'm at home with my desktop to allow more ondemand cpu options and what not.
<samueldr>
maybe a script that would switch out which file is the actual configuration.nix, which that configuration.nix could import base.nix, $DE.nix and host-specific stuff? but that would be managed "outside of nix"
<samueldr>
and obviously, need a rebuild
<drakonis_>
really though
<samueldr>
though, you could install both i3 and kde session, logout and log back in, selecting the session in sddm
<drakonis_>
probably?
<base9>
Hmm. The more I type it out the more methinks just a startup script with each DE would be easiest.
<drakonis_>
hmm no
hexagoxel has quit [(Ping timeout: 260 seconds)]
<base9>
I can't possibly picture a usecase so extreme that it would require an entire new conf for each one.
<drakonis_>
what no.
<drakonis_>
you don't need to do it like that
<base9>
Go on
<drakonis_>
you can make your configurations modular
<drakonis_>
there's a guy here with a setup that's made of 9 files
<base9>
I wasn't speaking of modularity necessarily. I was initially talking about multiple default .confs, for example
<base9>
you would have one which is your everyday workflow with a full kde setup vs your tor conf which would have maybe openbox, some security scripts, and the tor browser.
<drakonis_>
you know what to do then?
<drakonis_>
multiple generations
<drakonis_>
for each setup
<drakonis_>
boom solved
<base9>
Are you able to distinguish them?
hexagoxel has joined #nixos
<drakonis_>
yeah i guess?
<drakonis_>
generation 1, 2 ,3...n
jefdaj has quit [(Quit: Page closed)]
<drakonis_>
no renaming sadly
<base9>
Huh. That's pretty neat. It was a pretty dumb idea anyways.
jefdaj has joined #nixos
<drakonis_>
the generations can be modified to your tastes without redownloading any missing packages between generations
<danbst>
base9, drakonis_: and then `/run/currentSystem/fine-tune/child-1/activate` or `.../switch-to-configuration.pl`
<danbst>
the big advantage is every nesting.clone is rebuild during single nixos-rebuild
Infinisil has joined #nixos
<danbst>
I have a local patch which makes those child-1, child-2 names configurable, so you can have like `configurations.wpa_sup = { networking.wireless.enable = true; };` and then `nixos-rebuild activate default` or `nixos-rebuild activate wpa_sup` should switch between generations without rebuilds or redownloads
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
byteflame has quit [(Ping timeout: 260 seconds)]
jefdaj has joined #nixos
<base9>
Shoot, I forgot to ask: is anyone using Keepass with Keefox? I read some of the github issue pages on it, but I can't seem to point Keepass to the plugin.
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
drakonis_ has quit [(Ping timeout: 240 seconds)]
byteflame has joined #nixos
eacameron has joined #nixos
justan0theruser is now known as justanotheruser
johnsonav has quit [(Ping timeout: 246 seconds)]
byteflame has quit [(Ping timeout: 246 seconds)]
parsnip0 is now known as parsnip1
parsnip1 is now known as parsnip0
Infinisil has quit [(Quit: leaving)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
taktoa has joined #nixos
deba5e12 has quit [(Ping timeout: 240 seconds)]
roconnor has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
jefdaj has quit [(Ping timeout: 260 seconds)]
rcschm has joined #nixos
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
rcschm has quit [(Remote host closed the connection)]
<boomshroom>
I just created a shell.nix that evaluates to a buildEnv with a few custom packages that take a long time to build and I don't want to have to rebuild it every time I want to use it. Also, I think I did it wrong, because running nix-shell in its directory built one of the packages but didn't add it to the nix-shell's path.
<nixy>
boomshroom: Can you also paste your shell.nix somewhere and let us know which package isn't in the environment?
<boomshroom>
let pkgs = (import <nixpkgs> {}).pkgs; in pkgs.buildEnv { name = "..." }
<boomshroom>
whoops
<boomshroom>
let pkgs = (import <nixpkgs> {}).pkgs; in pkgs.buildEnv { name = "..." ; paths = [ ... ]; }
<boomshroom>
As for which packages aren't appearing, all of the ones the replace the second ellipsis.
eacameron has joined #nixos
<boomshroom>
I like the fact that you can use tools without installing them globally, but I'm not a huge fan on them being deleted the next time I do a GC if they're used frequently or take a long time to build and aren't in the official repository.
<MichaelRaskin>
Well, use nix-build -o
<boomshroom>
MichaelRaskin: is there a good way to do this without "result"s all over my filesystem? I would rather put it in the path of a nix-shell than use a result link.
eacameron has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
drakonis_: it's non-trivial, as the point of QubesOS is that Linux containers are obviously not the best isolation available (there is still an escalation using non-privileged access to user namespaces every year or so), and even KVM host access vulnerabilities happen. So, Xen, and in a bit complicated setup
<MichaelRaskin>
drakonis_: if you think containers are OK, firejail is available everywhere, NixOS included
<MichaelRaskin>
boomshroom: well, -o allows you specify the symlink name and location, so not «result» and not all over the filesystem
<MichaelRaskin>
And nix-build still allows you to use nix-shell afterwards
<MichaelRaskin>
It is just to GC-pin
<MichaelRaskin>
Or how would you expect to tell Nix that it is now OK to GC something?
<MichaelRaskin>
You can also nix-env all the needed packages into a separate profile that you don't ever use
base9 has quit [(Remote host closed the connection)]
<boomshroom>
The manual mentions multiple profiles. How exactly does that work? Does it "fork" (like git) the current one and any subsequent changes to one won't affect the other? Can I have 2 shells on different profiles?
<nixy>
You can only have one profile at a time, and it would affect both shells
<MichaelRaskin>
There is -p
<nixy>
Basically a different profile is just a different generation in the nix store that ~/.nix-profile is symlinked to
<MichaelRaskin>
And you can have multiple
<nixy>
MichaelRaskin: I am not sure I follow what you mean here then.
<boomshroom>
I understand that I can have multiple generations like profile-1 to profile-70, but can I also have alt-profile-1 to alt-profile-10 and the 2 lines would be completely separate?
<nixy>
boomshroom: Yes
<nixy>
You can then use `nix-env --switch-profile $path_to_profile` to switch between them
<boomshroom>
nixy: Do I need to specify the full path, or just the name and keep it in /nix/var/nix/profiles/per-user/{username}/?
<nixy>
boomshroom: The full path. I guess in theory profiles could be stored outside the profiles directory
base9 has joined #nixos
<boomshroom>
:(
<nixy>
Yeah its not great. I worked on a kind of shitty tool that had some logic to do what you wanted
<MichaelRaskin>
boomshroom: remember that you don't really need to _use_ the profile
<joehh>
I seem to be missing icons in dolphin (running under xmonad with no desktop manager) - i've tried setting XDG_CURRENT_DESKTOP to various things, but no luck. Any ideas?
<MichaelRaskin>
I only want it to manage GC-pinning of stuff in nix-shell
base9 has quit [(Remote host closed the connection)]
<nixy>
MichaelRaskin: So you want to create a `false` profile not intended to be used, but just to serve as a GC root?
<MichaelRaskin>
Well, me myself actually use nix-build
<nixy>
Sorry, yeah this is what you are suggesting boomshroom do
base9 has joined #nixos
<boomshroom>
Unrelated question: how can I build a cross-compiler from a specific version of gcc? Not to compile packages, but for personal projects and not any system supported by Nix itself.
alx741 has quit [(Ping timeout: 260 seconds)]
<boomshroom>
(said cross compilers are the packages that take forever to build)
<boomshroom>
gcc7 supports a particular target that I want to use.
<aloiscochard>
hi, I'm building a cmake package and I'm getting "SSL certificate problem: unable to get local issuer certificate", when trying to git clone a repo. Any idea how to fix this?
<c74d>
boomshroom: hm. try removing your user channel and re-adding it with a different name (one that's neither "nixpkgs" nor the same as root's channel "nixos")
evangeline has quit [(Ping timeout: 246 seconds)]
<c74d>
and then log out and back in, I guess, then try the nix-instantiate command with 'nixpkgs' changed to the new channel's name (I think that's how that works)
nslqqq has quit [(Ping timeout: 246 seconds)]
base9 has joined #nixos
nslqqq has joined #nixos
evangeline has joined #nixos
eacameron has joined #nixos
jgertm has quit [(Ping timeout: 258 seconds)]
eacameron has quit [(Read error: Connection reset by peer)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
MP2E has quit [(Quit: leaving)]
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<aloiscochard>
mmm.. it seems like my package is getting a wrong `SSL_CERT_FILE` value, but I'm not not sure where to fix it...
ikwildrp1pper is now known as ikwildrpepper
base9 has quit [(Quit: Konversation terminated!)]
<aloiscochard>
okay fixed, by setting it in `preConfigure`
marsel has joined #nixos
reinzelmann has quit [(Ping timeout: 255 seconds)]
Tucky has quit [(Remote host closed the connection)]
myguidingstar has joined #nixos
Tucky has joined #nixos
reinzelmann has joined #nixos
arianvp2 has joined #nixos
ambro718 has joined #nixos
katyucha is now known as Guest4219
Guest79642 is now known as katyucha
boomshroom has quit [(Quit: Page closed)]
pdobrogost has joined #nixos
Itkovian has joined #nixos
derjohn_mob has quit [(Ping timeout: 246 seconds)]
<aloiscochard>
when I use `nix-build` my global proxy settings are ignored, which prevent me from trying to build my package behind an entreprise proxy :-( ... does anyone knows how to workaround this?
<aloiscochard>
might be related that the http_proxy are not propagated?
<aloiscochard>
s/related/
hiberno has quit [(Remote host closed the connection)]
hiberno has joined #nixos
ninja_in_neopren has quit [(Ping timeout: 240 seconds)]
<aloiscochard>
clever: okay, it looks all good then. I must have an other issue.
<gleber_>
bitonic: are you in Zurich yet? If yes, there is a pre event get together in Bellevue
<bitonic>
gleber_: no I'm flying in a few hrs, I might get to Bellevue in time
<aloiscochard>
the *_proxy are the one used by git iirc
<aloiscochard>
oh, it's funny to see folks talking about zurihack here :D
<bitonic>
:P
<aloiscochard>
clever: seems like nix-build don't respect those, somehow. I'll try to put the package in a local `nixpkgs` and see if it works from there.
<clever>
aloiscochard: which fetch function are you using?
<aloiscochard>
clever: I am using `fetchFromGitHub` which actually works fine for the project source, but then during the CMAKE build other repo are fetched, and that's where it fails.
<clever>
ah
<clever>
all network access is disabled at build time
<clever>
you must fetch source with one of the fetch functions
<jophish>
bennofs: but then we don't get binary caches!
<jophish>
This will have to be an impurity somewhere
<jophish>
or
<jophish>
when building in a nix shell turn it off
<jophish>
and have it on at othertimes
<jophish>
so the only way for it to end up in the store is for it to have no errors
<jophish>
What I'd *really* like would be to have several alternatives for a derivation
<jophish>
a derivation with profiling libraries can always be a replacement for one without
<jophish>
and a derivation which has no warnings is the same
orivej has joined #nixos
<bennofs>
gleber_: I think he means adding darwin and wxGTK30 to the arguments of that file (next to pkgs, stdenv, callPackage)
<gleber_>
bennofs: ah, right, these will be automagically provided by callPackage. thanks!
juselius has joined #nixos
<jophish>
This isn't a huge problem, just a niggle
<bennofs>
jophish: ah, yes. I have wanted that as well: a derivation that was tested can always be substituted for one that wasn't
<jophish>
seems like there are quite a few cases
<jophish>
bennofs: exactly!
<jophish>
testing is a perfect example
<bennofs>
jophish: although most of the time, these seem to be representable by another "output" (well, in the case of Werror, you'd need to parse compiler messages but everything else can be computed "afterwards")
<bennofs>
for testing for example, you can have a derivation that takes the compiled untested output and tests it
<bennofs>
jophish: I think that in the case of -Werror, parsing compiler output is actually nicer since it allows you to obtain more information (-Werror will immediately stop the build, but if you parse it, you can get all the warnings and also see if it compiles fine otherwise)
layus has joined #nixos
<LnL>
gleber_: the arguments on the first line, along with pkgs and callPackage
layus has quit [(Client Quit)]
<gleber_>
LnL: yes, bennofs explained
<gleber_>
LnL: do you think it makes sense to move these to autoreconfHook instead of manually defining autoconf versions?
<gleber_>
I will have to do it for generalization of basho fork of Erlang, so I might as well do it now
<jophish>
bennofs: yeah, that's somehthing I'd like to implement
<gleber_>
ok, lets make it a race :) if you do not approve/merge my current PR until I do the basho stuff, I will add it to the current PR, otherwise I'll open a new one :)
* peti
enabled the fish shell in NixOS, and now I am getting lots of warnings from fish about non-existent directories in $PATH, like /home/simons/bin, /etc/per-user-pkgs/simons/bin, etc. Does anyone know how to remedy that issue properly?
lewo has joined #nixos
<ixxie>
peti: how did you enable it? I noticed a while back there are lots of different ways to select shells in NixOS
<ixxie>
users.defaultUserShell ?
<peti>
ixxie: I enabled programs.fish.enable to make sure the shell is listed in /etc/shells, and then I configured the "shell" attribute for my user as "/run/current-system/sw/bin/fish".
<domenkozar>
peti: btw, are you planning on updating haskell libraries on 17.03?
<domenkozar>
well I know you are, I guess I'm asking if you have some short-term plans
<peti>
domenkozar: I didn't plan on it, but I can do it. It's not too much effort.
<domenkozar>
it's needed for stack2nix effort to invoke cabal2nix via haskell instead of cli
<gchristensen>
garbas_: how do I get on that rapid release channel on mac? :)
<garbas_>
gchristensen: you mean firefox nightly?
<peti>
domenkozar: Done.
<domenkozar>
thanks!
<peti>
Well, thanks for the refactoring. :-)
<domenkozar>
peti: one more question.
<gchristensen>
garbas_: hmm yes I think I am
<domenkozar>
stack has this notion of testing only the packages you work on
<domenkozar>
so we'd need for cabal2nix to be able to generate packages without testing dependencies
<domenkozar>
since those might not be available as inputs
<domenkozar>
peti: would it make sense to add --no-test-deps flag or similar for such use case?
<domenkozar>
current you can just toggle dontCheck
<garbas_>
gchristensen: help me convert mozilla/nixpkgs-mozilla into an overlay :) it has been on my todo list for some time but never find the time to do it
<gchristensen>
garbas_: its firefox drv doesn't work on mac though, asserts it is linux
<garbas_>
oh you said mac
<gchristensen>
I'm interested in the "wow does nightly work faster" comment you made on the PR, I want to try it :)
<garbas_>
i'm also using binaries which we produce at work (nixpkgs.firefox-bin)
<peti>
domenkozar: Hmm, if doCheck=False is set, then all the xxxCheckDepends attributes will be ignored by the generic builder. Is that not good enough?
<domenkozar>
peti: the issue lies that we generate hackage-packages, but it's a set based on stack list and it doesn't include all testing dependencies. So packages are missing as inputs
<garbas_>
gchristensen: and not the nixpkgs.firefox derivation
<domenkozar>
peti: it's not good enough since the function to return the package specification requires those inputs
<garbas_>
gchristensen: i need to look at the cdn if we have tarball also for darwin
<gchristensen>
gotcha
<domenkozar>
peti: maybe we should set them all as: pkg ? null
<clever>
garbas_: there is a darling-dmg package in nixpkgs, that can be used to unpack dmg files
<gchristensen>
garbas_: will the Developer Edition one be Fast too, or should I go all the way to nightlies? :)
<garbas_>
clever: tnx!
<garbas_>
gchristensen: Developer Edition is based on Beta with few additional things turned on at build time, but the same code base
<domenkozar>
peti: or that :) but now I'm thinking setting them as null is better/less invasive
<gchristensen>
I see, ok, after I finish getting DevEd I'll get Nightlies :D
<garbas_>
gchristensen: i'd go with Nightly edition, since we stabilizing the process for the past 6 months
byteflame has joined #nixos
<garbas_>
and all the ideas / experiments end up there
<peti>
domenkozar: Can you set them to null at the place where you call the generated expression? I don't think adding "? null" defaults to every argument is a good solution.
<garbas_>
gchristensen: eg. max content processes are enabled only on nightly
<gchristensen>
nice
<domenkozar>
peti: not every, just those needed for tests
<gchristensen>
garbas_: will nightlies update on its own, or will I need to fetch a new one?
<garbas_>
which is why it is fast. but you don't want to do this on beta until you measured how much more ram do you use on average
<domenkozar>
peti: we could have callPackage that does that
<domenkozar>
but that sounds like a time bomb
<peti>
domenkozar: Determining which dependencies are need only for tests is not going to be easy.
<domenkozar>
true :)
<garbas_>
gchristensen: i disabled the updates in the last PR, since binaries wont work on nixos
<gchristensen>
of course
<garbas_>
gchristensen: i want to automate the update process in mozilla/nixpkgs-mozilla for nightly
<peti>
domenkozar: That set of packages will also depend on the compiler version that's building the package.
<gchristensen>
ugh 1password hasn't fixed their extension yet :(
<domenkozar>
peti: are you planning on using hnix?
<peti>
domenkozar: I did not, no.
byteflame has quit [(Ping timeout: 246 seconds)]
<domenkozar>
that would feature creep though, but make the code quite more type safe
tmaekawa has joined #nixos
<peti>
domenkozar: I thought about using dhall-nix, though, to generate typed Nix expressions.
<domenkozar>
or that :) but that gives another layer, so you have haskell -> dhall -> nix
<peti>
domenkozar: In the end, however, I am not sure whether there's much of a benefit to be gained, because I am generating that stuff in a stronly typed language (Haskell) already.
<domenkozar>
not sure it's any better than using hnix
<domenkozar>
also dhall can't write nix syntax in total
rjsalts has quit [(Read error: Connection reset by peer)]
rjsalts has joined #nixos
<peti>
domenkozar: Yes, that is true. I don't know yet what the internal representation of a Haskell build in cabal2nix is going to be in the future. It's going to be more sophisticated than what we have now because we need conditional logic. Representing a build in full blown Nix (hnix) is probaby too much, though. Anyhow, I haven't really understood all these things yet and I'll need to write more code and
<peti>
experiment moore before I can make an educated decision about any of this.
<aloiscochard>
currently building a c++ library that can optionaly support "Async", if I do set the flag off it compiles fine, but if I enable it I get "fatal error: async_queue.hpp: No such file or directory", am I missing some dependencies or something?
<tmaekawa>
what should I understand and solve it? thanks.
<samae>
how do I recursively merge to sets?
<domenkozar>
peti: hnix is really simple, just a tree of legos that fix together
<domenkozar>
peti: just a thought :)
<peti>
aloiscochard: Is the version of boost you're passing to the build recent enough? Maybe that header is not available in the boost version we use by default. (Just guessin, tho.)
<aloiscochard>
peti: ooops, actually I totally forget adding boost... will try, ty!
<samae>
'//' only does a first level merge
mizu_no_oto has joined #nixos
<peti>
domenkozar: I am weary of hnix. I'd probably prefer to extend my own "language-nix" library if I need more functionality.
<samae>
I thing imports does a recursive merge of the imported set
deba5e12 has joined #nixos
<domenkozar>
peti: I'm curious, why?
<samae>
oh, it's recursiveUpdateUntil, right?
<gleber_>
Is there a magical way to predict what ./configure would of a form "x86_64-unknown-linux-gnu"?
<peti>
domenkozar: I wonder whether John is actually going to maintain and develop that code. As far as I can tell, he is involved on at least 20 separate development efforts simultaneously, and each of those is too big for a single developer to pull it off. So I am worried that ultimately all of them will remain in an unfinished state.
<domenkozar>
peti: we will start using hnix and we have about 15 haskell developers
<domenkozar>
so if we all commit to it, it's going to be maintained
<domenkozar>
I see Profpatsch using it and hopefully shlevy one day :)
<peti>
domenkozar: OK. That's good to know.
<domenkozar>
peti: there are only 3 more bugs left to parse whole nixpkgs content, I've checked that last week
<domenkozar>
sorry, 4.
<domenkozar>
#62, #61, #60, #53
<shlevy>
peti: FWIW johnw has a pretty damn good track record of following through on development efforts ;)
<domenkozar>
I honestly think hnix just needs users
<shlevy>
But I'm also skeptical about hnix vs just a haskell DSL for interacting with the store
<shlevy>
hnix may play a role to interface with nixpkgs
<qknight>
tmaekawa: just a guess, you might need to use 'nix-shell -p ruby' to use bundler as only nix-shell adds stuff to your environment
<qknight>
tmaekawa: nix-shell didn't change a thing regarding your source code
<tmaekawa>
Thanks!
<qknight>
tmaekawa: oh there is pkgs.bundler
adamt has quit [(Ping timeout: 255 seconds)]
<sphalerite>
clever: just saw that make-disk-image has its own facility for adding a configuration.nix into the image
<qknight>
tmaekawa: your command must be: nix-shell -p ruby bundler, from there try again
<tmaekawa>
Thanks a lot!
cpennington has joined #nixos
sitwon has quit [(Ping timeout: 255 seconds)]
<disasm>
mornin' folks!
<dtz>
Morning! :)
<sphalerite>
How can I allow using timedatectl to set the timezone? It's not a very fixed setting for me, and I don't think my system configuration should have to reflect my current location
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
juselius has quit [(Remote host closed the connection)]
tmaekawa has quit [(Quit: tmaekawa)]
<sphalerite>
shlevy: I agree on principle, but is it such a far-fetched assumption that if someone is using systemd from nixpkgs they're using nixos?
<shlevy>
sphalerite: Well, clearly that assumption is failing in your case, as it's not just assuming you're using NixOS but assuming you want to tie yourself to NixOS's configuration decisions
<sphalerite>
True :D
<shlevy>
sphalerite: And also I'd like to be able to e.g. build containers with a new PID namespace but not necessarily running NixOS
<samae>
nixops deploy hangs at "copying closure..." and there is no network activity…
<samae>
--debug does not print anything useful
<clever>
shlevy: i have manualy ran systemd-nspawn to create some custom containers
<clever>
shlevy: in this case, i was booting nixos, with the store running on a custom fuse layer
pbogdan_ has joined #nixos
<samae>
ok, this came from the fact that my targetHost has no internet connectivity
<samae>
it was talking to a mute dns server, so it had to wait for 10+ timeouts
<samae>
…
<clever>
samae: ah, the target may try to fetch things from the binary cache, since thats faster then your upload pipe, in most cases
<samae>
yeah, I have to change that
<samae>
I'm gonna set hasFastConnection
<clever>
having no dns in /etc/resolv.conf will probably fail faster then having an invalid dns
<clever>
ah, that sounds equaly good
<samae>
clever: that's what I did
<samae>
nuking the resolv.conf
byteflame has joined #nixos
<andrewrk>
it's pretty strange that nixos is a common target of trolls that just say everyone's names
<andrewrk>
what is so attractive about this channel? it's a moderate amount of people, not really working on anything political
<andrewrk>
I guess it's just random
<ToxicFrog>
I think I need to stop using nixos-unstable. I've been unable to nixos-rebuild on the laptop for something like a week now. :/
<hodapp>
some people are just nonsensical assholes.
<clever>
ToxicFrog: what error does it give?
<ToxicFrog>
clever: it's been a different one each time! This morning nix-nox fails to install with a python stack trace. Last night it was calibre having a forbidden RPATH dependency. The day before it was an error fetching LLVM from Hydra.
<samae>
ToxicFrog: just roll back until it works again?
<samae>
: 3
<ToxicFrog>
samae: I'm using it as a channel, not a local clone, so
<clever>
samae: ive also noticed, if you update and rollback several times, the rollback goes back to a previous failure, not the last working one
<ToxicFrog>
I think the thing to do here is to switch to 17.03 and then just selectively use unstable for packages that don't DTRT in 17.03
<clever>
samae: so if you start on 1, update+rollback, then update+rollback again, you land on generation 2, not 1
<ToxicFrog>
Although this also brings me back to my wish for a nixos-latest channel
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] qknight opened pull request #26470: Spamassassin service updates (master...spamassassin-service-updates) https://git.io/vHPaC
NixOS_GitHub has left #nixos []
<kriztw>
My nix-shell keeps re-downloading bash-4.4-p12-doc and bash-4.4-p12-info after I do nix-collect-garbage, and adding bash to an environment doesn't seem to prevent them from being garbage collected
deba5e12 has quit [(Ping timeout: 240 seconds)]
<kriztw>
Does anyone know which package they're from or why this happens?
[0x4A6F] has quit [(Ping timeout: 246 seconds)]
mizu_no_oto has joined #nixos
<samae>
clever: looks like a bug, don't it?
<samae>
I haven't tested this
<samae>
last time I just skipped back the last 6 or so generations
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
[0x4A6F] has joined #nixos
<kriztw>
disasm: that was useful, but my problem is that I have bash installed, but every time I garbage collect nix-shell needs it to do anything at all
<kriztw>
e.g. nix-shell -p hello will still download those 2 packages
<disasm>
kriztw: hmmm, if run nix-shell with --indirect --add-root shell/deps and then run nix-store --gc all my deps in my default.nix don't redownload.
<kriztw>
so it seems like a dependency for nix-shell, but since it is installed it should have all dependencies installed already
erasmas has joined #nixos
<kriztw>
I'll make a pastebin, sec
<disasm>
hey all, stuck on some scope issues I think. https://gist.github.com/80105a0d5b6022960302b2ea57ac3262 -- If I set role.work.containers.enable = false; it builds fine and my ssh key is deployed correctly, but if containers = true then I get the error attribute ‘attributes’ missing, at /etc/nixos/modules/roles/work.nix:129:26
<Sonarpulse>
peti: any particular reason that the haskell generic builder uses nativeBuildInputs for everything?
* ToxicFrog
bonks head against desk
<ToxicFrog>
17.03 is also not working because it can't download the specific version of Google Chrome that it wants
<kriztw>
disasm: regarding your problem, as far as I can see config.attributes is only ever needed when role.work.containers.enable = true, so it might just not exist?
bennofs has joined #nixos
<kriztw>
ah, except at the very top
FRidh has joined #nixos
<kriztw>
disasm: every time you do config = { config, pkgs, ... }:, you're shadowing the old config variable
<kriztw>
that makes it pretty hard to reason about what's going on, unless you're very certain that everything gets the same config
<kriztw>
which I guess isn't the case since it doesn't work :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vHP67
<NixOS_GitHub>
nixpkgs/master a8b9b9b Eric Sagnes: pythonPackages.Theano: 0.8.1 -> 0.9.0
<NixOS_GitHub>
nixpkgs/master 50103e9 Frederik Rietdijk: Merge pull request #26467 from ericsagnes/pkg-update/theano...
NixOS_GitHub has left #nixos []
dbmikus has joined #nixos
<disasm>
kriztw: right... I have that config.attributes in a number of other places. The only place I haven't been able to figure out how to get attributes into is in containers so far.
tvon has joined #nixos
tvon has quit [(Client Quit)]
ertes-w has quit [(Quit: Bye!)]
modafinil has left #nixos []
ertes-w has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<lassulus>
bh yhfhtgrhrctrgv.hhtvhdhhrcghdhr jth f ththhyt h tvbhtdbhhyyhthhjtthg vhghtvthtgtvhtghthfb
<lassulus>
n5n4z2a2.rhv
<ToxicFrog>
Hello, lassulus's cat.
pie_ has quit [(Remote host closed the connection)]
<lassulus>
uh hi
pie_ has joined #nixos
<lassulus>
was actually my phone (;^◇^;)ゝ
<simpson>
Whoa, a talking cat!
<simpson>
A talking phone!?
* simpson
shows himself out
disasm has quit [(Quit: WeeChat 1.7.1)]
simukis has quit [(Ping timeout: 260 seconds)]
disasm has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
darlan has joined #nixos
darlan has quit [(Client Quit)]
disasm has quit [(Client Quit)]
disasm has joined #nixos
disasm has quit [(Client Quit)]
alx741 has joined #nixos
disasm has joined #nixos
disasm has quit [(Client Quit)]
DrWaste has quit [(Quit: Run away!)]
<gleber_>
is there any good trick to deal with a buildPhase whose later parts depend on outputs of earlier parts? In this case both happen in one `make` invocation :(
lambdamu has joined #nixos
thaega has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
gal_bolle has quit [(Quit: Konversation terminated!)]
disasm has joined #nixos
Myrl-saki has quit [(Ping timeout: 240 seconds)]
kline has left #nixos ["*.banana *.split"]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
binaryphile has quit [(Quit: Leaving)]
Mercuria1Alchemi has quit [(Ping timeout: 255 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
Itkovian has joined #nixos
jgertm has joined #nixos
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHPSF
<NixOS_GitHub>
nixpkgs/master 3cb5d52 James Kent: pkgs.python.astropy: init at 1.3.3
sitwon has quit [(Read error: Connection reset by peer)]
<clever>
Filystyn: and what exactly is (not) working?
cpennington has quit [(Ping timeout: 240 seconds)]
<Filystyn>
many little things soem programs for example clementine breaks on starting. xfce does not see icons wth it blew up after removing plasma5 ;>
<Filystyn>
little things
<Filystyn>
are not working
<clever>
ah, not sure on that
<clever>
what happens if you create a new user entry in configuration.nix and log in under that user?
arianvp2 has quit [(Quit: arianvp2)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Filystyn>
why would it matter ? But ok i can try and check
<Filystyn>
but need to finish somethign now so will try it a bit later
<clever>
Filystyn: i'm guessing some state in your home folder might be to blame
Mateon3 has joined #nixos
<Filystyn>
hat would be wrong as a state
ertes-w has quit [(Quit: Bye!)]
<Filystyn>
some hidden files shoudl be removed?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever>
yeah, but rather then blindly delete random things, we can make a new user that just has none of it
<clever>
that will confirm it without causing any damage
Mateon2 has quit [(Ping timeout: 260 seconds)]
ertes-w has joined #nixos
Mateon3 is now known as Mateon1
ryanartecona has quit [(Quit: ryanartecona)]
<Filystyn>
ok the thing is this requiers a play with other nix config file since i have user on fdifferent partition
<Filystyn>
or just i guess make for now on the sys partiton
<Filystyn>
yeah lol I am chaotic
<Filystyn>
but k i get what you want me to do ill check it
jgertm has quit [(Ping timeout: 260 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
cpennington has joined #nixos
<Sonarpulse>
peti: When i moved it
<Sonarpulse>
to use buildInputs
<Sonarpulse>
configure couldn't find the libraries
aminechikhaoui has joined #nixos
<Sonarpulse>
there must be some setup hook that isn't getting run right
<Sonarpulse>
know which one?
disasm has quit [(Quit: WeeChat 1.8)]
disasm has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
simukis has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
mkoenig has quit [(Ping timeout: 260 seconds)]
kojiro has joined #nixos
danharaj has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
acertain has quit [(Ping timeout: 240 seconds)]
Sonarpulse has quit [(Ping timeout: 246 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
byteflame has quit [(Ping timeout: 260 seconds)]
pie_ has joined #nixos
<kojiro>
Is there a "hello world" for nix expression language?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
rcschm has quit [(Remote host closed the connection)]
danharaj has joined #nixos
Sonarpulse has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
hellrazo1 has joined #nixos
Sonarpulse has joined #nixos
arianvp2 has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
[0x4A6F]1 has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
[0x4A6F] has quit [(Ping timeout: 245 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
<Sonarpulse>
peti: internet went down for a bit
<Sonarpulse>
but solved by own probem
<Sonarpulse>
no hooks, just more chagnes in generic-builder needed
jgertm has joined #nixos
arianvp2_ has joined #nixos
acertain has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
arianvp2 has quit [(Ping timeout: 240 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
sphalerite: ok ok maybe we can sieve between true failure and time out
<Sonarpulse>
counting number of packages
<Sonarpulse>
(vcunat had thing to count number of packages)
<Sonarpulse>
but like right now master has 7000 rebuilds
<Sonarpulse>
on hydra
<Sonarpulse>
that is just too damn high
<gchristensen>
yeah travis is entirely the wrong tool for us
<Sonarpulse>
travis sucks
rcschm has joined #nixos
<Sonarpulse>
travis is the wrong tool for everyone
<Sonarpulse>
just some think they can get away with it
<gchristensen>
that is not true
cpennington has quit [(Ping timeout: 260 seconds)]
<gchristensen>
in the envelope of projects travis is built for and used by, an operating system is pretty far out of it
<Sonarpulse>
travis's true mediocrity is most palpable with large projects like nixpkgs
<MichaelRaskin>
Well, mediocre but simple may be a good tradeoff for medium-size project
<gchristensen>
I don't know if you're kidding or not
<gchristensen>
poe's law
<MichaelRaskin>
Our problem is usually running out of log size allowance
<sphalerite>
Sonarpulse: and conversely it's not so palpable with small projects, so it's quite suitable for them
<MichaelRaskin>
I guess small projects never hit that
<Sonarpulse>
well, I am at the moment annoyed with stuck channels
<Sonarpulse>
so beware of hyperbole
<sphalerite>
Certainly not ideal, but adequate
<MichaelRaskin>
This is not even Travis fault!
<Sonarpulse>
but I do think travis + github's way of working
<Sonarpulse>
has a fundamental race condition
<Sonarpulse>
if the problem was "just" timeouts and other resource caps
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
sure it would just be our bigness
<Sonarpulse>
but there are other problems too
tmaekawa has quit [(Quit: tmaekawa)]
<gchristensen>
IMO we should delete our travis.yml to stop pretending it is an applicable solution
<LnL>
well, nox doesn't really build everything
sellout- has quit [(Quit: Leaving.)]
<Sonarpulse>
gchristensen: would that speed us up to building our own PRs?
<gchristensen>
it couldn't hurt
<gchristensen>
pretending travis does anything for us can't help
rcschm has quit [(Remote host closed the connection)]
* pie_
pokes cl
<Sonarpulse>
gchristensen: well I personally have used travis
<pie_>
* clever
<Sonarpulse>
to help on tiny PRs where I don't have a mac
ison111 has joined #nixos
<Sonarpulse>
so for me getting rid of it would be a step backwards
<danl1240>
can anyone else to 'import pygtk' in their nix python?
<Sonarpulse>
but it would be worth it
<Sonarpulse>
if we get a big leap forwards right after
<LnL>
I'd like travis to just evaluate nixpkgs and make sure all the meta attributes are valid
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
Conversely the pain and non-feasibility with timeouts and other stuff of requiring travis to build everything could force us to switch faser too
<kojiro>
danl1240: er, how familiar are you with working with Python on Nix?
<LnL>
Sonarpulse: fyi, I'm happy to build/test darwin stuff if that helps
endformationage has joined #nixos
<Sonarpulse>
LnL well I do have a darwin machine now for manual testing
<danl1240>
kojiro: not at all :/
<Sonarpulse>
but OTOH nixpkgs-unstable is stuck on the 31st for unknown reasons
<Sonarpulse>
I don't have know how to read travis to figure out which builds matter wrt channel bumping
UFODivebomb has quit [(Ping timeout: 268 seconds)]
<kojiro>
danl1240: heh, what about issue 223?
<kojiro>
ah, you seem already familiar with that one
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<ison111>
Besides setting "hardware.opengl.driSupport32Bit = true;" is there any additional packages or configurations I need to be able to run 32 bit applications? I'm trying to run something which isn't working
<kojiro>
danl1240: did you look for the pth files to see if there was a regression?
<danl1240>
kojiro: no, what do you mean? (I do have a seemingly relevant .pth file at ~/.nix-profile/lib/python2.7/site-packages/pygtk-2.24.0.pth)
stanibanani has left #nixos []
cpennington has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #26471: gcc 7: Remove `cross` arguments and don't use stdenv.is* (master...gcc7-no-cross-arg) https://git.io/vHP7d
sitwon has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
gchristensen: anyone I can ping to fix nox, or advise me on fixing nox?
greglearns has quit [(Client Quit)]
greglearns has joined #nixos
<FRidh>
Sonarpulse: fix is already in staging
<ison111>
clever: Would you happen to know what might be causing a "signal 11" segmentation fault after using patchelf on the program? (at least it doesn't say it can't find it anymore)
<clever>
ison111: did you also fill in the rpath correctly?
<clever>
ison111: and what did you set the interpreter path to?
<disasm>
ison111: I'd also strace it and see where it's segfaulting
pxc has joined #nixos
<ison111>
clever: Oh, no I didn't do rpath. For interpreter I just specified the path in nix store to glibc's ld-linux-x86-64.so.2
<Sonarpulse>
FRidh: cool, but it's a mass rebuild?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<clever>
ison111: its also usually better to write a nix package to handle the patching for you
<ison111>
What do you think the rpath should be set to?
<FRidh>
Sonarpulse: nox failure is caused by a rare pip bug which suddenly exposed itself after a setuptools upgrade
<clever>
ison111: what does ldd say when ran on that program?
<Sonarpulse>
FRidh: woah
<FRidh>
and a pip fix is indeed a mass rebuild
<Sonarpulse>
ok
<Sonarpulse>
FRidh: would that be the last staging evaluation?
greglearns has quit [(Remote host closed the connection)]
<FRidh>
Sonarpulse: no a couple before that. Problem is that someone/something cancelled jobs and didn't start them again.
<FRidh>
so can't really merge staging into master yet
<Sonarpulse>
:(
jgertm has quit [(Ping timeout: 240 seconds)]
aminechikhaoui has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
eesh
<Sonarpulse>
more CI hell
<Sonarpulse>
good job with fix though (assuming it was you)
<ison111>
clever: When run on the original it still just says no such file. But when I run it on the one I patched it spits out all this: https://pastebin.com/raw/Np6mDcRN
arianvp2 has quit [(Quit: arianvp2)]
greglearns has joined #nixos
<FRidh>
I think our approach of master - staging is a nice idea but doesn't work anymore with this development pace.
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
FRidh: yeah that makes some sense
<Sonarpulse>
but at least that's not cut and dry
<Sonarpulse>
...scrollback for me moaning about what I think is
<clever>
ison111: looks like they tried to package every library themselves to make it portable, which is exactly the kind of problem nix solves
<clever>
ison111: and something isnt compatible, so that will have to be debugged
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 6 new commits to master: https://git.io/vHXBY
<NixOS_GitHub>
nixpkgs/master 399afc1 Tuomas Tynkkynen: afl: 2.41b -> 2.42b
<NixOS_GitHub>
nixpkgs/master 9e41ba6 Tuomas Tynkkynen: bastet: 0.43.1 -> 0.43.2
<NixOS_GitHub>
nixpkgs/master cd46df3 Tuomas Tynkkynen: fio: 2.19 -> 2.20
NixOS_GitHub has left #nixos []
jgertm has joined #nixos
<tanonym>
I need to change a user's name. Once I added the real name with -c 'J. Doe' in the useradd command, is there a way to change it in usermod? I know -l changes the login name.
<ison111>
clever: Alright, thanks for the help anyway. Just one last thing though to see if I understand correctly. The rpath of the executable is currently set to that LinuxNoEditor/Engine/Binaries/Linux/ path?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
sitwon has quit [(Read error: Connection reset by peer)]
leothrix has joined #nixos
pxc has joined #nixos
tanonym has quit [(Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805])]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<Mateon1>
Hi, how do I use ${} notation for bash substitution inside a nix script? (AKA how to avoid interpolation?)
<pxc>
just wondering, friends, is anyone working on KDE5 packages for OS X? I'm using a Mac at work now and I see that there is a homebrew tap for kf5 which seems to work, but I'd rather use Nix. :-)
<MichaelRaskin>
'' ls ''${VAR} ''
<MichaelRaskin>
'' escapes
<Mateon1>
MichaelRaskin: Thank you
<LnL>
gchristensen: dunno, isn't that for more technical stuff?
orivej has quit [(Ping timeout: 255 seconds)]
<gchristensen>
I don't see why, lnl
<gchristensen>
seems helpful, put together a proposal and get feedback and then once people agree we harass whoever can do it in to doing it :P
<LnL>
guess that makes sense
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Moredread opened pull request #26478: profanity: enable tray icon support (master...profanity_tray) https://git.io/vHXun
NixOS_GitHub has left #nixos []
greglearns has quit [(Ping timeout: 258 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<spinus>
hey, I'm using nix-shell to setup python environment, I added zlib (and zlib.dev) to buildInputs to mkDerivation which build the shell, but when I do "pip install pillow" inside the shell, it does not see zlib (it looks like it does see other libs I added like jpeg etc)
<spinus>
anyone knows what I'm missing here?
kojiro has quit [(Quit: leaving)]
cpennington has quit [(Remote host closed the connection)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<mbrgm>
hey! how can I wrap a program so it has specific cabalities, similar to when I would execute 'setcap ...' on the executable?
sitwon has quit [(Read error: Connection reset by peer)]
<LnL>
gchristensen: I should probably do that sometime :)
<gchristensen>
LnL: :)
<gchristensen>
someone should, certainly!
<LnL>
ideally now just me ;)
stanibanani has joined #nixos
Wizek_ has joined #nixos
<LnL>
not*
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<mbrgm>
spinus: strace'ing the created wrapper gives me 'cannot raise the capability into the Ambient set' error. any ideas?
<clever>
mbrgm: strace breaks all setuid programs
<clever>
the problem, is that strace uses the same syscalls as gdb, and can freely manipulate the target program into doing anything
<clever>
so the kernel just skips setting the uid
<clever>
starting strace as root may solve that
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<spinus>
mbrgm: nope, I was not using it, just saw the discussion one day
<ison111>
nvidia-settings say the "nvidia x driver" isn't loaded and tells me to run "nvidia-xconfig". I'm assuming I have something misconfigured? I have nvidia listed in my videoDrivers in configuration.nix
<spinus>
clever: that's nice explanation, thanks
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<mbrgm>
clever: I think I'm stuck... maybe you can help me?
<mbrgm>
what I want to do: collectd (when not run as root) seems to need `cap_sys_rawio=ep` for the smart plugin to work. now how would I ensure the process has this capability?
<clever>
mbrgm: ah, i could probably test that on smartctl
<mbrgm>
but it still doesn't work... I'm an absolute noob when it comes to capabilities and stuff... read about this the first time when I encountered this problem.
ryanartecona has joined #nixos
<clever>
mbrgm: i have also heard that systemd has stuff to handle caps for you, but never got it working
<clever>
instead, i opted to have toxvpn start as root, grant itself the right caps, then drop to a specified user
<mbrgm>
clever: can you paste a snippet of this?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<mbrgm>
clever: wow... I would like to avoid wrapping a whole c program around the binary.. :-/
<clever>
mbrgm: about the only difference, is the one between trusting that a program will drop root correctly, vs just not giving it root to begin with
<clever>
mbrgm: another option is to just edit collectd to do this on its own
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
ison111 has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
hiratara has quit [(Ping timeout: 245 seconds)]
hiratara has joined #nixos
jmeredith has quit [(Quit: Connection closed for inactivity)]
k0001_ has joined #nixos
<mbrgm>
clever: damn, problem was that collectd was not a member of the 'disk' group... :o)
<clever>
ah
danharaj has quit [(Ping timeout: 240 seconds)]
so has quit [(Ping timeout: 240 seconds)]
so has joined #nixos
ben has quit [(Ping timeout: 260 seconds)]
Baughn has quit [(Ping timeout: 260 seconds)]
ben has joined #nixos
Baughn has joined #nixos
<ison111>
clever: Got UT4 to work :) Thanks for your help. I just had to create a few symlinks (I used all versions from steam since it had everything in one place for consistency, might try to do it without steam later though)
<clever>
ison111: nice
m0rphism has quit [(Quit: WeeChat 1.8)]
<clever>
mbrgm: i modified your collectd example to wrap smartctl instead, and yeah, once i join the disk group, i can query any hdd i want
<clever>
mbrgm: however, nixos also gives the disk group +w to the block devices, so that user almost has root anyways
jgeerds has quit [(Quit: Leaving)]
Filystyn has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] jgertm opened pull request #26479: buck: build buckd as well (master...jgertm/buck) https://git.io/vHXDd
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vHXyt
<NixOS_GitHub>
nixpkgs/master 8e706b0 Joachim Fasting: tor: 0.3.0.7 -> 0.3.0.8...
NixOS_GitHub has left #nixos []
byteflame has quit [(Ping timeout: 240 seconds)]
k2s has joined #nixos
k2s has quit [(Client Quit)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #26480: generic-builder: Use buildInputs for haskell deps (master...haskell-buildInputs) https://git.io/vHXSS
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vHXS7
<NixOS_GitHub>
nixpkgs/master 2bfc977 Tuomas Tynkkynen: ethtool: 4.10 -> 4.11
NixOS_GitHub has left #nixos []
dbmikus has quit [(Quit: WeeChat 1.7)]
Rotaerk has joined #nixos
<taktoa>
how would people feel about adding a builtin that takes an attribute set `a :: AttrSet String` and an expression `e :: Any`, and evaluates `e` with the attributes from `a` added to the NIX_PATH environment; this would allow overriding the definition of `<nixpkgs>` from within nixpkgs? I think this would be useful, but perhaps too powerful, so maybe it would be better to put behind an option flag. Certainly it would be good to at
<taktoa>
least have an option that causes the Nix evaluator to printf every time one of these expressions is evaluated, for debugging.
indi_ has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
vith has joined #nixos
markus1219 has quit [(Ping timeout: 240 seconds)]
markus1209 has quit [(Ping timeout: 260 seconds)]
pxc has quit [(Quit: WeeChat 1.8)]
simukis has quit [(Ping timeout: 245 seconds)]
<vith>
i can't seem to find a working file like ~/.profile ~/.xprofile ~/.zprofile ~/.bash_profile in which to set up my env vars under slim>gnome-shell or lightdm>gnome-shell with zsh as my default shell
erasmas has quit [(Quit: leaving)]
<vith>
my ~/.zshrc works but of course that gets executed every time i open a new terminal, i only want to append to $PATH once
ryanartecona has quit [(Quit: ryanartecona)]
eacameron has quit [(Remote host closed the connection)]
<vith>
if i do `sudo login -f vith` i see that ~/.zprofile worked, so it seems to just be broken for graphical display manager logins?