Skip to content

Commit 52f7ec8

Browse files
committed
Configure the mutable systemd unit path when required
1 parent 6def858 commit 52f7ec8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

nixproc/backends/systemd/test-module/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ in
1616
{
1717
inherit (profileSettings) params;
1818

19-
nixosModules = pkgs.lib.optional profileSettings.params.forceDisableUserChange ./xserver-autologin-module.nix;
19+
nixosModules = pkgs.lib.optional profileSettings.params.forceDisableUserChange ./xserver-autologin-module.nix
20+
++ pkgs.lib.optional (!profileSettings.params.forceDisableUserChange) ./systemd-path.nix;
2021

2122
systemPackages = [
2223
tools.systemd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{...}:
2+
3+
{
4+
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
5+
}

tests/webapps-agnostic-systemd.nix

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ makeTest {
4444
virtualisation.writableStore = true;
4545
virtualisation.memorySize = 1024;
4646

47+
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
48+
4749
# We can't download any substitutes in a test environment. To make tests
4850
# faster, we disable substitutes so that Nix does not waste any time by
4951
# attempting to download them.

0 commit comments

Comments
 (0)