remove broken boot time time sync
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22939 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22937 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22938 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22936 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522 Hydra build #22940 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22941 of nixos-config:pr618:nixosConfigurations.not522-installer
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22939 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22937 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22938 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22936 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522 Hydra build #22940 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22941 of nixos-config:pr618:nixosConfigurations.not522-installer
This commit is contained in:
parent
5843e83e9e
commit
e88b26029c
4 changed files with 0 additions and 48 deletions
|
@ -12,5 +12,4 @@
|
|||
];
|
||||
system.stateVersion = "24.11";
|
||||
nixpkgs.config.allowUnsupportedSystem = true;
|
||||
boot.initrd.timesync.enable = true;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ in {
|
|||
"${nixos-config}/machine/not522/cross-packages.nix"
|
||||
./disko.nix
|
||||
];
|
||||
boot.initrd.timesync.enable = true;
|
||||
|
||||
system.stateVersion = config.system.nixos.version;
|
||||
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
options.boot.initrd.timesync = {
|
||||
enable = mkEnableOption "Enables time synchronization in initrd";
|
||||
};
|
||||
|
||||
config = mkIf config.boot.initrd.timesync.enable {
|
||||
boot.initrd.systemd.users.systemd-timesync = {
|
||||
uid = config.users.users.systemd-timesync.uid;
|
||||
};
|
||||
boot.initrd.systemd.groups.systemd-timesync = {
|
||||
gid = config.users.groups.systemd-timesync.gid;
|
||||
};
|
||||
boot.initrd.systemd.network = {
|
||||
enable = true;
|
||||
wait-online.enable = true;
|
||||
};
|
||||
boot.initrd.systemd.services.sync-time = {
|
||||
description = "Network Time Synchronization";
|
||||
wantedBy = [
|
||||
"initrd.target"
|
||||
"rootfs-cleanup.service"
|
||||
];
|
||||
wants = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
before = [
|
||||
"rootfs-cleanup.service"
|
||||
];
|
||||
unitConfig.DefaultDependencies = "no";
|
||||
environment.SYSTEMD_NSS_RESOLVE_VALIDATE = "0";
|
||||
serviceConfig.ExecStart = "${config.boot.initrd.systemd.package}/lib/systemd/systemd-timesyncd";
|
||||
};
|
||||
boot.initrd.systemd.storePaths = [
|
||||
config.boot.initrd.systemd.services.sync-time.serviceConfig.ExecStart
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
{disko, ...}: {
|
||||
imports = [
|
||||
./boot/timesync.nix
|
||||
./riscv.nix
|
||||
./containers/autoconfig.nix
|
||||
./nix
|
||||
|
|
Loading…
Reference in a new issue