u/monnocat

▲ 6 r/NixOS

[Newbie] Understanding user settings

So I'm used to zsh with powerlevel10k and I wanted to set it up on my brand new NixOS installation, however I am having trouble understanding how all of this is supposed to work. Installing zsh itself was very easy, I just added programs.zsh.enable = true; and users.defaultUserShell = pkgs.zsh; to make it the default. I also added the git and zoxide plugins to programs.zsh.ohMyZsh.plugins , but setting programs.zsh.ohMyZsh.theme to "powerlevel10k/powerlevel10k" did not work, omz just complained it didn't exist. I've tried adding a promptInit but that didn't exactly go as I wanted it to: it did enable p10k, but I had to go through the process of configuring it, which I assume means that it's a per-user thing, and I wanted to have a global config so that if I copy it to another machine I would have the same config without needing to also copy dotfiles from my home directory. I saw that there is something called a home manager, but I couldn't figure out how to get that working.

Of course I could probably just include the dotfile in the config and paste it into the home directory, but I assume that's not how you're supposed to do it. Please share any tips on how to do this idiomatically.

reddit.com
u/monnocat — 3 days ago

Archinstall on main partition, need to recover files

Hello there. I'm new to arch and after trying to install it with archinstall I realised I installed it on my main partition, where all my files used to be. My question is, is it possible to recover my files, or at least some of them? The previous OS I used was Ubuntu and I'm pretty sure the filesystem was ext4, though I set that up very long ago.

The silver lining is that at least arch is working perfectly fine. Let me know if any additional information is needed and I'll add it to the post.

Thanks to everyone who replied, here's the TLDR for any unfortunate souls who repeated my mistake:

  1. Stop using the drive immediately
  2. Use PhotoRec to try to recover at least some files
  3. Make backups (duh)
reddit.com
u/monnocat — 4 days ago