From 3110d3fe47971c1817c2cbca8d5078cc840d3ae5 Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Fri, 21 Mar 2025 15:51:46 -0400 Subject: [PATCH] refactoring --- homes/media/default.nix | 5 +---- modules/home/beets/default.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 modules/home/beets/default.nix diff --git a/homes/media/default.nix b/homes/media/default.nix index b675050..8ed6777 100644 --- a/homes/media/default.nix +++ b/homes/media/default.nix @@ -4,11 +4,11 @@ imports = with nix-config.homeModules; [ shell-conf # shell, shell utils, cli tools, libs, tui's git-conf + beets ]; home = { packages = with pkgs; [ - beets btop ]; @@ -19,7 +19,6 @@ NH_FLAKE = "\${HOME}/nixos-config"; }; - sessionPath = [ "/home/media/.local/bin" "/home/media/.local/share" @@ -42,8 +41,6 @@ startServices = "sd-switch"; # auto reload services when home is rebuilt }; - xdg.configFile."beets/config.yaml".source = ../../modules/home/beets/config.yaml; - #custom script executables home.file.".local/bin" = { source = ../emenel/dotfiles/dot_local/bin; diff --git a/modules/home/beets/default.nix b/modules/home/beets/default.nix new file mode 100644 index 0000000..35ba68d --- /dev/null +++ b/modules/home/beets/default.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: + +{ + home.packages = with pkgs; [ + beets + ]; + + xdg.configFile."beets/config.yaml".source = ./config.yaml; +}