pxc has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 256 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pikajude has quit [Quit: ZNC 1.6.6 - http://znc.in]
pikajude has joined #nix-darwin
pxc has quit [Ping timeout: 256 seconds]
pxc has joined #nix-darwin
hamishmack has joined #nix-darwin
philr has joined #nix-darwin
dustinm has quit [Quit: Leaving]
dustinm has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
philr has quit [Quit: WeeChat 2.1]
johnw has quit [Ping timeout: 250 seconds]
periklis has joined #nix-darwin
periklis has quit [Ping timeout: 260 seconds]
__Sander__ has joined #nix-darwin
kirelagin has joined #nix-darwin
<kirelagin> Hey everyone, I am trying to start using nix-darwin. It seems that it is inherently single-user, am I right? And if so, then what is the difference between system agents and user agents?
<LnL> daemons and system agents are the same except that agents only start when a user is logged in
<LnL> user agents can't run as a different user, etc.
<LnL> dhess: probably won't spend time on it myself but contributions are welcome, if there's a nixos module it probably won't be hard to port
kirelagin has quit [Quit: Page closed]
alexteves has joined #nix-darwin
alexteves_ has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
<nikivi> Is there a script somewhere that converts all packages installed in brew (brew list) to nix?
<nikivi> Or I'd have to do it manually
<nikivi> I have something like 100 packages so am curious
pxc has quit [Ping timeout: 256 seconds]
<LnL> not really, best thing I can think of is using nix-index to find all the binaries in /usr/local/Cellar or whatever the homebrew prefix is called
pxc has joined #nix-darwin
<eacameron> LnL: I'm having trouble using nix-docker as a remote builder with nix 2
<eacameron> I can ssh in just fine but nix-build on darwin is not doing any builds even when NIX_REMOTE_SYSTEMS is configured
<eacameron> Have you tried this since nix 2?
<LnL> NIX_REMOTE_SYSTEM was deprecated and doesn't exist anymore in 2.0
<eacameron> LnL: I saw that it was deprecated but thought it was still supported for backward support
<LnL> no, the build hook was also removed there's only --option builders now
Lisanna has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
<eacameron> LnL: Ah thanks. Hmm...ok trying option builders
<LnL> also if you switched to a nix-daemon install with the upgrade it will require a bit more setup to work
<LnL> since some parts of build-remote will be handled by the daemon instead of your local user
<eacameron> LnL: I don't know if I did or not. How would I tell?
<LnL> nix-info
<eacameron> system: "x86_64-darwin", multi-user?: yes, version: nix-env (Nix) 2.0.2, channels(root): "nixpkgs-18.09pre139198.9d0b6b9dfc9", channels(elliot): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<LnL> yeah multi-user
<eacameron> Ok
<eacameron> I can read up on the docs then and try setting it up properly
<eacameron> Would it be possible to just ssh into the container and do nix-build heh
<LnL> this might help
<LnL> nix-darwin can manage the daemon changes for you, but I don't think those are necessary anymore
<eacameron> awesome!
<LnL> the main pitfall is known_hosts
johnw has joined #nix-darwin
johnw has quit [Quit: ZNC - http://znc.in]
johnw has joined #nix-darwin
<nikivi> I installed node with nix now
<nikivi> But I also have node with brew and when I try to uninstall it says I can't
<nikivi> I am wary of uninstalling it now from brew
<nikivi> because of dependencies
<nikivi> If I have it installed with nix its the same thing as brew, no?
<nikivi> it should be picked up
Lisanna has quit [Remote host closed the connection]
<nikivi> never mind, I managed to do it 🎊
<nikivi> It was just a dependency to yarn but I installed it with nix too
alexteves_ has quit [Ping timeout: 256 seconds]
Sonarpulse has joined #nix-darwin
ben has quit [Quit: leaving]
ben has joined #nix-darwin
<LnL> most things should be available from nix
<johnw> fixed rabbitmq_server, btw
<johnw> it wasn't using getconf, but some custom hack that only worked on Linux
<LnL> oh nice, I should try that out and do some ofborg development again
<LnL> instead of flying blind like I did before :)
<LnL> gchristensen: do you develop with a local server or just depend on the tests?
philr has joined #nix-darwin
pxc has quit [Quit: WeeChat 2.1]
Lisanna has joined #nix-darwin
philr has quit [Ping timeout: 256 seconds]
<nikivi> Hey LnL
<nikivi> I just installed nix darwin with nix-build
<nikivi> I can't quite understand configuration.nix so I will skip editing it
<nikivi> can you explain a bit how one can use nix darwin without going it defining everything inside configuration.nix?
<LnL> not sure what you're asking, the whole point is to define everything in configuration.nix
<nikivi> But what happens if there is no setting yet to define there
<nikivi> these are my dotfiles now, I am curious if I can translate it fully into nix
<nikivi> Would you like to manage <darwin> with nix-channel?
<nikivi> what does that mean
<LnL> whether you want to want to update the system modules like you would nixpkgs
<LnL> or handle that yourself with eg. a local checkout
<nikivi> whats an example of system module
<LnL> the module that manages the nix-daemon service for example
<LnL> it manages system services/packages and /etc rather than your dotfiles
<nikivi> Would you like to load darwin configuration in /etc/bashrc
<nikivi> if I use zsh
<nikivi> I should say no here I think
<LnL> zsh you'll have to configure yourself
<nikivi> you use bash?
<LnL> there are some examples of different options in the install section
<nikivi> I got these two warnings in the end
<nikivi> warning: not linking environment.etc."bashrc" because /etc/bashrc exists, skipping...
<nikivi> warning: not linking environment.etc."nix/nix.conf" because /etc/nix/nix.conf exists, skipping...
<nikivi> warning: not linking environment.etc."nix/nix.conf" because /etc/nix/nix.conf exists, skipping...
<nikivi> It still finished tho
<LnL> yeah so it won't overwrite existing file you might have changed yourself
<LnL> if you set programs.zsh.enable = true it will manage zsh for your
<LnL> but you'll have to move or modify the existing /etc/zshrc yourself
* nikivi excited to go all in on nix
<nikivi> So ~/.nixpkgs/darwin-configuration.nix is the file I should edit
<nikivi> And the idea is that I put ALL my macOS related configs there?
<LnL> yeah
<nikivi> what is the main benefit of doing it?
<nikivi> I mean having to support this configuration.nix
<LnL> I use the same configuration.nix between my personal and work machine
<nikivi> I only have one mac
<nikivi> Would it be worth it in this case?
<nikivi> I am just curious because it seems that it takes more time to maintain configuration.nix than normal config
<nikivi> but maybe wrong
<LnL> it requires a bit more effort but makes it easier to reproduce your setup
<LnL> unlike nix-env it keeps your package versions consistent
<nikivi> so I just installed nix-darwin
<LnL> but for a single machine the biggest benefit is management of nix and the nix-daemon itself (and ther service)
<nikivi> if I forget about it for a little my mac works as normal right?
<LnL> and other*
<nikivi> where does configuration.nix come into play?
<nikivi> do I have to activate it in some way
<LnL> darwin-rebuild switch will update your system packages/service and whatever else you configured
<LnL> you can still keep using nix-env, etc. to install things imperatively
<nikivi> i thins your config?
<nikivi> its pretty small
<LnL> that's old stuff
<LnL> most of my configuration is in the examples folder https://github.com/LnL7/nix-darwin/blob/master/modules/examples/lnl.nix
<nikivi> oh wow
<nikivi> thanks, will read now
<nikivi> I have a small question though, I use this tool Karabiner
<nikivi> I don't have to translate that to nix right?
<LnL> I use khd/skhd for keybindings
<LnL> this is basically what I used to use karbiner for https://github.com/LnL7/nix-darwin/blob/master/modules/examples/lnl.nix#L395-L398
<nikivi> I am very very heavy into Karabiner
<nikivi> but why do you need to nixify it?
<LnL> yeah apparently :D
<nikivi> For example I have a .zsh file with aliases
<nikivi> I can just use that and run it from nix?
<nikivi> or I have to nixify all aliases declarations
<LnL> you don't have to, but if nix-darwin supported it in an idempotent way you'd get support for rollbacks, etc.
<nikivi> oh I see
<nikivi> that's awesome
<nikivi> Would love to contribute to nix-darwin where I can
<nikivi> Once I get my head around nix first
<LnL> great :)
<nikivi> LnL Have you tried nixOS?
<LnL> I use nixos on my desktop
<LnL> nix-darwin is basically just things stolen from nixos that make sense on macOS
<nikivi> isn't it a huge context switch to use mac and linux
<nikivi> why not go all in on either mac or nix
<nikivi> nixOS*
<nikivi> I think nixOS is amazing for servers
<LnL> almost everything I use except for some ui applications is exactly the same on darwin as nixos
<nikivi> so you have to configuration.nix files?
<nikivi> one for nixOS and one for darwin, right?
<LnL> yeah, but a bunch of stuff is shared like my vim config
<nikivi> I can't wait to nuke brew from my system
<nikivi> I have this obsession of only using things I need on my OS
<nikivi> and have a complete understanding of what goes on in the system
<nikivi> So if you got a brand new mac
<nikivi> How long would it take you to reach the same state of things that you have now
<LnL> last time I nuked my machine it took something like ~30min, but that's mostly typing in passwords for stuff
<nikivi> what about things like ~/Documents
<nikivi> PDFs, files, etc
<LnL> git, dropbox or my nas
<LnL> oh yeah, dropbox takes forever to actually finish syncing
Sonarpulse has quit [Ping timeout: 276 seconds]