diff --git a/flake.nix b/flake.nix index 395f224f..40bcd381 100644 --- a/flake.nix +++ b/flake.nix @@ -83,7 +83,9 @@ enable = true; excludes = ["plugins/_sources"]; }; + statix.enable = true; }; + settings.statix.ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"]; }; }; devShells = { diff --git a/plugins/utils/alpha.nix b/plugins/utils/alpha.nix index 962928bf..c4920d22 100644 --- a/plugins/utils/alpha.nix +++ b/plugins/utils/alpha.nix @@ -157,8 +157,7 @@ in { else attrset; options = { - theme = cfg.theme; - iconsEnabled = cfg.iconsEnabled; + inherit (cfg) theme iconsEnabled; layout = builtins.map processButtons cfg.layout; }; in diff --git a/statix.toml b/statix.toml new file mode 100644 index 00000000..a7290782 --- /dev/null +++ b/statix.toml @@ -0,0 +1 @@ +ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"]