<joepie91>
samueldr: one of my older development strategies was to test everything on a Puppy Linux machine with a Pentium 3 and 386MB RAM
<joepie91>
you get very good at optimizing code very quickly
<__monty__>
samueldr: I share the pain tbh. 2Gigs is too few Gigs.
<samueldr>
:) I wouldn't go as far as reducing their CPU
<samueldr>
2 few gigs ;)
<joepie91>
(I'm planning on reinstating that strategy, btw; the previous iteration of it was kind of short-circuited when somebody - for some inexplicable reason - stole said Pentium 3 laptop)
<samueldr>
for cpu speed, at least you can wait, for memory issues, it gets gnarly quite quickly, and swap isn't as helpful as it seems :/
<joepie91>
(and not, like, the more expensive and modern Thinkpad Edge I had...)
<Myrl-saki>
joepie91: FWIW, on my ASCII art renderer, I went from 4 seconds per frame to like 0.2 seconds. Turns out vectorization is a very useful thing.
<samueldr>
when a program is slow because of CPU contention/speed, it will eventually get there. for memory issues, there is a finite amount of storage for swap :/
<joepie91>
samueldr: also, honestly, I rarely actually hit the limits of that CPU? I mean, it was a later 1.1ghz model, but still, RAM was the main isue
<joepie91>
issue*
<joepie91>
Myrl-saki: generally true that you can optimize away most of execution time / memory usage with 1-3 changes :P
<joepie91>
for almost any project
<Myrl-saki>
joepie91: Mine wasn't exactly 1-3 changes, but the idea was simply repeated.
<Myrl-saki>
Basically, loop unrolling.
asuryawanshi has quit [Ping timeout: 245 seconds]
<__monty__>
joepie91: It's the perfect crime... Who'd go after them for a crappy laptop while they had a perfectly good one still in their possession?
<joepie91>
lol
<joepie91>
it's also worth approximately $0 on the street
<joepie91>
anyway, yeah, I'd be interested in learning more about Nix' memory issues as well, preferably from existing documentation
<joepie91>
it seems to be a recurring thing
<joepie91>
and mostly unaddressed? unless I missed something
trevthedev has quit [Quit: WeeChat 2.0]
ajs124 has left #nixos [#nixos]
<__monty__>
Probably unaddressed because who wants to debug memory issues when they can write fancy new feature x?
<samueldr>
joepie91: I wouldn't say unadressed, but maybe flying under the radar
<samueldr>
I know for a fact they fixed memory stuff during the 2.0.x series
<Myrl-saki>
__monty__: Passes in Valgrind? Passes for me!
<samueldr>
but I don't know if it's been part of the changelog
asuryawanshi has joined #nixos
roconnor_ has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Ping timeout: 248 seconds]
ajs124 has joined #nixos
<Zer000>
Hmm I got a "access to URI 'https://github.com/muse-sequencer/muse.git' is forbidden in restricted mode" from the build bot in my pull request. It's a public repo, did I do something wrong?
<samueldr>
as it'll catch some mistakes it otherwise wouldn't
<{^_^}>
[nixpkgs] @ajs124 opened pull request #42545 → libvirt: enable (optional) support for iscsi storage → https://git.io/f49Tt
<samueldr>
both ofborg and hydra run sandboxed
<samueldr>
it also forces you not to cheat :)
<Zer000>
right on
fresheyeball has joined #nixos
<adelbertc>
anyone have experience with using Nix + Rust (and Carnix?) trying to debug a Rust error "this crate is being loaded from the sysroot, an unstable location"
<adelbertc>
i've traced it to a missing "optional" dependency
jackdk has joined #nixos
<fresheyeball>
clever: you still around man?
<clever>
fresheyeball: yeah
<fresheyeball>
holy crap
<fresheyeball>
so everything is working, except for ssl
<fresheyeball>
and you where the one who recommened acme
<fresheyeball>
my settings are identical to local, but browser says its insecure now
<clever>
fresheyeball: after lets encrypt generates a cert you have to restart the nginx service
<fresheyeball>
well, I can confirm that systemctl restart nginx does not fix it
<clever>
fresheyeball: is port 80 also open?
<fresheyeball>
no
<fresheyeball>
only 443
<fresheyeball>
do I need both to be open?
<clever>
fresheyeball: lets encrypt needs 80 open to confirm you own the domain
<fresheyeball>
I don't know how you know all the twists and turns like this
<fresheyeball>
its really impressive btw
asuryawanshi has quit [Ping timeout: 256 seconds]
<samueldr>
clever: IIRC letsencrypt works with 443 only, no?
<samueldr>
> The standalone plugin requires root to bind port 80 or 443, although on Linux you could also grant CAP_NET_BIND_SERVICE to the relevant user.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):150:59
<samueldr>
that's for certbot
<clever>
samueldr: thats when your not using nginx, you stop your entire http server, then run the certbot on port 80/443
<samueldr>
and re-reading doesn'T support as much
<clever>
nixos reconfigures nginx so you dont have to shut your whole site off
<samueldr>
I'm searching for a proper citation
<clever>
its harder to automate for every single http server, but thats exactly what nixos is for :P
<samueldr>
because AFAIUI, 80 vs. 443 doesn't mean anything more for validation
<fresheyeball>
clever: that did it
<samueldr>
(though I may have been mistaken)
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<Myrl-saki>
I'm thinking one is bootstrap GCC, and the other is GCCused for program.
matthewbauer has joined #nixos
<truthadjustr>
Myrl-saki: Anyway, i'm trying to compile 'zeromq-4.2.2' but seems that 'gcc 8.1.0' won't due to its more strict whatever. However, 'gcc 7.3.0' was able to.
<Myrl-saki>
Ah. Are you on unstable?
<truthadjustr>
Myrl-saki: i'm inside docker environment, so the error is gcc related. I am a total n00b how to work with c/c++ in nixos yet.. all i know is that my headers,lib are in ~/.nix-profiles/{include,lib} but then.. how will a vanila opensource know that?
<Myrl-saki>
Lisanna: Sorry, I should have been clearer. I'm wondering how a `buildInputs` is affecting the package itself.
<Myrl-saki>
I'm looking at the source code right now.
<Lisanna>
Myrl-saki autoPatchelfHook looks at what your buildinputs are, and scans $out and looks to see if it can match up stuff in buildinputs with stuff in $out that is missing references
<Lisanna>
for rpath
fresheyeball has quit [Quit: WeeChat 2.0]
asuryawanshi has joined #nixos
<Lisanna>
so you basically just put autoPatchelfHook in your nativeBuildInputs, then add the dependencies that you want it to try to use during its phase to buildInputs, and it'll just go
<Lisanna>
is there a way to get the environment variables that a builder will have? I can access the builder and the args with drv.builder and drv.args, but not sure how to also get all the environment variables
<matthewbauer>
samueldr: did you try just setting -Wno-error in GCC6 build? From what i see all you get is warnings
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
oh, you answered on the gist :/ somehow missed the notification sorry
<samueldr>
and quickly! I feel kinda bad now
<matthewbauer>
it looks like everything is configured right. one thing to look for is how many gcc's are being built. it should just be 1 gcc6 cross compiler but the nixpkgs logic may be stupid enough that it needs to go gcc7->gcc6->aarch64-gcc6
* samueldr
is trying your suggestion right now
<imalsogr`>
Lisanna: nix show-derivation /nix/store/something.drv has a field `env`. Not sure if these are specifically the env vars that the builder will see though.
<Lisanna>
imalsogr` am hoping to be able to get it at eval time
<samueldr>
matthewbauer: "these derivations will be built" shows one gcc (+1 wrapper)
<matthewbauer>
ok that's good
<samueldr>
looks good, let's hope that there's nothing more than that warning (as an error)
hxrts has joined #nixos
lukec has joined #nixos
<matthewbauer>
it's annoying that gcc7 doesn't work because that one should be cached
<samueldr>
yes it is annoying :)
<samueldr>
to be fair, I haven't tested a cross-gcc7-built kernel on-device, only a native-gcc7-built one
<samueldr>
(though I'm not expecting it would work any better except if for some weird compiler behaviour)
<matthewbauer>
yeah i bet there's some combination of flags that could fix it for gcc7 - new versions of gcc shouldn't lose functionality
<samueldr>
even for any warning?
asuryawanshi has quit [Ping timeout: 264 seconds]
worldofpeace has joined #nixos
<samueldr>
some UB may have changed between gcc6 and gcc7?
hph^ has quit [Ping timeout: 268 seconds]
hxrts has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixos-org-configurations] @matthewbauer opened pull request #42 → Add my blog → https://git.io/f49It
blonkhart has joined #nixos
camsbury has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
<worldofpeace>
Hm, I'm getting this error when trying to fetch a submodule with fetchgit. https://gitlab.com/snippets/1727830 . Any help would be fun :)
<colemickens>
Does anyone know why the kubernetes e2e tests don't run, and/or why the output of them is so unusable?
jmeredith has quit [Quit: Connection closed for inactivity]
illabout has quit [Remote host closed the connection]
illabout has joined #nixos
asuryawanshi has joined #nixos
<samueldr>
matthewbauer: looks like the flag isn't added to cc invocations during the build
<samueldr>
I think it's using the overlay's gcc6, replacing it with something else (e.g. hello) stops the build with something that looks legit (missing attribute targetPlatform)
markus1199 has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @tadfisher opened pull request #42547 → firefox: add u2f support → https://git.io/f49Il
markus1189 has quit [Ping timeout: 260 seconds]
glasserc has joined #nixos
<glasserc>
Hi, I just installed NixOS and I tried to set up gnome3, but when I choose it as a session I get "Window manager 'gnome3' not found"
<camsbury>
yeah
<camsbury>
should be desktopManager
<camsbury>
as your attribute
asuryawanshi has joined #nixos
<glasserc>
I have "services.xserver.desktopManager.gnome3.enable = true;" in my /etc/nixos/configuration.nix. Is that what you mean?
<camsbury>
yeah that's what it should be
<camsbury>
ussumed you had windowManager instaed from the error
<camsbury>
I've done that before myself :D, but yeah if you have that I'm not sure
<glasserc>
OK, thanks
<camsbury>
do the others work for you, for example if you sub in "plasma5"
<camsbury>
just to diagnose if that line is the cause of the error
andymandias has quit [Ping timeout: 264 seconds]
<camsbury>
or if it is a gnome issue
asuryawanshi has quit [Ping timeout: 248 seconds]
travankor has joined #nixos
<glasserc>
Let me try it
<glasserc>
Yeah, plasma5 works fine
lverns has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
asuryawanshi has joined #nixos
<camsbury>
nice. in that case looks like a problem with gnome. maybe you are expected to do something more for that desktop manager, but I'm unsure.
<Jason_Grossman>
camsbury: Shouldn't be expected to do anything more.
matthewbauer has quit [Read error: Connection reset by peer]
<Jason_Grossman>
glasserc: I suggest you try setting windowManager.default = "none"
<Jason_Grossman>
glasserc: and if that doesn't work try desktopManager.default = "gnome3"
asuryawanshi has quit [Ping timeout: 256 seconds]
<camsbury>
having issues on a new machine with chromium.enablePepperFlash = true
<camsbury>
dependencies not being resolved properly
<samueldr>
hm, used a nixpkgs for to at least test -Wno-error beforehand, got a bunch of "aliased to undefined symbol", from "note: in expansion of macro '_GLIBCXX_APPLY_SYMVER'"
<camsbury>
if I know a nix-store hash that works well on my current machine, is there a way for me to specify that hash in the other in the most minimal way possible?
<camsbury>
though I am open to learn more when it isn't late on a Sunday :D
asuryawanshi has joined #nixos
spear2 has joined #nixos
<samueldr>
I don't know about using it in a nix derivation or nixos config, but nix-store --realise may be helpful
<samueldr>
try `nix-store --realise /nix/store/wwsy5zahji1jjhakq08zy3mmmvnxgnmv-busybox-1.28.1` then `ls -l /nix/store/wwsy5zahji1jjhakq08zy3mmmvnxgnmv-busybox-1.28.1`
<camsbury>
thanks!
matthewbauer has joined #nixos
asuryawanshi has quit [Ping timeout: 256 seconds]
<worldofpeace>
gobjectIntrospection should be a nativeBuildInput?
asuryawanshi has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
camsbury has quit [Quit: WeeChat 2.0]
asuryawanshi has quit [Ping timeout: 255 seconds]
<glasserc>
Jason_Grossman: Same behavior
travankor has left #nixos [#nixos]
<glasserc>
Quite strange actually because it looks like there's a gnome3 stanza in the /nix/store/....-xsession file
matthewbauer has joined #nixos
<glasserc>
Oh, but I guess it's getting set as a window manager and not a desktop manager
matthewbauer has quit [Read error: Connection reset by peer]
<Jason_Grossman>
glasserc: Drats. I'm out of ideas - sorry.
justbeingglad has joined #nixos
<Jason_Grossman>
glasserc: Are you using the unstable channel?
justbeingglad has left #nixos [#nixos]
<Jason_Grossman>
glasserc: If so, try stable (= 18.03).
asuryawanshi has joined #nixos
<glasserc>
I'm on stable already and was wondering if maybe trying unstable was a good idea
<Jason_Grossman>
Yes, unless anyone else chimes in with a solution.
<Jason_Grossman>
Good though.
<Jason_Grossman>
* thought
<glasserc>
It looks like the xsession script being generated takes the $sessionType (gnome3) and turns it into windowManager=gnome3 and desktopManager=gnome3. I wonder if that's supposed to happen
imalsogr` has quit [Remote host closed the connection]
karlguy has quit [Ping timeout: 268 seconds]
matthewbauer has joined #nixos
asuryawanshi has quit [Ping timeout: 268 seconds]
mk-fg has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
endformationage has quit [Ping timeout: 256 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
sbdchd has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
andymandias has quit [Ping timeout: 264 seconds]
asuryawanshi has joined #nixos
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
andymandias has joined #nixos
mariatsji has joined #nixos
Ariakenom has joined #nixos
asuryawanshi has quit [Ping timeout: 276 seconds]
mariatsji has quit [Ping timeout: 256 seconds]
robstr has joined #nixos
mariatsji has joined #nixos
asuryawanshi has joined #nixos
MercurialAlchemi has joined #nixos
<Lisanna>
hmm... trying to nix copy --from and it's saying that it cannot add path because it lacks a valid signature. but I'm passing --no-check-sigs to nix copy. ??
Ariakenom has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 256 seconds]
testuser has joined #nixos
asuryawanshi has joined #nixos
<rnhmjoj[m]>
can someone tell me how to do a remote build? everything i tried doesn't seem to work: `nix build -f. --builders ssh://user@host` fails with "unable to open SSH connection to 'ssh://user@host': writing to file: Broken pipe;" and `nixos-rebuild --build-host user@host` fails with "error: cannot add path '/nix/store/*.drv' because it lacks a valid signature"
Ariakenom has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
periklis has quit [Ping timeout: 265 seconds]
asuryawanshi has joined #nixos
FRidh has joined #nixos
newhoggy_ has joined #nixos
justbeingglad has quit [Quit: Leaving.]
justbeingglad has joined #nixos
newhoggy has quit [Ping timeout: 260 seconds]
newhoggy_ has quit [Ping timeout: 265 seconds]
civodul has joined #nixos
__Sander__ has joined #nixos
justbeingglad has quit [Client Quit]
palo has quit [Ping timeout: 260 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
jluttine has joined #nixos
Jason_Grossman has joined #nixos
johanot has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
mmercier has joined #nixos
octe has joined #nixos
<kreetx>
rnhmjoj[m]: I do remote builds into a docker on macos
<kreetx>
I was using --builders before, but then added the machine to /etc/nix/machines
phdoerfler1 has joined #nixos
phdoerfler has quit [Ping timeout: 240 seconds]
mmercier has quit [Read error: Connection reset by peer]
crshbndct has left #nixos [#nixos]
b has quit [Ping timeout: 255 seconds]
jackdk58 has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
pie_ has quit [Read error: Connection reset by peer]
<cocreature>
I’m running "nix-store -qR --include-outputs $(nix-instantiate)" but for some .drv files the corresponding outputs seem to be missing. am I doing something wrong here?
<{^_^}>
[nixpkgs] @FRidh pushed to master « python37: init at 3.7.0rc1 »: https://git.io/f49lK
<kreetx>
(same question as before, but better expressed) Is there a way to pass only the required arguments to a function? Since if the function doesn't have a ... in it's arguments list then calling it gives an error, if there is more than required
<{^_^}>
[nixpkgs] @numinit opened pull request #42555 → pygtkglext: init at 1.1.0 → https://git.io/f49lM
<tilpner>
> { "" = 42; "" = 41; }."" # Lisanna
<{^_^}>
41
<tilpner>
kreetx - callPackage should do that
<kreetx>
tilpner: I'm not sure but I think the haskell one doesn't?
<kreetx>
I'm probably just doing something wrong..
<kreetx>
in my override I try to do something like this: final.haskellPackages.callPackage ./path final.haskellPackages
<kreetx>
and the last argument has all of the haskell packages
<kreetx>
that works
<kreetx>
but I need my local packages in there
<tilpner>
That last argument will always be passed, without checking if the arguments are expected
<kreetx>
hmm, but the default.nix files for my packages don't have a ... in it. I think what you're saying is that it shouldn't matter
<{^_^}>
[nixpkgs] @FRidh pushed to staging « pythonPackages: remove traces of Python 2.6 »: https://git.io/f498E
newhoggy has joined #nixos
<tilpner>
No, I'm saying your error is expected
<tilpner>
All arguments from that second argument will unconditionally be passed to the imported first argument (plus some other args)
<tilpner>
So if that first argument doesn't expect those, it errors
<kreetx>
thank you, I didn't know this
sir_guy_carleton has joined #nixos
<kreetx>
but what should I do then? I found that there exists a functionArgs to get the arguments of a function -- I could use this to pick out the right things
<kreetx>
but I have a nagging feeling that all this is just wrong somehow
pie_ has quit [Remote host closed the connection]
<tilpner>
Have you read the manual section on Haskell package overrides?
pie_ has joined #nixos
<cocreature>
kreetx: override haskellPackages to include your local packages and then use callPackage on that
orivej has joined #nixos
philippD has joined #nixos
jluttine has quit [Quit: WeeChat 2.1]
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #42556 → pythonPackages.rlp: revert to working 0.6.0 → https://git.io/f4989
jluttine has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
<kreetx>
if I comment in the final.haskellPackages it errors (as tilpner said it's supposed to), but with an empty set then 'b' doesn't find the 'a' it depends on
<kreetx>
I know I could name them manually, but thought that why should I :p
<rizary>
when building with nix, i got this error
<rizary>
`Setup: configure script not found. builder for ...`
<kreetx>
but maybe I should
<Lisanna>
is there a builtin or lib function to convert a local path into a derivation?
<Lisanna>
e.g. pathToDrv ./.
phdoerfler has quit [Quit: Leaving.]
<Lisanna>
toDerivation doesn't work on local paths
<rizary>
when trying to `override` ghc822. Is this something that nix fault or else?
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roberth has joined #nixos
periklis has joined #nixos
jtojnar has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed 121 commits to python-unstable: https://git.io/f490Y
<Lisanna>
what happened to jobsets in hydra being able to take multiple values, and it computing the cartesian product? the jobset interface seems to be lacking the button to do that :/
<infinisil>
Lisanna: Huh, why do it like this?
<Lisanna>
infinisil well, it takes one argument for one
andymandias has joined #nixos
justbeingglad has quit [Ping timeout: 260 seconds]
<infinisil>
Yeah, but why nix-store --dump | nix-store --restore?
<Lisanna>
and it will perfectly preserve everything, as if you had used the path directly in a build
<Lisanna>
who the hell knows what cp does
<infinisil>
There's flags for it though
<infinisil>
And I feel like it'll be much faster than going through nix serialization..
<Lisanna>
hey, it's how replaceDependency works
<infinisil>
Hmm
<infinisil>
Well whatever works for you
<infinisil>
You might want to consider using builtins.path to have it work for all input paths
<Lisanna>
what does that builtin do?
<{^_^}>
[nixpkgs] @xeji pushed commit from @nocent to master « rpcs3: 0.0.4-8032 -> 0.0.5-6980 (#41414) »: https://git.io/f490g
newhoggy has quit [Remote host closed the connection]
xy2_ has quit [Ping timeout: 260 seconds]
lopsided98 has joined #nixos
<cocreature>
rizary: looks like you need to run "autoreconf -i"
<rizary>
cocreature: i'm not sure where should I put that? in my build process or where?
<cocreature>
rizary: or use callHackage rather than trying to fetch from github
thc202 has quit [Ping timeout: 264 seconds]
<cocreature>
yeah probably in preConfigure
<cocreature>
but unless you really need a feature that’s not in the latest release (which would surprise me since network released a new version just a few days ago), I would recommend to just use callHackage
<rizary>
yep
<rizary>
so in case of using `preConfigure` i should download and run `cabal2nix` myself then modify it by adding the `proConfigure` attributes?
agander has quit [Read error: Connection reset by peer]
<cocreature>
you can probably apply overrideCabal to whatever you have now
<jD91mZM2>
Yeah that should create a write/share/applications/write.desktop file. To have it installed into /usr/share/applications you need to symlink it
<ambro718>
LnL: I defined the modulePackages option to be a list of packages, but then cfg.modulePackages is not a list at all, it actually seems to be a set !?
<ambro718>
I get error "cannot coerce a set to a string", seems related to the expansion of ${cfg.modulePackages} in the for loop
<ambro718>
before I changed to your != [] I was using mkIf (length cfg.modulePackages > 0)
<ambro718>
which resulter in error "cannot cource a set to a list"
<ambro718>
why is cfg.modulePackages a set?
<ambro718>
sending it through builtins.trace, I see this: trace: { default = <CODE>; type = <CODE>; }
<bendlas>
> bendlas: I also don't understand the purpose of the top-level cask definition. it's already available and includes the script
<bendlas>
@benny I wanted cask to be available as a command line tool. If there is a better way to package it, I have no problem with changing it ..
<bendlas>
tbqh, I created that derivation as a one-off and haven't used it since
andymandias has joined #nixos
regulus_ has joined #nixos
andreabedini has joined #nixos
newhoggy has joined #nixos
Oyren has quit [Quit: Page closed]
smallville7123 has joined #nixos
deepfire` has quit [Ping timeout: 255 seconds]
npmccallum has quit [Ping timeout: 240 seconds]
ambro718 has joined #nixos
logzet has joined #nixos
<agander>
Could someone tell me, is this a nix error...
deepfire` has joined #nixos
<agander>
"cabal: The program 'alex' version >=3.1 is required but the version of ~/.cabal/store/ghc-8.2.2/alex-3.2.4-<...>/bin/alex could not be determined"
<ambro718>
is it normal that pushing to my nixpkgs fork on github takes a long time even though I have only added one commit on top of nixpkgs master?
tzemanovic has quit [Remote host closed the connection]
<etu>
Shouldn't take a long time
tzemanovic has joined #nixos
<etu>
git is very efficient at only sending the needed changes
<ambro718>
doesn't seem to be the case here, it was spending like 40 seconds sending stuff
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<roberth>
ambro718: my personal fork sometimes gets quite out of date, so git needs to upload a significant number of nixpkgs contributions
<gchristensen>
I have that problem too
smallville7123 has quit [Quit: rosa]
tzemanovic has quit [Remote host closed the connection]
<ambro718>
yeah, seems like it can't find stuff exists in the main repository
tzemanovic has joined #nixos
<roberth>
yeah, git only looks at the refs of the two repositories
tzemanovic has quit [Remote host closed the connection]
<LnL>
forks on github only share history until the point in was forked AFAIK
<roberth>
I could be sped up if github automatically adds fake refs for any 'fork ancestry'
<roberth>
*it
hiratara has joined #nixos
<roberth>
that's assuming they aren't really separate repo's in their backend, which I believe is false
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<roberth>
more realistically you could set up a cronjob that syncs the upstream refs into a directory of refs on your fork
<roberth>
but cost/benefit
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #42562 → Use a NixOS module for generating the gdk-pixbuf loaders cache. → https://git.io/f491L
<{^_^}>
[nixpkgs] @xeji pushed commit from @bhipple to master « pythonPackages.plaid-python: init at 2.3.0 (#42530) »: https://git.io/f49MX
npmccallum_ has quit [Quit: npmccallum_]
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
MercurialAlchemi has quit [Ping timeout: 256 seconds]
<hodapp>
I guess I haven't kept much of a personal fork, though maybe that'd make sense... is there a standard git method of keeping a branch that keeps track of several feature branches at once (while I wait for PRs to be merged)?
<__monty__>
hodapp: Once merged the patches'd be in the branch. Do you mean automatically tracking the HEADs of feature branches? Then no afaik.
phdoerfler1 has joined #nixos
<hodapp>
__monty__: yes, I'm talking about when I have various branches that are not yet merged and have to reside in separate branches due to the nature of the PR
<hodapp>
I could make scripts to cherry-pick from a list of branches, I suppose
andreab__ has joined #nixos
agander_ has joined #nixos
phdoerfler has quit [Ping timeout: 240 seconds]
saep has joined #nixos
agander_ has quit [Read error: Connection reset by peer]
<__monty__>
You'll have to manually merge all the time afaik. Git fails to automatically merge too often.
agander has quit [Read error: Connection reset by peer]
<ambro718>
is there a standard way to issue warnings from a nixos module?
illabout has joined #nixos
kisik21 has joined #nixos
cw789 has joined #nixos
agander_ has joined #nixos
hph^ has quit [Ping timeout: 248 seconds]
<joepie91>
ambro718: I *think* that is normally done with `trace`? although that's not explicitly a warning
<ambro718>
should I just echo something into stderr, or is there something standard?
__Sander__ has quit [Ping timeout: 265 seconds]
<cw789>
Hi all. I've a question regarding building Docker images (with "dockerTools.buildImage"). If i use contents I always end within a lot of stuff in my layer. There is then a /nix/store with gcc & more ... Is it in any way possible to only get the needed contents into the layer?
logzet has quit [Ping timeout: 276 seconds]
logzet_ has joined #nixos
rprije has joined #nixos
kisik21 has quit [Ping timeout: 240 seconds]
npmccallum has joined #nixos
kisik21 has joined #nixos
Neo-- has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #42564 → perl528: init at 5.28.0 → https://git.io/f49S9
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « neofetch: 4.0.2 -> 5.0.0 (#42477) »: https://git.io/f497n
mmercier has quit [Remote host closed the connection]
jperras has joined #nixos
mmercier has joined #nixos
ryantrinkle has quit [Ping timeout: 256 seconds]
ambro718 has quit [Quit: Konversation terminated!]
<Jason_Grossman>
jophish: I believe it isn't automatically copied anywhere, for security reasons (it could contain passwords etc.)
<Jason_Grossman>
jophish: There's an *option* to have it copied into /etc, but that option's not set by default.
<Jason_Grossman>
jophish: Sorry to be the bearer of bad news.
Stooge has left #nixos [#nixos]
<Jason_Grossman>
jophish: In case you need this in the future (it won't help in retrospect), I see that it isn't a special option, it's just something that the Nix language lets you do:
<Jason_Grossman>
jophish: I'm saying this is bad news because I'm assuming you want to get the file back. As you say, the *evaluated* contents of the file are fine - your system can keep booting - but I don't know any way to restore the file itself.
fresheyeball has joined #nixos
<fresheyeball>
clever: morining
<fresheyeball>
clever: I realy do owe you, I could use ongoing nix tutoring, and would like to work something out if you are willing.
<jophish>
Jason_Grossman: I thought as much
<shlevy>
Any carnix folks around?
<jophish>
currently grepping the disk image for my public key, perhaps the file wasn't overwritten entirely
<shlevy>
Seems like "ring" wants to depend on gcc even on darwin... causing build failures
<fresheyeball>
shlevy: hey dude!
<shlevy>
fresheyeball: o/!
<fresheyeball>
shlevy: I have gotten much nix stronger in the last few weeks, but so much is still to learn1
<fresheyeball>
learn!*
<fresheyeball>
Actually, let me just ask this question of the forum here
<shlevy>
:)
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<fresheyeball>
how shall we abstract config?
<fresheyeball>
merging sets? functions?
erasmas has joined #nixos
<fresheyeball>
I could see both working out
<shlevy>
config of what?
<fresheyeball>
services for example
<shlevy>
I like merging sets when it's simple enough, but don't object to functions
<fresheyeball>
Like I have more than one server, which have similar nginx config
<fresheyeball>
I don't see why I should be non-DRY in nix
<fresheyeball>
the function version ends up being kinda ugly
<jophish>
Jason_Grossman: It's a very odd subset of the file, I think it might have come from the swapfile perhaps
<jophish>
The lines are not in order, and many of them are missing
<jophish>
there's also a large amount of junk
<jophish>
and null bytes
reinzelmann has quit [Quit: Leaving]
phdoerfler1 has quit [Ping timeout: 255 seconds]
<Jason_Grossman>
Damn.
<jophish>
many of the lines *appear* to have their contents reversed by token, for example I can see something like: [ hardware-configuration.nix\NUL imports =\NUL
<Jason_Grossman>
Will it be useful as a mnemonic so you can reconstruct your file starting from the default?
<jophish>
similarly interesting, it seems to contain the contents of the file I was *trying* to write when I accidentally wrote nothing
<seanparsons>
Has anyone had any success with npm packages (installed through npm not something like node2nix) that build native code and wire that up? I get undefined symbol errors when trying to use any of the native calls, but only on NixOS, not on Ubuntu or macOS. :/
<jophish>
Jason_Grossman: I think it will serve that well, the few lines I cared about seem to be there
mmercier has quit [Ping timeout: 245 seconds]
toby1851 has joined #nixos
roconnor_ has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @vbgl opened pull request #42567 → ocamlPackages.psmt2-frontend: init at 0.1 → https://git.io/f49xC
<Jason_Grossman>
jophish: OK, phew.
smallville7123 has joined #nixos
steell_ has joined #nixos
karlguy has joined #nixos
jmeredith has joined #nixos
<jophish>
Jason_Grossman: managed to run nixos-rebuild build without it rebuilding anything important!
<jophish>
was mainly the kernel and /boot I was worried about, very pleased!
<{^_^}>
[nixpkgs] @spacefrogg opened pull request #42569 → resolvconf.conf: Remove forced NSCD service restart → https://git.io/f49hB
agander has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 264 seconds]
spear2 has joined #nixos
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
drewr has quit [Remote host closed the connection]
matthewbauer has joined #nixos
ryantrinkle has joined #nixos
jensens has joined #nixos
andymandias has quit [Ping timeout: 256 seconds]
<imalsogreg>
I wonder if any Haskell/cabal people have ideas about the issue I encountered here: https://github.com/NixOS/nixpkgs/pull/42546 ... After trying to use a newly packaged c library from Haskell, pkg-config only picks up the library if the pkgconfig-depends field in the cabal file has at least 2 entries.
<imalsogreg>
fresheyeball: :D o/. Yah. I mean - I think hydra may need either a new plugin (for gitlab, styled after the one for github), or maybe gitlab integration can be achieved by writing a hydra.conf for the GitInput.pm plugin. Y'm not sure though.
matthewbauer has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<fresheyeball>
imalsogreg: cools
xy2_ has quit [Ping timeout: 265 seconds]
stanibanani has quit [Ping timeout: 245 seconds]
Sonarpulse has joined #nixos
wchresta has joined #nixos
coot has quit [Read error: Connection reset by peer]
coot has joined #nixos
<jophish>
Does anyone have fail2ban reading nginx logs with nixos?
raynold has joined #nixos
xy2_ has joined #nixos
matthewbauer has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.0]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
ajs124 has left #nixos ["Machine going to sleep"]
spear2 has quit [Remote host closed the connection]
xorkle has joined #nixos
k175un3 has joined #nixos
<k175un3>
Hello! Is there someone who programming in Ruby with NixOS?
xy2_ has quit [Ping timeout: 260 seconds]
<infinisil>
,ask k175un3
<{^_^}>
k175un3: Just ask your question. It's the best way to know if anybody can help.
xy2_ has joined #nixos
<k175un3>
So, i try to start my project with nix-shell and got some problems. I've got 3 *.nix files (gemset, shell, default), and when i start nix-shell it falls with error bc of one gem require gnurx and libmagic. How can i resolve it?
<k175un3>
If its ok i can put log here
matthewbauer has quit [Ping timeout: 256 seconds]
worldofpeace has quit [Remote host closed the connection]
saep has quit [Remote host closed the connection]
wchresta has quit [Remote host closed the connection]
igo95862 has quit [Quit: igo95862]
orivej has joined #nixos
steell_ has joined #nixos
worldofpeace has joined #nixos
deepfire` has quit [Ping timeout: 248 seconds]
humanoyd has quit [Ping timeout: 245 seconds]
fendor has quit [Ping timeout: 264 seconds]
<k175un3>
so i think nobody know how to resolve this :) sad :)
<cocreature>
k175un3: just stick around for a while and post your log file on some pastebin site
<worldofpeace>
samueldr: you do ruby stuff in nix right?
blankhart has joined #nixos
<samueldr>
I do, but haven't had issues yet :)
<samueldr>
the worse is with some libs that hardcode /usr/ and the like for library paths
<worldofpeace>
Someone here has an issue and help would be nice. I do ruby ruby stuffs too but I'm not too familar with nix and ruby.
<samueldr>
when it happened I either switched gems or implemented a worse is less one
<samueldr>
I saw, but had no idea :/
matthewbauer has quit [Read error: Connection reset by peer]
<worldofpeace>
k175un3: Can you switch the gem? It appears to be unmaintained...
<worldofpeace>
samueldr: Yeah me too :)
<mjrosenb>
question: for services that can be configured through nix, where exactly does the configuration get written out? I searched through nixpkgs/pkgs, and I did not see anything that looked relevant.
<k175un3>
Sad, but no. Its very old project in my company, that planning to be refactored, but not soon. So there is no way
matthewbauer has joined #nixos
<infinisil>
mjrosenb: You mean nixos services? nixpkgs/nixos/modules/services
<samueldr>
mjrosenb: part of them get written somewhere in the path, linked to /etc/static, and further linked to /etc/... and some are written to the store, and the systemd service will have full paths to configuration files as arguments to the services
<worldofpeace>
k175un3: I hope you can find a solution :)
<samueldr>
oh
<samueldr>
I glanced to the initial issue
<samueldr>
but haven't looked back
<samueldr>
it was ruby-filemagic for me too!
<worldofpeace>
^^^ !
<mjrosenb>
ahh, that makes sense. If I want to do this on OSX, I'll have to do something super-weird, like including something from nixpkgs/nixos?
<samueldr>
(it's one I re-made less is worse for another project)
<overlays>
I think I misunderstood the "global" thing. even with that overlay thing in configuration.nix, I still have to install with nix-env. Is that correct?
<overlays>
I thought it would work with the packages listed in the environment
<overlays_>
never mind, now it works for environment packages. Not sure if or what I changed :P Thanks!
<samueldr>
looks like (from a cursory glance) both are wrapped,
<matthewbauer>
yeah imo we should get rid of the firefox-bin one because it causes too much confusion.
zsoc has joined #nixos
zsoc has quit [Changing host]
zsoc has joined #nixos
zsoc has quit [Remote host closed the connection]
<samueldr>
matthewbauer: sorry to bother you again, though you're being really helpful in figuring out cross-compiling. setting the CFLAG through the overlay didn't work (didn't affect the build at all); setting it in a nixpkgs clone does affect the build, but ends up with "aliased to undefined symbol" errors at link time
<{^_^}>
[nixpkgs] @xeji pushed commit from @jD91mZM2 to master « xidlehook: 0.4.8 -> 0.4.9 (#42573) »: https://git.io/f4HKO
overlays_ has quit [Ping timeout: 260 seconds]
woohoo has joined #nixos
zsocw has quit [Ping timeout: 276 seconds]
<glasserc>
When I change nixpkgs.config.firefox.enableGnomeExtensions in configuration.nix, what do I have to do to make that change take effect? Does nix-env -i firefox do it? Does nixos-rebuild switch do it?
<samueldr>
anything in /etc/nixos/configuration.nix needs rebuilds to be effective
<samueldr>
AFAIK nothing reads those files directly (other than rebuild)
<glasserc>
But since I installed firefox using nix-env -i, isn't the wrapper built on the old configuration.nix?
<matthewbauer>
samueldr: aha! you are compiling the wrong thing. you want a gcc6 aarch64 cross compiler, but you're building gcc6 /for/ aarch6. try replacing "gcc6" reference with "buildPackages.gcc6". this should ensure you get the right thing
<woohoo>
Hi! Tell me if I want to make an existing package with other options. Do I have to use something like lib.optional. Or can I make a separate nix expression for this package? To be honest, my package should support fewer platforms,and overall I would like to do some things differently than the current maintainer. Are there any conventions on the name of the binary and the package itself in this case (snake case, underscores, hyphens, so
<matthewbauer>
you shouldn't see aarch64-unknown-linux-gnu-* until /after/ gcc6 has built
<infinisil>
samueldr: Oh hold on, how about just this for your hack: `(import <nixpkgs/nixos> {})._module.args.pkgs`
<matthewbauer>
samueldr: yeah this stuff is supposed to be handled for you normally with nativeBuildInputs - but here we are overriding the stdenv so it gets a little bit more complicated. "buildPackages" guarantees we get the right thing
robstr has quit [Quit: WeeChat 1.9.1]
<matthewbauer>
i feel like overrideCC *should* handle this for you. i may need to ask Sonarpulse about this
<Sonarpulse>
amfl: what's the issue?
<infinisil>
glasserc: --arg config '{}' might work
<Sonarpulse>
* samueldr
jperras has joined #nixos
<Sonarpulse>
overrideCC replaces the cc attribute, and removes any allowedRequisites that exists
<infinisil>
glasserc: Nah, you'll have to do --arg config '{ firefox.enabl... = true; }'
<infinisil>
If it works at all
freeman42x[nix] has joined #nixos
pie_ has quit [Ping timeout: 276 seconds]
<glasserc>
infinisil: Yeah, it did, thank you so much
<infinisil>
:)
<worldofpeace>
infinisil: How do you even use home-manager in nixos-config? And is it safe?
<infinisil>
worldofpeace: The warning on home-manager's readme should really be removed, it's totally safe, I've never heard of anybody messing anything up with it
<infinisil>
worldofpeace: What do you mean how I use it?
pie_ has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
<worldofpeace>
infinisil: using home-manager inside configuration.nix.
blankhart has quit [Read error: Connection reset by peer]
xorkle_ has joined #nixos
shiver32 has joined #nixos
shiver32 has quit [Changing host]
shiver32 has joined #nixos
rodgort` has joined #nixos
<infinisil>
A nice way? Nope. But there is a hacky way
S0rin has quit [Ping timeout: 265 seconds]
orzo_ has joined #nixos
pierron_ has joined #nixos
rodgort has quit [Quit: Leaving]
shiver has quit [Remote host closed the connection]
pierron has quit [Ping timeout: 256 seconds]
orzo has quit [Ping timeout: 256 seconds]
S0rin has joined #nixos
boegel has joined #nixos
mpickering has quit [Ping timeout: 240 seconds]
mpickering has joined #nixos
myshoe has quit [Quit: Lost terminal]
mahalel_ has joined #nixos
mahalel_ has quit [Client Quit]
<tmplt>
I want to add some options to virtualisation.libvirtd. Is there some easy way to modify modules?
mahalel_ has joined #nixos
<infinisil>
tmplt: You can just define the options you want with the "options" attribute
<infinisil>
tmplt: E.g. in configuration.nix: { pkgs, ... }: { options.virtualisation.libvirtd.foo = mkOption ...; config = { <the rest of your system configuration.> }; }`
<tmplt>
oh neat
fractal has joined #nixos
tenten8401 has quit [Ping timeout: 248 seconds]
tenten8401 has joined #nixos
<infinisil>
tmplt: Or in an imports works too
<tmplt>
I'm looking to install a file in /etc/libvirt/hooks/qemu inside the derivation. Would I just use `environment.etc."libvirt/hooks/qemu" = { ... };` inside the mkOption?
tzemanovic has joined #nixos
<tmplt>
Or no, it would be the config.virtualisation.libvirt part, no?
<infinisil>
derivations have very little to do with NixOS
<infinisil>
You can't set nixos options in derivations
simukis has quit [Ping timeout: 256 seconds]
Ariakenom has quit [Quit: Leaving]
<infinisil>
You probably want $out/etc/libvirt/hooks/qemu?
<infinisil>
That's just a cp
astrofog has joined #nixos
<tmplt>
That's the one, yes
Drakonis has joined #nixos
Drakonis has quit [Client Quit]
tenten8401 has quit [Ping timeout: 276 seconds]
tenten8401 has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Myrl-saki>
Has anyone had a case where busybox works better than coreutils? :P
asuryawanshi has quit [Ping timeout: 268 seconds]
<Myrl-saki>
Just happened to me right now, so ye.
<Myrl-saki>
Not on NixOS though.
dbmikus_ has quit [Ping timeout: 255 seconds]
newhoggy has quit [Remote host closed the connection]
m0rphism has joined #nixos
<worldofpeace>
I've tried using busybox and it broke stuff really bad :( But that was NixOS
sirocyl[m] has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blankhart has joined #nixos
coot has quit [Quit: coot]
newhoggy has joined #nixos
<Lisanna>
Hey, anyone have any idea why adding an account to the trusted users list would cause nixops to stop trying to build stuff on the correct platform?
<{^_^}>
[nixpkgs] @Ma27 opened pull request #42586 → phonon-backend-vlc: use qt5 by default → https://git.io/f4HAR
blankhart has quit [Ping timeout: 256 seconds]
<Lisanna>
I nixops deploy from darwin to linux, and depend on remote building for the deploys to work. but for some reason if the account I'm doing the nixops build/deploy from is a trusted user, nixops stops trying to build remotely and the builds fail
joehh has quit [Remote host closed the connection]
ihar has quit [Quit: WeeChat 2.0]
toby1851 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @dtzWill pushed 3 commits to release-18.03: https://git.io/f4HA7
<Guest68768>
zimbatm, we were having a conversation about setting up shell.nix in projects, and you mentioned having a nix branch to cherrypick from, which makes a ton of sense.
Guest68768 is now known as judson
<judson>
I wonder if a solid convention, maybe with tooling would be in order.
<judson>
It'd be a nice compromise between "I am depositing this Nix detritus in every project I touch" and hiding the Nix-light under a bushel.
<zimbatm>
if we are going to ask project to accept our shell.nix we should at least clean it up and make it really nice to read