some refactoring
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.browsers.chromium;
|
||||
cfg = config.userModules.browsers.chromium;
|
||||
in {
|
||||
options = {
|
||||
modules.browsers.chromium.enable = mkEnableOption "Enables chromium";
|
||||
userModules.browsers.chromium.enable = mkEnableOption "Enables chromium";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.chromium = {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.browsers.firefox;
|
||||
cfg = config.userModules.browsers.firefox;
|
||||
in {
|
||||
imports = [
|
||||
inputs.nur.hmModules.nur
|
||||
];
|
||||
options = {
|
||||
modules.browsers.firefox.enable = mkEnableOption "Enables firefox";
|
||||
userModules.browsers.firefox.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.firefox = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.comm.discord;
|
||||
cfg = config.userModules.comm.discord;
|
||||
in {
|
||||
options = {
|
||||
modules.comm.discord.enable = mkEnableOption "Enables discord";
|
||||
userModules.comm.discord.enable = mkEnableOption "Enables discord";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [vesktop];
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
{userModules, ...}: {
|
||||
{umodPath, ...}: {
|
||||
imports = [
|
||||
"${userModules}/browsers/chromium"
|
||||
"${userModules}/browsers/firefox"
|
||||
"${userModules}/comm/discord"
|
||||
"${userModules}/devtools/neovim"
|
||||
"${userModules}/devtools/vscode"
|
||||
"${userModules}/devtools/helix"
|
||||
"${userModules}/gaming/lutris"
|
||||
"${userModules}/gaming/mangohud"
|
||||
"${userModules}/terminal/alacritty"
|
||||
"${userModules}/terminal/foot"
|
||||
"${userModules}/terminal/kitty"
|
||||
"${userModules}/terminal/wezterm"
|
||||
"${userModules}/terminal/zellij"
|
||||
"${userModules}/userd/copyq"
|
||||
"${userModules}/userd/blueman-applet"
|
||||
"${userModules}/userd/mako"
|
||||
"${userModules}/userd/udiskie"
|
||||
"${userModules}/userd/gpg"
|
||||
"${userModules}/userd/syncthing"
|
||||
"${userModules}/utils/anyrun"
|
||||
"${userModules}/utils/misc"
|
||||
"${userModules}/utils/rofi"
|
||||
"${userModules}/utils/waybar"
|
||||
"${userModules}/utils/yazi"
|
||||
"${userModules}/utils/zathura"
|
||||
"${userModules}/utils/tuirun"
|
||||
"${userModules}/utils/eza"
|
||||
"${userModules}/utils/ssh"
|
||||
"${userModules}/wm/hyprland"
|
||||
"${userModules}/wm/utils/hypridle"
|
||||
"${userModules}/wm/utils/hyprlock"
|
||||
"${userModules}/wm/utils/hyprpaper"
|
||||
"${umodPath}/browsers/chromium"
|
||||
"${umodPath}/browsers/firefox"
|
||||
"${umodPath}/comm/discord"
|
||||
"${umodPath}/devtools/neovim"
|
||||
"${umodPath}/devtools/vscode"
|
||||
"${umodPath}/devtools/helix"
|
||||
"${umodPath}/gaming/lutris"
|
||||
"${umodPath}/gaming/mangohud"
|
||||
"${umodPath}/terminal/alacritty"
|
||||
"${umodPath}/terminal/foot"
|
||||
"${umodPath}/terminal/kitty"
|
||||
"${umodPath}/terminal/wezterm"
|
||||
"${umodPath}/terminal/zellij"
|
||||
"${umodPath}/userd/copyq"
|
||||
"${umodPath}/userd/blueman-applet"
|
||||
"${umodPath}/userd/mako"
|
||||
"${umodPath}/userd/udiskie"
|
||||
"${umodPath}/userd/gpg"
|
||||
"${umodPath}/userd/syncthing"
|
||||
"${umodPath}/utils/anyrun"
|
||||
"${umodPath}/utils/misc"
|
||||
"${umodPath}/utils/rofi"
|
||||
"${umodPath}/utils/waybar"
|
||||
"${umodPath}/utils/yazi"
|
||||
"${umodPath}/utils/zathura"
|
||||
"${umodPath}/utils/tuirun"
|
||||
"${umodPath}/utils/eza"
|
||||
"${umodPath}/utils/ssh"
|
||||
"${umodPath}/wm/hyprland"
|
||||
"${umodPath}/wm/utils/hypridle"
|
||||
"${umodPath}/wm/utils/hyprlock"
|
||||
"${umodPath}/wm/utils/hyprpaper"
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.devtools.helix;
|
||||
cfg = config.userModules.devtools.helix;
|
||||
in {
|
||||
imports = [
|
||||
./lang.nix
|
||||
@@ -14,7 +14,7 @@ in {
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.devtools.helix.enable = mkEnableOption "Enable helix";
|
||||
userModules.devtools.helix.enable = mkEnableOption "Enable helix";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.devtools.neovim;
|
||||
cfg = config.userModules.devtools.neovim;
|
||||
in {
|
||||
imports = [
|
||||
./plugins
|
||||
@@ -15,7 +15,7 @@ in {
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.devtools.neovim.enable = mkEnableOption "Enable neovim";
|
||||
userModules.devtools.neovim.enable = mkEnableOption "Enable neovim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.devtools.nixvim;
|
||||
cfg = config.userModules.devtools.nixvim;
|
||||
in {
|
||||
imports = [
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
@@ -18,7 +18,7 @@ in {
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.devtools.nixvim.enable = mkEnableOption "Enable nixvim";
|
||||
userModules.devtools.nixvim.enable = mkEnableOption "Enable nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.barbar;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.barbar;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.barbar.enable = mkEnableOption "Enables Barbar plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.barbar.enable = mkEnableOption "Enables Barbar plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.cmp;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.cmp;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.cmp.enable = mkEnableOption "Enables completion plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.cmp.enable = mkEnableOption "Enables completion plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.comment;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.comment;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.comment.enable = mkEnableOption "Enables Comment plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.comment.enable = mkEnableOption "Enables Comment plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.conform;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.conform;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.conform.enable = mkEnableOption "Enables Conform plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.conform.enable = mkEnableOption "Enables Conform plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.copilot;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.copilot;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.copilot.enable = mkEnableOption "Enables AI tools for nixvim";
|
||||
userModules.devtools.nixvim.plugins.copilot.enable = mkEnableOption "Enables AI tools for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
{userModules, ...}: {
|
||||
{umodPath, ...}: {
|
||||
imports = [
|
||||
"${userModules}/devtools/nixvim/plugins/barbar.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/comment.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/conform.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/cmp.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/copilot.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/efm.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/floaterm.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/harpoon.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/lsp.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/lualine.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/lightline.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/markdown-preview.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/neo-tree.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/nonels.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/rustaceanvim.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/startify.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/tagbar.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/telescope.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/treesitter.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/vimtex.nix"
|
||||
"${userModules}/devtools/nixvim/plugins/yanky.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/barbar.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/comment.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/conform.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/cmp.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/copilot.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/efm.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/floaterm.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/harpoon.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/lsp.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/lualine.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/lightline.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/markdown-preview.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/neo-tree.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/nonels.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/rustaceanvim.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/startify.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/tagbar.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/telescope.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/treesitter.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/vimtex.nix"
|
||||
"${umodPath}/devtools/nixvim/plugins/yanky.nix"
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.efm;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.efm;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.efm.enable = mkEnableOption "Enables EFM LSP support for nixvim";
|
||||
userModules.devtools.nixvim.plugins.efm.enable = mkEnableOption "Enables EFM LSP support for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.floaterm;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.floaterm;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.floaterm.enable = mkEnableOption "Enables Floaterm plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.floaterm.enable = mkEnableOption "Enables Floaterm plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.harpoon;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.harpoon;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.harpoon.enable = mkEnableOption "Enables Harpoon plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.harpoon.enable = mkEnableOption "Enables Harpoon plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.lightline;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.lightline;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.lightline.enable = mkEnableOption "Enables lightline plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.lightline.enable = mkEnableOption "Enables lightline plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.lsp-format;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.lsp-format;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.lsp-format = {
|
||||
userModules.devtools.nixvim.plugins.lsp-format = {
|
||||
enable = mkEnableOption "Enables LSP formatting support for nixvim";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.lsp;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.lsp;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.lsp = {
|
||||
userModules.devtools.nixvim.plugins.lsp = {
|
||||
enable = mkEnableOption "Enables LSP support for nixvim";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.lualine;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.lualine;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.lualine.enable = mkEnableOption "Enables Lualine plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.lualine.enable = mkEnableOption "Enables Lualine plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.markdown-preview;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.markdown-preview;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.markdown-preview.enable = mkEnableOption "Enables Markdown Preview plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.markdown-preview.enable = mkEnableOption "Enables Markdown Preview plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.neo-tree;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.neo-tree;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.neo-tree.enable = mkEnableOption "Enables neo-tree plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.neo-tree.enable = mkEnableOption "Enables neo-tree plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.none-ls;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.none-ls;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.none-ls.enable = mkEnableOption "Enables None-LS plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.none-ls.enable = mkEnableOption "Enables None-LS plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.devtools.nixvim.plugins.rustaceanvim;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.rustaceanvim;
|
||||
in {
|
||||
options.modules.devtools.nixvim.plugins.rustaceanvim = {
|
||||
options.userModules.devtools.nixvim.plugins.rustaceanvim = {
|
||||
enable = mkEnableOption "Whether to enable rustaceanvim.";
|
||||
};
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.startify;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.startify;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.startify.enable = mkEnableOption "Enables Startify plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.startify.enable = mkEnableOption "Enables Startify plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.tagbar;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.tagbar;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.tagbar.enable = mkEnableOption "Enables Tagbar plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.tagbar.enable = mkEnableOption "Enables Tagbar plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.telescope;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.telescope;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.telescope.enable = mkEnableOption "Enables Telescope plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.telescope.enable = mkEnableOption "Enables Telescope plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.treesitter;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.treesitter;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins = {
|
||||
userModules.devtools.nixvim.plugins = {
|
||||
treesitter.enable = mkEnableOption "Enables Treesitter plugin for nixvim";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.vimtex;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.vimtex;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.vimtex.enable = mkEnableOption "Enables VimTeX plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.vimtex.enable = mkEnableOption "Enables VimTeX plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.modules.devtools.nixvim.plugins.yanky;
|
||||
cfg = config.userModules.devtools.nixvim.plugins.yanky;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.nixvim.plugins.yanky.enable = mkEnableOption "Enables Yanky plugin for nixvim";
|
||||
userModules.devtools.nixvim.plugins.yanky.enable = mkEnableOption "Enables Yanky plugin for nixvim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.devtools.vscode;
|
||||
cfg = config.userModules.devtools.vscode;
|
||||
in {
|
||||
options = {
|
||||
modules.devtools.vscode.enable = mkEnableOption "Enables vscode";
|
||||
userModules.devtools.vscode.enable = mkEnableOption "Enables vscode";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.vscode = {
|
||||
|
||||
60
home/modules/display/monitors/default.nix
Normal file
60
home/modules/display/monitors/default.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption types;
|
||||
cfg = config.userModules.display.monitors;
|
||||
in {
|
||||
options.userModules.display.monitors = mkOption {
|
||||
type = types.listOf (
|
||||
types.submodule {
|
||||
options = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
example = "DP-1";
|
||||
};
|
||||
primary = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
width = mkOption {
|
||||
type = types.int;
|
||||
example = 1920;
|
||||
};
|
||||
height = mkOption {
|
||||
type = types.int;
|
||||
example = 1080;
|
||||
};
|
||||
refreshRate = mkOption {
|
||||
type = types.int;
|
||||
default = 60;
|
||||
};
|
||||
position = mkOption {
|
||||
type = types.str;
|
||||
default = "auto";
|
||||
};
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
workspace = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
default = [];
|
||||
};
|
||||
config = {
|
||||
assertions = [
|
||||
{
|
||||
assertion =
|
||||
((lib.length cfg) != 0)
|
||||
-> ((lib.length (lib.filter (m: m.primary) cfg)) == 1);
|
||||
message = "Exactly one monitor must be set to primary.";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.gaming.lutris;
|
||||
cfg = config.userModules.gaming.lutris;
|
||||
in {
|
||||
options = {
|
||||
modules.gaming.lutris.enable = mkEnableOption "Enables lutris";
|
||||
userModules.gaming.lutris.enable = mkEnableOption "Enables lutris";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.gaming.mangohud;
|
||||
cfg = config.userModules.gaming.mangohud;
|
||||
in {
|
||||
options = {
|
||||
modules.gaming.mangohud.enable = mkEnableOption "Enables mangohud";
|
||||
userModules.gaming.mangohud.enable = mkEnableOption "Enables mangohud";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.mangohud = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.alacritty;
|
||||
cfg = config.userModules.terminal.alacritty;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.alacritty.enable = mkEnableOption "Enables firefox";
|
||||
userModules.terminal.alacritty.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.foot;
|
||||
cfg = config.userModules.terminal.foot;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.foot.enable = mkEnableOption "Enables foot terminal";
|
||||
userModules.terminal.foot.enable = mkEnableOption "Enables foot terminal";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.foot = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.kitty;
|
||||
cfg = config.userModules.terminal.kitty;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.kitty.enable = mkEnableOption "Enables kitty terminal";
|
||||
userModules.terminal.kitty.enable = mkEnableOption "Enables kitty terminal";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.kitty = {
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
weztermPkg = pkgs.wezterm;
|
||||
# weztermFlake = inputs.wezterm.packages.${pkgs.system}.default;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.wezterm;
|
||||
cfg = config.userModules.terminal.wezterm;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.wezterm.enable = mkEnableOption "Enables wezterm terminal";
|
||||
userModules.terminal.wezterm.enable = mkEnableOption "Enables wezterm terminal";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.wezterm = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.zellij;
|
||||
cfg = config.userModules.terminal.zellij;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.zellij.enable = mkEnableOption "Enables zellij";
|
||||
userModules.terminal.zellij.enable = mkEnableOption "Enables zellij";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zellij = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.blueman-applet;
|
||||
cfg = config.userModules.userd.blueman-applet;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.blueman-applet.enable = mkEnableOption "Enables blueman-applet";
|
||||
userModules.userd.blueman-applet.enable = mkEnableOption "Enables blueman-applet";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.blueman-applet = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.copyq;
|
||||
cfg = config.userModules.userd.copyq;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.copyq.enable = mkEnableOption "Enables copyq";
|
||||
userModules.userd.copyq.enable = mkEnableOption "Enables copyq";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.copyq = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.gpg;
|
||||
cfg = config.userModules.userd.gpg;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.gpg.enable = mkEnableOption "Enables gpg";
|
||||
userModules.userd.gpg.enable = mkEnableOption "Enables gpg";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.gpg-agent = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.mako;
|
||||
cfg = config.userModules.userd.mako;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.mako.enable = mkEnableOption "Enables mako";
|
||||
userModules.userd.mako.enable = mkEnableOption "Enables mako";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.mako = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.syncthing;
|
||||
cfg = config.userModules.userd.syncthing;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.syncthing.enable = mkEnableOption "Enables syncthing";
|
||||
userModules.userd.syncthing.enable = mkEnableOption "Enables syncthing";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.syncthing = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.udiskie;
|
||||
cfg = config.userModules.userd.udiskie;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.udiskie.enable = mkEnableOption "Enables udiskie";
|
||||
userModules.userd.udiskie.enable = mkEnableOption "Enables udiskie";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.udiskie = {
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.anyrun;
|
||||
cfg = config.userModules.utils.anyrun;
|
||||
in {
|
||||
imports = [
|
||||
inputs.anyrun.homeManagerModules.default
|
||||
];
|
||||
options = {
|
||||
modules.utils.anyrun.enable = mkEnableOption "Enables anyrun";
|
||||
userModules.utils.anyrun.enable = mkEnableOption "Enables anyrun";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.anyrun = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.eza;
|
||||
cfg = config.userModules.utils.eza;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.eza.enable = mkEnableOption "Enables eza";
|
||||
userModules.utils.eza.enable = mkEnableOption "Enables eza";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.eza = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.misc;
|
||||
cfg = config.userModules.utils.misc;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.misc.enable = mkEnableOption "Enables miscellaneous utility apps";
|
||||
userModules.utils.misc.enable = mkEnableOption "Enables miscellaneous utility apps";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.rofi;
|
||||
cfg = config.userModules.utils.rofi;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.rofi.enable = mkEnableOption "Enables firefox";
|
||||
userModules.utils.rofi.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.rofi = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.ssh;
|
||||
cfg = config.userModules.utils.ssh;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.ssh.enable = mkEnableOption "Enables ssh";
|
||||
userModules.utils.ssh.enable = mkEnableOption "Enables ssh";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.tuirun;
|
||||
cfg = config.userModules.utils.tuirun;
|
||||
in {
|
||||
imports = [
|
||||
inputs.tuirun.homeManagerModules.default
|
||||
];
|
||||
options = {
|
||||
modules.utils.tuirun.enable = mkEnableOption "Enables tuirun";
|
||||
userModules.utils.tuirun.enable = mkEnableOption "Enables tuirun";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.tuirun = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.waybar;
|
||||
cfg = config.userModules.utils.waybar;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.waybar.enable = mkEnableOption "Enables waybar";
|
||||
userModules.utils.waybar.enable = mkEnableOption "Enables waybar";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
systemd.user.services.waybar = {
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.yazi;
|
||||
cfg = config.userModules.utils.yazi;
|
||||
in {
|
||||
imports = [
|
||||
./theme
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.utils.yazi.enable = mkEnableOption "Enables yazi";
|
||||
userModules.utils.yazi.enable = mkEnableOption "Enables yazi";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.yazi = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.zathura;
|
||||
cfg = config.userModules.utils.zathura;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.zathura.enable = mkEnableOption "Enables zathura";
|
||||
userModules.utils.zathura.enable = mkEnableOption "Enables zathura";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zathura = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.cnst.appearance;
|
||||
cfg = config.userModules.wm.hyprland.cnst.appearance;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||
userModules.wm.hyprland.cnst.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -3,26 +3,26 @@
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userModules,
|
||||
umodPath,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkDefault;
|
||||
cfg = config.modules.wm.hyprland.cnst;
|
||||
cfg = config.userModules.wm.hyprland.cnst;
|
||||
in {
|
||||
imports = [
|
||||
"${userModules}/wm/hyprland/cnst/appearance.nix"
|
||||
"${userModules}/wm/hyprland/cnst/inputs.nix"
|
||||
"${userModules}/wm/hyprland/cnst/keybinds.nix"
|
||||
"${userModules}/wm/hyprland/cnst/rules.nix"
|
||||
"${userModules}/wm/hyprland/cnst/startup.nix"
|
||||
"${umodPath}/wm/hyprland/cnst/appearance.nix"
|
||||
"${umodPath}/wm/hyprland/cnst/inputs.nix"
|
||||
"${umodPath}/wm/hyprland/cnst/keybinds.nix"
|
||||
"${umodPath}/wm/hyprland/cnst/rules.nix"
|
||||
"${umodPath}/wm/hyprland/cnst/startup.nix"
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.enable = mkEnableOption "Enable Hyprland";
|
||||
userModules.wm.hyprland.cnst.enable = mkEnableOption "Enable Hyprland";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.wm.hyprland.cnst = {
|
||||
userModules.wm.hyprland.cnst = {
|
||||
appearance.enable = mkDefault cfg.enable;
|
||||
inputs.enable = mkDefault cfg.enable;
|
||||
keybinds.enable = mkDefault cfg.enable;
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.cnst.inputs;
|
||||
cfg = config.userModules.wm.hyprland.cnst.inputs;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||
userModules.wm.hyprland.cnst.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = [
|
||||
"DP-3, 2560x1440@239.97, auto, auto, bitdepth, 10"
|
||||
"DP-3, 2560x1440@240, auto, auto, bitdepth, 10"
|
||||
"eDP-1,1920x1200@60.02,auto,1"
|
||||
];
|
||||
env = [
|
||||
@@ -63,7 +63,7 @@ in {
|
||||
workspace_swipe_create_new = true;
|
||||
};
|
||||
misc = {
|
||||
vrr = 2;
|
||||
vrr = 0;
|
||||
mouse_move_enables_dpms = 1;
|
||||
key_press_enables_dpms = 0;
|
||||
force_default_wallpaper = 0;
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
if osConfig.networking.hostName == "cnixpad"
|
||||
then "foot"
|
||||
else "alacritty";
|
||||
cfg = config.modules.wm.hyprland.cnst.keybinds;
|
||||
cfg = config.userModules.wm.hyprland.cnst.keybinds;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||
userModules.wm.hyprland.cnst.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.cnst.rules;
|
||||
cfg = config.userModules.wm.hyprland.cnst.rules;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||
userModules.wm.hyprland.cnst.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.cnst.startup;
|
||||
cfg = config.userModules.wm.hyprland.cnst.startup;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.cnst.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||
userModules.wm.hyprland.cnst.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{userModules, ...}: {
|
||||
{umodPath, ...}: {
|
||||
imports = [
|
||||
"${userModules}/wm/hyprland/cnst"
|
||||
"${userModules}/wm/hyprland/toothpick"
|
||||
"${umodPath}/wm/hyprland/cnst"
|
||||
"${umodPath}/wm/hyprland/toothpick"
|
||||
];
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.toothpick.appearance;
|
||||
cfg = config.userModules.wm.hyprland.toothpick.appearance;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||
userModules.wm.hyprland.toothpick.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -3,26 +3,26 @@
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userModules,
|
||||
umodPath,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkDefault;
|
||||
cfg = config.modules.wm.hyprland.toothpick;
|
||||
cfg = config.userModules.wm.hyprland.toothpick;
|
||||
in {
|
||||
imports = [
|
||||
"${userModules}/wm/hyprland/toothpick/appearance.nix"
|
||||
"${userModules}/wm/hyprland/toothpick/inputs.nix"
|
||||
"${userModules}/wm/hyprland/toothpick/keybinds.nix"
|
||||
"${userModules}/wm/hyprland/toothpick/rules.nix"
|
||||
"${userModules}/wm/hyprland/toothpick/startup.nix"
|
||||
"${umodPath}/wm/hyprland/toothpick/appearance.nix"
|
||||
"${umodPath}/wm/hyprland/toothpick/inputs.nix"
|
||||
"${umodPath}/wm/hyprland/toothpick/keybinds.nix"
|
||||
"${umodPath}/wm/hyprland/toothpick/rules.nix"
|
||||
"${umodPath}/wm/hyprland/toothpick/startup.nix"
|
||||
];
|
||||
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.enable = mkEnableOption "Enable Hyprland";
|
||||
userModules.wm.hyprland.toothpick.enable = mkEnableOption "Enable Hyprland";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.wm.hyprland.toothpick = {
|
||||
userModules.wm.hyprland.toothpick = {
|
||||
appearance.enable = mkDefault cfg.enable;
|
||||
inputs.enable = mkDefault cfg.enable;
|
||||
keybinds.enable = mkDefault cfg.enable;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.toothpick.inputs;
|
||||
cfg = config.userModules.wm.hyprland.toothpick.inputs;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||
userModules.wm.hyprland.toothpick.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.toothpick.keybinds;
|
||||
cfg = config.userModules.wm.hyprland.toothpick.keybinds;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||
userModules.wm.hyprland.toothpick.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.toothpick.rules;
|
||||
cfg = config.userModules.wm.hyprland.toothpick.rules;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||
userModules.wm.hyprland.toothpick.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.hyprland.toothpick.startup;
|
||||
cfg = config.userModules.wm.hyprland.toothpick.startup;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.hyprland.toothpick.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||
userModules.wm.hyprland.toothpick.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.utils.hypridle;
|
||||
cfg = config.userModules.wm.utils.hypridle;
|
||||
|
||||
hypridleFlake = inputs.hypridle.packages.${pkgs.system}.hypridle;
|
||||
# hypridlePkg = pkgs.hypridle;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.utils.hypridle.enable = mkEnableOption "Enables hypridle";
|
||||
userModules.wm.utils.hypridle.enable = mkEnableOption "Enables hypridle";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.hypridle = {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.utils.hyprlock;
|
||||
cfg = config.userModules.wm.utils.hyprlock;
|
||||
|
||||
hyprlockFlake = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
||||
# hyprlockPkg = pkgs.hyprlock;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.utils.hyprlock.enable = mkEnableOption "Enables hyprlock";
|
||||
userModules.wm.utils.hyprlock.enable = mkEnableOption "Enables hyprlock";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.hyprlock = {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.wm.utils.hyprpaper;
|
||||
cfg = config.userModules.wm.utils.hyprpaper;
|
||||
|
||||
hyprpaperFlake = inputs.hyprpaper.packages.${pkgs.system}.default;
|
||||
# hyprpaperPkg = pkgs.hyprpaper;
|
||||
in {
|
||||
options = {
|
||||
modules.wm.utils.hyprpaper.enable = mkEnableOption "Enables hyprpaper";
|
||||
userModules.wm.utils.hyprpaper.enable = mkEnableOption "Enables hyprpaper";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.hyprpaper = {
|
||||
|
||||
Reference in New Issue
Block a user