Document module overriding

This commit is contained in:
DashieTM 2024-08-27 22:55:22 +02:00
parent 574eeb0b07
commit 12ec2b44b0
2 changed files with 31 additions and 4 deletions

View file

@ -111,9 +111,36 @@ Here is a minimal required configuration.nix (the TODOs mention a required chang
}; };
} }
``` ```
## First Login ## First Login
After logging in the first time, your password will be set to "firstlogin", please change this to whatever you like. After logging in the first time, your password will be set to "firstlogin", please change this to whatever you like.
## Modules
You can add additional modules or remove all of them by overriding parameters to the build_systems command:
```nix
nixosConfigurations =
let
additionalMods = {
nixos = [
# your modules
]; home = [
# your modules
];
}
# passing this parameter will override the existing modules
mods = {
nixos = [];
home = [];
}
in
(inputs.dashNix.dashNixLib.build_systems [
"system1"
] ./. mods additionalMods);
```
# Modules # Modules
This configuration features several modules that can be used as preconfigured "recipies". This configuration features several modules that can be used as preconfigured "recipies".

View file

@ -1,6 +1,10 @@
{ {
inputs, inputs,
pkgs, pkgs,
additionalMods ? {
nixos = [ ];
home = [ ];
},
mods ? { mods ? {
nixos = [ nixos = [
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
@ -26,10 +30,6 @@
../modules ../modules
]; ];
}, },
additionalMods ? {
nixos = [ ];
home = [ ];
},
... ...
}: }:
{ {