Skip to content

Commit

Permalink
tests: drop systemd-machine-id-commit.service from test + add to example
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliButz committed Dec 13, 2024
1 parent f4a9dff commit 2788945
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ See [Configuration Options](./configuration-options.md) for all available option
];
};
};
# systemd-machine-id-commit.service would fail, but it is not relevant
# in this specific setup for a persistent machine-id so we disable it
#
# see the firstboot example below for an alternative approach
systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ];
}
```

Expand Down
4 changes: 4 additions & 0 deletions tests/basic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ in
};
};

# systemd-machine-id-commit.service would fail, but it is not relevant
# in this specific setup for a persistent machine-id so we disable it
systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ];

# test-specific configuration below

testing.initrdBackdoor = true;
Expand Down
7 changes: 4 additions & 3 deletions tests/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";

# depends on https://github.com/NixOS/nixpkgs/pull/307528 (merged)
nixpkgs.url = "github:nixos/nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};

outputs = inputs:
Expand Down

0 comments on commit 2788945

Please sign in to comment.