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`
<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>
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>
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