From 1768c3349afafad4143bb19adc42600d01ce90a1 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 16:51:13 +0300 Subject: [PATCH] does it get better --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/default.nix | 1 + modules/desktop/apps/nicotineplus/default.nix | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 modules/desktop/apps/nicotineplus/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index fa26bd5e..f51fefff 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -23,6 +23,7 @@ }; apps = { keepassxc.enable = true; + nicotineplus.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index 45540746..1d4db826 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -1,5 +1,6 @@ { imports = [ ./keepassxc + ./nicotineplus ]; } diff --git a/modules/desktop/apps/nicotineplus/default.nix b/modules/desktop/apps/nicotineplus/default.nix new file mode 100644 index 00000000..9f02b9cb --- /dev/null +++ b/modules/desktop/apps/nicotineplus/default.nix @@ -0,0 +1,20 @@ +# ITS A FILE SHARING THING +# NOT A GOD DAMN ADDICTION +# IM NOT ADDICTED TO MUSIC +# I SWEAR +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.apps.nicotineplus; +in +{ + options.modules.desktop.apps.nicotineplus = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + nicotine-plus + ]; + }; +}