carlosdagos has joined #nix-darwin
LnL has quit [Quit: exit 1]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
carlosdagos has quit [Quit: Connection closed for inactivity]
__Sander__ has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
Guest83973 has joined #nix-darwin
Guest83973 is now known as LnL
philr has quit [Ping timeout: 272 seconds]
janders223 has joined #nix-darwin
<janders223> new to nix and nix-darwin... everything _seems_ to have installed correctly and gpg is working fine, but gpg-agent seems to not be setting GPG_TTY and I am unable to SSH. Any thoughts on where I can start debugging?
<qyliss^work> You might want to try pinentry_mac
<qyliss^work> Saves the whole GPG_TTY headache
<janders223> I had everything installed and working correctly before running nix-darwin
<janders223> with pinentry-mac
<qyliss^work> What do you have in gpg-agent.conf?
<janders223> it's the same gpg-agent.conf that ran fine before
<janders223> actually I lied, I used pinentry-curses because I couldn't get pinentry-mac to run
<janders223> however, it worked prior to nix-darwin when I installed gnupg manually through nix
<qyliss^work> I have `pinentry-program /run/current-system/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac`
<janders223> let me try that
<qyliss^work> Which requires `environment.systemPackages = with pkgs; [ pinentry_mac ];`
<janders223> barring either needing to reboot or logout...no dice
janders223 has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 258 seconds]
<LnL> never had any problems with it, did you enable the agent?
abathur has joined #nix-darwin
<abathur> Could use a sanity check on something. I've been trying to get the bash $PS0 prompt variable working; appears to do nothing in bash on macos (GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.7.0) but works fine when I ssh into nixos at home (GNU bash, version 4.4.23(1)-release (x86_64-unknown-linux-gnu). Can anyone confirm if they see the same on macos? :)
<LnL> what does PS0 do?
<abathur> string printed after command is entered but before run
<abathur> added in bash 4.4
<abathur> can just do like PS0="<test>" and run a command to see
<LnL> oh that, I higly doubt that's in the ancient bash version of darwin
<LnL> use bashInteractive from nix if you want a reasonable version :)
<abathur> it's not, but I'm using the nix-built GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.7.0)
<gchristensen> how did you get that bash? pkgs.bash? pkgs.bashInteractive?
<abathur> or am I
<abathur> hmm, not sure, would that matter here?
<gchristensen> probably
<gchristensen> pkgs.bash is a sort of weird bash
<abathur> ahh
<abathur> ok, I was thinking I could just rely on the default nix bash
<LnL> pkgs.bash doesn't link against ncurses and things like that so it might behave a bit differently
<LnL> I'd be surprised if this doesn't work in both tho
<abathur> actually
<abathur> I think I may just be a dumbass
<abathur> I was assuming since $SHELL was pointing to the nix bash that I was running it
<abathur> but $BASH disagrees
<gchristensen> oops :)
<abathur> :D
<LnL> ah yeah, you won't unless you chsh or configure your terminal to use it specifically
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 246 seconds]
trcc has joined #nix-darwin
<abathur> lnl: looking back over options here and a little unsure about what is the "intended" way to manage the shell. From the options it looks like I should use environment.shells, but I get a complaint about the /etc/shells file in the way without any further suggestion. I'm inclined to just throw it in my packages and put the chsh command in the bootstrap script I use to install nix-darwin?
<LnL> yeah, I made the tradeoff of not overriding existing system stuff
<LnL> which means it's safer and won't mess up existing (impure) configuration, but results in some manual intervention for those cases
<LnL> chsh implies also replacing or editing /etc/shells
<abathur> nod
cbarrett_ has joined #nix-darwin
cbarrett has quit [Ping timeout: 268 seconds]
flokli has quit [Ping timeout: 268 seconds]
cbarrett_ is now known as cbarrett
flokli has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 250 seconds]
hamishmack has joined #nix-darwin
philr has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abathur has quit [Ping timeout: 250 seconds]