refactor(treewide): statix

This commit is contained in:
ooks-io 2024-08-11 20:24:40 +12:00
parent 366fa0ce80
commit 7f2cd7a343
71 changed files with 84 additions and 84 deletions

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf getExe;
cfg = config.ooknet.editor.helix;
console = config.ooknet.console;
inherit (config.ooknet) console;
in {
config = mkIf (cfg.enable || console.editor == "helix") {
programs.helix.languages = {

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.bash;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
config = mkIf (cfg.enable || admin.shell == "bash") {
programs.bash.enable = true;

View file

@ -9,7 +9,7 @@
inherit (pkgs) bat eza dust nh;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish = {

View file

@ -7,22 +7,22 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish = {
plugins = [
{
name = "done";
src = pkgs.fishPlugins.done.src;
inherit (pkgs.fishPlugins.done) src;
}
{
name = "autopair";
src = pkgs.fishPlugins.autopair.src;
inherit (pkgs.fishPlugins.autopair) src;
}
{
name = "colored-man-pages";
src = pkgs.fishPlugins.colored-man-pages.src;
inherit (pkgs.fishPlugins.colored-man-pages) src;
}
];
};

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.zsh;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
imports = [
./plugins.nix

View file

@ -7,7 +7,7 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.zsh;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
config = mkIf (cfg.enable || admin.shell == "zsh") {
programs.zsh.plugins = [

View file

@ -5,7 +5,7 @@
...
}: let
inherit (lib) mkIf;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
cfg = config.ooknet.tools.fzf;
in {
config = mkIf cfg.enable {

View file

@ -7,7 +7,7 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.tools.git;
admin = osConfig.ooknet.host.admin;
inherit (osConfig.ooknet.host) admin;
in {
config = mkIf cfg.enable {
programs.git = {