jtojnar_ has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jtojnar_ has quit [Ping timeout: 264 seconds]
jtojnar has quit [Read error: Connection reset by peer]
Lisanna has quit [Quit: Lisanna]
matthewbauer has quit [Read error: Connection reset by peer]
philr has joined #nix-darwin
matthewbauer has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Ping timeout: 276 seconds]
philr has quit [Quit: WeeChat 2.1]
softinio has quit [Quit: Connection closed for inactivity]
Lisanna has joined #nix-darwin
jtojnar has joined #nix-darwin
edude03 has joined #nix-darwin
<edude03> Hey peeps, I have a number of developers who are using osx for development on rust, and I'm trying to figure out how to setup fetchgitprivate for them
<edude03> The complicated thing is I'd like the nix daemon to use their own ssh key instead of a deploy key or something like that
<edude03> How can I set that up?
edude03 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
__Sander__ has joined #nix-darwin
edude03 has joined #nix-darwin
aminechikhaoui has quit [Ping timeout: 240 seconds]
aminechikhaoui has joined #nix-darwin
edude03 has quit [Read error: Connection reset by peer]
<nikivi> how hard would it be to write brew2nix tool?
<nikivi> convert brew formulas to nix deriviations
matthewbauer has joined #nix-darwin
szicari has joined #nix-darwin
alexteves_ has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
<gchristensen> hey so I totally forgot to look at mac2/3/6/9
<gchristensen> will do that now. for later: is there a better version of https://github.com/LnL7/nix-darwin/pull/56 ?
jtojnar has quit [Quit: jtojnar]
<gchristensen> as a note related to mac{2,3,6,9} I wish I actually knew how to admin these things instead of just pretending
<gchristensen> Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
<gchristensen> /dev/disk0s2 931Gi 925Gi 5.5Gi 100% 26591379 4268375900 1% /
andreabedini has joined #nix-darwin
<andreabedini> I notice that nixpkgs/pkgs/os-specific/darwin/apple-source-releases/default.nix is a bit outdated and doesn't include newer versions of macos. Is that a bit deal? should I try to update it?
<LnL> CF-1253 (coming soon!)
<LnL> -_-
<LnL> gchristensen: inodes?
<gchristensen> _doh_
<gchristensen> I was misreading the output
<gchristensen> Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
<gchristensen> /dev/disk0s2 931Gi 925Gi 5.5Gi 100% 26591382 4268375897 1% /
<andreabedini> thanks LnL
szicari has quit [Quit: Leaving.]
<gchristensen> :/
<gchristensen> error: executing SQLite statement ‘pragma synchronous = normal’: file is encrypted or is not a database (in ‘/nix/var/nix/db/db.sqlite’)
<LnL> rip
<gchristensen> I saw this once before and PM'd it to you but we never chatted about what the solution was
<matthewbauer> andreabedini: yeah it's not really that big of a deal for lots of things. people are always welcome to bump things when they can get them to build though. the website is https://opensource.apple.com
<matthewbauer> we need some way to automate it though like ryantm's stuff
<andreabedini> matthewbauer: I have been chatting with LnL on #nixos and I was looking at https://github.com/apple/swift-corelibs-foundation/tree/master/CoreFoundation which seems to be very close to what I have installed on my mac (high sierra)
<LnL> gchristensen: solution? isn't the db corrupted
<gchristensen> not sure ... maybe?
<matthewbauer> yeah copumpkin looked at this and IIRC this isn't an exact replacement for "real CF". see https://github.com/NixOS/nixpkgs/pull/37403#issuecomment-374676240
<matthewbauer> we need someone to get swift on macos working though!
<LnL> gchristensen: there is a way to reinitialize a store with existing paths but I forgot how
<andreabedini> matthewbauer: thanks, I'll read up
<gchristensen> well, the corrupted store is a less bad issue
<gchristensen> well ... rather
<gchristensen> the working machines are more pressing.
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
szicari has joined #nix-darwin
<LnL> matthewbauer: oh right, I forgot about that :/
__Sander__ has quit [Quit: Konversation terminated!]
<matthewbauer> lnl: what is the status of sandboxing on macos? i think this is causing an issue for me in Nixpkgs
<LnL> stuff with transitive frameworks doesn't work
<LnL> and build-remote/hydra still needs some changes, but most local builds should work
<matthewbauer> okay cool. i get issues where derivations always pull in x11 dependencies even when none are provided to the nix builder
<matthewbauer> there is some xpc framework installed that is always pulled in
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<gchristensen> LnL: again, how can I make `ssh amac nix-store` work, without an absolute path in the authorized_keys?
<gchristensen> I put a file in in /etc/paths.d/ but it doesn't work for `ssh amac cmd`
<LnL> ln -s /etc/bashrc ~/.bashrc
<matthewbauer> i had the same issue! let me see what i did
<gchristensen> oohhhhhh
<gchristensen> cool
<gchristensen> I forgot to add a g c root
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<gchristensen> somehow /etc/static/ was GC'd
Sonarpulse has joined #nix-darwin
<gchristensen> LnL: where does nix-darwin's gc root get created?
<LnL> huh!
<LnL> the current system gets linked as a gcroot with every rebuild
<gchristensen> where does that happen? I don't use the darwin-rebuild command, I just call activate by hand, since I `nix-copy-closure` it over
<gchristensen> I guess part of darwin-rebulid =)
<LnL> can't look right now, brb
<gchristensen> no worries
philr has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]
<LnL> and /nix/var/nix/profiles/system but those might not exist in your case
matthewbauer has joined #nix-darwin
<gchristensen> ok I think I sorted it :)
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<LnL> hmm, so did that exist?
<gchristensen> I'll debug on the next machine, once mac1 is healthy again
<gchristensen> error: executing SQLite statement 'pragma synchronous = normal': file is not a database (in '/nix/var/nix/db/db.sqlite')
<gchristensen> mac2 maybe hasn't worked in a month+?
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<gchristensen> LnL: I'd like to send you a PR adding --target-host and --build-host to darwin-rebuild. would you like that?
<LnL> sure! I remember looking at the nixos implementation, just skipped everything that didn't look particularly useful
<gchristensen> cool
philr has quit [Ping timeout: 264 seconds]
<LnL> does anybody know if there's a way to make cp -Rsn resolve source symlinks?
<LnL> or some kind of alternative?
<gchristensen> rsync
<gchristensen> I wonder if I could trick nixops in to using nix-darwin ... hmmm :)
<LnL> huh, rsync can create symlink trees?
<LnL> possibly :)
<LnL> not sure what assumptions it makes
<gchristensen> wait, what are you trying to do?
<LnL> buildEnv inside of a build
<LnL> and slightly smarter
<LnL> that works, but takes 5-10m for a not that large tree :(
<gchristensen> ouch :(
<gchristensen> lol` ..nixops-wrapped-wrapped`
<LnL> I wish we could solve wrappers in a different way
<gchristensen> me too
<matthewbauer> yeah buildEnv *should* ignore wrappers but i always get tons of . files in my PATH
<LnL> problem with buildEnv in my case is that it considers a -> b -> c + a -> c a conflict so it barfs out a ton of warnings
<matthewbauer> yeah someone needs to rewrite it in rust!
<LnL> let's make stdenv rebuilds even more fun!
<matthewbauer> lol
<gchristensen> adding this functionality is not pretty :$
<gchristensen> LnL: have you considered replacing most of darwin-rebuild with nix-deploy?
<LnL> vaguely remember that name, looks like something different tho
<gchristensen> cyeah
<gchristensen> I'm thinking it might be easier / nicer for you if I just built the thing locally and used nix-deploy to handle deployment
szicari has quit [Quit: Leaving.]
szicari has joined #nix-darwin
szicari has quit [Quit: Leaving.]
disasm has quit [Ping timeout: 240 seconds]
alexteves_ has quit [Remote host closed the connection]
disasm has joined #nix-darwin
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Ping timeout: 256 seconds]
matthewbauer has joined #nix-darwin
Leira has joined #nix-darwin