Skip to content

Commit

Permalink
iso: filter out al profiles (except core)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
David Arnold authored and David Arnold committed Mar 19, 2021
1 parent db716d1 commit 15cf15b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/devos/devosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15cf15b

Please sign in to comment.