00:01
<
nikivi >
how do I delete it btw?
00:02
<
LnL >
oh yeah, that's just the list of applications with accessibility access
00:03
<
LnL >
but everything related to chunkwm like /etc/chunkwmrc will be gone now
00:06
<
LnL >
from disk, not until you garbage collect
00:06
<
LnL >
this is what allows nix to rollback etc.
00:07
<
nikivi >
no results
00:08
<
LnL >
it's not nix-darwin specifc
00:08
<
LnL >
you'd do something like sudo nix-collect-garbage --delete-older-than 30d
00:13
<
nikivi >
run that command
00:13
<
nikivi >
the file is still there
00:13
<
nikivi >
/nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6/bin/chunkwm
00:14
<
clever >
nikivi: nix-store -q --roots /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6
00:14
<
nikivi >
what does that do
00:14
<
clever >
queries the list of GC roots
00:15
<
nikivi >
it seems to never finish, the command
00:15
<
nikivi >
I just dig GC
00:15
<
clever >
which command never finishes?
00:15
<
nikivi >
nix-store -q --roots /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6
00:16
<
clever >
that should be a fast command
00:16
<
nikivi >
still going for me
00:16
<
clever >
wait for it to finish, it shouldnt be that slow
00:16
<
nikivi >
does the result tell me why chunkwm wasnt properly garbage collected?
00:17
<
nikivi >
I might leave it running overnight
00:17
<
nikivi >
its still going :P
00:17
<
clever >
can you pastebin the output of `ps aux | grep nix` ?
00:18
<
nikivi >
❯ nix-store -q --roots /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6 ~/.dotfiles/nix
00:18
<
nikivi >
{memory:17}
00:18
<
nikivi >
it finished
00:18
<
clever >
its in use by something that is currently running
00:18
<
clever >
nix cant GC it until that program has been closed
00:18
<
clever >
ps aux | grep chunkwm
00:18
<
nikivi >
perhaps nix-darwin is using it still for something
00:18
<
nikivi >
im not using it
00:19
<
clever >
rebooting is the simplest way to clear that in-use flag, then you can `nix-store --delete /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6`
00:25
<
nikivi >
if I never use vim but use neovim instead
00:26
<
nikivi >
its safe to remove 'pkgs.vim' from system packages?
00:26
<
nikivi >
I thought vim comes installed with macOS already
00:26
<
nikivi >
why specify it in darwin nix
00:42
<
nikivi >
I just restarted my mac
00:42
<
nikivi >
and ps aux | grep chunkwm
00:42
<
nikivi >
still shows
00:42
<
nikivi >
nikivi 1070 0.0 0.0 4286224 940 s001 R+ 2:42am 0:00.00 grep chunkwm
00:42
<
nikivi >
I thought i deleted it
00:43
<
nikivi >
this is annoying :(
00:43
<
nikivi >
I don't think I will install software with nix-darwin
00:43
<
nikivi >
as I thought it could cleanly remove it after
00:48
<
clever >
nikivi: that is grep finding itself
00:49
<
clever >
no idea, thats not in nix
00:51
<
nikivi >
/nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6/bin/chunkwm
00:51
<
nikivi >
path of the file
00:51
<
nikivi >
if you right click on the thing
00:51
<
nikivi >
I suppose I can delete it manually
00:51
<
nikivi >
but I thought store was immutable
00:52
<
nikivi >
or something like that
00:53
<
clever >
2018-08-24 21:19:33 < clever> rebooting is the simplest way to clear that in-use flag, then you can `nix-store --delete /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6`
00:53
<
clever >
did you tell nix to delete it after rebooting?
00:53
<
nikivi >
I rebooted
00:54
<
nikivi >
will run the cmd
00:54
<
nikivi >
hope that works
00:54
<
nikivi >
error: cannot delete path '/nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6' since it is still alive
00:54
<
clever >
reboot again, and try to delete it, without opening whatever you screenshotted
00:54
<
clever >
you made it be in-use again
00:57
<
nikivi >
error: cannot delete path '/nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6' since it is still alive
00:57
<
nikivi >
restarted and first thing opened iTerm to write the cmd
00:58
<
clever >
you will probably need to change some setting in darwin then to stop it from using that
00:58
<
nikivi >
my darwin config
00:58
<
nikivi >
I ran `darwin-rebuild switch` on
01:02
<
clever >
there are some non-nix settings within darwin that are to blame
01:31
jtojnar has quit [Read error: Connection reset by peer]
01:31
jtojnar has joined #nix-darwin
02:51
philr has joined #nix-darwin
04:17
dukedave has joined #nix-darwin
06:18
Lisanna has joined #nix-darwin
07:08
philr has quit [Quit: WeeChat 2.2]
07:13
Lisanna has quit [Remote host closed the connection]
07:14
Lisanna has joined #nix-darwin
08:31
peel has joined #nix-darwin
08:35
Lisanna has quit [Remote host closed the connection]
09:12
hamishmack has joined #nix-darwin
10:58
jtojnar has quit [Ping timeout: 252 seconds]
11:56
peel has quit [Quit: Connection closed for inactivity]
12:25
jtojnar has joined #nix-darwin
12:39
jtojnar has quit [Read error: Connection reset by peer]
12:39
jtojnar has joined #nix-darwin
12:43
jtojnar has quit [Client Quit]
13:43
<
nikivi >
if you are around, can you help me understand how to get rid of a running chunkwm process
13:43
<
nikivi >
even though I supposedly deleted chunkwm
13:44
<
LnL >
it's still running?
13:45
<
nikivi >
and its still in accesability settings
13:45
<
nikivi >
❯ ps aux | grep chunkwm ~/src/clones/alfred-searchio
13:45
<
nikivi >
nikivi 3365 0.0 0.0 4286224 964 s000 S+ 3:45pm 0:00.00 grep chunkwm
13:46
<
LnL >
accessibility is something different, it doesn't have to exist to be part of that list
13:47
<
nikivi >
its just if I right click on it there, I get it open in Finder
13:47
<
nikivi >
and the path to it is /nix/store/daf5mgk8asgpmw7nprj72qi5xh1j3b6p-chunkwm-0.4.6/bin/chunkwm
13:47
<
LnL >
and apple made that readonly with SIP so we can't add/remove stuff automatically anymore
13:48
<
LnL >
maybe you pasted wrong, but it's not running anymore
13:49
<
nikivi >
so for accesability then, how would I remove it
13:49
<
nikivi >
just delete that binary in Finder?
13:49
<
LnL >
edit the list in system preferences
13:49
<
nikivi >
or delete the 'daf5..' dir
13:50
<
nikivi >
oh okay I could just press minus there, that works too
13:50
<
LnL >
no, going behind the back of nix is a bad idea
13:50
<
nikivi >
I guess its gone for good
13:50
<
nikivi >
decided to not go with chunkwm after all, found it introduced quite a bit of delay
13:50
<
LnL >
running garbage collect deletes stuff that's safe to remove
13:52
<
LnL >
it's pretty snappy for me
13:52
<
LnL >
and noticeably better than kwm (it's predecessor)
13:52
<
nikivi >
its also that I dont do any fancy wm stuff
13:53
<
nikivi >
I either have app full screen, maximized, or split to left/right side
13:53
<
LnL >
I used moom before
13:54
<
LnL >
it's similar but only per-window and you have to resize things yourself
13:57
<
nikivi >
why do I still have to enter password on each darwin-rebuild switch :(
13:57
<
nikivi >
I added the line correctly to sudoers file
13:58
<
nikivi >
/etc/sudoers.d/nix-darwin
13:58
<
nikivi >
nikivi ALL=(ALL:ALL) NOPASSWD: /run/current-system/sw/bin/darwin-rebuild
13:59
jtojnar has joined #nix-darwin
14:22
<
nikivi >
showing my current path in the right
14:23
<
nikivi >
I didn't have that before using nix-darwin I believe
14:23
<
nikivi >
and its useless as I use Pure zsh plugin already
14:24
<
nikivi >
I just deleted all of my zshrc and I still have the thing showing
14:24
<
nikivi >
so its defintely nix-darwin changing something
14:24
<
LnL >
ah might be the default programs.zsh.promptInit
14:24
<
nikivi >
any way to disable it
14:25
<
LnL >
sure, programs.zsh.promptInit = "";
14:25
<
nikivi >
I dont want nix-darwin changing anything opaquely
14:25
<
nikivi >
is ; at end of lines mandatory in .nix?
14:26
<
nikivi >
zsh.promtInit fixed it though, thanks
14:27
<
LnL >
in attribute sets, yes
14:29
<
LnL >
there are a few small things it configures by default because it makes more sense
14:29
<
LnL >
like eg. bindkey -e
14:35
<
nikivi >
is there a way to see what it configures by default?
14:35
<
nikivi >
because I had 'bindkey -e # Emacs keymap' in my zshrc
14:36
<
nikivi >
but have few more things I dont want to duplicate
14:36
<
LnL >
easiest is to look at the generated files in /etc/static
14:38
<
nikivi >
# Also set to fix `nix run` shells.
14:38
<
nikivi >
__ETC_BASHRC_SOURCED=1
14:38
<
nikivi >
why is this there?
14:38
<
nikivi >
just interested what breaks in `nix run`
14:39
<
nikivi >
what takes precedence btw?
14:39
<
nikivi >
i.e. nix-darwin sets SAVEHIST=2000
14:39
<
nikivi >
in my own zshrc I have: SAVEHIST=10000 # Number of history entries to save to disk
14:40
<
LnL >
these defaults should run first so your own stuff should be used if set
14:47
<
nikivi >
started a small wiki :)
14:47
<
nikivi >
although first note seems to be wrong
14:47
<
nikivi >
I still have to enter password
14:48
<
LnL >
actually now that you mention it, I should enable the wiki on nix-darwin
14:48
<
nikivi >
you should
14:48
<
nikivi >
you probably answer many of same questions
14:49
<
nikivi >
those should be online and documented
14:54
<
LnL >
oh, I know why the sudo thing does't work
14:54
<
LnL >
that's only for `sudo darwin-rebuild` which doesn't work at the moment
14:55
<
nikivi >
why doesnt it work?
14:55
<
nikivi >
I might help fix it as I want to try get into contributing more to this
14:55
<
nikivi >
I actually am starting to like the idea of nixifying my config
14:58
<
LnL >
it's because some stuff needs to run as the current user
14:59
<
LnL >
there's /run/current-system/activate and /run/current-system/activate-user
15:12
<
nikivi >
so for now I am always forced to enter my password on each refresh
15:19
<
LnL >
not
_every_ rebuild
15:34
alexteves has joined #nix-darwin
18:01
pxc has joined #nix-darwin
18:36
pxc has quit [Quit: WeeChat 2.1]
18:39
pxc has joined #nix-darwin
18:51
Lisanna has joined #nix-darwin
19:04
Lisanna has quit [Quit: Lisanna]
22:22
pxc has quit [Ping timeout: 264 seconds]
22:44
philr has joined #nix-darwin
23:14
alexteves has quit [Remote host closed the connection]