ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
rajivr has joined #home-manager
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
K0kada has quit [Ping timeout: 240 seconds]
K0kada has joined #home-manager
K0kada has quit [Remote host closed the connection]
mcornick has joined #home-manager
cole-h has quit [Ping timeout: 265 seconds]
mananamenos has joined #home-manager
<mananamenos> hi, i've added programs.zsh = { enable = true; enableAutosu...} to my home.nix. However, when i launch terminal in gnome it is still bash. How do I make default to zsh?
mananamenos_ has joined #home-manager
mananamenos has quit [Ping timeout: 260 seconds]
<s1341_> hi.
<s1341_> I'm getting this error when trying to home-manager switch:
<s1341_> mananamenos_: you need to set `shell = pkgs.zsh` on your user in configuration.nix
<mananamenos_> s1341_, right, i've added something similar `users.defaultUserShell = pkgs.zsh;` to configuration.nix and now it works.
<mananamenos_> however, a weird thing has happened after i've added this line, when in log in gnome screen my default user name has disappeared. I need to write in manually.
<s1341_> that's weird.
<mananamenos_> s1341_, also I have `users.users.mananamenos = {isNormalUser = true; extraGroups = [ "wheel" ]; }; home.username = "mananamenos"; ` in my configuration.nix, but now with home-manager in home.nix i also have `home.homeDirectory = "/home/mananamenos"; etc`. Are they both needed and have to be in sync also or can I drop one of them?
<s1341_> mananamenos_: not sure. fwiw, I don't have the home.username in my configuration.nix.
<mananamenos_> s1341_, thanks
<s1341_> mananamenos_: np.
<madonius[m]> has anyone a multiaccount neomutt setup running with home-manager
<madonius[m]> * has anyone a multiaccount neomutt setup running with home-manager?
mananamenos has joined #home-manager
mananamenos_ has quit [Ping timeout: 260 seconds]
<mananamenos> s1341_, i've found the issue discussion here https://discourse.nixos.org/t/normal-users-not-appearing-in-login-manager-lists/4619/2
<s1341_> mananamenos: ok.
<s1341_> does that fix work for you?
<mananamenos> s1341_, i'll see in a bit when i restart
<s1341_> ok.
mananamenos_ has joined #home-manager
<mananamenos_> s1341_, no, that didn't fixed it :/
<mananamenos_> *fix
mananamenos has quit [Ping timeout: 260 seconds]
<s1341_> :*(
<mananamenos_> s1341_, and now with zsh as my default shell, i started getting this error `error: file 'home-manager/home-manager/home-manager.nix' was nt found in the Nix search path (add it using $NIX_PATH or -I)`
<mananamenos_> when trying `home-manager switch`
<mananamenos_> it has messed up..
<s1341_> hrm.
<s1341_> i don't get that.
<rycee> mananamenos_: If you use the NixOS module then your username and home directory is copied from the system configuration: https://github.com/nix-community/home-manager/blob/3327cbe1f9d355fbeb5ee204908ab1013c18f685/nixos/default.nix#L33-L34
<rycee> Also, if you use the NixOS module then you cannot use the `home-manager` tool.
<mananamenos_> rycee, what do you with NixOS module? Yes I use nixos os, have my configuration.nix with minimal stuff, and then everything from git config to packages in home.nix. Im quiet lost here i suppose :)
mananamenos_ has quit [Ping timeout: 260 seconds]
mananamenos has joined #home-manager
sleepyMonad has quit [Quit: WeeChat 2.9]
sleepyMonad has joined #home-manager
mananamenos has quit [Ping timeout: 260 seconds]
__monty__ has joined #home-manager
srk has quit [Remote host closed the connection]
srk has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has joined #home-manager
malSet has quit [Ping timeout: 256 seconds]
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
simpson has quit [*.net *.split]
simpson has joined #home-manager
mcornick has quit [Quit: bbl]
cyphase has quit [Ping timeout: 260 seconds]
cole-h has joined #home-manager
mcornick has joined #home-manager
simisimis has joined #home-manager
cole-h has quit [Ping timeout: 260 seconds]
<simisimis> hi guys, can someone advice me of what would be a home-manager way to create an empty folder in ~/.cache/? I see in homemanager documentation home.file.<name>.source
<simisimis> Path of the source file or directory but the only way I managed to create a dir is if I do home.file.<name>.source = builtins.fetchGit{} but I don't think creating an empty git repo and sourcing it is a nice way to do it. I am new to nix so perhaps I am missing something very simple but I cannot seem to google it out..
<__monty__> The source there just means what the source file/dir is that will be copied. It doesn't mean sourcing in the bash sense.
<simisimis> is there perhaps any nix(os) builtin way to create an empty folder?
<patagonicus> simisimis: For home-manager I'd probably just go with `home.activation.foo = lib.hm.dag.entryAfter ["writeBoundary"] "$DRY_RUN_CMD mkdir -p ${xdg.cacheHome}/foo";` (untested, so might be slightly wrong)
<patagonicus> If you need specific permissions you could use install -m 0700 -d "${xdg.cacheHome}/foo"
simisimis has quit [Ping timeout: 240 seconds]
moanoid has joined #home-manager
<moanoid> hello! I'm trying to set up neomutt using home manager. I'm getting an `Unknown Mailbox: $PATH_TO_MAILBOX` error. Any ideas on what could be causing that?
<moanoid> I can provide config if that helps
rajivr has quit [Quit: Connection closed for inactivity]
aveltras has joined #home-manager
simisimis has joined #home-manager
<simisimis> thanks patagonicus! will look into it
simisimis has quit [Ping timeout: 240 seconds]
<moanoid> nevermind, resolved!
moanoid has quit [Quit: Connection closed]
kenran has joined #home-manager
cyphase has joined #home-manager
kenran has quit [Remote host closed the connection]
kenran has joined #home-manager
<kenran> Do you have any examples for a modularized hm config, but probably without using flakes?
<kenran> My situation is as follows: I'm using one NixOS, one macOS and one ubuntu system at the moment and the requirements for those 3 are different with a good deal of overlap. Back when it was only two I had a boolean switch ("isDarwin"), and the parts of my config that needed to adapt to that were in .nix functions that took this parameter as an argument.
<kenran> It seems to me like the way to go would be to create a module for each of those parts and instead of just passing a parameter (which is now more complex even due to more systems) I could make these module options. Or is that the wrong path already?
aveltras has quit [Quit: Connection closed for inactivity]
<piegames[m]> kenran (IRC): You can have a look at mine, though it is a bit overkill at places ^^ https://git.darmstadt.ccc.de/piegames/home-config
<piegames[m]> The general idea is that you make your modules configurable using options. And then you have a file per machine that enables the modules it needs through the options. In the end, you put them all into an attrset of which the keys you call like the machine. You then pass `-A $HOST` to home-manager to select the configuration for the current mashine
nf has quit [Ping timeout: 260 seconds]
nf__ has joined #home-manager
nf__ is now known as nf
<kenran> piegames[m]: thanks very much! In the meantime I managed to get some first modules working :) I was about to ask about the next step you mention: per-machine configuration (cause right now I only moved the "if isDarwin ..." to home.nix again and pass them to the new modules)!
<kenran> So I'll definitely have a look at what you describe, thanks!
cyphase has quit [Read error: Connection reset by peer]
kenran has quit [Quit: leaving]
cyphase has joined #home-manager
ece3 has joined #home-manager
ece has quit [Ping timeout: 240 seconds]
ece3 is now known as ece
cole-h has joined #home-manager
__monty__ has quit [Quit: leaving]
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece8 has joined #home-manager
ece8 has quit [Read error: Connection reset by peer]
ece has joined #home-manager
snbbuny[m] has joined #home-manager