<worldofpeace>
I see them in my store here /nix/store/am5hp7677zk84phkfcriaydh2samw5p9-libreoffice-5.4.6.2/lib/libreoffice/share/xdg
<jtojnar>
yes, apparently the desktop file contains Icon=libreoffice6.0-calc
griff_ has quit [Quit: griff_]
<jtojnar>
so it is not affected by the patch
olto has quit [Ping timeout: 264 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olto has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<jtojnar>
probably needs to be changed to something like sed -re 's@Icon=libreoffice(dev)?[0-9.]*-?@Icon=@'
<worldofpeace>
Ew I just started it and it's themed to windows 98 esqe
<drakonis>
worldofpeace, hmm, sure
joehh has joined #nixos
<joehh>
hello - I'm serving some files over http (using nginx) from the nix store, so the modification time on the files is 1 Jan 1970
<Xal>
I know I can pass the crossSystem argument to a nixpkgs package to get it to cross compile, but can I do this for individual derivations I've written that aren't part of nixpkgs?
<joehh>
This seems to play havoc with caching as the webserver/browser don't seem to detect any changes to the files
<joehh>
is there anyway to make serving files out of nix store play nicely with caches?
<gchristensen>
I don't know if I have an account or not.but if I did, I'd vote you up / theirs sdown
<infinisil>
I actually voted him down with both of my accounts hah
<infinisil>
I'll count this as your downvote
<Xal>
infinisil: how to get shadowbanned in one easy step
tmaekawa has quit [Quit: tmaekawa]
<tmplt>
I've stumbled upon a very weird problem: geant4.v10_0_2 builds correctly on my Arch Linux system, but on my NixOS system the process will fail to resolve geant4.cern.ch when trying to download some required datasets. The domain resolves correctly with dig(1) however, and if done manually, the data can be downloaded. What could possibly cause this? Both systems use Nix 2.0.
<tmplt>
I have no idea how I would find the root cause of this.
<infinisil>
Well, I happen to be logged into account A and instinctively downvoted, but I post NixOS replies on account B, so I switched and couldn't not downvote again, I'm not logging into both accounts just to downvote
<Xal>
the reddit shadowbanning algo doesn't really care about that though does it? :P
<infinisil>
Yeah probably, but I don't think a single instance of voting with the same IP will trigger it
<boomshroom>
infinisil: Do you know if the root problem was anything more than being out of date?
<infinisil>
boomshroom: No idea, I only left a comment on his issue that he should try updating
<infinisil>
And his tone really doesn't make me want to investigate further
<aszlig>
infinisil: sometimes it's useful to have the store read-write ;-)
<aszlig>
for example for testing --repair-path
<infinisil>
gchristensen: And the <screen> sections (e.g. L196) in the same file could be better (</screen> on a new line)
<daveo>
trying to figure out how to add rubymine, goland, idea-ultimate to my configuration.nix
<gchristensen>
infinisil: <link> can't be broken because it adds structural whitespace
<infinisil>
aszlig: Heh yeah
<gchristensen>
infinisil: same with <screen>, <screen>'s contained whitespace is significant, so it leaves it alone
<infinisil>
gchristensen: Oh I see, too bad
<gchristensen>
too bad and super cool at the same time: I've spent over a year hoping such a formatter existed :D
<aszlig>
gchristensen: what about all those option descriptions?
<gchristensen>
aszlig: you mean the ones in the Nix?
<infinisil>
gchristensen: Yeah, nice!
<aszlig>
in the nix?
aarvar has quit [Ping timeout: 240 seconds]
<gchristensen>
aszlig: which option descriptions exactly?
<aszlig>
the description attribute of mkOption
<gchristensen>
those won't be touched, but luckily they don't contain much XML and aren't very long, so the formatting isn't so necessary
<infinisil>
gchristensen: Oh, but couldn't <link>'s be split like <link \n xlink:href="..." \n ><filename>...</filename> ?
<aszlig>
which reminds me... i wonder if it makes sense to automatically make \n\s*\n\s*\n a </para><para>...
<gchristensen>
probably so
<gchristensen>
infinisil: oh, yeah, probably. I dunno, if this is the only problem you can find, I'm not too fussed ;)
<infinisil>
Heh yeah, I just noticed these super long lines in emacs, they stand out a lot in a wide window
<aszlig>
because i always found it odd to write some </para><para> in the middle somewhere without a <para> at the beginning and </para> at the end
<gchristensen>
I agree
<gchristensen>
to both points
<clever>
aszlig: i once tried to fix that, and wound up breaking tests on hydra
<aszlig>
clever: which ones exactly?
<clever>
aszlig: i cant remember which one, but i later tracked down the cause
<clever>
aszlig: the nixos doc generation wraps every description in a <para>${description}</para>
<clever>
and that para tag is not visible in the description script your editing
<aszlig>
clever: yeah, that's exactly the point i'm making =)
<gchristensen>
this sort of thing would likely require ofborg learning how to check the XML is well formatted ...
<{^_^}>
[nixpkgs] @romildo opened pull request #39701 → uget-integrator: init at 1.0.0 → https://git.io/vpBoz
<aszlig>
clever: so in order to start a new para you need to do </para><para> inside the description (where the wrapped part is not visible), so i'd do something like <para>${replaceStrings ["\n\n\n"] ["</para><para>"] description}</para> instead
<aszlig>
gchristensen: hm, does ofborg try to build the manual?
<clever>
aszlig: ive also found that a lot of the special markup just breaks horridly on the site
<clever>
aszlig: let me find an example...
<aszlig>
because generation of that regularly breaks whenever people add/change options and forget to close a tag or use < somewhere outside of tags
<aszlig>
clever: mhm... i know... for example <example/>
<clever>
there is another, where they used some markup to do a manpage(3)
<{^_^}>
→ 84164379 by @danielfullmer: rclone: 1.40 -> 1.41
<{^_^}>
→ 463dbec9 by @dotlambda: Merge pull request #39693 from danielfullmer/rclone-1.41
<niorrr>
i was tring to have a local nixpkgs before but im not sure if i set it up correctly
<etu>
yeah, nix-channel is user specific. And that file is located in the root's channels. Which is where the system uses it's packages from as default if you don't override that. That's why I asked you to run in with sudo :)
<niorrr>
right. but as root i get one-line error messages when typing missing commands, is this expected?
<etu>
What does the message say?
<niorrr>
xyz: command not found
<etu>
hmm, that's not right. If i try to run chromium (which I don't have). I get this:
<etu>
The program ‘chromium’ is currently not installed. You can install it by typing:
<etu>
nix-env -iA nixos.chromium
jperras has joined #nixos
Izorkin has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Remote host closed the connection]
<niorrr>
i may just need to --update, let me see if that works
asuryawanshi has joined #nixos
daveo has quit [Remote host closed the connection]
niorrr has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 240 seconds]
niorrr has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 248 seconds]
<niorrr>
nix-channel --update and reboot seemed to get it to work
<niorrr>
thanks! :)
jrolfs_ has joined #nixos
rauno has joined #nixos
xAFFE has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
selaux has joined #nixos
thc202 has joined #nixos
jrolfs_ has quit [Ping timeout: 260 seconds]
i-am-the-slime has joined #nixos
i-am-the-slime has quit [Client Quit]
niorrr has quit [Ping timeout: 240 seconds]
semilattice has joined #nixos
<semilattice>
Any way to have usable tabs with surf? I want to use it to browse a specific website but there doesn't seem to be a good way to have features like opening a link in another tab
paraseba has quit [Ping timeout: 265 seconds]
boomshroom has quit [Quit: WeeChat 2.0]
<semilattice>
I guess that's not the way though
jperras has joined #nixos
smaret has joined #nixos
joehh has quit [Ping timeout: 268 seconds]
<smaret>
Hi there -- newbie question: where can I find a list of variables such as $out ?
<smaret>
I'm looking for the variable that contains the full path of the build directory of a given package.
jperras has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
fendor has joined #nixos
paraseba has joined #nixos
ckauhaus has joined #nixos
jethroksy has quit [Ping timeout: 248 seconds]
periklis has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
paraseba has quit [Ping timeout: 255 seconds]
semilattice has quit [Ping timeout: 276 seconds]
asuryawanshi has quit [Remote host closed the connection]
<zybell_>
smaret: . or $(pwd) . Or do you need the *install* dir?
<{^_^}>
→ d207e043 by Yury G. Kudryashov: asymptote: move Emacs Lisp files to $out/share/emacs/site-lisp/asymptote/
<{^_^}>
→ 9b70630b by @7c6f434c: Merge pull request #39704 from urkud/asymptote-emacs
paraseba has joined #nixos
regulus_ has joined #nixos
hakujin has joined #nixos
__Sander__ has joined #nixos
<ertes>
is there a way to tell 'nix search' to shut the f… be quiet about using the cache? it says "warning: using cached results; pass '-u' to update the cache" for literally every search, even if i just updated the cache
fendor has quit [Ping timeout: 276 seconds]
hakujin has quit [Ping timeout: 240 seconds]
<ertes>
the message is completely useless anyway, because it only reflects my choice of command line flags and has nothing to do with the state of the cache
<etu>
ertes: It would be nice if the cache could know which version of nixpkgs that was cached and which one that is current or something...
<etu>
Or generation
<ertes>
yeah, that would be more useful
<etu>
"warning: you have an old generation of nixpkgs cached"
<smaret>
@zybell_: thanks, $(pwd) is what I was looking for. Is this is the doc somewhere?
<etu>
smaret: That's not a variable, it's running the command pwd in a subshell ;)
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #39416 → .version: don't read from `.version` and deduplicate `.version-suffix` references → https://git.io/vpZ6K
<{^_^}>
→ 9f2b67d8 by @Ma27: Revert ".version: remove final newline"
<{^_^}>
→ f66cdc71 by @Ma27: osquery: use `stdenv.lib.nixpkgsVersion`
<{^_^}>
→ 39909289 by @Ma27: lib: deduplicate version/suffix references
<zybell_>
the problem is: not using -u doesnt allow network to nixpkgs, without network no tell if sb has updated nixpkgs in meantime. Although the whole history of git is available locally,therefore a median commit time distance could be calculated,possibly a trend too,and the probability of such a commit could be calculated.A trained statistician could say more to that;-)
<etu>
zybell_: Oh, I didn't know that it used network. I thought it used the local nixpkgs.
<zybell_>
the local *is* the cache
<etu>
zybell_: No, local as in nixpkgs that you have from your channel.
<zybell_>
yeah
<zybell_>
as in git pull
<zybell_>
I cant verify right now but afaik nixpkgs is a git repo.
<zybell_>
and your channel is a remote branch
<Taneb>
Is there a way to get a package in the nix store into my environment if I don't know/have an attribute for it?
<etu>
I just have a hard time that running "nix search -u" as my normal user does a "sudo nix-channel --update" in the background :p
<etu>
That doesn't make sense at all
<Taneb>
So, I built someothing on one computer and copied the closure to another computer, and I want to get its bins in $PATH etc
<zybell_>
that nix-channel --update is the git pull channel to update your cache to make the results accurate! You can leave out the -u to get a warning to the fact that the results are faster but less accurate.
<tfc[m]>
hi there. i am trying to write a nix expression that builds a cmake c++ project. but i need to add a -DBLA=123 parameter to the `cmake` invocation. I am currently a bit lost on how to do that. google didn't help me out much either. any pointers what to do or where to read what to do?
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
jperras has joined #nixos
<vaibhavsagar>
I tried enabling virtualisation.virtualbox.guest but it's complaining that 'ConditionVirtualization=oracle is not met'
<vaibhavsagar>
has anyone seen this before and how do I fix/work around it?
jrolfs_ has quit [Ping timeout: 264 seconds]
simukis has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
<symphorien>
tfc[m]: use cmakeFlags iirc
jrolfs_ has joined #nixos
<tfc[m]>
symphorien: just found that in the build-managers/cmake nix expr thx
<zybell_>
vaibhasvagar:I think that is a setting *in* the vm.
<zybell_>
vaibhavsagar:^ sorry
<vaibhavsagar>
I don't understand
<vaibhavsagar>
I deployed a VM with NixOps
<{^_^}>
[nixpkgs] @Ma27 opened pull request #39709 → nixos/osquery: add test → https://git.io/vpBpb
<Myrl-saki>
How do I force hash mismatch?
<vaibhavsagar>
so I would expect that to work correctly
<tfc[m]>
symphorien: i am nearly at my destination. last thing is that i need to copy specific files into $out, in addition to what the `make install` does in this cmake project. i am reading through the nix files in build-managers, but i am a bit lost i must say. any idea?
silver has joined #nixos
<symphorien>
postInstall = "cp blah $out" ; for example
<tfc[m]>
symphorien: oh that looks great. can you tell me where this is actually defined to i can gain some maturity in finding out such things myself next time?
spear2 has quit [Quit: Leaving]
<symphorien>
I don't know. The internals of nixpkgs are really intricate. But postInstall is probably refered to in the nixpkgs manual. If you haven't done so yet, I advise you to at least skim into the three manuals of nix, nixpkgs, and nixos if relevant for you. You will know when such helpers exist, then
<LnL>
yeah the manual describes most of the hooks available in the stdenv
jrolfs_ has joined #nixos
bgamari has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
aarvar has quit [Quit: Leaving.]
jrolfs_ has quit [Ping timeout: 264 seconds]
<tfc[m]>
LnL: symphorien you are right. i read the relevant manual some time ago but then i got lost in the cmake details and forgot what i should have known already. sry
bgamari has joined #nixos
jrolfs_ has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
Ariakenom has quit [Ping timeout: 248 seconds]
fendor has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: Leaving]
<sphalerite>
(emacs, nix-buffer) So I've got a dir-locals.nix that allows me, with nix-buffer, to call `cargo run` using M-!. It doesn't work with cargo mode yet though. What might be missing?
<sphalerite>
shlevy: as the author of nix-buffer you get a dedicated ping for this one :p
<sphalerite>
infinisil: I think you use nix-buffer too?
<infinisil>
Nope, i decided it would be the easiest just to run emacs in a nix shell
<sphalerite>
aww
<sphalerite>
but my buffers!
<infinisil>
sphalerite: actually, maybe it would be easiest to always run emac in a single nix shell, one which contains all the libraries and stuff you're gonna need with all your rust packages, then you never have to bother with that problem
<sphalerite>
infinisil: I work on many many projects and usually don't go that deep though. So I often find myself needing new stuff
<infinisil>
Not sure I understand that
fendor has quit [Ping timeout: 240 seconds]
<LnL>
wow, pipenv is slow
<sphalerite>
ls ~/projects | wc -l
<sphalerite>
211
<sphalerite>
infinisil: that ^
Ariakenom has joined #nixos
<infinisil>
sphalerite: yeah, but you just need pkgconfig and maybe openssl and a couple other system libraries, all pure rust dependencies work just fine without nix shell
<sphalerite>
(also, I wasn't expecting it to bethat many o.O)
<sphalerite>
infinisil: I don't work only with rust :)
<infinisil>
And the problem is? I think nix-shell in nix-shell should work
<sphalerite>
I want a single long-lived emacs instance though
<sphalerite>
so I don't lose all my buffers
patrl has joined #nixos
<infinisil>
Yeah, you rarely need additional system libraries
emph has joined #nixos
emph has quit [Client Quit]
<infinisil>
It might even be possible to create a nix-shell with all crates system library dependencies so you can build every single crate in it
<sphalerite>
I suppose I could put together a massive env with rust, all the X libraries, both SDLs, GTK, Qt, etc
nhh^ has joined #nixos
<sphalerite>
and curses, flex, bison, libpng and friends, sqlite, …
<infinisil>
Yeah exactly, you'll have a single nix-shell running emacs that already has everything you frequently use
<sphalerite>
which is why I want to use nix-buffer
<sphalerite>
oh and for haskell, there's a lot of different libraries there too :/
<sphalerite>
not sure how well this would work
<infinisil>
Stack handles nix-shell automatically
<sphalerite>
I have to admit I've never really used stack :p
<infinisil>
Well whatever works best for you, i just don't want any additional nix related setup problems, and running emacs in nix-shell seems the easiest way to avoid those
waleee has joined #nixos
xcmw has joined #nixos
badi has quit [Quit: WeeChat 1.9.1]
pxc has joined #nixos
pxc has quit [Client Quit]
jrolfs_ has joined #nixos
jrolfs_ has quit [Ping timeout: 256 seconds]
<sphalerite>
infinisil: actually if I'm going to go for "put all the deps together" it's probably better not to use nix-shell, but to build a profile with them. That way I can update it without restarting emacs
<sphalerite>
and set stuff like PKG_CONFIG_PATH in my emacs config
<infinisil>
Ah yeah, nice
orivej has quit [Ping timeout: 264 seconds]
ylwghst has quit [Ping timeout: 240 seconds]
dbe_ has joined #nixos
jrolfs_ has joined #nixos
jethroksy has joined #nixos
<jethroksy>
hi, my computer died in the middle of a `nix-channel --update`, and now everything's broken, has anyone faced this before, and know a good fix?
<srhb>
jethroksy: Are you able to remove and recreate the channel?
<dbe_>
I created an overlay, added a package which puts a binary in $out/usr/sbin. Then I did a "nix-shell -p <pkg>". But my package is not in my $PATH. What am I missing?
<jethroksy>
srhb: no, nix-env looks broken or something
<srhb>
jethroksy: Ouch.. Are you able to use rollback with nix-env?
<dbe_>
sphalerite, no, but there is an incredible amount of magic involved in nix for me at the moment; I'm still learning how to do pretty basic stuff.
<dbe_>
And yet I'm several months into this now. Not sure if thats mostly a reflection of me, or of nix.
<sphalerite>
Yeah, there is a fair bit to cover :)
freeman42x]NixOS has joined #nixos
seanparsons has quit [Read error: Connection reset by peer]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
jrolfs_ has joined #nixos
seanparsons has joined #nixos
patrl has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Ping timeout: 255 seconds]
patrl has joined #nixos
<zybell_>
sphalerite:could nix-env get a failsafe:a backup channel that is used if the main channel fails (syntax error and such) and is only updated from main channel *after* all could correctly evaluate?
<sphalerite>
zybell_: I think this is more a matter of just calling fsync before updating the profile link. I'm surprised this even happened for jethroksy
jrolfs_ has joined #nixos
ThatDocsLady has joined #nixos
<qknight>
srhb: in that link you gave me, how to search for nixos.perlPackages.Razor2ClientAgent now?
lord| has quit [Quit: WeeChat 2.1]
<srhb>
qknight: I don't think it's there.
<zybell_>
I think his case was unfortunate timing,but I thought about new elements in lang without update to understand,ENOSPC on channel update and other 'real' corruptions.
<sphalerite>
zybell_: ENOSPC will prevent updating a channel, but not cause corruption.
<qknight>
srhb: yeah, since it does not build and maybe it not being there shows that?
<srhb>
qknight: Unfortunately I don't think you can conclude that.
<sphalerite>
qknight: everything that's *supposed* to be build should be on that list, regardless of whether it actually builds or not.
<sphalerite>
AFAIU.
jrolfs_ has quit [Ping timeout: 240 seconds]
<sphalerite>
s/be //
<qknight>
so why are there no perlPackages?
<qknight>
or why are there only 14 perl references in a 24000 list of packages?
<qknight>
there are 1772 references to pythonPackages
blankhart has joined #nixos
<sphalerite>
qknight: it seems that they're just not included in the jobset
<qknight>
really?
<srhb>
Probably no recurseIntoAttrs on perlPackages I guess.
<sphalerite>
qknight: I'm guessing only the transitive deps of stuff that is included will be build by hydra
<sphalerite>
qknight: yep. See pkgs/top-level/release.nix
<{^_^}>
[nixpkgs] @sephalon opened pull request #39713 → pcsc-scm-scl011: clean up unpack phase → https://git.io/vpRYU
<hyper_ch2>
perl is still a thing?
<zybell_>
not in the blatant way, when no space already at begin.or during update.but at the end,when the really used files are checked out *and* one of that is larger than 1 alloc unit (4k?)?
<srhb>
hyper_ch2: You use nix and ask that question? :P
<srhb>
hyper_ch2: Even though I suppose we're less souped into it with Nix 2.0
<hyper_ch2>
srhb: yes, why? :)
<sphalerite>
zybell_: the completion is still atomic
<srhb>
hyper_ch2: A whole lot of the ecosystem is perl :)
<sphalerite>
hyper_ch2: half of nix 1.11.x was perl.
<srhb>
hyper_ch2: Hydra, for instance, is mostly perl.
<hyper_ch2>
nah, it's all nix :)
<sphalerite>
hyper_ch2: hydra is perl.
<hyper_ch2>
:)
coot has quit [Quit: coot]
<qknight>
anyway, i need perl to be working
<sphalerite>
zybell_: the final operation is setting /nix/var/nix/profiles/per-user/root/channels to point to channels-$n-link, which is atomic. So as long as changes have been synced correctly, it will never be corrupted
<sphalerite>
qknight: perl itself, along with a number of perl packages, are transitive dependencies of stuff that is included in the jobset, so you should be safe :)
<zybell_>
tbf:hyper probably doesnt use hydra except remote.
<sphalerite>
but I'm pretty sure he knows what hydra is :)
<srhb>
I think they were mostly being facetious. :)
<sphalerite>
hyper_ch2 being facetious? whaaaaat that's completely unheard of
<{^_^}>
[nixpkgs] @sephalon opened pull request #39714 → open-ecard: init at 1.2.4 → https://git.io/vpRYz
<zybell_>
but how its implemented?
<qknight>
nixcloud.email fails because of perl not working in nixpkgs
<vaibhavsagar>
not too long to go, I am sadly underprepared
<vaibhavsagar>
but I only just realised I have access to my mum's mac while I'm back home, which is why I'm doing this now
<gchristensen>
oh cool
ihar has joined #nixos
<nick_l>
How do I make echo $SSH_AGENT_SOCK return something non-empty? I enabled the agent via the programs.ssh.* option.
<sphalerite>
nick_l: you mean SSH_AUTH_SOCK?
asuryawanshi has quit [Ping timeout: 255 seconds]
<nick_l>
sphalerite: no, I don't think I meant that. I basically want to ssh into another machine and have it use my agent credentials, such that I don't leave my keys around everywhere.
<sphalerite>
nick_l: For making the SSH agent work, SSH_AUTH_SOCK is the name of the variable. Try ssh-add -l to see if your agent is weorking
<sphalerite>
nick_l: then you just need to use ssh with -A
<sphalerite>
for agent forwarding (although note that you're still putting a lot of trust in the host you're accessing, almost as if you kept your keys there anyway)
<nick_l>
sphalerite: The agent has no identities. Can I add those identities also via configuration.nix?
<nick_l>
sphalerite: or only via -A?
<gchristensen>
anyone around really familiar with licensing? I don't know how to mark the license for a new package.
<sphalerite>
nick_l: no, you have to add them with ssh-add
<nick_l>
sphalerite: those are not persistent, right?
<nick_l>
sphalerite: i.e. needs to be added to shell init?
<simpson>
gchristensen: Link?
<sphalerite>
nick_l: it persists for the lifetime of the agent
<sphalerite>
nick_l: or you can enable the AddKeysToAgent option in your ssh config, that way it will add the key to the agent when you try to use it and type the password
<gchristensen>
simpson: how about I send you the LICENSE? the web page doesn't specify what its license is
rauno has quit [Ping timeout: 260 seconds]
<simpson>
gchristensen: Sure. Link? Wormhole?
<sphalerite>
gchristensen: my approach for that is usually hash the file and google the hash :p
<gchristensen>
it isn't a bog standard license, it has a rider
<simpson>
gchristensen: A decade ago, it might have been appropriate to give this person the benefit of the doubt and write that the rider is 2-clause BSD. These days, I can't help but think that it's gonna be easier to reach out to Mr. Cameron and ask for a relicense.
<simpson>
But yeah, that's a hilarious mess.
<gchristensen>
can I just mark it "free" with a link to the file?
<simpson>
I dunno, I'm not the Foundation's lawyer. (Or a lawyer at all.)
<gchristensen>
software licensing is complicated
jrolfs_ has joined #nixos
dvim has quit [Quit: WeeChat 2.1]
<vaibhavsagar>
can someone walk me through trusted-user again?
<sphalerite>
vaibhavsagar: it's a user who practically has write access to the store (although mediated through the daemon)
<gchristensen>
vaibhavsagar: are you going to make a VPS specific for this day, and will each person get their own account, or will they share one, like 'demo@...'
<vaibhavsagar>
good question!
<vaibhavsagar>
say I already have one for the VPS
<vaibhavsagar>
and I'm planning to create a 'builder' account for the workshop
<vaibhavsagar>
but I would need to share the private key with each participant?
dvim has joined #nixos
<vaibhavsagar>
and add the public key to my 'trusted-public-keys'?
<gchristensen>
they would need to be able to SSH in to it, so you'd either need to share your private key, or get all participant's public keys ahead of time
<sphalerite>
yes, or mark the builder user as a trusted user
jrolfs_ has quit [Ping timeout: 260 seconds]
<gchristensen>
we're all confusing the Nix signing public/private keys and the SSH public/private keys
<vaibhavsagar>
sorry, what
<sphalerite>
oh yeah and get the participants' public keys >_>
<zybell_>
gchristensen:its 3clause bsd with a library that is 2clause bsd,the library is included as source is all.
<zybell_>
look at the copyright date of the included lib. pretty standard for that time.
orivej has quit [Ping timeout: 240 seconds]
<sphalerite>
vaibhavsagar: you need to give them A) some way to run stuff on the VPS (allow their SSH pubkeys for the builder account or give them all a copy of the same key for that). And B) (assuming you will use the remote build mechanism) some way to write to the store through the daemon (same deal, or you could add builder to trusted-users then that won't be necessary)
<vaibhavsagar>
okay, I think I understand now
<vaibhavsagar>
I was planning to add their public keys to my "builder" user on my VPS
<LnL>
anybody here that uses pypi2nix? I'm looking for annoying packages to test with my pythonng generator
<vaibhavsagar>
and I just found nix.trustedUsers which looks like what you were saying before
reinzelmann has quit [Quit: Leaving]
<qknight>
thanks anyways guys!
qknight has quit [Quit: leaving]
<sphalerite>
vaibhavsagar: If you're not set on using nix's "builders" option, you can also have stuff build on the server entirely without giving them write access to the store
<vaibhavsagar>
sphalerite: I only want to offer it as an option if they're using Macs
<vaibhavsagar>
otherwise this is completely unnecessary
<vaibhavsagar>
(they will be using NixOps)
hamishmack has quit [Ping timeout: 276 seconds]
<sphalerite>
vaibhavsagar: ah ok. Yeah probably easiest sticking to remote builds then
<vaibhavsagar>
just trying to cover all my bases
<sphalerite>
although it's pretty cool that building stuff on a remote machine without being a trusted user works too now :D
<vaibhavsagar>
I thought it didn't?
orivej has joined #nixos
<vaibhavsagar>
in fact none of this trusted user stuff is in the manual AFAICT
<sphalerite>
it doesn't with the "builder" mechanism
<sphalerite>
but it does with --store ssh-ng://user@host
<vaibhavsagar>
oh, I see
<zybell_>
you could make a 'turnaround' account,that uses a forced command and a (forwarded)agent auth to login back on the originating computer.On the way picking up and authenticating the builds.
<gchristensen>
vaibhavsagar: somewhat, but not adequately ...
<kahiru>
hey, is there an image for headless installation? Like boot from an usb stick, wait for the machine to get address from dhcp and connect there over ssh. I know I could build one myself, but would be nice if i wouldn;t have to
<ixxie>
its been around for years and it seems nobody has solved it but I am wondering is there any point to put an issue up in nixpkgs for this
<vaibhavsagar>
ixxie: no harm
<gchristensen>
vaibhavsagar: I agree
<gchristensen>
vaibhavsagar: the nit I was uselessly picking is that "none" of it was in the manual :$
nuncanada has joined #nixos
<vaibhavsagar>
hahaha, I see
<ixxie>
vaibhavsagar: well nixpkgs has a problem with too many open issues
<ixxie>
so there is *some* harm
<gchristensen>
ixxie: too many issues? ~2k isn't so many for 40,000+ builds ...
<sphalerite>
kahiru: not out of the box, but it's easy to make one
<sphalerite>
kahiru: clever has some kit for making PXE images for that as well
<kahiru>
ok, thanks. I assume it's described somewhere in the docs, right?
<ixxie>
gchristensen: I guess I misunderstood that NixCon talk about how the issues keep growing but I guess it makes sense since the size of Nixpkgs keeps growing
jperras has quit [Ping timeout: 264 seconds]
<ixxie>
gchristensen: hopefully soon enough I will be able to setup my fully Nix deployed analytical portal, and I'm hoping to start doing some statistics relating to a variety of Nixpkgs related stuff
<ixxie>
gchristensen: I'm hoping to hook into the repology API in order to autogenerate packaging to-do lists for specific fields (e.g. for data science packages)
<ixxie>
all I would be missing is a source of good field-specific package lists
<ixxie>
but I am hoping we could be able to get some analytics that indicate for example what areas Nixpkgs has better/worse coverage
<ixxie>
which would also help for pitching Nix at work ^^
jethroksy has quit [Remote host closed the connection]
xAFFE has left #nixos ["Error from remote client"]
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #39717 → nixos-container: support restarts → https://git.io/vpRRa
<vaibhavsagar>
how do I "enable remote builds"?
<vaibhavsagar>
e.g. if I set --option max-jobs 0
<vaibhavsagar>
then I get an error message telling me to either increase max-jobs or enable remote builds
<vaibhavsagar>
but what is the option that I need to set/change for remote builds?
asuryawanshi has quit [Remote host closed the connection]
hakujin has joined #nixos
<rizary>
hi, how can i make derivation A consisting action stuff to minified some file in derivation B without making A importing all dependencies that B has
<rizary>
s/has/have
selaux has quit [Ping timeout: 256 seconds]
hyper_ch2 has quit [Ping timeout: 260 seconds]
<dbe_>
Hdphn, yeah. I personally definitely prefer nixos. If you're into bikeshedding your system up to the point where you're considering trying out nixos for the heck of it, then you should definitely try nixos.
<vaibhavsagar>
rizary: you can include derivation B as a buildInput without dragging in all of B's dependencies IIRC
<clever>
it will still get the runtime dependencies, but there is no way to stop that
<ixxie>
Hdphn: I thought quite a few people came to NixOS from Arch; in my case I was about to switch from Debian to Arch when I discovered NixOS randomly xD
<rizary>
hmm, so my understanding is i will have a huge size of derivation (when i want to deploy it to my production machine) which is derivation A even though i put B as buildInput? is that correct?
<Hdphn>
ixxie: so you are on nixOS now?
<Hdphn>
are you happy
<clever>
rizary: the runtime deps of A will depend on what paths its $out refers to
<clever>
rizary: so if the path to B does not appear in A's $out, then it wont depend on B at runtime
<ixxie>
Hdphn: I am very happy; the configuration of my laptop and my server are both stored in a single github repo; if I break something I can generally rollback (although there are some fatal exceptions to this)
<ixxie>
Hdphn: keep in mind I never actually used Arch
adisbladis has quit [Ping timeout: 265 seconds]
<ixxie>
Hdphn: but I also love the fact I am learning a single language that allows me to to builds, packages, systems configs, deployments, etc.
<rizary>
clever: did you mean by appear is including copying file in B's out into A's $out in installPhase?
<Hdphn>
ixxie: which is?
<ixxie>
Hdphn: the Nix Expression Language
<ixxie>
of course :)
<clever>
rizary: basically, grep -r $outa $outb
<Hdphn>
I see that haskell users use nixOS
<Hdphn>
lol
<clever>
rizary: the path to outb has to appear in outa
<ixxie>
Hdphn: I am more the other way, I got into Nix and now I am starting to learn Haskell because of it ^^
<ixxie>
Hdphn: from a system management point of view, some of us see Nix as providing an open-source alternative to configuration management solutions such as ansible or chef
<rizary>
clever: i see, thanks
<ixxie>
Hdphn: but yeah, since the Nix language is a Lazy Pure Functional language, the affiliation with Haskell is really understandable ^^
* gchristensen
doesn't know C, Java, _or_ Haskell
<srhb>
gchristensen: yet.
<gchristensen>
I suddenly feel doomed
<srhb>
:-)
dbe_ has quit [Ping timeout: 265 seconds]
<ixxie>
I was using Nix before I learned object-orientated programming xD
<ixxie>
lol
<ixxie>
although mostly just NixOS
johnhamelink has joined #nixos
<shapr>
gchristensen: means you have lots of fun ahead of you! Sometimes I wish I could go back in time and re-read really good books for the first time. It's that kind of thing.
kotoff has joined #nixos
SamuelEvans-Powe has joined #nixos
<gchristensen>
:D
<kotoff>
hello. a little urgent question to everyone. does nixos-install tamper with existing home directory?
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<infinisil>
kotoff: It does not
zybell_ has quit [Ping timeout: 256 seconds]
<kotoff>
infinisil: so I can safely boot from live and install 18.03 on 17.09 with existing config and data?
<infinisil>
kotoff: Yes, but why reinstall? You can just update and have the same effect
<sphalerite>
kotoff: yes. If your actual config is broken it will conti9nue to be broken though.
<ixxie>
gchristensen: what is your native language?
aszlig has joined #nixos
<kotoff>
infinisil: my config is okay (worked before), but someting abnormal happened, and I can't upgrade anymore
<kotoff>
infinisil: it just writes smth like 'chmod: <filename> - operation not permitted'
<gchristensen>
ixxie: English ;) but I don't even know. I like Rust a lot, Python when I have to. Bash... :%
<infinisil>
kotoff: Yeah, that's pretty useless of an error of itself, can you post the full one?
<shapr>
My native language is Haskell, but I'm an expat in Python land.
<ixxie>
samueldr: well I am looking for arguments for the office; so that is sort of a plus for me but a minus for the rest who don't know Nix
<infinisil>
kotoff: That hash is not the same as yours (nix/store/fxn99iiy56iy65y3ahfqxzhvym9rd6cs-firefox-bin-59.0.2.drv), so something must be different
<ixxie>
samueldr: luckily there is a guy in delivery who is interested in functional stuff and I got him interested in Nix ^^
<ixxie>
samueldr: so.... maybe :D
<samueldr>
:) though, I like how it can be really small (not as small as the smallest alpine images) since it only includes the closure
stammon has joined #nixos
<samueldr>
and yeah, you do have to pile one every nix advantages!
<symphorien>
kotoff: as a workaround you may replace firefox-bin by firefox
<kotoff>
symphorien: that's a clever solution. but in my case I need to build before dealing with the service.
<infinisil>
kotoff: Oh you can't even rebuild the system, then you can't even turn on readonly store like this, it's still readwrite
<symphorien>
if you only corrupted firefox bin this might be enough
<kotoff>
symphorien: but PyCharm likely wouldn't build, dropping with same chmod issue
<kotoff>
infinisil: it's still readonly :^)
<infinisil>
Ah, so you set readonlystore = false; but didn't ever get to finish a rebuild after that?
<symphorien>
if I were you I would comment everything which does not build from my config, get a read only store and from there try to solve the problem of having these commented package to build
<symphorien>
ah
<kotoff>
infinisil: yep
<kotoff>
infinisil: hello chmod, bye bye build
<infinisil>
kotoff: Well then it's not applied anyways, a rebuild needs to succeed to apply changes
<ixxie>
gchristensen: was it you who had a Dell XPS?
<infinisil>
kotoff: What does `nix-instantiate --eval '<nixpkgs/lib>' -A nixpkgsVersion` output
<kotoff>
symphorien: commenting is longer way, which doesn't fix other problems. I'm afraid that is corruption, so the first question of mine was about reinstall
<infinisil>
kotoff: Alright, try `nix-store -r /nix/store/fxn99iiy56iy65y3ahfqxzhvym9rd6cs-firefox-bin-59.0.2.drv`, does that error or work?
<infinisil>
It should error
<kotoff>
infinisil: yep, it errors
<kotoff>
...the fun is I can't build (I think) any package which performs chmod. on top of that, there's a broken service, and I can't poweroff from user (Interactive login required), which I did before.
<kotoff>
can NixOS break/corrupt because of abnormal shutdown? afair, no any store-sensitive operations were made at that moment (it was at sleep then)
<infinisil>
Not really
<infinisil>
kotoff: Alright, can you do `nix-store --export $(nix-store -qR $(nix-instantiate '<nixpkgs>' -A firefox-bin --arg config '{ allowUnfree = true; }' --arg overlays '[]')) > firefox.drv`
MercurialAlchemi has joined #nixos
<ixxie>
kotoff: I once got a dirty bit because I shutdown the machine during a rebuild (graphics were out due to a bug and I didn't wait long enough)
undefbeh has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
maingo has joined #nixos
daveo has joined #nixos
<infinisil>
kotoff: Then upload the resulting file somewhere so we can download it, it should be about 3MB big
<jxf>
Does anyone use Nix for `nodejs`? I noticed that installing it will symlink `npm` onto my `PATH` via my `.nix-profile/bin`, which is great, but it won't symlink `npx`, which is a bit annoying. I can definitely see it in the store, so it's there and Nix knows about it, the derivation just doesn't symlink it.
<jxf>
Am I doing something wrong or is this a deficiency in the derivation?
<infinisil>
kotoff: Yeah that builds no problem for me
<kotoff>
ixxie: but I got no rebuilds since a week (just a timezone switch), it worked for few days after that and suddenly--
<infinisil>
I gotta go for now, I hope somebody else can help you further, at least we know it's either some problem with your nix or your system or so, not the nix derivation
<kotoff>
infinisil: so we can surely say that my OS is broken?
<infinisil>
If you open an issue you can include the info I asked you for here
waleee has quit [Quit: WeeChat 2.1]
<ixxie>
kotoff: hmmm.... well if you are really unlucky cosmic radiation can randomly corrupt bits and break the system but that seems unlikely
mkoenig has joined #nixos
<{^_^}>
[nix] @DavidEGrayson opened pull request #2126 → nix-collect-garbage: fix documentation to not mention options like --print-dead → https://git.io/vpRXC
<symphorien>
kotoff: you can try to switch to 18.03 -- since no derivation would be shared with your current system, those ones might be non broken... maybe
<kotoff>
infinisil: issue about Firefox? remind commands, please. I'll link pastes and the file
<ixxie>
dtz, gchristensen - I noticed the XPS BIOS options includes the ability to automatically turn on the machine at a specific time
<kotoff>
symphorien: so that's what I'm going to do -- reinstall with 18.03 live CD
<ixxie>
dtz, gchristensen - so theoretically one could autodeploy the laptop from a server with nixops xD
<symphorien>
well you can try without reinstalling first
<symphorien>
it won't hurt and would be easier imo
<ixxie>
of course not the most convenient approach since one likes to randomly rebuild the machine but yeah
<kotoff>
symphorien: and~ no shiet. I've tried that. Same chmod issues.
<ixxie>
samueldr: what do you use for this log viewer?
<{^_^}>
[nixpkgs] @joachifm merged pull request #39707 → Properly put bspwm process in the background in module → https://git.io/vpBDB
<{^_^}>
[nixpkgs] @joachifm pushed commit from @iitalics to master « nixos/bspwm: spawn bpswm process in the background and properly set waiPID (#39707) »: https://git.io/vpRMT
markus1189 has quit [Read error: Connection reset by peer]
<samueldr>
hmm, maybe I should, I probably should request comments for improvements first :)
<samueldr>
and take another look at what I did! I learned a lot in the last four months
<ixxie>
hmmm
<ixxie>
samueldr: so when you wanna ad-hoc some new package/module you do in an overlay so you can update channels normally and still have your weird new stuff?
<samueldr>
yes
<ixxie>
I see
<ixxie>
I think I didn't really understand how overlays are used until now ^^
<{^_^}>
→ ac22d77f by @danbst: nix-collect-garbage: little doc fix
<{^_^}>
→ 3560654e by @edolstra: Merge pull request #2126 from DavidEGrayson/pr_gc_doc
<samueldr>
though, if you look at the irclogger, the default.nix isn't the overlay, it's a shim that loads the added nixos options module and adds the overlay to nixpkgs.overlays
markus1189 has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill merged pull request #39698 → systemd: add pcre2 as build dep for searching in journalctl → https://git.io/vpBVr
<{^_^}>
→ dadf2229 by @dtzWill: systemd: add pcre2 as build dep for searching in journalctl
<{^_^}>
→ a8f3b1ad by @dtzWill: openmw: update hash missed in update to 0.43.0
<{^_^}>
→ ccd2b539 by @dtzWill: Merge pull request #39738 from dtzWill/fix/openmw-0.43.0
cristian2 has quit [Ping timeout: 240 seconds]
jrolfs__ has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #39699 → setup: get enableParallelBuilding compatible with bmake → https://git.io/vpBVd
hiroshi- has joined #nixos
hiroshi has quit [Ping timeout: 268 seconds]
hiroshi- is now known as hiroshi
seanparsons has quit [Read error: Connection reset by peer]
sydney has joined #nixos
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<sydney>
Hey, NixOS newb here. Having trouble setting the lightdm background. Tried it using services.xserver.displayManager.lightdm.background = "<path>" but it's all black.
<clever>
sydney: is that path readable by the lightdm user?
<clever>
sydney: what if you unquote the path?
<sydney>
should be readable by the lightdm user (chmod a+r)
<clever>
try unquoting the path
<sydney>
clever: unquoting gives me an error
<clever>
what error?
<sydney>
error: The option value `services.xserver.displayManager.lightdm.background' in `/etc/nixos/configuration.nix' is not of type `string'
<clever>
ah, try "${/path/to/image}"; then
acarrico has quit [Ping timeout: 240 seconds]
<sydney>
huh. how does that change anything? (it builds, just curious)
<sydney>
I see that in lightdm-gtk-greeter.conf, the path to the image is now pointing to nix/store
<clever>
nix will copy that path into the store
<clever>
and make it world-readable
<sydney>
Aww sweet!
<clever>
and it will fail a lot faster if the file doesnt exist
MercurialAlchemi has quit [Ping timeout: 240 seconds]
_rvl has joined #nixos
<sydney>
Now that's cool! Where should I store these global files, btw? In the moment, this background image for example is just sitting in my home directory.
seanparsons has joined #nixos
<clever>
i would put it in the same directory as the nix file, and do "${./background.png}";
<clever>
nix is able to obey relative paths as relative to the file that contains them
<samueldr>
if any directory up to the image is not chmodded +x for the user accessing the image (probably in the "other" fields), the image won't be reachable; e.g. your if your home is `chmod o-x` users not in the group won't be able to access anything there
<samueldr>
but yes, putting it in a global location is the way to go :)
<clever>
samueldr: nix will also enforce $HOME being 700 i believe
<samueldr>
hum I don't think so
<samueldr>
my home is go+x
<sydney>
OK, so I'll put global stuff somewhere in /etc/nixos. Thanks for the background info!
hiroshi has quit [Ping timeout: 268 seconds]
<samueldr>
THOUGH, I have to say my home directory is not in /home/, if it matters
<gchristensen>
interesting. where is it, samueldr?
<samueldr>
I like how with nixos it's not even a pain to manage
<ixxie>
why would you hide those?
<samueldr>
fun!
<samueldr>
part of doing stuff because I can
<ixxie>
heh
<infinisil>
samueldr: Nice!
<infinisil>
I also like how you organized your config, I did mine the same way
<boomshroom>
ixxie: Because they're only maintained for legacy. On NixOS, you shouldn't be using /bin or /usr/bin unless you're running a foregn script, so gobohide hides them so you're less tempted to use them, but they're still there for compatibility.
<samueldr>
well, that's for gobolinux's use case, as for mine, it's mainly because I can, but the same ideas could apply
<samueldr>
I was also tempted, didn't even look at the feasability yet, to make a FUSE filesystem that puts all the expected `.desktop` files for the EUID at /Applications/
<gchristensen>
what're you doing, making macOS? :D
<boomshroom>
gchristensen: This is Linux! We make what the f*** we want! :D
<samueldr>
when I say expected, I mean that any manipulations in /Applications/ will show up in the XDG directory, just like if you edited using alacarte
<ixxie>
with NixOps, is the only way to store the Authentication key for the cloud provider via a environmental variable?
<clever>
ixxie: for aws, there is ~/.ec2-keys
<ixxie>
clever: so it depends on the backend really
<gchristensen>
samueldr: some people here have / as a tmpfs and specific directories mounted as persistent... and /home isn't one of them
<samueldr>
gchristensen: I needed to ask about the / as tmpfs thing too, one day
<samueldr>
if there were any troubles
<jtojnar>
infinisil: does not seem to for the one used by gnome-shell
<samueldr>
but how is /home/ handled if non-persistent?
<jtojnar>
infinisil: (if I change the override, gdm is rebuild but gnome-shell is not)
hiroshi has joined #nixos
<boomshroom>
With the talk of non-standard NixOS modules, clever, have you seen that the RISCV port of QEMU is upstream? It may not be nessisary to use a different source for the qemu user module.
<clever>
jtojnar: the other things in gnome3 are refering to the old values
<clever>
jtojnar: so you need to also gnome-shell = gnome3.gnome-shell.override { gdb = gdm; };
<jtojnar>
clever: is there some easier way than overriding overriden overriden?
<jtojnar>
the gnome-shell is a dependency of gnome-session :-)
drakonis has quit [Read error: Connection reset by peer]
<clever>
jtojnar: rewrite gnome3 to use pkgs.lib.makeScope pkgs.newScope, then .overrideScope will work
<ixxie>
stuff like authentication keys that needs to be put in an envirmental variable or a password for a database - say I store it in some files in a secrets folder and then load them into my config files, would that be secure?
<ixxie>
I would be of course putting secrets/* in my .gitignore so that doesn't go into the public repo
<gchristensen>
would the secrets get in to the nix store, or would files in the nix store be saying "look at /etc/nixos/secrets/foobar.txt"?
<ixxie>
well that is sorta why I am asking this
<ixxie>
I am not sure
<drakonis>
hmm, so, nixpkgs is the default for non NixOS distros
<drakonis>
every time something is done, it throws up the "this is nixpkgs not nixos" error
<infinisil>
drakonis: "something is done"? What exactly and what's the full error?
<gchristensen>
ixxie: indeed
<drakonis>
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<drakonis>
it only activates if the primary repo is nixpkgs
<drakonis>
its only triggered under the condition that its nitpkgs and not nixos
<jbetz_>
tilpner: changed it to `pidgin.override = ...` and now it says that `telegram-purple` is an undefined variable
<samueldr>
gchristensen: I'm assuming telling to look etc /etc/secrets_or_whatever *is* secure with regards to deployments and nix, asking since I'm about to do this for a project soon
<gchristensen>
samueldr: right
<samueldr>
(as secure as it would otherwise)
<gchristensen>
assuming the file permissions on the /etc/secretsn-or-whatever are appropriately closed
zybell has joined #nixos
<ixxie>
gchristensen: i.e. owned by root?
<samueldr>
good, I assumed so, since other than the nix store, nix and nixos is pretty much linux
<tilpner>
jbetz_ - Not pidgin.override = ...;. What are your errors?
<gchristensen>
ixxie: if that is what you need, sure. but it could be owned by a specific other user/group and not readable by other users than that one
<samueldr>
I have it owned by the user running the service
<samueldr>
ixxie: I would assume so, assuming secrets aren't in the repo, and you assume anyone with a brain built for malice *will* have the advantage of knowing how your system is built
<jbetz_>
tilpner: yes, and still no joy
<infinisil>
ixxie: I have as much of my config public as possible, and nix puts a lot of passwords in my store
tertle||eltret has joined #nixos
<tilpner>
jbetz_ - And you removed the other pidgin, right?
<ixxie>
samueldr: I was wondering about that; indeed merely knowing the configuration of my system is an advantage
<samueldr>
build it in a way so it shouldn't mean much :)
<infinisil>
ixxie: I keep my nix files that set passwords in a separate private repository, it actually defines a `private.passwords` option, allowing me to use e.g. `config.private.passwords.mpd` to access the mpd password from any file
orivej has joined #nixos
<samueldr>
(that's the hard part, living a secure life in a glass house)
<ixxie>
infinisil: mpd?
<jbetz_>
tilpner: ahh, I had it installed in my env -_- that was the problem
<gchristensen>
ok people, why do you have to call toString on a number for it to be part of a string in Nix
<cransom>
our type system lacks robustness?
<boomshroom>
I'm using clever's Nix patch that lets you spoof the local system with qemu-linux and when building hello for armv7, the build complained about __ARM_ARCH being undefined.
<drakonis>
its not erlang rides again
<drakonis>
btw
<gchristensen>
cransom: but why add toString when it could just do it
<drakonis>
when can nix achieve erlang levels of robustness?
<gchristensen>
when is Nix going to be a runtime
<neonfuz>
nixos-rebuild switch --upgrade on my intel graphics machine just broke my machine
<infinisil>
gchristensen: Lol
<drakonis>
hmm
<neonfuz>
it crashed X, and I couldn't type into TTYs, then upon reboot X worked, but nothing with opengl worked
<drakonis>
some day, right?
<neonfuz>
had to boot an old nixos
<neonfuz>
it's so nice you can do this, this is the first time I've ran into a breaking system update on nixos
<neonfuz>
but I ran nixos-rebuild switch --upgrade again and it again crashed X, same exact way, so it's repeatable
<cransom>
gchristensen: well. i was lost for words when i saw how lib.toInt really worked recently. i'm ok with having to tell it that 'yes i really do want to convert this int to a string' rather than having it do something behind the scenes
<samueldr>
neonfuz: assuming 18.03, could you share the output of `nix-shell -p nix-info --run nix-info` ?
<gchristensen>
cransom: haha yeah oh yeah
<samueldr>
(this way it would be possible to see from which revision you're upgrading)
<MichaelRaskin>
neonfuz: As for GL — there is actually a substantial change
orivej has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
Does your LD_LIBRARY_PATH contain /run/opengl-driver/lib ?
<ixxie>
samueldr: glass houses are fragile but NixOS is quite robust (actually, its antifragile)
<samueldr>
maybe it's a lexan™ house?
<neonfuz>
hold on, I'm booted into my old nix generation
<ixxie>
lol
<samueldr>
neonfuz: with the old, please!
<neonfuz>
okay
<samueldr>
it's easy to see which revision the channel is at right now :)
<ixxie>
samueldr, gchristensen - is there a way to declaritively and securely specify that a secret in some file should become an environment variable?
<drakonis>
when is there an actual
<drakonis>
nix shell
<drakonis>
a shell written in nix
<neonfuz>
MichaelRaskin: in the old generation now, yes it does
<neonfuz>
I haven't checked in the new yet
<neonfuz>
MichaelRaskin: what do I have to change?
<MichaelRaskin>
Well, it depends on the minor details of the setup
<{^_^}>
→ a45dad98 by @davidak: tealdeer: init at 1.0.0
<{^_^}>
→ 2f4e3f90 by @xeji: Merge pull request #38766 from davidak/tealdeer
jrolfs_ has quit [Read error: Connection reset by peer]
tmaekawa has quit [Quit: tmaekawa]
orivej has joined #nixos
<neonfuz>
MichaelRaskin: okay, well turns out I can't access irc the normal way I do because I get some locale error in the newest generation and mosh won't start
<Judson>
symphorien, I wasn't trying to point something out - sorry if the context made that confusing. I've tried adding --add-roots and --indirect to my nix-shell calls, but I don't see anything created...
ixxie has quit [Ping timeout: 240 seconds]
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos
<symphorien>
Ah ok I misunderstood. It is something I have never tried
<Judson>
I'd like it to work...
niorrr has quit [Quit: WeeChat 2.0]
freeman42x[nix] has quit [Ping timeout: 260 seconds]
<neonfuz>
also I'm getting locale errors on the latest nixos update
markus1189 has quit [Read error: Connection reset by peer]
doyougnu has joined #nixos
<symphorien>
neonfuz: do you have static binaries built with an old glibc ?
<{^_^}>
[nixpkgs] @grahamc closed pull request #23589 → Git: Make the patchset more granular. → https://git.io/vyR2j
niorrr has quit [Quit: WeeChat 2.0]
markus1189 has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jedai has joined #nixos
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
<tmplt>
Would someone mind checking on a NixOS system if the datasets for geant4.v10_0_2 download correctly when building the derivation? I'm my own system the mirror (geant4.cern.ch) cannot be resolved, which isn't a problem for dig(1).
<boomshroom>
My NixOS really borked when upgrading.
<boomshroom>
Amazingly, my tmux session survived, but only kindof as I had to recreate the socket.
aarvar has joined #nixos
cristian2 has joined #nixos
aarvar has quit [Remote host closed the connection]
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
<lejonet>
boomshroom: tmux can survive a lot of abuse surprisingly enough
aarvar has joined #nixos
<boomshroom>
lejonet: I was kicked out to my login screen and now i3 doesn't seem to remember my DISPLAY variable or the applications directories.
<Ralith>
okay what the hell
<Ralith>
something is actively and repeatedly mangling my fc cache
<lejonet>
boomshroom: :P
<Ralith>
(the user-local one)
<boomshroom>
lejnoet: I don't want to have to reboot, so I'm trying to see if i3 even has a DISPLAY variable, which means launching a shell from it and accessing it from elsewhere.
<boomshroom>
I'm currently in a TTY.
<lejonet>
boomshroom: well, it should have a DISPLAY variable, :0 usually works unless you've got several X servers
<boomshroom>
I have no idea what happened, but I suddenly have applications in my search bar.
<boomshroom>
And now things are working again despite me not doing anything?!
<lejonet>
magic!
<boomshroom>
lejonet: Programming really is just a form of wizardry.
m2 has joined #nixos
<lejonet>
boomshroom: it is indeed
<boomshroom>
At least my web browser remembers its sessions, so I didn't loose anything there either.
asuryawanshi has joined #nixos
<lejonet>
boomshroom: Clarke's third law "Any sufficiently advanced technology is indistinguishable from magic."
<boomshroom>
Where was I? Oh ya! clever: your QEMU user module doesn't seem to build. Also, you don't patch nix unless you enable arm or aarch64, both of which are broken.
hiratara has joined #nixos
Neo-- has quit [Ping timeout: 264 seconds]
jrolfs__ has quit [Ping timeout: 264 seconds]
MP2E has joined #nixos
<tmplt>
Solved my issue by disabling the sandbox
<tmplt>
I surmise internet access is denied in a sandbox?
<gchristensen>
it is yes, intentionally
<tmplt>
oh, well that explains it
<gchristensen>
usually it means a build is downloading from the internet where it sholdn't
<tmplt>
gchristensen: the derivation I want to build require some datasets. These are currently downloaded in the build state. Should fetchurl be used instead?
alex`` has joined #nixos
<gchristensen>
exactly
<boomshroom>
tmplt: Generally, yes, or some other fetch* function.
<clever>
which lets you apply overrides before the set of packages can reference itself
Ross has joined #nixos
<Ralith>
@_@
<boomshroom>
One of my parents' friends brought her laptop over for tech support. She broke it so badly that nearly any atempt to reset the system failed.
<boomshroom>
It'd probably be extremely hard to break any linux system if you prevent all access to the terminal, but at that point you're dealing with something more like ChromeOS.
<gchristensen>
probably extremely hard to use, then, too :)
<Ralith>
clever: if what makeScope does is useful, why is it opt-in?
<clever>
Ralith: not sure, but i use it any time i'm creating a set of packages
<{^_^}>
[nixpkgs] @dtzWill opened pull request #39773 → treewide: platforms.gnu -> gnu ++ linux, allow using musl → https://git.io/vp0We
<Ralith>
clever: can you point me at an example of proper use?
<Ralith>
that is definitely different than what I was partway through doing
<clever>
Ralith: i believe .overrideScope lets you apply overrides to the self passed in on line 16
logzet has quit [Remote host closed the connection]
<boomshroom>
Speaking of musl, is it currently possible to build a full NixOS system entirely with musl?
<gchristensen>
no
<Ralith>
clever: any reason not to do `packages = self: with self { ... };`?
erasmas has quit [Quit: leaving]
<boomshroom>
gchristensen: I want all the options with which to build my NixOS system, dammit!
<clever>
Ralith: you could do that, shouldnt make any difference
<simpson>
boomshroom: I'm sure that a stdenv could be rigged up, but I don't think that all packages work with musl.
<Ralith>
I would quite like to be able to use nix to build fully static binaries for distribution convenience
<Ralith>
clever: cool, thanks
<boomshroom>
simpson: There's already a musl platform available in lib.platforms.examples. It shouldn't be hard to build NixOS with an arbitrary localSystem.
<simpson>
Oh, cool.
<boomshroom>
simpson: I'm currently building a musl binutils as a part of my test.
<neonfuz>
MP2E: dolphinEmuMaster isn't building for me anymore
oida has joined #nixos
<MP2E>
ah, it could definitely use a bump. I'll update it today, thanks for the ping
<neonfuz>
sweet, thanks
tomaz has joined #nixos
tomaz is now known as Guest60540
Guest60540 has quit [Client Quit]
tomaz0 has joined #nixos
<tomaz0>
Hey, are there any docs on using buildPythonPackage?
<dtz>
erm I build many things w/musl haha ^_^
<dtz>
big blocker is systemd but I have that patched in my tree, just need to clean it up and maybe upstream it O:)
<Ralith>
aw, I have a systemd dep
<dtz>
(got a few things fixed in upstream systemd itself! \o/)
<Ralith>
(native structured logging via journald is <3)
<boomshroom>
I want to see NixOS become init independant. Not because I'm against systemd, but because I want to change the kernel itself in a single line!
alexteves has quit [Ping timeout: 240 seconds]
<Ralith>
clever: why `inherit pkgs` in that example?