mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/tests/systemd-timesyncd.nix: get rid of with lib
This commit is contained in:
parent
bef35b3b88
commit
07b75a58e1
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ in {
|
||||||
name = "systemd-timesyncd";
|
name = "systemd-timesyncd";
|
||||||
nodes = {
|
nodes = {
|
||||||
current = mkVM {};
|
current = mkVM {};
|
||||||
pre1909 = mkVM ({lib, ... }: with lib; {
|
pre1909 = mkVM ({lib, ... }: {
|
||||||
# create the path that should be migrated by our activation script when
|
# create the path that should be migrated by our activation script when
|
||||||
# upgrading to a newer nixos version
|
# upgrading to a newer nixos version
|
||||||
system.stateVersion = "19.03";
|
system.stateVersion = "19.03";
|
||||||
system.activationScripts.simulate-old-timesync-state-dir = mkBefore ''
|
system.activationScripts.simulate-old-timesync-state-dir = lib.mkBefore ''
|
||||||
rm -f /var/lib/systemd/timesync
|
rm -f /var/lib/systemd/timesync
|
||||||
mkdir -p /var/lib/systemd /var/lib/private/systemd/timesync
|
mkdir -p /var/lib/systemd /var/lib/private/systemd/timesync
|
||||||
ln -s /var/lib/private/systemd/timesync /var/lib/systemd/timesync
|
ln -s /var/lib/private/systemd/timesync /var/lib/systemd/timesync
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue