refactor(treewide): statix
This commit is contained in:
parent
366fa0ce80
commit
7f2cd7a343
71 changed files with 84 additions and 84 deletions
|
|
@ -3,7 +3,7 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet.host.hardware) features;
|
||||
inherit (lib) mkIf;
|
||||
inherit (builtins) elem;
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet.host.hardware) features;
|
||||
cfg = config.ooknet.host.hardware.battery;
|
||||
inherit (lib) mkIf mkDefault;
|
||||
inherit (builtins) elem;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
self,
|
||||
...
|
||||
}: let
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet.host.hardware) features;
|
||||
inherit (lib) mkIf;
|
||||
inherit (builtins) elem;
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet.host.hardware) features;
|
||||
inherit (lib) mkIf;
|
||||
inherit (builtins) elem;
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
inherit (lib) mkIf;
|
||||
inherit (builtins) elem;
|
||||
isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86;
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet.host.hardware) features;
|
||||
in {
|
||||
config = mkIf (elem "video" features) {
|
||||
hardware = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue