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