From e9ebb6f79ff0851e84fbe33d1935eb00789d5dab Mon Sep 17 00:00:00 2001 From: MartinNikov <99672862+MartinNikov@users.noreply.github.com> Date: Tue, 22 Aug 2023 14:25:38 +0300 Subject: [PATCH] fix(modules/service/nixos-init): Use `boot.tmp.useTmpfs` option instead of `boot.tmpOnTmpfs` This change fixes the following warning: ``` trace: Obsolete option `boot.tmpOnTmpfs' is used. It was renamed to `boot.tmp.useTmpfs'. ``` This option was renamed in this PR: https://github.com/NixOS/nixpkgs/pull/204534 --- src/nix/modules/service/nixos-init.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/modules/service/nixos-init.nix b/src/nix/modules/service/nixos-init.nix index 38a23a7..1f9fb68 100644 --- a/src/nix/modules/service/nixos-init.nix +++ b/src/nix/modules/service/nixos-init.nix @@ -39,7 +39,7 @@ in service.tmpfs = [ "/run" # noexec is fine because exes should be symlinked from elsewhere anyway "/run/wrappers" # noexec breaks this intentionally - ] ++ lib.optional (config.nixos.evaluatedConfig.boot.tmpOnTmpfs) "/tmp:exec,mode=777"; + ] ++ lib.optional (config.nixos.evaluatedConfig.boot.tmp.useTmpfs) "/tmp:exec,mode=777"; service.stop_signal = "SIGRTMIN+3"; service.tty = true;