-
Notifications
You must be signed in to change notification settings - Fork 4
Add more info to the README #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,21 @@ On NixOS and nix-darwin, simply replace your `nix.package`, like so: | |
| ```nix | ||
| nix.package = pkgs.nix-monitored; | ||
| ``` | ||
| And then import and enable it like this: | ||
| ```nix | ||
| { | ||
| imports = [ | ||
| inputs.nix-monitored.nixosModules.default | ||
| ]; | ||
|
|
||
| nix.monitored.enable = true; | ||
| } | ||
| ``` | ||
|
|
||
| You can also import it in the overlay below by putting this line inside alongside the rest: | ||
| ``` | ||
| nix-monitored = inputs.nix-monitored.packages.${self.system}.default.override self; | ||
| ``` | ||
|
Comment on lines
+47
to
+50
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably rather be added to the module: https://github.com/ners/nix-monitored/blob/master/flake.nix#L109 |
||
|
|
||
| To make it work with `nix-direnv` and `nixos-rebuild`, we can override those packages: | ||
| ```nix | ||
|
|
@@ -44,6 +59,7 @@ nixpkgs.overlays = [ | |
| nix-direnv = super.nix-direnv.override { | ||
| nix = super.nix-monitored; | ||
| }; | ||
| # Line above here if you want it. | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this entire section is obsolete if you use the module, and can be removed. |
||
| }) | ||
| ]; | ||
| ``` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Importing and enabling the module actually replaces setting
nix.packagemanually, as that's part of the module's implementation: https://github.com/ners/nix-monitored/blob/master/flake.nix#L108I'd also like to mention that there is also a Darwin module available, not just a NixOS one.