Comments (2)
Thanks for the pointers - here and on the Discord channel. 😺
from nix-starter-configs.
Hey!
It's actually pretty straightforward.
- Add that module as you would any other:
- Move it into your
modules/modules/
- List it at
modules/modules/default.nix
- Import it in your NixOS config. For example:
- Move it into your
{ outputs, ... }: {
imports = [ outputs.nixosModules.foo-bar ];
}
- You must now disable nixpkgs's version by adding it to a top-level (i.e. next to
options
,config
,imports
).disabledModules
attribute anywhere in your config- I'd recommend you add that at the module itself, right here.
- It should be a string that is the path to the original nixpkgs module file, relative from
nixos/modules
. In your case it would be:
{
disabledModules = [ "tasks/network-interfaces.nix" ];
# ...
}
Here's some docs about replacing modules. Hope this helps!
from nix-starter-configs.
Related Issues (20)
- Can not access overlays in home-manager HOT 4
- Readme "Use home-manager as a NixOS module" section encoutered some issues on my system HOT 5
- How to upgrade to the new Nixos release version HOT 3
- Rebuild command in minimal example configuration is missing a word HOT 2
- How to update `nix` to v2.4+? HOT 1
- Question about `pkgs` attribute HOT 4
- system.copySystemConfiguration is not supported with flakes HOT 3
- ERROR when installing the standard config HOT 2
- config.news.json.output not found with home-manager standalone HOT 6
- Multiple inputs, unsure if used HOT 1
- error: flake does not provide attribute HOT 2
- Adding a function to iterate over files in git repository?
- can't import config parts like suggested in configuration.nix HOT 3
- Can't make overlays working HOT 2
- Docs for use in WSL? HOT 2
- your-username@your-hostname HOT 4
- Rebuilding with custom packages fails HOT 8
- How to add overlays such as emacs-overlay to primary nixpkgs HOT 1
- flake-newbie - question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-starter-configs.