refactor: get rid of useless global vars

This commit is contained in:
matt1432 2024-11-18 12:30:54 -05:00
parent 2d39d81560
commit 155a9884ee
16 changed files with 25 additions and 50 deletions
common
home/neovim/langs
vars

View file

@ -1,5 +1,6 @@
{
config,
osConfig,
pkgs,
lib,
nixd,
@ -7,7 +8,8 @@
...
}: let
inherit (lib) getExe hasPrefix mkIf removePrefix;
inherit (config.vars) hostName mainUser neovimIde;
inherit (config.vars) mainUser neovimIde;
inherit (osConfig.networking) hostName;
defaultFormatter = self.formatter.${pkgs.system};

View file

@ -4,7 +4,6 @@
...
}: let
inherit (lib) mkDefault mkOption types;
flakeDir = config.environment.variables.FLAKE;
cfg = config.vars;
in {
options.vars = {
@ -15,13 +14,6 @@ in {
'';
};
hostName = mkOption {
type = types.str;
description = ''
Hostname that was defined at the initial setup process
'';
};
promptMainColor = mkOption {
type = types.enum (import ./prompt-schemes.nix {});
default = "purple";
@ -48,14 +40,6 @@ in {
};
};
configDir = mkOption {
type = types.str;
default = "${flakeDir}/devices/${cfg.hostName}/config";
description = ''
The path to where most of the devices' configs are in the .nix folder
'';
};
neovimIde = mkOption {
type = types.bool;
default = true;