Skip to content

Commit

Permalink
modules/rtirq: update usage of environment.etc
Browse files Browse the repository at this point in the history
The current usage triggers the warning from
NixOS/nixpkgs@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 NixOS/nixpkgs#63103 for more information.
Do
  environment.etc =
    { rtirq.conf = {...}; }
instead of
  environment.etc =
    [ { target = "rtirq.conf"; ...} ]
  • Loading branch information
orivej committed Mar 25, 2020
1 parent e1f6b85 commit 677c978
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/rtirq.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit 677c978

Please sign in to comment.