refactor(treewide): clean-up, flatten, rework module system

This commit is contained in:
ooks-io 2024-06-05 22:56:07 +12:00
parent 4ddf9d2b35
commit 5590c8a951
58 changed files with 397 additions and 635 deletions

View file

@ -0,0 +1,12 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.creative.audacity;
in
{
config = mkIf cfg.enable {
home.packages = [ pkgs.audacity ];
};
}

View file

@ -1,13 +0,0 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.creative.audio.audacity;
inherit (lib) mkIf mkEnableOption;
in
{
options.ooknet.desktop.creative.audio.audacity.enable = mkEnableOption "Enable audacity home module";
config = mkIf cfg.enable {
home.packages = [ pkgs.audacity ];
};
}

View file

@ -1,5 +0,0 @@
{
imports = [
./audacity
];
}

View file

@ -1,7 +1,6 @@
{
imports = [
./audio
./image
# ./video
./audacity.nix
./inkscape.nix
];
}

View file

@ -1,5 +0,0 @@
{
imports = [
./inkscape
];
}

View file

@ -1,14 +0,0 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.creative.audio.inkscape;
inherit (lib) mkIf mkEnableOption;
in
{
options.ooknet.desktop.creative.audio.inkscape.enable = mkEnableOption "Enable inkscape home module";
config = mkIf cfg.enable {
home.packages = [ pkgs.inkscape-with-extensions ];
};
}

View file

@ -0,0 +1,13 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.creative.inkscape;
in
{
config = mkIf cfg.enable {
home.packages = [ pkgs.inkscape-with-extensions ];
};
}