From 677c97886866b9675f58350a832aab1e3fa56925 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Wed, 25 Mar 2020 21:34:17 +0000 Subject: [PATCH] modules/rtirq: update usage of environment.etc The current usage triggers the warning from https://github.com/NixOS/nixpkgs/pull/63103/commits/03309899: trace: warning: In file /home/uj/nix/musnix/modules/rtirq.nix a list is being assigned to the option config.environment.etc. This will soon be an error as type loaOf is deprecated. See https://github.com/NixOS/nixpkgs/pull/63103 for more information. Do environment.etc = { rtirq.conf = {...}; } instead of environment.etc = [ { target = "rtirq.conf"; ...} ] --- modules/rtirq.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/rtirq.nix b/modules/rtirq.nix index c3d8ecd..bfa8198 100644 --- a/modules/rtirq.nix +++ b/modules/rtirq.nix @@ -82,11 +82,7 @@ in { config = mkIf cfg.enable { environment.systemPackages = [ rtirq ]; - environment.etc = - [ { source = rtirqConf; - target = "rtirq.conf"; - } - ]; + environment.etc."rtirq.conf".source = rtirqConf; systemd.services.rtirq = { description = "IRQ thread tuning for realtime kernels"; after = [ "multi-user.target" "sound.target" ];