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 mkMerge;
cfg = config.ooknet.fileManager.nemo;
fileManager = config.ooknet.desktop.fileManager;
inherit (config.ooknet.desktop) fileManager;
nemoMime = {
"inode/directory" = ["nemo.desktop"];
};

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf mkMerge hm;
cfg = config.ooknet.productivity.notes.obsidian;
notes = config.ooknet.desktop.notes;
inherit (config.ooknet.desktop) notes;
# admin = osConfig.ooknet.host.admin;
# TODO: use admin.githubUsername
notesRepo = "git@github.com:ooks-io/notes.git";

View file

@ -5,7 +5,7 @@
...
}: let
inherit (lib) mkIf;
polkit = config.ooknet.security.polkit;
inherit (config.ooknet.security) polkit;
in {
config = {
systemd.user.services = {

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
features = osConfig.ooknet.host.hardware.features;
inherit (osConfig.ooknet.host.hardware) features;
ookbrightness = pkgs.writeShellApplication {
name = "ookbrightness";
runtimeInputs = with pkgs; [brillo libnotify];

View file

@ -6,7 +6,7 @@
...
}: let
inherit (lib) mkIf;
launcher = config.ooknet.wayland.launcher;
inherit (config.ooknet.wayland) launcher;
in {
config = mkIf (launcher == "rofi") {
home.packages = [inputs.ooks-scripts.packages.${pkgs.system}.powermenu];

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
features = osConfig.ooknet.host.hardware.features;
inherit (osConfig.ooknet.host.hardware) features;
ookvolume = pkgs.writeShellApplication {
name = "ookvolume";
runtimeInputs = with pkgs; [pamixer libnotify];

View file

@ -5,9 +5,9 @@
...
}: let
inherit (lib) mkIf;
multiplexer = config.ooknet.console.multiplexer;
launcher = config.ooknet.wayland.launcher;
binds = config.ooknet.binds;
inherit (config.ooknet.console) multiplexer;
inherit (config.ooknet.wayland) launcher;
inherit (config.ooknet) binds;
zellijmenu = pkgs.writeShellApplication {
name = "zellijmenu";
runtimeInputs = with pkgs; [coreutils rofi-wayland];

View file

@ -5,7 +5,7 @@
pkgs,
...
}: let
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
inherit (lib) mkIf;
in {
imports = [

View file

@ -6,7 +6,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
home.packages = with inputs; [

View file

@ -5,7 +5,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
home.packages = [pkgs.hyprshade];

View file

@ -4,8 +4,8 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
binds = config.ooknet.binds;
inherit (config.ooknet) wayland;
inherit (config.ooknet) binds;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.env = [

View file

@ -5,7 +5,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.gestures = {

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.input = {

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.misc = {

View file

@ -5,8 +5,8 @@
...
}: let
inherit (lib) mkIf concatMap;
wayland = config.ooknet.wayland;
monitors = osConfig.ooknet.host.hardware.monitors;
inherit (config.ooknet) wayland;
inherit (osConfig.ooknet.host.hardware) monitors;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
inherit (config.ooknet) wayland;
in {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {

View file

@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf;
cfg = config.ooknet.wayland;
gpu = osConfig.ooknet.host.hardware.gpu;
inherit (osConfig.ooknet.host.hardware) gpu;
in {
config = mkIf cfg.enable {
home.sessionVariables =