From d42ab5e5dd5d651a84f4a4c9a3ab8552ba4a12e9 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 11 Jul 2023 22:55:34 +0300 Subject: [PATCH] add lmms for fun --- hosts/sakotop/configuration.nix | 1 + modules/desktop/media/default.nix | 1 + modules/desktop/media/lmms/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/desktop/media/lmms/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index f037c87f..7e525dd8 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -39,6 +39,7 @@ #resolve.enable = true; blender.enable = true; kdenlive.enable = true; + lmms.enable = true; }; }; hardware = { diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix index ac92d151..12679238 100644 --- a/modules/desktop/media/default.nix +++ b/modules/desktop/media/default.nix @@ -4,5 +4,6 @@ ./gimp ./blender ./kdenlive + ./lmms ]; } diff --git a/modules/desktop/media/lmms/default.nix b/modules/desktop/media/lmms/default.nix new file mode 100644 index 00000000..50900522 --- /dev/null +++ b/modules/desktop/media/lmms/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.lmms; +in +{ + options.modules.desktop.media.lmms = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + lmms + ]; + }; +}