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
justanotheruser has quit [Ping timeout: 250 seconds]
gdown has quit [Remote host closed the connection]
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #home-manager
supersandro2000 has quit [Client Quit]
supersandro2000 has joined #home-manager
ghosthell has quit [Remote host closed the connection]
ghosthell has joined #home-manager
<Sandro[m]> I went a different route and created some overlays
<Sandro[m]> I first remove the bash completion from nixUnstable and then copy it to nix-bash-completion and append it
<Sandro[m]> then I finally remove the original bash-completion from the nix command because that is actually nixUnstable for me but I still use nix-build
<Sandro[m]> I hope it kinda works but I will see 😂
rajivr has joined #home-manager
justanotheruser has joined #home-manager
tdeo has quit [Ping timeout: 240 seconds]
tdeo has joined #home-manager
supersandro20003 has joined #home-manager
supersandro2000 is now known as Guest37100
supersandro20003 is now known as supersandro2000
Guest37100 has quit [Ping timeout: 240 seconds]
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
supersandro2000 has joined #home-manager
Gordontheythem[m is now known as Galle[m]
cyphase has quit [Ping timeout: 260 seconds]
cyphase has joined #home-manager
bahamas has joined #home-manager
<bahamas> is the `programs.` option in `home.nix` used for configuring a certain program? I'm trying to understand the difference between `home.packages` and `programs.*`
kini has quit [Ping timeout: 245 seconds]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
bahamas has quit [Quit: leaving]
<petrichor> Yes, that's right. Adding a package to `home.packages` will install it but nothing else. The options under `programs.*` will do some additional configuration, like setting up a systemd service, initialising a zsh plugin in your `.zshrc`, etc.
<petrichor> Sometimes that will also include being able to set configuration options for the program from within nix
<petrichor> Setting `programs.xyz.enable = true` will generally also add the right package to `home.packages` automatically.
cyphase has quit [Ping timeout: 260 seconds]
NobbZ[m] has quit [Quit: Idle for 30+ days]
cyphase has joined #home-manager
__monty__ has joined #home-manager
ronthecookie is now known as ckie
plabadens[m] has joined #home-manager
<petrichor> what's the best way to use the hostname within a home-manager config called from a nixos config flake?
<petrichor> i used to read `/etc/hostname` to do this, but can't do that from a flake because it's not pure
<petrichor> the global nixos config has `networking.hostName`, so can i access that from within my hm module?
<rycee> Dunno about the flake part but perhaps something like `nixosConfig.networking.hostName`
<rycee> Put `nixosConfig` in the module argument.
<petrichor> that's what i was looking for, thanks
alexbakker has quit [Quit: Dikke doei]
alexbakker has joined #home-manager
<petrichor> yup, works perfectly
<rycee> Glad it worked 👍️
<sumner[m]> rosariopulella: are you using home manager to manage the config for your DE/WM?
<rosariopulella[m> I was using sway, but I went back to plasma and I am not quite sure how to config it threw home manager for plasma. I would love to!
<rosariopulella[m> * I was using sway, but I went back to plasma and I am not quite sure how to config it threw home manager. I would love to!
<rosariopulella[m> Are those vars not getting picked up because of how plasma is started?
<rycee> rosariopulella: If you don't have `xsession.enable = true` in your configuration then you may have to create your own `~/.xprofile` file.
<rycee> Containing something like `. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"` or even `. "$HOME/.profile"`.
<rycee> Although, if you set `systemd.user.sessionVariables` I would have imagined it would work anyway. At least on some distros.
<rosariopulella[m> I am on NixOS 20.09 /:
<rycee> rosariopulella: Cool, then try creating a `~/.xprofile` file containing `. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"` and relog.
<rycee> (assuming your profile is in `~/.nix-profile`
<rycee> )
<rosariopulella[m> What's the best way to make `~/.xprofile` in hm?
<rycee> rosariopulella: `home.file.".xprofile".text = ''. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"'';`
<rycee> Something like that. Then it will work even if your nix-profile is in /etc.
<rosariopulella[m> Woot!
<rosariopulella[m> It works, I'm sure you knew it would lol. Thanks rycee ! Also thanks for maintaining Home Manager!
<rycee> No worried, glad it worked and glad you like HM :-)
<rosariopulella[m> I feel like I want a better understanding of HM and everything it interacts with... I want to contribute eventually, maybe add a plasma section. Do you have any advice on how to go about learning more about how HM works internally?
<rosariopulella[m> Firefox throws an error on startup when this dir is missing, I would like to make a PR simply creating that dir even if there is not config.
<rosariopulella[m> * Firefox throws an error on startup when this dir is missing, I would like to make a PR simply creating that dir even if there is no config.
<rycee> I think generally it is best to familiarize yourself with the Nix language and perhaps contribute to packaging in Nixpkgs. Once you know Nix it is pretty straightforward to get into HM.
<rosariopulella[m> <rycee "I think generally it is best to "> That makes sense 😅
<rycee> I guess for the Firefox issue it should be possible to add something like `"${profilesPath}/${profile.path}/.keep".text = "";` near the bottom of the module file.
siraben has quit [Quit: issued !quit command]
chisui has joined #home-manager
<rosariopulella[m> Interesting, yeah I noticed there was no `home.dir` and then I noticed there is `home.activation` and I guess it could be done by running `mkdir` using that. But just making the file seams easier.
<chisui> Hey, can someone tell my why `nix-shell --pure tests -A run.lib-mozilla-user-js` fails in my fork? https://github.com/chisui/home-manager/tree/wip/thunderbird (on the `wip/thunderbird` branch)
<chisui> Both files seem to be the same but assertFileContent fails nonetheless.
<chisui> (notice that the hexdump stuff is only there to ensure that the difference isn't in whitespace)
<rycee> chisui: When you run the test and it fails it should typically print out the path to the test directory so you can examine the exact files.
<rycee> If you find that directory then you could run `diff` on the generated files to see what the difference is (assertFileContent should also print the difference, I believe).
<chisui> rycee: I did that and both files where the same. I just didn't want to commit debug output
supersandro2000 has left #home-manager ["The Lounge - https://thelounge.chat"]
v45h has quit [Ping timeout: 260 seconds]
v45h has joined #home-manager
<rosariopulella[m> Quick question, how can I test my config with a local home-manager branch?
<symphorien[m]> `-I home-manager=/path/to/repo`
<chisui> the interesting thing is that the diff used by `assertFileContent` seems to be empty:
<chisui> `Expected fromAttrs.hex to be same as expected.hex but were different:
<chisui> For further reference please introspect ...`
<rycee> chisui: I get the error:
tdeo has left #home-manager [#home-manager]
<rycee> chisui: Seems `expected.user.js` contains `user_pref('b.bool', true);` while the generated `fromAttrs` file contains `user_pref('a.bool', true);`.
<chisui> rycee Sorry, forgot to push -.-
nextloop has quit [Ping timeout: 246 seconds]
chisui has quit [Quit: Connection closed]
chisui has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
ckie is now known as ronthecookie
ghosthell has quit [Remote host closed the connection]
ghosthell has joined #home-manager
ghosthell has quit [Remote host closed the connection]
ghosthell has joined #home-manager
ghosthell has quit [Remote host closed the connection]
ghosthell has joined #home-manager
chisui has quit [Quit: Connection closed]
_scott has quit [Quit: issued !quit command]
_scott has joined #home-manager
chisui has joined #home-manager
chisui has quit [Quit: Connection closed]
__monty__ has quit [Quit: leaving]
chisui has joined #home-manager
kini has joined #home-manager
romanofski has quit [Quit: ZNC 1.7.4 - https://znc.in]
romanofski has joined #home-manager
kaletaa has quit [Quit: ZNC 1.8.1 - https://znc.in]
kaletaa has joined #home-manager
V has quit [Remote host closed the connection]
quintasan has quit [Quit: No Ping reply in 180 seconds.]
quintasan has joined #home-manager
quintasan has joined #home-manager
quintasan has quit [Changing host]
V has joined #home-manager