added different categories for home-manager module options instead of having them clumped together
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
{lib, config, pkgs, ... }: {
|
||||
options = {
|
||||
movOpts.gtkConfig.enable = lib.mkEnableOption "enable my gtk options";
|
||||
movOpts.envConfig.gtkConfig.enable = lib.mkEnableOption "enable my gtk options";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.gtkConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.gtkConfig.enable {
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
(nerdfonts.override {
|
||||
|
||||
@@ -9,12 +9,12 @@ let
|
||||
"super, insert, exec, grimblast copy area"
|
||||
];
|
||||
scheme = config.lib.stylix.colors;
|
||||
mons = config.movOpts.hyprlandConfig.monitorNames;
|
||||
mons = config.movOpts.envConfig.hyprlandConfig.monitorNames;
|
||||
|
||||
in {
|
||||
|
||||
options = {
|
||||
movOpts.hyprlandConfig = {
|
||||
movOpts.envConfig.hyprlandConfig = {
|
||||
enable = lib.mkEnableOption "enables my hyprland config";
|
||||
workspaceLayout = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
@@ -28,7 +28,7 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.movOpts.hyprlandConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.hyprlandConfig.enable {
|
||||
home.packages = with pkgs; [
|
||||
swaybg
|
||||
inputs.hypr-contrib.packages.${pkgs.system}.grimblast
|
||||
@@ -69,19 +69,19 @@ in {
|
||||
];
|
||||
|
||||
workspace =
|
||||
if (config.movOpts.hyprlandConfig.workspaceLayout == "dualmonitor") then [
|
||||
if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "dualmonitor") then [
|
||||
"1,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
"2,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
"3,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
"4,persistent=true,monitor:${builtins.elemAt mons 1}"
|
||||
"5,persistent=true,monitor:${builtins.elemAt mons 1}"
|
||||
"6,persistent=true,monitor:${builtins.elemAt mons 1}"
|
||||
] else if (config.movOpts.hyprlandConfig.workspaceLayout == "singlemonitor") then [
|
||||
] else if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "singlemonitor") then [
|
||||
"1,persistent=true,monitor:${builtins.elemAt mons 0} "
|
||||
"2,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
"3,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
"4,persistent=true,monitor:${builtins.elemAt mons 0}"
|
||||
] else if (config.movOpts.hyprlandConfig.workspaceLayout == "trimonitor") then [
|
||||
] else if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "trimonitor") then [
|
||||
"1,persistent=true,monitor:${builtins.elemAt mons 2}"
|
||||
"2,persistent=true,monitor:${builtins.elemAt mons 2}"
|
||||
"3,persistent=true,monitor:${builtins.elemAt mons 1}"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
in {
|
||||
imports = [inputs.spicetify-nix.homeManagerModules.default];
|
||||
options = {
|
||||
movOpts.spicetifyConfig.enable = lib.mkEnableOption "enable my spicetify options";
|
||||
movOpts.envConfig.spicetifyConfig.enable = lib.mkEnableOption "enable my spicetify options";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.spicetifyConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.spicetifyConfig.enable {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"spotify"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{config, lib, inputs, ... }: {
|
||||
options = {
|
||||
movOpts.starshipConfig.enable = lib.mkEnableOption "enables my starship configuration";
|
||||
movOpts.envConfig.starshipConfig.enable = lib.mkEnableOption "enables my starship configuration";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.starshipConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.starshipConfig.enable {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = false;
|
||||
|
||||
@@ -6,9 +6,9 @@ let
|
||||
in
|
||||
{
|
||||
options = {
|
||||
movOpts.stylixHomeConfig.enable = lib.mkEnableOption "enables my stylix Home-Manager options";
|
||||
movOpts.envConfig.stylixHomeConfig.enable = lib.mkEnableOption "enables my stylix Home-Manager options";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.stylixHomeConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.stylixHomeConfig.enable {
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme}.yaml";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{lib, config, pkgs, ...}: {
|
||||
options = {
|
||||
movOpts.swayncConfig.enable = lib.mkEnableOption "enables my swaync configuration";
|
||||
movOpts.envConfig.swayncConfig.enable = lib.mkEnableOption "enables my swaync configuration";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.swayncConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.swayncConfig.enable {
|
||||
home.packages = with pkgs; [swaynotificationcenter];
|
||||
xdg.configFile."swaync/style.css".text = ''
|
||||
@define-color shadow rgba(0, 0, 0, 0.25);
|
||||
|
||||
@@ -19,9 +19,9 @@ let
|
||||
in
|
||||
{
|
||||
options = {
|
||||
movOpts.userPkgs.enable = lib.mkEnableOption "enables my default user packages";
|
||||
movOpts.envConfig.userPkgs.enable = lib.mkEnableOption "enables my default user packages";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.userPkgs.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.userPkgs.enable {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
nemo
|
||||
|
||||
@@ -13,12 +13,12 @@ let
|
||||
"6" = "六";
|
||||
};
|
||||
persistent-workspaces =
|
||||
if (config.movOpts.hyprlandConfig.workspaceLayout == "singlemonitor") then {
|
||||
if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "singlemonitor") then {
|
||||
"${builtins.elemAt monitors 0}" = [ 1 2 3 4 ];
|
||||
} else if (config.movOpts.hyprlandConfig.workspaceLayout == "dualmonitor") then {
|
||||
} else if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "dualmonitor") then {
|
||||
"${builtins.elemAt monitors 0}" = [ 1 2 3 ];
|
||||
"${builtins.elemAt monitors 1}" = [ 4 5 6 ];
|
||||
} else if (config.movOpts.hyprlandConfig.workspaceLayout == "trimonitor") then {
|
||||
} else if (config.movOpts.envConfig.hyprlandConfig.workspaceLayout == "trimonitor") then {
|
||||
"${builtins.elemAt monitors 2}" = [ 1 2 ];
|
||||
"${builtins.elemAt monitors 1}" = [ 3 4 ];
|
||||
"${builtins.elemAt monitors 0}" = [ 5 6 ];
|
||||
@@ -49,10 +49,10 @@ let
|
||||
color6 = scheme.base0E;
|
||||
color7 = scheme.base0F;
|
||||
};
|
||||
monitors = config.movOpts.hyprlandConfig.monitorNames;
|
||||
monitors = config.movOpts.envConfig.hyprlandConfig.monitorNames;
|
||||
in {
|
||||
options = {
|
||||
movOpts.waybarConfig.enable = lib.mkEnableOption "enables my waybar configuration";
|
||||
movOpts.envConfig.waybarConfig.enable = lib.mkEnableOption "enables my waybar configuration";
|
||||
};
|
||||
config = {
|
||||
programs.waybar = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{lib, config, self, ...}: {
|
||||
options = {
|
||||
movOpts.zshConfig.enable = lib.mkEnableOption "enables my zsh configuration";
|
||||
movOpts.envConfig.zshConfig.enable = lib.mkEnableOption "enables my zsh configuration";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.zshConfig.enable {
|
||||
config = lib.mkIf config.movOpts.envConfig.zshConfig.enable {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
|
||||
Reference in New Issue
Block a user