rycee changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/rycee/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
MmeQuignon has quit [Ping timeout: 246 seconds]
<hpfr[m]> Does anyone manage their emacs config with nix? This seems against the purpose of emacs and lisp because you’re supposed to be able to mostly change your emacs config while it’s running. You can kind of do this with Firefox via user.js and prefs.js
<ldlework> hpfr[m]: changing your config and changing the runtime environment are a bit different
<ldlework> there is the custmizations file, but meh
<hpfr[m]> I suppose you're referring to just evaling expressions on the fly
<hpfr[m]> your name starts with a sneaky L...
<ldlework> hpfr[m]: for what it's worth, I use NixOS, but only use Nix to get emacs installed
<ldlework> I use straight.el to manage my emacs configuration
<hpfr[m]> ldlework: yeah I use straight via doom, but I'm considering managing my config via home manager like all my other config
<ldlework> i mean home-manager installs my config
<ldlework> just doesn't install the packages for emacs
<hpfr[m]> ldlework: yeah your config tells straight to install the packages right
<ldlework> yeah
<hpfr[m]> ok
<hpfr[m]> is `.profile` sourced by every shell you instantiate or just the login shell?
meatcar has quit [Quit: bye bye.]
eyJhb has quit [Quit: Clever message]
meatcar has joined #home-manager
meatcar has joined #home-manager
meatcar has quit [Changing host]
eyJhb has joined #home-manager
eyJhb has joined #home-manager
eyJhb has quit [Changing host]
<energizer> hpfr[m]: login only
<hpfr[m]> thanks
asymptotically has joined #home-manager
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
<DamienCassou> hpfr: search for "systemd.user.services" in nixpkgs and you will find plenty (46 in my git clone). Some examples: gpg-agent, ssh-agent, redshift, clipmenu, xss-lock, Emacs...
romanofski has quit [Ping timeout: 246 seconds]
romanofski has joined #home-manager
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
__monty__ has joined #home-manager
<eyJhb> rycee: finally got it to work!
hmpffff has joined #home-manager
MmeQuignon has joined #home-manager
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
dermetfan has joined #home-manager
<hpfr[m]> Damien Cassou: ah, I forgot about these. I used to use them. There are some subtle differences
<hpfr[m]> 1. They use the NixOS syntax for declaring services which I think is better than the home manager syntax
<hpfr[m]> 2. They are put in /etc/systemd/user and available to every user on the system. This is different from home manager and why I switched to home manager services
<hpfr[m]> Basically any user can run instances of systemd user services defined by NixOS while only one user can use the home manager services they define since they’re in $HOME
<hpfr[m]> So there are uses for both. It would be nice if home manager just used the NixOS syntax tho
<DamienCassou> thank you for the explanation
<DamienCassou> is there any advantage to use home-manager's services on NixOS?
<DamienCassou> hpfr: ^
<simpson> DamienCassou: No, not really; but also yes, when it works. What exactly is the problem?
<hpfr[m]> simpson: there’s no problem he’s asking valid questions
<hpfr[m]> I prefer them because they’re scoped properly. I don’t have multi-user systems but I still prefer to install packages and write services that are specific to my user at the user level. The services I write use packages only my user has so it makes sense for them to be only available to my user
<hpfr[m]> That’s not really an “advantage” but it’s why I use them
<DamienCassou> simpson: there is indeed no problem. I'm discovering home-manager as we speak and trying to understand it's relationship to NixOS.
<DamienCassou> I have the impression that home-manager automatically enables the services. On NixOS, a user service must be enabled in an impure way which I don't like
<hpfr[m]> Basically just keep in mind that home manager modules never touches thing outside of $HOME and nixos modules never really touch things inside of $HOME
<hpfr[m]> I think if you set up targets properly nixos user services work automatically but I’m not sure since I don’t really use them
<DamienCassou> hpfr: I'm not sure because a user service is enabled globally in nixos, not for a particular user. So, I guess, each user has to choose wheter s/he wants to enable the service for her/himself or not
<hpfr[m]> I think if you make them WantedBy=default.target they will enable on user login so you could manage it declaratively, but it would occur for every user of course
<hpfr[m]> again, not sure tho
<DamienCassou> ok
<DamienCassou> does anyone knows how to have a working command-not-found setup when nixpkgs comes from a cloned git repository? Both the version from NixOS and the one from home-manager require the existence of /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite which I don't have
<hpfr[m]> home-manager and systemd user services should be functionally equivalent differing only in where they're stored and who they're available to
<DamienCassou> thanks
<DamienCassou> I like home-manager's approach because it allows me to be ready if one day I have to stop using NixOS
<rkallos> DamienCassou: Excellent point! Thanks for stating it
greizgh has quit [Quit: greizgh]
greizgh has joined #home-manager
greizgh has quit [Client Quit]
greizgh has joined #home-manager
<DamienCassou> In https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.extensions, the documentation refers to "pkgs.nur.repos.rycee.firefox-addons". What is this? It doesn't work for me. Where should I take package extensions from?
greizgh has quit [Quit: greizgh]
<__monty__> DamienCassou: https://github.com/nix-community/NUR
greizgh has joined #home-manager
greizgh has quit [Client Quit]
greizgh has joined #home-manager
<DamienCassou> thank you
<DamienCassou> __monty__:
<DamienCassou> monty: the next one won't have to ask: https://github.com/rycee/home-manager/pull/1296
<{^_^}> #1296 (by DamienCassou, 31 seconds ago, open): firefox: add link to NUR and Rycee's repository
Deknos has joined #home-manager
<DamienCassou> reading home-manager's options.html manual is like opening gifts at Christmas
<cole-h> You can also use `man home-configuration.nix` :^)
<__monty__> abathur: Nope, stuck on Mojave on my machines. Kinda happy about that tbh : )
Bunogi has quit [Quit: The Lounge - https://thelounge.chat]
Bunogi has joined #home-manager
__monty__ has quit [Quit: leaving]
quinn has joined #home-manager
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
asymptotically has quit [Quit: Leaving]
dermetfan has quit [Ping timeout: 265 seconds]