Configure the mutable systemd unit path when required
This commit is contained in:
parent
6def8584c6
commit
52f7ec87ae
|
@ -16,7 +16,8 @@ in
|
|||
{
|
||||
inherit (profileSettings) params;
|
||||
|
||||
nixosModules = pkgs.lib.optional profileSettings.params.forceDisableUserChange ./xserver-autologin-module.nix;
|
||||
nixosModules = pkgs.lib.optional profileSettings.params.forceDisableUserChange ./xserver-autologin-module.nix
|
||||
++ pkgs.lib.optional (!profileSettings.params.forceDisableUserChange) ./systemd-path.nix;
|
||||
|
||||
systemPackages = [
|
||||
tools.systemd
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{...}:
|
||||
|
||||
{
|
||||
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
|
||||
}
|
|
@ -44,6 +44,8 @@ makeTest {
|
|||
virtualisation.writableStore = true;
|
||||
virtualisation.memorySize = 1024;
|
||||
|
||||
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
|
||||
|
||||
# We can't download any substitutes in a test environment. To make tests
|
||||
# faster, we disable substitutes so that Nix does not waste any time by
|
||||
# attempting to download them.
|
||||
|
|
Loading…
Reference in New Issue