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