refactor(treewide): clean-up, flatten, rework module system
This commit is contained in:
parent
4ddf9d2b35
commit
5590c8a951
58 changed files with 397 additions and 635 deletions
12
home/modules/desktop/creative/audacity.nix
Normal file
12
home/modules/desktop/creative/audacity.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./audacity
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./audio
|
||||
./image
|
||||
# ./video
|
||||
./audacity.nix
|
||||
./inkscape.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./inkscape
|
||||
];
|
||||
}
|
||||
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
13
home/modules/desktop/creative/inkscape.nix
Normal file
13
home/modules/desktop/creative/inkscape.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue