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
hexa- has joined #home-manager
ohhaimark[m] has joined #home-manager
<ohhaimark[m]> Can I pin home-manager with niv? How do I do that?
malSet has quit [Quit: Quit.]
<immae> ohhaimark[m]: the only way I could find was to define NIX_PATH like that: NIX_PATH=home-manager=$(cat .../sources.json | jq -r ".home-manager.url") (and similar for nixpkgs if you want to pin it too)
<immae> (and you need to put that as precommand in your shell if you want it to be kept always up to date)
<ohhaimark[m]> immae: Thanks
<ohhaimark[m]> immae: ^
<immae> You’re welcome, maybe someone else had a better idea to share :)
malSet has joined #home-manager
malSet has quit [Quit: Quit.]
malSet has joined #home-manager
malSet has quit [Quit: Quit.]
malSet has joined #home-manager
dermetfan has joined #home-manager
cole-h has quit [Quit: Goodbye]
<benkolera> I do this pinning with Niv, but I use the nixos module. Let me dig it up.
<benkolera> Lol I hate that riot doesn't include the line number target in that url. Lol.
<benkolera> The thisPath stuff you likely don't need. That's probably just some shittiness because I evaluate that config via IFD.
<benkolera> I recommend using the nixos module once you are familiar with nix and home manager. It's so nice to have your whole system config in one declarative reproducible thing. The only thing that's annoying here is that I don't pin my nixos nixpkgs. I want to, but last time I tried things got weird. NixOS seems to really want that nixpkgs channel on the nix-path and things get weird when you go messing with that, lol.
<benkolera> Probably pebcak and not trying hard enough though. Ideally I'd want nixpkgs to be fully pinned too so it was just a niv update to bump everything at once.
asymptotically has joined #home-manager
hmpffff has joined #home-manager
cfinch has joined #home-manager
<benkolera> ohhaimark: (sorry forgot to @ you) :)
cfinch has quit [Ping timeout: 258 seconds]
dermetfan has quit [Quit: WeeChat 2.7.1]
dermetfan has joined #home-manager
__monty__ has joined #home-manager
quinn_ has joined #home-manager
quinn has quit [Ping timeout: 265 seconds]
<tudorr> greetings
<tudorr> is there a way to let home-manager manage the configs for some programs without installing the programs?
<tudorr> like if i have `programs.<someting>.enable = true`, home-manager will manage its configuration but it won't pull the program itself from the nix store, it is my responsibility to have it installed
<DamienCassou> tudorr: it's not. Modules are usually written in a way that nothing is done if enable is false. *But*, you may usually be able to tell home-manager which package to install.
<tudorr> well i want to have enable set to true but no package installed
<tudorr> such as if i already have a system installed terminal, i want home-manager to write its config file but not download it
<DamienCassou> tudorr: please try to force set `home.packages` to an empty array:
<DamienCassou> home.packages = lib.mkForce [];
<DamienCassou> I don't know if this will work
<DamienCassou> may I ask you why you would like to prevent home-manager from downloading packages?
<DamienCassou> I have no clue what would be the impact of the line above by the way
<immae> It will disable any package installed via home-manager, which might not be what you want
<immae> To handle the programs.<something> case the said module would have to have an option addToPackage = true/false if you want to achieve the goal without breaking everything
Bunogi0 has joined #home-manager
alexbakker_ has joined #home-manager
eyJhbV2 has joined #home-manager
eyJhb has quit [Disconnected by services]
eyJhbV2 is now known as eyJhb
eyJhb has joined #home-manager
eyJhb has quit [Changing host]
steell_ has joined #home-manager
alexbakker has quit [Ping timeout: 246 seconds]
alexbakker_ is now known as alexbakker
mutantmell has joined #home-manager
mtjmullen has quit [Ping timeout: 264 seconds]
Bunogi has quit [Ping timeout: 264 seconds]
steell has quit [Ping timeout: 264 seconds]
Bunogi0 is now known as Bunogi
dermetfan has quit [Ping timeout: 260 seconds]
hmpffff_ has joined #home-manager
hmpffff has quit [Ping timeout: 272 seconds]
__monty__ has quit [Quit: leaving]
<ohhaimark[m]> @dashy Thanks. I guess I want to get nixpkgs pinning done too, but for now a script to niv update and nix-channel update at the same time will have to do.
<ohhaimark[m]> * @dashy: Thanks. I guess I want to get nixpkgs pinning done too, but for now a script to niv update and nix-channel update at the same time will have to do.
hmpffff_ has quit [Quit: Bye…]
<ohhaimark[m]> * dashy: Thanks. I guess I want to get nixpkgs pinning done too, but for now a script to niv update and nix-channel update at the same time will have to do.
hmpffff has joined #home-manager
<ohhaimark[m]> dashy: What is home-manager.users.USER = ...? Or rather where can I find info on the nixos module?
<tudorr> DamienCassou: i want to prevent home-manager from downloading _some_ packages, mostly graphical programs
<ohhaimark[m]> Sorry, I'm very new to NixOS and sort of winging it currently.
<tudorr> because i don't use nixos and graphical programs need some special treatment like setting FONTCONFIG_FILE, and LD_* vars for opengl and vulkan stuff
<ohhaimark[m]> @dashy ah, I see.
<ohhaimark[m]> * dashy: ah, I see.
<ohhaimark[m]> * dashy: ah, I see. thanks
<benkolera> The function that you drop into that entry is exactly the same as the config you have for the standalone home manager.
<benkolera> Like if you do what I did and just import it in place to your old conf, that ought to work.
<ohhaimark[m]> Does that mean I do a nixos-rebuild instead of home-manager switch?
<benkolera> Yup.
<benkolera> You don't need the home manager channel or the standalone binary anymore then.
<ohhaimark[m]> Yay.
<ohhaimark[m]> If I have package overrides in ~/.config/nixpkgs/config.nix, I must move it into the nixos-configuration, right?
<ohhaimark[m]> I still need to learn how the module system works.
<benkolera> Yeah.
<tudorr> how can i make the contents of programs.bash.initExtra go in .bashrc after sourcing the nix-related files?
<eyJhb> Any systemd gurus available? rycee ? :p
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
<DamienCassou> eyJhb: what is your question?
<DamienCassou> tudorr: can you please show us the content of your .bashrc and the relevant home-manager configuration?
<tudorr> i no longer need the bash thing, it was a bad idea
<tudorr> i have another problem now though, i want to make a program (emacsUnstable) run with FONTCONFIG_FILE set to a specific value
<tudorr> and i get `attribute 'platforms' missing, at /nix/store/2y4ah1zccghvbphbhwl79vrm4li9bz1k-nixpkgs-20.09pre228333.1ae28ebfdb7/nixpkgs/pkgs/build-support/emacs/generic.nix:22:17`
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]> home-manager writes `bindsym—to-code Mod4+q kill` to my sway config but it doesn’t work?
<hpfr[m]> * bindsym --to-code
<hpfr[m]> `swaymsg kill` from terminal works
<hpfr[m]> So that’s weird
<hpfr[m]> Never mind didn’t rebuild
<DamienCassou> tudorr: I don't see anything in this pastbin. Can you please try another service?
<tudorr> DamienCassou: http://0x0.st/iOYs.nix
<DamienCassou> tudorr: I don't know. Have you tried with the Emacs provided by nixpkgs? Maybe the overlay is buggy?
malSet has joined #home-manager
<eyJhb> DamienCassou: need to start a systemd service in HomeManager after network is available
<eyJhb> Or, have Systemd actually retry when it fails to start. Just need to change some configs before I can pastebin the code
cole-h has joined #home-manager
<tudorr> DamienCassou: if i use emacsUnstable directly it works.. but i will try with stable emacs too
<tudorr> doesn't work with pkgs.emacs either
cjpbirkbeck has joined #home-manager
vdemeester has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
dsal has quit [Ping timeout: 256 seconds]
tazjin has quit [Ping timeout: 272 seconds]
feepo has quit [Ping timeout: 272 seconds]
s1341 has quit [Ping timeout: 244 seconds]
davidtwco has quit [Ping timeout: 272 seconds]
sgraf has quit [Ping timeout: 272 seconds]
NemesisD has quit [Ping timeout: 272 seconds]
rizary has quit [Ping timeout: 246 seconds]
NemesisD_ has joined #home-manager
mankyKitty has quit [Ping timeout: 252 seconds]
kalbasit has quit [Ping timeout: 260 seconds]
claudiii has quit [Ping timeout: 272 seconds]
claudiii_ has joined #home-manager
dsal has joined #home-manager
quinn_ is now known as quinn
sgraf has joined #home-manager
davidtwco has joined #home-manager
asymptotically has quit [Quit: Leaving]
feepo has joined #home-manager
kalbasit has joined #home-manager
vdemeester has joined #home-manager
s1341 has joined #home-manager
mankyKitty has joined #home-manager
rizary has joined #home-manager
manveru has joined #home-manager
tazjin has joined #home-manager
tazjin has quit [Client Quit]
tazjin has joined #home-manager
<hpfr[m]> I have a bunch of duplicated i3 and sway config but I can’t figure out how to use inherit or import to modularize it, any tips
<energizer> post it hpfr[m]
<hpfr[m]> energizer: I can’t right now but I just want to define a bunch of the config options in a `common.nix` and include them in both my i3 and sway configs without having to write inherit for every single option
<energizer> hpfr[m]: sure, use `import`
<hpfr[m]> Yeah I reread import and it makes sense now
<hpfr[m]> energizer: And then just `//` with the specific i3 and sway stuff I’m guessing
<energizer> yes
cole-h has quit [Quit: Goodbye]
<energizer> well, maybe
<energizer> might want recursivelymergeattrs or whatever its called
<hpfr[m]> Yeah I think so
cole-h has joined #home-manager
cole-h has quit [Client Quit]
cole-h has joined #home-manager
cole-h has quit [Client Quit]
cole-h has joined #home-manager
cole-h has quit [Client Quit]