From 15cf15b3ed56c801d44d4b07a27907536cc01e72 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Thu, 18 Mar 2021 17:41:22 -0500 Subject: [PATCH] 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 --- lib/devos/devosSystem.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/devos/devosSystem.nix b/lib/devos/devosSystem.nix index 05a6dcff..524a533d 100644 --- a/lib/devos/devosSystem.nix +++ b/lib/devos/devosSystem.nix @@ -12,7 +12,11 @@ lib.nixosSystem (args // { (args // { modules = moduleList ++ [ "${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.contents = [{ source = self;