From de4a8215081737b387adebbfdb856f8a79dbf280 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 2 Apr 2023 16:22:02 +0200 Subject: [PATCH] profiles/media: init from legacy --- legacy/modules/media.nix | 30 ---------------------- machines/thinkman/configuration.nix | 1 - machines/thinkman/profiles.nix | 1 + profiles/default.nix | 1 + profiles/media/default.nix | 39 +++++++++++++++++++++++++++++ 5 files changed, 41 insertions(+), 31 deletions(-) delete mode 100644 legacy/modules/media.nix create mode 100644 profiles/media/default.nix diff --git a/legacy/modules/media.nix b/legacy/modules/media.nix deleted file mode 100644 index f17467f..0000000 --- a/legacy/modules/media.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, pkgs, ... }: -{ - environment.systemPackages = with pkgs; [ - audacity # audio editing - chromaprint # music-brainz fingerprint - ffmpeg # general purpose - gallery-dl # image donwloader - handbrake # video converter - image_optim # image compressors - imagemagick # image converter - inkscape # vector image editing - mat2 # metadata-cleaning - mediaelch # video sorting - metadata-cleaner # mat2-gui - mp3gain # audio volume - mp3splt # splitting mp3 files - mp3val # audio validation - pdfgrep # grep in pdfs - pdfsam-basic # pdf editing - picard # music tagging - projectm # visualization of music - puddletag # audio tagging - shotwell # photo management - sonixd # cloud-music-player - soundkonverter # audio converter - (yt-dlp.override { - withAlias = true; - }) # video download - ]; -} diff --git a/machines/thinkman/configuration.nix b/machines/thinkman/configuration.nix index 0ea33b2..170a488 100644 --- a/machines/thinkman/configuration.nix +++ b/machines/thinkman/configuration.nix @@ -12,7 +12,6 @@ ../../legacy/modules/desktop-development.nix ../../legacy/modules/development.nix ../../legacy/modules/filesystem.nix - ../../legacy/modules/media.nix ]; networking.hostName = "thinkman"; diff --git a/machines/thinkman/profiles.nix b/machines/thinkman/profiles.nix index c85c469..654c73f 100644 --- a/machines/thinkman/profiles.nix +++ b/machines/thinkman/profiles.nix @@ -10,6 +10,7 @@ in clean.enable = true; gaming.enable = true; latex.enable = true; + media.enable = true; meeting.enable = true; nautilus.enable = true; powersave.enable = true; diff --git a/profiles/default.nix b/profiles/default.nix index d2920f2..6dbe033 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -7,6 +7,7 @@ ./clean ./gaming ./latex + ./media ./meeting ./nautilus ./powersave diff --git a/profiles/media/default.nix b/profiles/media/default.nix new file mode 100644 index 0000000..57e9c60 --- /dev/null +++ b/profiles/media/default.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.media; +in +{ + options.my.profiles.media = with lib; { + enable = mkEnableOption "media profile"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + audacity # audio editing + chromaprint # music-brainz fingerprint + ffmpeg # general purpose + gallery-dl # image donwloader + handbrake # video converter + image_optim # image compressors + imagemagick # image converter + inkscape # vector image editing + mat2 # metadata-cleaning + mediaelch # video sorting + metadata-cleaner # mat2-gui + mp3gain # audio volume + mp3splt # splitting mp3 files + mp3val # audio validation + pdfgrep # grep in pdfs + pdfsam-basic # pdf editing + picard # music tagging + projectm # visualization of music + puddletag # audio tagging + shotwell # photo management + sonixd # cloud-music-player + soundkonverter # audio converter + (yt-dlp.override { + withAlias = true; + }) # video download + ]; + }; +}