mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
3a022a374a
I think this is better for separating modules explicitly. This is also considered as there are similar objects between modules (e.g., NixOS and home-manager modules and users). Revert users module to old position
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
# Enables all of my usual setup for desktop-oriented stuff.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.modules.desktop;
|
|
in
|
|
{
|
|
options.modules.desktop = {
|
|
enable = lib.mkEnableOption "Enable installations of desktop apps.";
|
|
graphics.enable = lib.mkEnableOption "Install graphics-related apps.";
|
|
audio.enable = lib.mkEnableOption "Install audio-related apps.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
|
(lib.mkIf cfg.graphics.enable {
|
|
home.packages = with pkgs; [
|
|
aseprite # Pixel art wannabe tool.
|
|
blender # 3D modelling wannabe tool.
|
|
inkscape # Illustration wannabe tool.
|
|
gimp # Photo editing wannabe tool.
|
|
krita # Digital art wannabe tool.
|
|
];
|
|
})
|
|
|
|
(lib.mkIf cfg.audio.enable {
|
|
home.packages = with pkgs; [
|
|
ardour # The big boi in Linux music production with FOSS.
|
|
musescore
|
|
|
|
# Trying to
|
|
yabridge
|
|
yabridgectl
|
|
helvum
|
|
];
|
|
|
|
services.easyeffects.enable = true;
|
|
})
|
|
]);
|
|
}
|