adapt config for use with standalone home-manager

This commit is contained in:
greyweather committed 2026-08-28 01:15:05 +01:00
1 parent 765f346eb6
commit 3af64e993c
19 files changed
+418 -287

No files matched your search

@@ -1,25 +1,23 @@
{ inputs, self, ... }: {
flake.nixosModules.graphics = { lib, ... }: {
flake.homeModules.graphics = { pkgs, config, lib, ... }: {
options.features.applications.gui.spotify = {
enable = lib.mkEnableOption "spotify";
spicetify.enable = lib.mkEnableOption "spicetify";
};
};
flake.homeModules.graphics = { pkgs, config, lib, osConfig, ... }: {
imports = [
inputs.spicetify.homeManagerModules.default
];
config = {
home.packages = lib.mkIf (with osConfig.features.applications.gui.spotify; enable && !spicetify.enable) (with pkgs; [
home.packages = lib.mkIf (with config.features.applications.gui.spotify; enable && !spicetify.enable) (with pkgs; [
spotify
]);
programs.spicetify =
let
spicePkgs = inputs.spicetify.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in lib.mkIf (with osConfig.features.applications.gui.spotify; enable && spicetify.enable) {
in lib.mkIf (with config.features.applications.gui.spotify; enable && spicetify.enable) {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
hidePodcasts