oddlama / nix-config

❄️ My nix config and dotfiles
167 stars 3 forks source link

Question: Having `wired` as a service #3

Closed TornaxO7 closed 1 year ago

TornaxO7 commented 1 year ago

Hi! I saw that you're using wired as a service.

May I ask how you're doing it? The README of wired-notify doesn't show how to use the service-variant of wired if you're using flakes and home-manager as a nixos-module.

oddlama commented 1 year ago

The file you linked is all of the configuration you need. The only other thing is that you have to add the provided overlay and home-manager module to your config:

nixpkgs.overlays = [
  inputs.wired-notify.overlays.default
];

home-manager.sharedModules = [
    inputs.wired-notify.homeManagerModules.default
];
TornaxO7 commented 1 year ago

may I ask, if you can explain/give me an example how and where I should do this?

nixpkgs.overlays = [
  inputs.wired-notify.overlays.defaul
];

I'm still not really familiar with nix (+ flakes) ecosystem.

More context

Hint: You don't need to go this further if you don't have time/don't want to do it. Just close this issue then :)

So here is my flake. May I ask what you would change to add the overlay from wired to nixpkgs?

oddlama commented 1 year ago

Basically at the top level of your configuration.nix (or any other file that is part of your nixos config). It's this option that is being set by that.

If this doesn't fully answer your question I would highly recommend you join the Nix/NixOS Matrix server, there are always many people online who can help you understand better.

TornaxO7 commented 1 year ago

Ok, thank you!