iso: filter out al profiles (except core)
IN order to avoid random startup of systemd services, filter out all profiles, except for core and user profiles. This works becasue of a fundamental devos contract, that modules only define configuration, but don't implement them and profiles only implement confguration but don't define them. So only ever an activated profile is expected to effectively start up a systemd service. closes: #194
This commit is contained in:
parent
db716d1921
commit
15cf15b3ed
@ -12,7 +12,11 @@ lib.nixosSystem (args // {
|
|||||||
(args // {
|
(args // {
|
||||||
modules = moduleList ++ [
|
modules = moduleList ++ [
|
||||||
"${nixos}/${modpath}/${cd}"
|
"${nixos}/${modpath}/${cd}"
|
||||||
({ config, ... }: {
|
({ config, suites, ... }: {
|
||||||
|
|
||||||
|
# avoid unwanted systemd service startups
|
||||||
|
disabledModules = lib.remove modules.core suites.allProfiles;
|
||||||
|
|
||||||
isoImage.isoBaseName = "nixos-" + config.networking.hostName;
|
isoImage.isoBaseName = "nixos-" + config.networking.hostName;
|
||||||
isoImage.contents = [{
|
isoImage.contents = [{
|
||||||
source = self;
|
source = self;
|
||||||
|
Loading…
Reference in New Issue
Block a user