Skip to content

Commit

Permalink
refactor: reorganize modules structure
Browse files Browse the repository at this point in the history
- Rename 'terminal' to 'graphical' for GUI-related programs
- Rename 'desktop' suite to 'graphical' for better clarity
- Rename 'common' suite to 'terminal' to better reflect its purpose

This change improves the organization of modules by clearly separating
GUI and terminal-based programs and suites.
  • Loading branch information
yousiki committed Nov 19, 2024
1 parent 388889e commit 56b29d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
config,
...
}: let
cfg = config.${namespace}.programs.terminal.wezterm;
cfg = config.${namespace}.programs.graphical.wezterm;
in {
options.${namespace}.programs.terminal.wezterm = {
options.${namespace}.programs.graphical.wezterm = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
config,
...
}: let
cfg = config.${namespace}.suites.desktop;
cfg = config.${namespace}.suites.graphical;
in {
options.${namespace}.suites.desktop = {
options.${namespace}.suites.graphical = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable desktop suite.";
description = "Whether to enable graphical suite.";
};
};

config = lib.mkIf cfg.enable {
${namespace} = {
programs = {
terminal = {
graphical = {
wezterm.enable = true;
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
config,
...
}: let
cfg = config.${namespace}.suites.common;
cfg = config.${namespace}.suites.terminal;
in {
options.${namespace}.suites.common = {
options.${namespace}.suites.terminal = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable common suite.";
description = "Whether to enable terminal suite.";
};
};

Expand Down

0 comments on commit 56b29d0

Please sign in to comment.