From ea5045690f3a5903f3330e0d288b0bc9801ab80a Mon Sep 17 00:00:00 2001 From: FrankelJb Date: Wed, 18 Oct 2023 11:50:13 +0000 Subject: [PATCH] Remove dead code --- homes/x86_64-linux/beans@lithium/default.nix | 1 - modules/home/cli-apps/neovim/default.nix | 2 +- modules/home/desktop/addons/foot/default.nix | 1 - modules/home/desktop/addons/swayidle/default.nix | 2 +- modules/home/suites/business/default.nix | 2 +- modules/home/suites/development/default.nix | 1 - modules/home/suites/music/default.nix | 2 +- modules/home/suites/social/default.nix | 3 +-- modules/home/system/shell/fish/default.nix | 1 - modules/home/tools/git/default.nix | 5 ++--- modules/nixos/desktop/gnome/default.nix | 2 +- modules/nixos/suites/music/default.nix | 2 +- modules/nixos/suites/social/default.nix | 1 - modules/nixos/system/networking/default.nix | 1 - systems/x86_64-linux/helium/hardware.nix | 1 - systems/x86_64-linux/lithium/default.nix | 4 +--- systems/x86_64-linux/lithium/hardware.nix | 2 +- 17 files changed, 11 insertions(+), 22 deletions(-) diff --git a/homes/x86_64-linux/beans@lithium/default.nix b/homes/x86_64-linux/beans@lithium/default.nix index b271bb233..f7bedfc36 100644 --- a/homes/x86_64-linux/beans@lithium/default.nix +++ b/homes/x86_64-linux/beans@lithium/default.nix @@ -1,6 +1,5 @@ { lib , config -, pkgs , ... }: let diff --git a/modules/home/cli-apps/neovim/default.nix b/modules/home/cli-apps/neovim/default.nix index a093936ec..381e3bd72 100644 --- a/modules/home/cli-apps/neovim/default.nix +++ b/modules/home/cli-apps/neovim/default.nix @@ -4,7 +4,7 @@ , ... }: let - inherit (lib) mkEnableOption mkIf getExe; + inherit (lib) mkEnableOption mkIf; inherit (lib.internal) mkBoolOpt; # inherit (inputs) neovim-config; diff --git a/modules/home/desktop/addons/foot/default.nix b/modules/home/desktop/addons/foot/default.nix index ca15a7535..1a395e99f 100644 --- a/modules/home/desktop/addons/foot/default.nix +++ b/modules/home/desktop/addons/foot/default.nix @@ -1,7 +1,6 @@ { config , lib , options -, pkgs , ... }: let diff --git a/modules/home/desktop/addons/swayidle/default.nix b/modules/home/desktop/addons/swayidle/default.nix index b70c69463..106383330 100644 --- a/modules/home/desktop/addons/swayidle/default.nix +++ b/modules/home/desktop/addons/swayidle/default.nix @@ -4,7 +4,7 @@ , ... }: let - inherit (lib) mkIf getExe getExe'; + inherit (lib) mkIf getExe'; inherit (lib.internal) mkBoolOpt; cfg = config.beansnix.desktop.addons.swayidle; diff --git a/modules/home/suites/business/default.nix b/modules/home/suites/business/default.nix index 1e885c477..781c089e1 100644 --- a/modules/home/suites/business/default.nix +++ b/modules/home/suites/business/default.nix @@ -5,7 +5,7 @@ }: let inherit (lib) mkIf; - inherit (lib.internal) mkBoolOpt enabled; + inherit (lib.internal) mkBoolOpt; cfg = config.beansnix.suites.business; in diff --git a/modules/home/suites/development/default.nix b/modules/home/suites/development/default.nix index 936f268d8..695e9113b 100644 --- a/modules/home/suites/development/default.nix +++ b/modules/home/suites/development/default.nix @@ -1,7 +1,6 @@ { config , lib , options -, inputs , pkgs , ... }: diff --git a/modules/home/suites/music/default.nix b/modules/home/suites/music/default.nix index 94389e478..a488c03a5 100644 --- a/modules/home/suites/music/default.nix +++ b/modules/home/suites/music/default.nix @@ -5,7 +5,7 @@ }: let inherit (lib) mkIf; - inherit (lib.internal) mkBoolOpt enabled; + inherit (lib.internal) mkBoolOpt; cfg = config.beansnix.suites.music; in diff --git a/modules/home/suites/social/default.nix b/modules/home/suites/social/default.nix index 3e121ac2a..adf2438ca 100644 --- a/modules/home/suites/social/default.nix +++ b/modules/home/suites/social/default.nix @@ -1,12 +1,11 @@ { config , lib , options -, pkgs , ... }: let inherit (lib) mkIf; - inherit (lib.internal) mkBoolOpt enabled; + inherit (lib.internal) mkBoolOpt; cfg = config.beansnix.suites.social; in diff --git a/modules/home/system/shell/fish/default.nix b/modules/home/system/shell/fish/default.nix index d9ec6377a..6acc04c5f 100644 --- a/modules/home/system/shell/fish/default.nix +++ b/modules/home/system/shell/fish/default.nix @@ -2,7 +2,6 @@ , lib , options , pkgs -, osConfig , ... }: let diff --git a/modules/home/tools/git/default.nix b/modules/home/tools/git/default.nix index 3b84dfa35..68a8bfa7d 100644 --- a/modules/home/tools/git/default.nix +++ b/modules/home/tools/git/default.nix @@ -1,11 +1,10 @@ { config , lib -, pkgs , ... }: let - inherit (lib) types mkEnableOption mkIf getExe'; - inherit (lib.internal) mkOpt mkBoolOpt enabled; + inherit (lib) types mkEnableOption mkIf; + inherit (lib.internal) mkOpt enabled; inherit (config.beansnix) user; cfg = config.beansnix.tools.git; diff --git a/modules/nixos/desktop/gnome/default.nix b/modules/nixos/desktop/gnome/default.nix index 4847ce1eb..11b77a584 100644 --- a/modules/nixos/desktop/gnome/default.nix +++ b/modules/nixos/desktop/gnome/default.nix @@ -5,7 +5,7 @@ , ... }: let - inherit (lib) types mkIf mapAttrs optional getExe; + inherit (lib) types mkIf optional; inherit (lib.internal) mkBoolOpt mkOpt enabled; cfg = config.beansnix.desktop.gnome; diff --git a/modules/nixos/suites/music/default.nix b/modules/nixos/suites/music/default.nix index 96bcdde81..716accf24 100644 --- a/modules/nixos/suites/music/default.nix +++ b/modules/nixos/suites/music/default.nix @@ -6,7 +6,7 @@ }: let inherit (lib) mkIf; - inherit (lib.internal) mkBoolOpt enabled; + inherit (lib.internal) mkBoolOpt; cfg = config.beansnix.suites.music; in diff --git a/modules/nixos/suites/social/default.nix b/modules/nixos/suites/social/default.nix index ea77c7d3f..01faceda8 100644 --- a/modules/nixos/suites/social/default.nix +++ b/modules/nixos/suites/social/default.nix @@ -1,7 +1,6 @@ { config , lib , options -, pkgs , ... }: let diff --git a/modules/nixos/system/networking/default.nix b/modules/nixos/system/networking/default.nix index 78045a927..51700961f 100644 --- a/modules/nixos/system/networking/default.nix +++ b/modules/nixos/system/networking/default.nix @@ -1,7 +1,6 @@ { config , lib , options -, pkgs , ... }: let diff --git a/systems/x86_64-linux/helium/hardware.nix b/systems/x86_64-linux/helium/hardware.nix index 5b9ff5b11..a9d25c556 100644 --- a/systems/x86_64-linux/helium/hardware.nix +++ b/systems/x86_64-linux/helium/hardware.nix @@ -3,7 +3,6 @@ # to /etc/nixos/configuration.nix instead. { config , lib -, pkgs , modulesPath , ... }: { diff --git a/systems/x86_64-linux/lithium/default.nix b/systems/x86_64-linux/lithium/default.nix index 96519d1ab..1edf6c6e5 100644 --- a/systems/x86_64-linux/lithium/default.nix +++ b/systems/x86_64-linux/lithium/default.nix @@ -1,10 +1,8 @@ -{ config -, pkgs +{ pkgs , lib , ... }: let - inherit (lib) getExe; inherit (lib.internal) enabled; in { diff --git a/systems/x86_64-linux/lithium/hardware.nix b/systems/x86_64-linux/lithium/hardware.nix index 8ddb34c1a..30afe5ce5 100644 --- a/systems/x86_64-linux/lithium/hardware.nix +++ b/systems/x86_64-linux/lithium/hardware.nix @@ -2,7 +2,7 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ lib, modulesPath, ... }: { imports =