<Raito_Bezarius>
it seems like it already support it
m0rphism has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 240 seconds]
abathur has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.2]
NightTrain has quit [Quit: leaving]
ddellacosta has joined #nixos
lunik1213 has quit [Quit: Ping timeout (120 seconds)]
lunik1213 has joined #nixos
NightTrain has joined #nixos
moet has joined #nixos
jluttine has joined #nixos
Ariakenom has quit [Quit: Leaving]
patrol02 has joined #nixos
<patrol02>
Hi all
<patrol02>
I am configuring a laptop with NixOS, and I want all the windows that I have opened on a laptop screen to move to the external screen when I close a lid. This is something that Ubuntu does by default, but how do I configure it with NixOS?
halfbit has quit [Ping timeout: 268 seconds]
gxt has joined #nixos
jlm66 has joined #nixos
<ivan>
Patrol02: which desktop environment? were you using the same on Ubuntu?
toppler has quit [Ping timeout: 276 seconds]
<patrol02>
I am trying with sddm, lightdm and plasma5 combinations, but I think this is somehow basic and should be doable with any...
toppler has joined #nixos
slack1256 has joined #nixos
<patrol02>
Ubuntu uses gnome3, but when I enable gnome3 and gdm in my nixos config I get a strange error which I don't have otherwise: The option `networking.useDHCP' has conflicting definitions, in `/etc/nixos/configuration.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/networkmanager.nix'
<patrol02>
I don't quite understand why DHCP settings conflict with a desktop manager...
<patrol02>
Perhaps I am hitting this (open) issue, but in general no, I haven't tried gnome3 yet. Am I looking at something that other desktop/display managers can't do for some reason?
ambro718 has quit [Quit: Konversation terminated!]
wtv_nick has quit [Client Quit]
wtv_nick has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<patrol02>
Yes, gnome3 does it! At the expense of that I lost my dhcp network and installed lots of stuff that comes with gnome3 and that I don't need to my disk.
<patrol02>
Now, is it possible to do it with sddm or lightdm?
MmeQuignon has quit [Ping timeout: 240 seconds]
<ivan>
Patrol02: you'd probably have to write your own stuff to do it
<ivan>
I believe the more popular behavior that people might test is to just not have the laptop screen enabled when attached to an external screen
<ivan>
the lid-close seems kind of niche
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « rocksdb: 6.2.4 -> 6.3.6 »: https://git.io/JeE3E
<{^_^}>
[nixpkgs] @marsam opened pull request #72002 → pythonPackages.docker: fix build on darwin → https://git.io/JeE3g
toppler has quit [Ping timeout: 240 seconds]
<patrol02>
Oh wow, it has only been reported a week ago! :)
<Orbstheorem>
Hi! o/, How is the NixOS version string built? (e.g. when booting the system I read “Welcome to NixOS 19.09.907.f6dac808387”, 19.09 would be the release, but is f6dac808387 the commit on nixpkgs? (nix-channels?) and what about 907?
toppler has joined #nixos
cruxeternus has quit [Remote host closed the connection]
kvda has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 4 commits to nixos-unstable-small: https://git.io/JeE3Q
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 5 commits to nixpkgs-19.09-darwin: https://git.io/JeEYe
<DigitalKiwi>
the last section is indeed part of the commit hash
wtv_nick has quit [Read error: Connection reset by peer]
wtv_nick has joined #nixos
patrol02 has quit [Remote host closed the connection]
felixfoertsch23 has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
felixfoertsch has quit [Ping timeout: 264 seconds]
toppler has joined #nixos
hpfr has quit [Remote host closed the connection]
xelxebar_ has joined #nixos
xelxebar has quit [Ping timeout: 260 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
wtv_nick has quit [Quit: leaving]
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @marsam opened pull request #72003 → bash-completion: fix build on darwin → https://git.io/JeEsS
<Ashy>
are there any jsoftware users here? just wondering if the qt gui works on nixos
<{^_^}>
[nixpkgs] @bergey opened pull request #72004 → all firejail local includes should look in /etc/firejail → https://git.io/JeEs5
wormwood has quit [Ping timeout: 268 seconds]
noudle has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
toppler has quit [Ping timeout: 268 seconds]
jlm66 has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
matthuszagh has joined #nixos
<matthuszagh>
hi. i'm building a python derivation and getting the error "no module named setuptools" during the setuptoolsBuildPhase. However, setuptools is a propagatedBuildInput of the package, which I've double verified by checking `nix show-derivation`. Any ideas what could be going wrong here?
iyzsong has joined #nixos
mexisme has joined #nixos
mexisme has quit [Ping timeout: 264 seconds]
jlm66 has quit [Quit: Leaving]
jlm66 has joined #nixos
jlm66 has quit [Client Quit]
jlmeeker has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlmeeker has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 265 seconds]
jonringer has quit [Ping timeout: 264 seconds]
jonringer has joined #nixos
toppler has joined #nixos
<{^_^}>
[nixpkgs] @balsoft closed pull request #65982 → [19.03] Backport mtxclient and nheko to 19.03 → https://git.io/fjHPD
<ivan>
matthuszagh: are you running that same version of nixpkgs you checked
<ivan>
ah you checked
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
marcusr has joined #nixos
marcusr has quit [Changing host]
<ivan>
matthuszagh: does it use buildPythonPackage / python3.pkgs.buildPythonApplication
<matthuszagh>
ivan: i'm running nixpkgs master plus a commit adding my packages
<matthuszagh>
buildPythonPackage
<ivan>
maybe its setup.py does something really dumb
<matthuszagh>
happy to post the full default.nix if that helps
<ivan>
you don't need that, all-packages stuff is inherited
<ivan>
I refer to ` inherit (pkgs) kicad;`
<matthuszagh>
ok good to know
M-Gregoire49 has joined #nixos
<matthuszagh>
for some reason the kicad still seems to be causing it to fail
Rusty1 has quit [Quit: Konversation terminated!]
<matthuszagh>
i can print sys.path for you but unfortunately not sure how to do that
<matthuszagh>
add a hook?
<ivan>
you can temporarily point src = to a path on your disk
<ivan>
then edit setup.py there with import sys; print(sys.path)
<ivan>
src = /some/path
<ivan>
src = /some/path;
<matthuszagh>
ah gotcha
endformationage has quit [Quit: WeeChat 2.6]
<ivan>
matthuszagh: should kicad even be in propagatedBuildInputs?
<matthuszagh>
so it never gets called, which i guess is expected bc it's failing on the import setuptools in nix_run_setup, not from skidl's own setup.py
<matthuszagh>
yeah, i believe so. it needs the path to the symbol libraries
<ivan>
I ask because you have another pykicad
<matthuszagh>
yeah that's separate..
<matthuszagh>
but also a dep
<ivan>
kicad is not packaged as a Python library in nixpkgs
<matthuszagh>
it's funny it builds for you without the dependencies though. when i removed just kicad it was failing, just later
<matthuszagh>
you mean the pykicad? yeah i created a derivation for that too
<matthuszagh>
or you mean just kicad itself?
<ivan>
I mean kicad itself
orivej has joined #nixos
<ivan>
anyway I'm going to let someone else think about this because I should sleep
<matthuszagh>
sure no worries thanks for the help!
toppler has quit [Ping timeout: 268 seconds]
<evils>
matthuszagh: not to derail you, but i'm poking around kicad because it's crashing (at runtime), is wxPython_4_0 building for you?
<matthuszagh>
evils: no worries you actually got me at a good time i'm poking around kicad too
<matthuszagh>
yes it is
<matthuszagh>
it's not for you?
<evils>
'pkg-config --modversion gtk+-3.0' returned 3.24.10, but GTK+ (3.24.11)
toppler has joined #nixos
<evils>
that's wxwidgets-3.0.4 failing
<matthuszagh>
ah yeah i had that exact same error a few days ago
<matthuszagh>
i think it was a commit in the last few days that fixed it
<matthuszagh>
are you at current nixpkgs master?
<matthuszagh>
let me try to dig up the fix to be sure
<evils>
matthuszagh: last edit to it on master is 2 months old
pjan has joined #nixos
<matthuszagh>
i think it was a gtk commit
<matthuszagh>
no guarantees, but if you checkout master and try i think it'll work
<matthuszagh>
having a bit of trouble tracking down the specific change
<evils>
will see in a few
<evils>
nope
<evils>
got anything local that could be it?
<matthuszagh>
hm
<matthuszagh>
maybe lemme see
<matthuszagh>
unfort not sure i know how to help. mine builds on master. and none of my overlays seem to be relevant
<matthuszagh>
curious why you're looking at wxPython_4_0 tho. are you trying to get kicad working on python3?
<evils>
kicad's crashing, it's not really giving any useful feedback except `warnings.warn("wxPython/wxWidgets release number mismatch")` so i thought i'd try the newer version
<matthuszagh>
have you tried using a newer kicad version
<matthuszagh>
?
<evils>
yea, build from master
<evils>
(theirs)
<matthuszagh>
ok
millerj has joined #nixos
gxt has quit [Remote host closed the connection]
NightTrain has quit [Quit: leaving]
toppler has quit [Ping timeout: 265 seconds]
palo1 has joined #nixos
toppler has joined #nixos
palo has quit [Ping timeout: 276 seconds]
palo1 is now known as palo
xelxebar_ has quit [Remote host closed the connection]
<evils>
matthuszagh: i may have made a mistake on trying on master, 393e96b3fac51139c134209c5d4f2738506b140e seems to update gtk3 and that seems to have fixed wxPython_4_0
<millerj>
I'm a bit confused - can/how does one use overrideAttrs in an overlay to change a variable that is later used as ${variable} elsewhere in the source?
<matthuszagh>
millerj: you mean used in the overlay or the original derivation?
palo1 has joined #nixos
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
Heirlung has joined #nixos
<millerj>
The original, where it has already been expanded.
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
<matthuszagh>
ah yeah ok then i don't know. i feel like i've tried that before and it doesn't work and I just ended up adding to the overlay whatever other attributes used that. but i'm a novice so there might be a better way to get what you want
<evils>
matthuszagh: did you manage to crash kicad?
slack1256 has joined #nixos
<matthuszagh>
evils: actually it seems to work
<matthuszagh>
hasn't crashed yet
<matthuszagh>
successfuly searched for and placed a footprint
<evils>
matthuszagh: it's not very reliable, but searching for "dip 14" seems to do it most of the times xD
<millerj>
matthuszagh: thanks. do you know is it more common that owners push these into arguments (for override), or some other convention?
<matthuszagh>
evils: aha ok i'll try that
<DigitalKiwi>
sometimes you just gotta type a bunch and it'll go
<matthuszagh>
that worked too. will keep trying. but maybe also worth trying the commit i posted
<DigitalKiwi>
i've had occassions that i was about to say "hey it worked this time" and then it died
<matthuszagh>
wow you've really tested it
<evils>
FWIW, i disabled scripting support in kicad, now the warning i get on starting pcbnew is `ImportError: No module named wxversion` followed by the segfault
<matthuszagh>
millerj: mind posting the specific example? might be easier for me to help
<evils>
so i'm not entirely convinced it's because of wx anymore, but it's still the main suspect, to me it seems to crash during a search (i can type in a term, wait half a second and it crashes)
<DigitalKiwi>
09:34 DigitalKiwi: Place -> Footprint -> *click on layout* -> footprint window -> type "dip 14" or w/e it usually crashes before i finish > segfault
<DigitalKiwi>
evils: did you see that they mention that error on the wiki?
<evils>
i'm seeing FP_CACH::Load() most if not every time near the start of the core dump, and not every time, _int_malloc very close to the start
<DigitalKiwi>
at least i think it did
<evils>
DigitalKiwi: if it's something you linked on the previous discussion, probably and dismissed it and forgotten it; otherwise, no
<DigitalKiwi>
so that's actually making it seem more likely to be the specific cause, even if it is just a warning
<evils>
DigitalKiwi: i'm using 3.0.4
MichaelRaskin has joined #nixos
<DigitalKiwi>
hm
toppler has quit [Ping timeout: 265 seconds]
<evils>
DigitalKiwi: giving it a go with 3.1.2 (wxGTK31), i think i tried it before, but compiling again :P
<DigitalKiwi>
wouldn't the problem be that somehow it's using 3.0.1 from somewhere else
jonringer has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
so confusing, and i thought nix was supposed to be reproduceable! :P
<matthuszagh>
millerj: so you added the first suggestion and now trying to see if the overlay also works if someone wanted that?
<matthuszagh>
not sure i completely understand
pi3r has joined #nixos
<matthuszagh>
the overlay would be personal, i.e. not part of the pr. just the first suggestion would go in the pr
toppler has joined #nixos
myskran has joined #nixos
<millerj>
matthuszagh: I'm planning to default the extraArgs to be empty, but want to test that a reasonable overlay/override could be used for extraArgs changes. If there's not an easy way for an end user, then it feels an override is more straightforward.
<millerj>
To expect an end user to duplicate the buildCommand replacement is messy.
<matthuszagh>
millerj: you could concatenate the extra build command to the original build command
myskran has quit [Ping timeout: 265 seconds]
<matthuszagh>
something like buildCommand = old.buildCommand + '' ... '';
<matthuszagh>
i think that would work
bvdw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Ericson2314 pushed commit from @angerman to release-19.09 « openssl: Fix cross to Windows »: https://git.io/JeEnc
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-unstable-small: https://git.io/JeEnC
<millerj>
matthuszagh: normally that would. here the edit is about half way through a 13 line build command, which needs later replacements (so can't easily be the tail end unfortunately).
<pi3r>
clever: I have found my problem. I need to pass pkgs from one derivation to the other to ensure both are built with the same haskell package set (as commented in the gist)
gxt has joined #nixos
<matthuszagh>
millerj: hm ok then i'm not sure how to do it
FRidh has joined #nixos
<millerj>
matthuszagh: no worries, I can ask the commenter if they have a suggestion on the idea. thanks for the suggestions.
<matthuszagh>
sure no worries
wormwood has joined #nixos
barrucadu has quit [Remote host closed the connection]
<Ronan50>
Well sure, I could, but systemd-nspawn is made for this. Can nixos-container really only start nix environments?
<slack1256>
There is also a buildFhsEnvironment options when you want something more integrated to nix, don't care about the isolation and you are only after the FHS hierarchy.
<slack1256>
I can be wrong but I think so, yes.
<{^_^}>
[nixpkgs] @peti merged pull request #68009 → ghcjs: fix build and disable profiling by default → https://git.io/fjpjL
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JeEnh
lord| has joined #nixos
<{^_^}>
[nixpkgs] @kirelagin opened pull request #72008 → nixfmt test → https://git.io/JeEce
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @WilliButz to release-19.09 « nixos/i18n: use str instead of string for consoleKeyMap »: https://git.io/JeEcS
<p01ar>
ic
jonge has quit [Quit: quit]
root4 has joined #nixos
jonge has joined #nixos
<p01ar>
did you check it respects all provided -L 's on freebsd?
<p01ar>
dir : libdir was originally a hotfix for that
neiluj has joined #nixos
<root4>
why when i trying to push commits using git, gui appears?
smove_ has quit [Ping timeout: 245 seconds]
<p01ar>
also one thing i will say is i worked hard to make sure the build files were simple and easy to read
<p01ar>
some things my brain just cant process x
<p01ar>
xd
smove has joined #nixos
SOO7 has quit [Quit: Quit]
<root4>
guys, how remove gui, whe pushing commits?
<Ericson2314>
the libsolidum thing i made too complex
<Ericson2314>
one sec
u0_a133 has quit [Read error: Connection reset by peer]
<Ericson2314>
root4: use ssh not https, maybe?
u0_a133 has joined #nixos
<root4>
but there no such issue with other distros
SOO7 has joined #nixos
<root4>
i dont understand, what it is
<root4>
some kind of wallet?
u0_a133 has quit [Read error: Connection reset by peer]
u0_a133 has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
wajsel has joined #nixos
andreas303 has quit [Remote host closed the connection]
<wajsel>
Question regarding SDL2
neiluj has quit [Quit: neiluj]
zupo has joined #nixos
<Ericson2314>
root4 i am not sure sorry
<wajsel>
with nix-env -i SDL2 Am I correct to expect a compiler to find includes automatically or should I give some long path as -I<path>
Philonous has quit [Ping timeout: 276 seconds]
<p01ar>
Ericson2314, made some comments
<wajsel>
for example `gcc hello.cpp -o hello -lSDL2`
<wajsel>
with that I was
<p01ar>
did you try building on bsd btw?
toppler has joined #nixos
nhey_ has joined #nixos
<wajsel>
... I was expecting to find SDL2 headers since I just install SDL2 with nix-env -i SDL2
Philonous has joined #nixos
<wajsel>
is there something else that need to be done to find the includes
<wajsel>
should LD_LIBRARY_PATH be setup?
<p01ar>
and maybe extra_lib_dirs should be added hmm
cartwright has quit [Remote host closed the connection]
nhey_ has quit [Remote host closed the connection]
<tilpner>
,library wajsel
<{^_^}>
wajsel: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
nhey_ has joined #nixos
<root4>
what is the best way to up vlans in nixos?
phreedom_ has quit [Quit: No Ping reply in 180 seconds.]
andreas31 has joined #nixos
cartwright has joined #nixos
nhey_ has quit [Remote host closed the connection]
nhey_ has joined #nixos
<Ericson2314>
@p01ar responded
phreedom has joined #nixos
ris has joined #nixos
<{^_^}>
[nixpkgs] @rycee pushed to master « svtplay-dl: mark as not broken »: https://git.io/JeEcx
<{^_^}>
[nixpkgs] @rycee closed pull request #72011 → svtplay-dl: mark as not broken → https://git.io/JeEcV
<p01ar>
Ericson2314, :)
<{^_^}>
[nixpkgs] @Lassulus opened pull request #72013 → wifite2: init at 2.2.5 → https://git.io/JeEcp
nihh_ has joined #nixos
u0_a133 has quit [Read error: Connection reset by peer]
nalck has joined #nixos
<wajsel>
thanks, I'll have a look at the libraries link
<Scalene>
and I cant seem to figure out how to enable pulseSupport as defined in the nix config
<Scalene>
I tried putting a line like `nixpkgs.config.scream-receivers.pulseSupport = true;` in my configuration.nix
<Scalene>
but it had little effect
<Scalene>
How would I go about enabling this?
u0_a133 has quit [Read error: Connection reset by peer]
u0_a133 has joined #nixos
alexherbo2 has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
<rnhmjoj>
Scalene: you have to "override" the package: it looks like this: environment.systemPackages = [ (scream-receivers.override { pulseSupport = true; }) ]
knupfer has joined #nixos
__monty__ has joined #nixos
b1000101 has quit [Ping timeout: 265 seconds]
<rnhmjoj>
by default it will be enable if pulseaudio is enabled (via hardware.pulseaudio.enable)
knupfer has quit [Client Quit]
toppler has quit [Ping timeout: 264 seconds]
{^_^} has quit [Remote host closed the connection]
<Parlum>
has been 'updated', the useful derivation in that commit has just been deleted. If nix is meant to be used to package libraries, I dont understand how it can fail to support versions. If I had built this when the right version was in nixpkgs, it would be cryptically failing to build now. Or, if I had been aware of nix's inability to handle this, I
<Parlum>
would've been force to pin the nixpkgs version, leaving me with the security vulns that were fixed in that commit
nihh_ has quit [Ping timeout: 268 seconds]
gin_gin has joined #nixos
neiluj has joined #nixos
<neiluj>
thanks rnhmjoj, I'm looking into this :)
<symphorien>
Parlum: I don't really understand. You want xercesc version 3.1.4 ?
toppler has joined #nixos
<Parlum>
I want to be able to specify the dependency of a project as 3.1, which would've updated to 3.1.4 after the commit I linked
<symphorien>
nix does not include a dependency resolver, so you can't. You would have to add a new layer which generates nix files depending on version specifications.
gin_gin is now known as soju
<Parlum>
Right. Are there any examples of that?
<symphorien>
nixpkgs only provides one version of everything to keep the repo maintainable
<symphorien>
I think the haskell subtree of nixpkgs has such a thing, based on hackage
<symphorien>
but it is haskell specific
<Parlum>
I understand that there should only be one version of a 'package', but it seems like the recipe should be able to take a `version` argument where the build process is similar. I'll check out how it handles hackage
soju has quit []
<symphorien>
version + hash
gin_gin has joined #nixos
<symphorien>
this detail makes it impractical
<Parlum>
What do you mean?
thc202 has joined #nixos
<Parlum>
Like with xercesc as an example, why would it have been impractical to allow a `version` override?
<symphorien>
and, Parlum, by the way: you can make any recipe take a version: xercesc.overrideAttrs (old: { src = fetchurl { whatever depending on version })
<Parlum>
I dont want to have to specify a url and hash just to change versions :D
<symphorien>
you can't meaningfully override the version without the hash
<Parlum>
Yes, but the definition could contain it
<Parlum>
Because it already did before it was deleted XD
<symphorien>
the hash depends on the version
<symphorien>
and a dependency resolver can't compute the hash
gin_gin has quit [Client Quit]
<Parlum>
Lemme try it out, I could be missing smthn
<symphorien>
well it could, but it would be impure
soju has joined #nixos
<symphorien>
which defeats the point of nix
b has joined #nixos
<symphorien>
<Parlum> Because it already did before it was deleted XD << I don't see that
soju is now known as gin_gin
<Parlum>
You dont see what?
<symphorien>
that it used to take a version as argument
<Parlum>
Oh no, it used to contain the old hash, now it contains the new one. Like I said, I'm going to write an example of what I'm thinking
<Parlum>
Might realise why it doesnt work :)
gin_gin is now known as soju
ArdaXi has quit [Ping timeout: 246 seconds]
ArdaXi has joined #nixos
astrall33 has joined #nixos
u0_a133 has quit [Ping timeout: 240 seconds]
foxmean has joined #nixos
soju has quit []
myskran has joined #nixos
soju has joined #nixos
myskran has quit [Ping timeout: 252 seconds]
v0|d has quit [Ping timeout: 268 seconds]
u0_a133 has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
gleber_ has quit [Quit: Connection closed for inactivity]
joapet99 has quit [Quit: Leaving]
MmeQuignon has joined #nixos
<otwieracz>
After upgrading to 1909 all my containers stopped working:
<otwieracz>
Oct 26 14:16:51 pioneer systemd-udevd[10665]: vb-tiddly: Process '/nix/store/764zmyr4wkczr9h4x36jyhyqfwa877jn-procps-3.3.15/bin/sysctl net.ipv6.conf.enp1s0.use_tempaddr=1' failed with exit code 255.
<otwieracz>
Any ideas?
<neiluj>
for some reason I could install my nixos, the error went away
jollyjester has joined #nixos
<jollyjester>
yo, how can i set up an overlay, specifically one that i can use to install unstable packages using home-manager
<jollyjester>
in what directory and file am i supposed to make a overlay in and how can i link it to my configuration, if there's a need to do so
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exarkun has joined #nixos
exarkun is now known as Guest6818
logzet has joined #nixos
nalck has quit [Ping timeout: 240 seconds]
Guest6818 has quit [Client Quit]
palo has quit [Quit: WeeChat 2.4]
nhey_ has joined #nixos
palo has joined #nixos
chloekek has joined #nixos
xkapastel has joined #nixos
<jollyjester>
so how am i supposed to make home-manager install unstable packages?
b1000101 has quit [Remote host closed the connection]
b1000101 has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
kreisys has joined #nixos
astrall33 has quit [Ping timeout: 265 seconds]
<wedens[m]>
home-manager as a NixOS module?
tokudan has quit [Quit: Dunno.]
<wedens[m]>
there is nixpkgs.overlays option in HM itself
<wedens[m]>
I use system-wide overlays in nixos though
exarkun has joined #nixos
tokudan has joined #nixos
nhey_ has quit [Remote host closed the connection]
nhey_ has joined #nixos
neiluj has quit [Quit: neiluj]
Fare has joined #nixos
toppler has joined #nixos
exarkun has quit [Client Quit]
exarkun has joined #nixos
<exarkun>
On one machine, seemingly at random, out of five, the timesync service fails because nothing ever bothered to create its state directory
palo has quit [Quit: WeeChat 2.6]
<exarkun>
What happened to determinism and repeatability
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wedens[m]>
"state". that's what happened to "determinism and repeatability"
<exarkun>
all fresh deployments
zupo has joined #nixos
<exarkun>
I get it, state sucks, but this is the easiest case. It's quite disappointing.
<tokudan>
exarkun, how does the state directory get created on those 4 systems that work?
<exarkun>
tokudan: I have no idea
<exarkun>
tokudan: Nothing I went out of my way to do
<tokudan>
maybe timesyncd is missing a dependency on something that creates the directory?
<exarkun>
I deployed the same nix expression, apart from trivial differences like static ip assignments, to all five servers
<tokudan>
looks like systemd-timesyncd has StateDirectory=systemd/timesync set, which means it should be systemd's job to create that directory
Ariakenom has joined #nixos
<exarkun>
in the changelog I see that systemd-timesyncd has some interactions between stateVersion, 19.03, and 19.09
<exarkun>
so I looked at grub.cfg
<exarkun>
and I see some joker installed 19.03 on one server and 19.09 on all the rest
<adamt>
Is this perhaps a 19.03 system upgraded to 19.09, without system state version set? Because that also makes timesyncd fail on startup.
<exarkun>
(but told me they installed 19.09 on all of them)
<exarkun>
so, yea.
<srhb>
"stateVersion? probably not important!"
knupfer has quit [Remote host closed the connection]
palo has joined #nixos
jollyjester has quit [Ping timeout: 276 seconds]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvdw has quit [Read error: Connection reset by peer]
nhey_ has quit [Remote host closed the connection]
nhey_ has joined #nixos
bvdw has joined #nixos
nhey_ has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
logzet has quit [Remote host closed the connection]
chloekek has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
zupo has quit [Client Quit]
alexherbo29 has joined #nixos
alexherbo2 has quit [Ping timeout: 265 seconds]
chris__ has joined #nixos
xd1le has quit [Quit: leaving]
endocrimes has quit [Quit: running from the computers]
endocrimes has joined #nixos
<chris__>
Hello! I'm running a bit low on space on my SSD. And I was wondering, instead of doing a garbage collect and potentially removing old packages that I MIGHT need. Could I maybe copy the store to a second hard drive, and then setup a local nix (binary cache?)? Because fetching from the second hdd will be faster than going over the internet..
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #nixos
<simpson>
Sounds like a lot of work. Are you on metered bandwidth?
<chris__>
simpson: No, I just remember a lot of packages being removed after garbage collect. Something about the packages not being in the "gc roots"? Haskell stack packages that is.
ng0 has quit [Client Quit]
ng0 has joined #nixos
<chris__>
Isn't it as simple as cp /nix/store /mount/hdd2/nix/store and then just `nix-serve --something /mount/hdd2/nix/store`?
<simpson>
chris__: Ah, Haskell, and you don't want to burn more CPU rebuilding.
<simpson>
It's something like that, yeah. I think you'll have to set up keys on the other machine and trust it from your first machine, too.
ng0 has quit [Client Quit]
ng0 has joined #nixos
<chris__>
simpson: oh it's the same machine. Small SSD - but large second HDD. My main concern is just about files being potentially overwritten/corrupted? But from my understanding /nix/store is meant to be immutable?
ng0 has quit [Client Quit]
mmlb8 has joined #nixos
ng0 has joined #nixos
<simpson>
File corruption is always a danger, period. The immutability of the store protects from overwriting, but usually that immutability is enforced partially by the NixOS runtime, and I'm not sure whether that can be done for multiple stores.
mmlb has quit [Ping timeout: 240 seconds]
abathur has quit [Quit: abathur]
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #nixos
u0_a1331 has joined #nixos
kreisys has joined #nixos
<MichaelRaskin>
nix-push could actually be not so much work
toppler has quit [Ping timeout: 276 seconds]
<chris__>
MichaelRaskin: I'll take a look thanks!
<MichaelRaskin>
Also look what nixos-install does: nix copy or something like that
<MichaelRaskin>
It basically needs to copy a known list of paths into another store on the same machine, sounds similar
u0_a133 has quit [Ping timeout: 268 seconds]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toppler has joined #nixos
smw_ has joined #nixos
<DigitalKiwi>
nh2_: has a really good nginx cache module
<DigitalKiwi>
you can trivially modify that to just be part of your configuration and not use amazon
<smw_>
Hi all. Is there a guide somewhere on making your own app not part of nixpkgs? Is there also a guide on how to use local (to the git repo) files instead of any sort of “fetch”. I have a nixos machine and need to write a small go program which will run in the system. It is not quite config, but close.
<DigitalKiwi>
(if you can't figure it out i can post mine)
<DigitalKiwi>
there's also nix-serve
<smw_>
In a perfect world, this app would go in the same git repo as my nixos config.
<mdash>
smw_: you can just specify paths as source for builds, whether relative to the nix file or absolute
<smw_>
mdash: thanks. That makes sense.
<DigitalKiwi>
"./."
<mdash>
smw_: so you can write something like `buildGoModule { name = "foo"; src = ../apps/my-go-app; ...}`
<smw_>
mdash: and in my nixos config I have access to “pkgs”. So. Guess I use that to get buildGoModule?
<mdash>
smw_: yep
<mdash>
this is pretty common fwiw
<smw_>
mdash: yeah, it is still kinda hard for me to find documentation on “common” usecases.
<smw_>
mdash: I feel like nix would take over the world if it had documentation and compiler errors on par with Rust :-)
<mdash>
smw_: well, maybe if it got funding on par with rust... :)
<chris__>
DigitalKiwi: thanks that project by nh2 looks ideal!
<smw_>
mdash: hah, fair enough
<DigitalKiwi>
chris__: i'm quite pleased with it been using it as much as i can for...most of this year i think
<DigitalKiwi>
nh2_++
<DigitalKiwi>
<3 nh2_
<DigitalKiwi>
:(
<nh2_>
:)
<DigitalKiwi>
ooh now it should work right?
<DigitalKiwi>
<3 nh2_
<DigitalKiwi>
grr
<DigitalKiwi>
i know it won't work if you hvaen't spoken recently right?
<smw_>
mdash: Is there a way to nixos-rebuild from not /etc/nixos? Or, to see what a system would look like while building as non-root?
<smw_>
mdash: right now I am editing my files in place in /etc/nixos and really want to stop doing that
<DigitalKiwi>
smw_: my /etc/nixos/configuration.nix only has a few lines it includes other files, you can change that one line. mine points to a git repo in my home...
<DigitalKiwi>
(i'm not sure how that is for security but...)
<smw_>
DigitalKiwi: that would do it
<DigitalKiwi>
(you can also do it in the same folder so the permissions are fine, but basically yeah just include a different file)
<DigitalKiwi>
s/include/import/
b1000101 has joined #nixos
<jD91mZM2>
Never mind my question, I read the docs and it's to prevent building during evaluation and vise versa apparently. Cool!
<smw_>
DigitalKiwi: I already import many files, didn’t think of using it to relocate the directory.
nalck has joined #nixos
noudle has quit []
Soo_Slow has joined #nixos
moet has joined #nixos
<DigitalKiwi>
i'm not good at nix so i have to do whatever is the least effor least complicated thing. sometimes it's the simple solutions that are the easiest to miss. i know i miss them a lot the first...few times around, often
<smw_>
Oh, one more question for the room. I setup luks encryption and dropbear in the initrd to do remote unlock. However, because the interface is up, two things are breaking: 1. systemd-udevd’s renaming of the interface from eth0 to eno1. 2. DHCP is failing to bring up the already enabled interfaces causing systemd to wait an extra 1m30s. Has anyone seen this before? Is there a way to bring down the interface before stage2 of the boot starts?
<joepie91>
can someone tell me how to disable the post-install tests for pycurl? I can't rebuild my system because the tests keep failing and it's starting to drive me crazy
<smw_>
Also, even if I did bring it down, systemd-udevd would rename it meaning I would need to configure DHCP on both eth0 and eno1 which would just cause the problem again.
<DigitalKiwi>
smw_: i may be talking out of my rear but i feel like i've read you have to use static ip with dropbear
johnw has quit [Ping timeout: 276 seconds]
<smw_>
DigitalKiwi: well, it works without it, just causes problems :-)
<DigitalKiwi>
or, at least, if nothing else there are limitations to the ways you can configure an interface
<DigitalKiwi>
i never figured out how to make the ssh keys stay :<
<smw_>
Hah, I haven’t done that either…
<smw_>
it is on the list
<smw_>
DigitalKiwi: this is a home lab project of sorts. Infinite things to configure
* DigitalKiwi
knows that feeling
<smw_>
DigitalKiwi: https://pastebin.com/c7STL3XT, it is timing out doing address configuration. Which is funny because the address is configured before stage2 even starts
<DigitalKiwi>
i started to rewrite my nix-configs to clean them up...that was 5 months ago
<smw_>
DigitalKiwi: so the fact an address is already configured is breaking address configuration
<DigitalKiwi>
huh
chris__ has quit [Ping timeout: 265 seconds]
<DigitalKiwi>
i'm probably not much help it's been months since i looked at it
<simpson>
DigitalKiwi: I keep having the feeling where I want a framework, but not *that* framework~ Particularly with home-manager.
toppler has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos
ddellacosta has joined #nixos
realrokka has joined #nixos
<DigitalKiwi>
i have it figured out how i want to do it i think it's just boring and not incredibly high on the list of things that are important or bring a great deal of benefit from what i have and i got busy with other things
xkapastel has quit [Quit: Connection closed for inactivity]
kp__ has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tokudan>
smw_, that is a very good question that I don't know the answer to
<smw_>
Ugh, I now want documentation on what call package does. Time to do a bunch of searching in nixpkgs...
tsrt^ has quit [Read error: Connection reset by peer]
<tokudan>
smw_, what I did to find out about callpackage is to look at the pkgs/top-level/allpackages.nix. that's where all the regular packages are defined and where you see the "mbuffer = (callPackage ../../tools/whatever/file.nix {})"
<tokudan>
smw_, a nice trick is that you can "replace" dependencies in the {}, for example you could replace openssl in mbuffer by using callPackage ./mbuffer.nix { openssl = openssl_other_version; };
<tokudan>
smw_, and openssl_other_version can of course be another callPackage (or probably should be, to make any sense)
<smw_>
Makes sense
<smw_>
DigitalKiwi: huh… took awhile to wrap my head around it. Looks like callPackage is the scope all packages use to depend on each other.
<smw_>
Or I understand nothing
<smw_>
the latter is more likely
b1000101 has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
smw_ has quit [Quit: Computer has gone to sleep]
jco has joined #nixos
smw_ has joined #nixos
<jco>
hello ! I'm following the nixos installation manual but I get an error when I format my partitions for the UEFI :
<jco>
when I enter parted /dev/sda -- set 3 boot on I get Partition does not exist
fusion809 has quit [Remote host closed the connection]
<tokudan>
jco, then you do not have the partition 3, which should be your EFI system partition, created in the command directly before that
<jco>
tokudan: right, i didn't want to add the swap partition
tmplt has joined #nixos
smw_ has quit [Ping timeout: 252 seconds]
<tokudan>
jco, then figure out the partition number for your ESP and use that number instead of 3 :)
<jco>
thanks this is it !
<jco>
it works :)
<tmplt>
I need package version 1.3.0 for `services.murmur` which hasn't been backported to 19.09. How should I override the version if the service doesn't expose a package option? This is with nixops.
Soo_Slow has quit [Remote host closed the connection]
<tokudan>
tmplt, basically you need to override the package that services.murmur is using globally
<tokudan>
tmplt, if you have multiple systems in your nixops config i'm actually not sure how exactly this could affect other systems, so test it first
<tmplt>
Okey, I'll check that out
fendor has joined #nixos
<tmplt>
tokudan: ah, so I would use `nixpkgs.config.packageOverrides` here?
drakonis has joined #nixos
<tokudan>
tmplt, in the scope of the system you're defining, yes
<tmplt>
Alright, thanks
<tokudan>
i haven't done that myself, so I cannot give you any hands-on experience, but that should be the correct tool
<tokudan>
(or at least I hope that someone else starts yelling at me soon if that's wrong)
toppler has quit [Ping timeout: 268 seconds]
nalck has quit [Quit: nalck]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 240 seconds]
fresheyeball has joined #nixos
smw_ has quit [Quit: Computer has gone to sleep]
toppler has joined #nixos
smw_ has joined #nixos
aleph- has joined #nixos
chris__ has joined #nixos
smw_ has quit [Ping timeout: 276 seconds]
freeman42x has joined #nixos
<Orbstheorem>
Is there a fetcher that “pulls a specific file(s) from a git repository”?
<tilpner>
Orbstheorem: AFAIK that can't be done with git in general
<tilpner>
Orbstheorem: You have the option of fetching the entire repo, and then using just that one file
<tilpner>
Orbstheorem: Or you can use a provider-specific API to fetch it without fetching the entire repo
<DigitalKiwi>
could you put the specific files in a tar and fetch that ?>.>
* DigitalKiwi
doesn't know if it's yours or others repo
melling has joined #nixos
u0_a1331 has quit [Read error: Connection reset by peer]
Parlum has quit [Ping timeout: 260 seconds]
pie_ has quit [Ping timeout: 245 seconds]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
moet has quit [Ping timeout: 276 seconds]
Heirlung has quit [Ping timeout: 245 seconds]
Heirlung has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
fendor_ has joined #nixos
dm9 has joined #nixos
smw_ has joined #nixos
toppler has joined #nixos
omnipotententity has quit [Quit: Leaving]
u0_a1331 has joined #nixos
moet has joined #nixos
drakonis has joined #nixos
cosimone has joined #nixos
drakonis_ has quit [Ping timeout: 268 seconds]
FRidh has quit [Quit: Konversation terminated!]
moet has quit [Ping timeout: 265 seconds]
<jco>
is there a package to insatll all the common build tools like gcc or gnu make ?
drakonis_ has joined #nixos
<Yaniel>
they are part of stdenv
drakonis has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
Okinan has joined #nixos
<jco>
thanks, this did it ! I was also looking for tools like cc or as
silver has joined #nixos
jonringer has joined #nixos
<jco>
they are present in most distributions but couldn't find it on nixos
toppler has quit [Ping timeout: 252 seconds]
<Yaniel>
cc is usually just an alias to gcc (or clang)
<jco>
okay, I can make one then. but what about as?
smw_ has quit [Quit: Computer has gone to sleep]
smw_ has joined #nixos
<MichaelRaskin>
Binutils has as
xkapastel has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.4]
toppler has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
you probably don't need to make an alias the compiler should do that for you
<DigitalKiwi>
if you type 'cc' on a system that doesn't have a c compiler in path it'll tell you packages that provide one
smw_ has quit [Ping timeout: 268 seconds]
evelyn has quit [Quit: WeeChat 1.6]
<jco>
okay, I need these because I'm installing packages through opam
markasoftware has quit [Ping timeout: 250 seconds]
<symphorien>
nixpkgs is slowly converting to a new architecture
smw_ has joined #nixos
_pash has joined #nixos
ng0 has joined #nixos
<jco>
cool! is it an independently managed nix package?
<jco>
I couldn't find much information on it
<symphorien>
no I mean, ocaml 4.08 is at ocaml-ng.ocamlPackages_4_08.ocaml
<symphorien>
all the good stuff is hidden under the "ocaml-ng" attribute in nixpkgs
<symphorien>
at the top-level there is only legacy packages
<jco>
oh is it possible to search it throught the package list in nixos website?
<symphorien>
apparently not
<symphorien>
that's unfortunate
<jco>
I can do nix-env -i of it ?
<symphorien>
you can do nix repl "<nixpkgs>"
<symphorien>
then type ocaml-ng.<tab><tab>
<symphorien>
and no on
<symphorien>
*and so on
<symphorien>
nix-env -qaP and a combination of other options should also be able to do it, but I can't remember the options
<Guest90267>
My wifi seems to stop working. I'm using network-manager. The last rev in my boot list that seems usable is e19054ab3cd5b7cc9a01d0efc71c8fe310541065 (Sep 9) but I didn't try to figure out yet which commit causes the problem. I had a broadcom card. There doesn't seem to have been broadcom changes recently. I thought at first that it was because of the network-manager service rename but that should be fixed now.
<Guest90267>
I don't have any errors in the journalctl log for NetworkManager.
Fare has quit [Ping timeout: 264 seconds]
dm9 has quit [Quit: WeeChat 2.6]
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #nixos
Fare has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
<tokudan>
Guest90267, check the output of dmesg to see if you see any errors there and if that doesn't yield anything, try journalctl -b and look for anything that could indicate an error in that area
b1000101 has joined #nixos
moet has joined #nixos
<Guest90267>
I see some dhcpcd errors at least
chris___ has joined #nixos
fendor_ has quit [Ping timeout: 245 seconds]
toppler has joined #nixos
<Guest90267>
it's weird that the wifi works at first but stops after a couple of second. I tried again to try to get the "date" when it breaks to check the logs
noudle has joined #nixos
chloekek has joined #nixos
moet has quit [Client Quit]
wildtrees has quit [Quit: Leaving]
wildtrees has joined #nixos
<chris___>
I'm trying to define a container declaritively, according to the manual I need to set a "hostAddress". This option does not seem to be correct though? The error I'm getting is: "he option `containers.example.hostAddress' defined in `<unknown-file>' does not exist"
<chris___>
Does anyone have ideas? I've also tried to put it under `networkOptions` (reading the containers.nix from github) - but no luck with this either (similar error message).
ddellacosta has quit [Ping timeout: 265 seconds]
b1000101 has quit [Remote host closed the connection]
<gchristensen>
iirc someone was tlaking about tape storage here the other day. are they here? anyone remember who that was?
<DigitalKiwi>
Guest90267: i've been having that problem too
<Guest90267>
DigitalKiwi: oh really? Did you figure it out?
<DigitalKiwi>
(crap wifi on broadcom) but i think a lot of it was dhcpcd and networkmanager were both conflicting somehow and didn't before? i did this networking.dhcpcd.enable = false;
<DigitalKiwi>
and that helped and i also might have changed the driver i'm using...
marusich has joined #nixos
tmplt has quit [Ping timeout: 265 seconds]
<Guest90267>
oh yeah. dhcpcd probably shouldn't run if network-manager is running.
<DigitalKiwi>
i don't know if the wireless.enable one is necessary idk it was already there
<Guest90267>
there was some useDHCP changes recently too.
<DigitalKiwi>
err, as in i had it there already, so probably
<Guest90267>
thanks I'll try those.
<meatcar>
Is it possible to mutate the .git directory during any of the build phases in a mkDerivation? I'm trying to update the derivation for a package which has submodules, but the .gitmodules aren't available right away for fetchgit's fetchSubmodules to run, and need to be set-up during build.
<DigitalKiwi>
it almost seemed like the default changed from enable being false to true
<DigitalKiwi>
Guest90267: hmm, actually, thinking more about it, i think it was running before, so that isn't what changed, but that it running at the same time as networkmanager without causing problems...
<DigitalKiwi>
silly computers being programmed by humans to do weird stuff
toppler has quit [Ping timeout: 268 seconds]
ng0_ has joined #nixos
<Guest90267>
DigitalKiwi: thanks for the help. Setting `networking.dhcpcd.enable = false;` and `networking.useDHCP = false;` seems to have fixed the problem for me.
fendor_ has joined #nixos
<DigitalKiwi>
nice
<exarkun>
Is there any support in nixos for configuring zfs pools? I see that pre-existing zfs filesystems can be mounted from pre-existing pools. Do pools and filesystems have to be created manually, imperatively, interactively rather than declaratively?
<exarkun>
thanks. I'm just looking for zfs for extra storage, not for zfs-on-root.
johnnyfive has quit [Ping timeout: 268 seconds]
<smw_>
exarkun: you declaratively implement mounting and whatnot. But the actual creation is imperative. Not sure you would want to do otherwise unless doing it at scale to many identical machines.
<jco>
thank you symphorien! I'm building ocaml v4.08, so far it is good :)
lord| has joined #nixos
<gchristensen>
+1 having nixos manage my datasets would be frightful
fendor_ has quit [Quit: Leaving]
Heirlung has quit [Ping timeout: 276 seconds]
<tokudan>
gchristensen, same for me. i've actually got a problem with services that just create their own directory, as i've got a server with an encrypted zpool where I have to manually login, decrypt it and then start the services
<gchristensen>
ah
<tokudan>
gitolite starts up every time, i have to stop it, destroy those directories, mount the zpool and then start gitolite again
<tokudan>
still lacking a decent idea to prevent those services from starting
<gchristensen>
I think you can wait for certain paths to appear in the unit
Heirlung has joined #nixos
<smw_>
tokudan: you can modify their systemd configurations to depend on disks being available.
<smw_>
tokudan: nixos makes modifying systemd configurations easy. Although to be fair, systemd has its own system as well for this :-)
<tokudan>
smw_, hmm... yeah, looks like systemd automatically creates units for those mounts, even if i mount them manually
waleee-cl has quit [Quit: Connection closed for inactivity]
mounty has quit [Ping timeout: 246 seconds]
Zer0xp has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.4]
cosimone has quit [Quit: Terminated!]
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #nixos
Fare has joined #nixos
<DigitalKiwi>
gchristensen: did you see my message on signal about nixops
<DigitalKiwi>
oh and btw everyone should use signal thank you
mounty has joined #nixos
<jco>
indeed, but my friends use whatsapp :(
<DigitalKiwi>
that's horrible
<jco>
and messenger ^^
<DigitalKiwi>
i'm still trying to figure out a way to get people to :<
vesper11 has joined #nixos
<DigitalKiwi>
"this is the preferred method of contacting me" only works so well if people don't really want to talk to you that much to begin with :(
<DigitalKiwi>
and so many people don't understand the reasons to or they don't care
<aminechikhaoui>
i thought whatsapp used the same encryption protocol as signal ?
<DigitalKiwi>
and i probably sound like some sort of radicalist trying to explain it
vesper has quit [Ping timeout: 264 seconds]
rawtaz has joined #nixos
rawtaz has quit [Client Quit]
<Yaniel>
whatsapp uses the same protocol yes
<DigitalKiwi>
it is/was, but, eh, the government is trying to make them give a back door/mitm (and they might already have if i have correct information shared keys with governments)
<MichaelRaskin>
Also, Signal is completely horrible
<Yaniel>
or at least they say they do
<Yaniel>
not that it matters if the app itself is backdoored
<DigitalKiwi>
how so? it used to be barely useable but now it's as good as anything
<MichaelRaskin>
Without Google Play it is nominally installable but consumes more battery than basically anything else, combined
MarcWeber has joined #nixos
<jco>
hey! anyone using kde with nixos?
<DigitalKiwi>
it's my default sms app eventhough nobody uses it that i textheh
MarcWeber has quit [Disconnected by services]
* DigitalKiwi
raises hand at jco
<MichaelRaskin>
And it doesn't _just_ wants your number, desktop signal seems to break if I wipe Signal from phone
<jco>
i'm asking this because i get an ugly visual bug:
<AmandaC>
desktop signal is just a remote view into the mobile one, isn't it?
<infinisil>
I'm rooting for Matrix
<DigitalKiwi>
i mean, yeah? i wouldn't expect it to keep working, though it is amusing that i have 3 signal numbers that i don't control the number for anymore...
<emily>
AmandaC: no
<emily>
it works while your phone is off
<DigitalKiwi>
AmandaC: it can't send sms
<MichaelRaskin>
DigitalKiwi: Well, it puts it above Telegram in clinginess, maybe below WhatsApp
<emily>
unlike Telegram it has encryption that is not actually a joke
<MichaelRaskin>
I think its default number-binding behaviour is weaker, though
<DigitalKiwi>
i'm just sad the desktop app doesn't have voice/video calls
<MichaelRaskin>
(and you cannot pin it in any other way)
<DigitalKiwi>
but it looks like they plan to, there is a setting to enable/disable access to mic/camera
<DigitalKiwi>
it is unfortunate that it requires a phone number
<DigitalKiwi>
mshelton is a good follow on twitter btw
<DigitalKiwi>
(there are like 2-3 other ones on the same topic in that paragraph)
<tokudan>
gchristensen, so... systemd paths do not seem to work for my issue. apparently if systemd doesn't know how to ensure that a path is available, it's just ignored as a requirement.
ng0 has quit [Ping timeout: 260 seconds]
<jco>
do you have this visual glitch too DigitalKiwi?
<DigitalKiwi>
i haven't noticed anything other than screen tearing and that's not specific to kde for me
abathur has joined #nixos
mrCyborg has quit [Read error: Connection reset by peer]
<AmandaC>
jco: that's your fairly standard designer-doesn't-account-for-other-languages-being-longer issue you'll see in a lot ofplaces. Can you make the window bigger to fix it?
<AmandaC>
if not, you'll probably just have to make an issue on the KDE bug tracker
tsrt^ has joined #nixos
ng0 has joined #nixos
<DigitalKiwi>
have you considered not being french
rardiol has joined #nixos
<jco>
everytime i go to freenode and someone realize i'm french i get jokes lol
<rardiol>
Hi. My pulseaudio isn't working and I suspect it has something to do with session-c1.scope failing to start and XDG_RUNTIME_DIR not being set. Who/when is supposed to set XDG_RUNTIME_DIR?
<gchristensen>
jco: ouch. we have lots of French people here :)
<AmandaC>
There are dozens of them?
<gchristensen>
sure
<DigitalKiwi>
nothing wrong with being french
cosimone has joined #nixos
shibboleth has joined #nixos
shibboleth has quit [Remote host closed the connection]
<DigitalKiwi>
other than i failed french :<
shibboleth has joined #nixos
<jD91mZM2>
Hello again, I am trying to add a default.nix using buildRustPackage for a program of mine that doesn't seem to be easily compiled with carnix/crate2nix. I'm getting a little stuck since it forces me to specify cargoSha256 and it'd be a little hard to maintain that if I had to update that after every commit that changes the Cargo.lock... Is there any way to tell buildRustPackage not to verify the
<jD91mZM2>
lock file?
toppler has quit [Ping timeout: 268 seconds]
<symphorien>
not that I know
<jD91mZM2>
Alternatively, how is the cargoSha256 computed before being compared? Can I reproduce this and fill in nix with all the values it wants?
<symphorien>
it is the hash of the archive generated with cargo-vendor
<symphorien>
so I guess the answer is no
<symphorien>
In my experience, you don't need to change cargo.lock so often, so maintaining the hash by hand is still reasonable
<jD91mZM2>
Darn. Do you think nixpkgs would accept a PR that adds some "impure" value that sort of bypasses the checks?
<symphorien>
unlikely
<__monty__>
Definitely not.
<jD91mZM2>
I mean as long as it's never actually used inside nixpkgs....
ddellacosta has joined #nixos
<symphorien>
anyway, with the sandbox on, I wonder how you would implement it
<jD91mZM2>
Oh, I assumed fetchurl had some kind of way to disable the hash... Surely?
<symphorien>
but if you want an impure thing, why don't you just use cargo in a nix-shell ?
<jD91mZM2>
Well I wish to be able to use `nix-build <tarball here>`
<symphorien>
jD91mZM2: builtins.fetchtarball, yes, but it's a builtin :)
<symphorien>
you can do "nix-shell tarball here" and add `shellHook = "cargo build; exit 0"
<symphorien>
`
<__monty__>
Maybe a fixed output derivation is what you're after?
<__monty__>
That wouldn't rebuild though of course.
<symphorien>
__monty__: buildRustPackage already has it, but jD91mZM2 does not want to change the hash when the content changes
toppler has joined #nixos
<__monty__>
symphorien: Yeah, but I mean cheat with a dummy fixed output hash.
<jD91mZM2>
symphorien: My main goal right now is that since I can't build the package with carnix/crate2nix I'd push up whatever I build into cachix so people could use the binary cache, if I understand directly
<jD91mZM2>
__monty__: Sounds potentially cool, how can I potentially cheat?
<tokudan>
smw_, the mount requirements are ignored as well if systemd does not know how to resolve them
<__monty__>
You'd have to figure it out. I've never done so because it's a terrible idea.
<smw_>
tokudan: even if you Require= and After= them?
<symphorien>
jD91mZM2: I don't see how buildRustPackage is inferior to crate2nix. When you change your cargo.toml you still have to regenerate the .nix files with crates2nix, no ?
<jD91mZM2>
Thing is, by downloading the source nix already checks revision, hash of contents (which is also a part of the revision but ok i guess), and all the things
<jD91mZM2>
symphorien: That's a damn good point. I must be overestimating how often that changes.
bvdw has quit [Read error: Connection reset by peer]
<symphorien>
well it changes when you update or add dependencies
<jD91mZM2>
Of course, just didn't know how often I'd do that I guess
<symphorien>
My experience is with nix-du, which I release once every 6 months, and I update cargo.toml once every 6 months
bvdw has joined #nixos
<symphorien>
this stays bearable :)
chloekek has quit [Ping timeout: 240 seconds]
<jD91mZM2>
Alright. Thanks!
<gchristensen>
grr I think adding NAT to my server for my wireguard VPN broke a bunch of other things on my host
<tokudan>
smw_, yep, it's just ignored
_pash has quit [Quit: leaving]
<jD91mZM2>
My final idea to cheating the long compilation times that arise when using Rust+Nix is to make a GitLab CI keep pushing stuff to cachix
<__monty__>
Why would it be any longer than rust without nix?
<jD91mZM2>
__monty__: Because Nix wants purity (good) so either you use something like carnix/crate2nix (when it works) to split each crate up and build each crate purely. Oooor... You recompile all dependencies from scratch on every tiny change.
<DigitalKiwi>
same with haskell
<__monty__>
Why not carnix all the deps and then write your more complicated setup by hand? Best of both worlds?
<jD91mZM2>
__monty__: Thing is that most of the time some dep is failing for some obscure reason that only god knows why and I just don't have time to fix
<jD91mZM2>
Days since last problem with crate2nix: 0
<jD91mZM2>
The crate "anyhow" failed this morning because it seemed to interpret something from the build script wrong and tried to compile stuff with the wrong flags
{^_^} has joined #nixos
<gchristensen>
,botsnack
<{^_^}>
Oh thanks, have a cookie yourself
<DigitalKiwi>
<3 nh2_
<manveru>
gchristensen: you bored? :)
<{^_^}>
nh2_'s karma got increased to 1
<DigitalKiwi>
<3 nh2_
<{^_^}>
nh2_'s karma got increased to 2
<manveru>
DigitalKiwi++
<{^_^}>
DigitalKiwi's karma got increased to 3
<gchristensen>
manveru: nah, botsnack is my test command for {^_^} :)
<DigitalKiwi>
tried to earlier and it wasn't here :(
<meatcar>
can someone do a brief review of a mkDerivation? It's my first one, it builds fine, I want to make sure I'm not missing something crucial. It was tricky to figure out, as there were nested depenencies on other repos that had to be linked up. https://gist.github.com/meatcar/fc43f8c1c13f8f9d2709be0c2b7ecf0d
rardiol has quit [Remote host closed the connection]
growpotkin has joined #nixos
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #72046 → c3d: 2018-10-04 -> unstable-2019-10-22; mark unbroken → https://git.io/JeEDc
toppler has joined #nixos
<{^_^}>
[nixpkgs] @nrdxp opened pull request #72047 → eva: init at 0.2.5 → https://git.io/JeEDl
<infinisil>
meatcar: If this is for nixpkgs, you can't use builtins.fetchGit there
<infinisil>
And the pkgs.fetchFromGitHub function supports fetching submodules recursively, so you maybe don't need to do the dependency replacement there
<infinisil>
For nixpkgs as well you should set a `meta.platforms` attribute
<infinisil>
meatcar: And what does ./res contain? Because most directories in $out have somewhat of a conventional structure
<meatcar>
infinisil: the submodule bit was tricky because the repo doesn't keep its submodules in .gitmodules, and I couldn't figure out a way to hook into fetchgit and do it before the building starts.
<meatcar>
infinisil: can I find some docs on the $out structure somewhere? res/ has a systemd service, some config files, translations, etc.
<hpfr[m]>
infinisil: “additional rights when connecting to the nix daemon, such as...” the examples it gives aren’t relevant, but later it says it’s essentially equivalent to root access to the system. I’m not exactly sure what additional rights connecting to the nix daemon entail
<infinisil>
hpfr[m]: I don't know of any other things than the ones listed there
<infinisil>
Oh
<hpfr[m]>
Additional binary caches and unsigned NARs are the only thing?
<infinisil>
But nixos-rebuild always needs root, can't get around that
<infinisil>
It's the only thing I know of
<hpfr[m]>
I have a remote builder that I ssh to my user account for, and I had to add my user account to trusted users on the remote builder to get it to work without an error
<infinisil>
trusted in that context doesn't mean trusted-users
<hpfr>
seems to require trusted users
<infinisil>
But whether the user is root
<hpfr>
I don't think that's the case, because adding @wheel (which my user I ssh into is part of) to trustedUsers on the remote machine fixed the error
<infinisil>
Okay never mind then haha
<infinisil>
I'm trying to do some git blames
zupo has joined #nixos
<infinisil>
Weird!
<hpfr>
I could remove @wheel from nix.trustedUsers and add it to nix.allowedUsers to test it, but the variable naming in nix-daemon.cc is pretty bad if that works
<infinisil>
Maybe I'll ask eelco tomorrow at the hackday :)
<jD91mZM2>
How interesting, especially since I'm not a trusted user on my machine and can build all the things
<infinisil>
Yeah I never saw that error before either
cosimone_ has joined #nixos
cosimone has quit [Ping timeout: 250 seconds]
<hpfr>
infinisil: jD91mZM2: seems like they should add a similar variable called allowed and use that in the wopBuildDerivation case
<hpfr>
rather than trusted
<infinisil>
Feel like that might be the case yes
<tmplt>
I'm in the process of creating a certificate with `security.acme` but I'm not entirely sure how it works. I presume I have to configure nginx (or similar) to present the challanges on the domain I want the cert for, yes?
kvda has joined #nixos
smw_ has quit [Quit: Computer has gone to sleep]
smw_ has joined #nixos
smw_ has quit [Client Quit]
<infinisil>
tmplt: Yeah, are you trying to reimplement services.nginx.virtualHosts.*.enableACME?
<tmplt>
infinisil: yes, I want exactly that, but for `services.murmur`
drakonis1 has joined #nixos
lucus16 has joined #nixos
<tmplt>
Or is there a better approach?
<infinisil>
tmplt: You can just do enableACME and give murmur access to the generated cert
<Shell>
tmplt: I have nginx serve up /var/lib/acme/acme-challenge as /.well-known/acme-challenge on the default domain, and have security.acme put the challenges in there.
<infinisil>
I myself have my name server running on a nixos machine managed by nixops, so that would make this a bit easier
shibboleth has joined #nixos
<infinisil>
s/would/should
<infinisil>
s/easier/simpler
melling has quit [Quit: WeeChat 2.6]
<niso>
hmmm i see
<infinisil>
niso: Today disasm told me he's planning to try get some basic dns provider support into nixops tomorrow on the hackathon
<niso>
infinisil: nice, is there a way to keep updated on the status?
toppler has quit [Ping timeout: 265 seconds]
<infinisil>
Maybe following disasm on github, or watching nixops PR's :)
<niso>
infinisil: initially i was planning on fixing up mentioned Draft, however, while i managed to fix some bugs in it i fear that i won't be able to get the whole thing running alone, what's the best way to proceed? just commend the changes and hope that someone else picks it up?
<niso>
infinisil: will do, thanks
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tmplt>
infinisil: how should I allow murmur to read the generated certs? I'm not sure how 'allowKeysForGoup' should be used.
petercommand has quit [Quit: leaving]
<infinisil>
niso: Not much of an idea, maybe try to discuss with the people who wrote the acme module or the ones who made PR's to extend it
<infinisil>
tmplt: Actually I think there's a problem with this, because the murmur module in nixpkgs doesn't set any group for it, meaning it runs as nogroup
<infinisil>
The idea would be to set allowKeysForGroup to the group murmur is using, but that's bad when it's nogroup
<niso>
infinisil: alright, added it to my todo list, thanks
<tmplt>
infinisil: should I just make a copy of it in using acme's `postRun` instead?
<niso>
infinisil: by chance disasm uses another name on github?
<infinisil>
So the first thing you should do is set `users.users.murmur.group = "murmur"; users.groups.murmur = {}`, then `security.acme.certs.* = { allowKeysForGroup = true; group = "murmur"; }`
<infinisil>
(untested)
toppler has joined #nixos
<infinisil>
niso: Yup
<infinisil>
niso: Ah wait no, it's @disassembler on github
xkapastel has quit [Quit: Connection closed for inactivity]
<niso>
ah, thanks
ng0 has quit [Quit: Alexa, when is the end of world?]
<infinisil>
I suspect that the service doesn't get started again when you change the allowKeysForGroup option. And only when the service starts it fixes the /var/lib/acme/<cert> directory permissions to the new values
<Shell>
iirc there's a bug where keys don't wind up with the right permissions if (1) the key was already generated and then (2) you change allowKeysForGroup at a later time.
<infinisil>
Ah yeah then that's it
<Shell>
(I have no idea whether this has been filed on github, I was busy when I came across it)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
Should be fixable by running `systemctl restart acme-<cert>`, and I think I've actually heard somebody complain about something like this yesterday at nixcon :P
zupo has joined #nixos
<infinisil>
(which unfortunately kind of moved them away from nixos)
<{^_^}>
#48845 (by arianvp, 1 year ago, open): nixos/acme: allowKeysForGroup has no effect after cert is already created
<Shell>
yep
<infinisil>
Oh boy, it was just this issues anniversary without any comments :(
<infinisil>
Maybe I'll take a look at this tomorrow at the hackathon too
<Shell>
sounds like a nixcon hackday project
<Shell>
heh
<tmplt>
infinisil: that worked, apparently
<tmplt>
Could have sworn I already tried that
<{^_^}>
[nixpkgs] @risicle opened pull request #72054 → gdal: add patch for CVE-2019-17545 → https://git.io/JeESX
<infinisil>
Restarting the service?
<tmplt>
yeah
<tmplt>
let me confirm
<infinisil>
And you reset the permissions before that?
toppler has joined #nixos
<tmplt>
infinisil: allowForGroup must be true AND the service has to be rerun to fix permissions
<hpfr>
does anyone know how to get emoji working with the nixos fontconfig module? because I can't seem to get it to work with JoyPixels
<infinisil>
tmplt: The former makes sense as that option controls whether permissions get changed :)
<infinisil>
But good to know restarting it fixes it, I'm testing a permanent fix right now too
<tmplt>
infinisil: well yeah, but having to restart the service doesn
<tmplt>
*isn't an implied required
<tmplt>
was this reported as an issue?
<infinisil>
Not sure I get that
chris__ has quit [Quit: Lost terminal]
<tmplt>
infinisil: if I change allowForGroup I figure things will be rerun and permissions to work, even if allowForGroup was false the previous build
<infinisil>
Ah I see yeah
hpfr has quit [Remote host closed the connection]
jimmyeatworld has quit [Quit: leaving]
kvda has joined #nixos
<hpfr[m]>
How does the nixos option fonts.fonts work? It takes a list of packages, but is there something different about it than listing font packages in environment.systemPackages?
<tmplt>
infinisil: you happen to know how to format murmur.ini's `host` field correctly? Or have you not had to touch it? I'm having trouble getting UDP traffic to work
<infinisil>
(which is not really relevant, but just in case)
<tmplt>
infinisil: okey, but thanks for all the help, any case
<infinisil>
:D
<infinisil>
tmplt: What problem are you having with the host field though?
<{^_^}>
[nixpkgs] @jonringer pushed 5 commits to python-unstable: https://git.io/JeE9T
ng0 has joined #nixos
orivej has joined #nixos
LiuWeiHua[m] has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil opened pull request #72056 → nixos/acme: Fix allowKeysForGroup not applying immediately → https://git.io/JeE9L
<infinisil>
tmplt: ^^ :)
toppler has quit [Ping timeout: 265 seconds]
<tmplt>
infinisil: cheers
b has quit [Quit: leaving]
b has joined #nixos
toppler has joined #nixos
cosimone_ has quit [Ping timeout: 268 seconds]
jonringer has quit [Ping timeout: 240 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<tmplt>
Can I index a list? (or alternatively unpack a list of a single element? `[ foobar ] -> foobar`)
<infinisil>
> lib.elemAt [ "foobar" ] 0
<{^_^}>
"foobar"
<tmplt>
thanks
<infinisil>
> lib.head [ "foobar " ]
<{^_^}>
"foobar "
<infinisil>
Probably a bit simpler for this case ^
knupfer has quit [Ping timeout: 245 seconds]
<Raito_Bezarius>
Hi there, is there any way to do curryfication on attrset function?
<infinisil>
Raito_Bezarius: Not sure what you mean by that
<Raito_Bezarius>
without manually doing a wrapper, let's say I have f = { x, y, z }: do something and I'd like to create g = { x, y }: compute z from x, y and do f {x, y, z}
<Raito_Bezarius>
I know z and I'd like to bind z in my attrset and recreating the signature with { x, y } only
<infinisil>
Raito_Bezarius: Something like this? `g = { x, y }@args: f (args // { z = x + y; })`
<Raito_Bezarius>
Right!
MmeQuignon has joined #nixos
<Raito_Bezarius>
(I always forget to use the @args stuff…)
<infinisil>
:)
<Raito_Bezarius>
Thank you!
orivej has quit [Ping timeout: 265 seconds]
Fare has joined #nixos
Wizek has quit [Quit: Connection closed for inactivity]
gkmngrgn has quit [Ping timeout: 250 seconds]
mbrgm_ has joined #nixos
Ariakenom has quit [Quit: Leaving]
mbrgm has quit [Ping timeout: 276 seconds]
mbrgm_ is now known as mbrgm
toppler has quit [Ping timeout: 268 seconds]
<m1cr0man>
Hey folks. I really want to use https://github.com/NixOS/nixpkgs/pull/63613 on a new deployment I'm doing where I need wildcard certs + dns validation. Is there a way for me to use this change without creating a fork of nixpkgs (as in, applying it from my configuration.nix)?
<{^_^}>
#63613 (by petabyteboy, 18 weeks ago, open): [WIP] nixos/acme: switch to lego and support DNS challenge
<m1cr0man>
The config seems to revolve around cfg.certs being non-empty so I can't just add my own service config for cert management
iqubic has quit [Remote host closed the connection]
jonringer has joined #nixos
drakonis has joined #nixos
tmplt has quit [Ping timeout: 252 seconds]
selfsymmetric-mu has joined #nixos
toppler has joined #nixos
<selfsymmetric-mu>
Hi! How do I define a custom systemd service in NixOS? I'm trying to follow the instructions for setting up a Signal DBus service but /etc/systemd is readonly on NixOS.
<selfsymmetric-mu>
I have the .conf and .service files.
shibboleth has quit [Quit: shibboleth]
jluttine has quit [Ping timeout: 240 seconds]
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
fendor has quit [Read error: Connection reset by peer]