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

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

View file

@ -5,7 +5,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
inherit (osConfig.ooknet.host) profiles;
in {
config = mkIf (elem "console-tools" profiles) {
ooknet.tools = {

View file

@ -5,7 +5,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
inherit (osConfig.ooknet.host) profiles;
in {
config = mkIf (elem "creative" profiles) {
ooknet.creative = {

View file

@ -5,7 +5,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
inherit (osConfig.ooknet.host) profiles;
in {
config = mkIf (elem "gaming" profiles) {
ooknet.gaming = {

View file

@ -5,7 +5,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
inherit (osConfig.ooknet.host) profiles;
in {
config = mkIf (elem "media" profiles) {
ooknet.media = {

View file

@ -5,7 +5,7 @@
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
inherit (osConfig.ooknet.host) profiles;
in {
config = mkIf (elem "productiviy" profiles) {
ooknet.productivity = {

View file

@ -6,7 +6,7 @@
...
}: let
inherit (lib) mkIf;
theme = config.ooknet.theme;
inherit (config.ooknet) theme;
in {
imports = [inputs.nix-colors.homeManagerModule];
config = mkIf (theme == "minimal") {

View file

@ -7,7 +7,7 @@
}: let
inherit (inputs.nix-colors) colorSchemes;
inherit (lib) mkIf;
theme = config.ooknet.theme;
inherit (config.ooknet) theme;
in {
config = mkIf (theme == "phone") {
colorscheme = colorSchemes.gruvbox-material-dark-soft;