prepare for multiple home-manager configs

This commit is contained in:
2025-01-16 10:43:56 -06:00
parent ee5e3ae9b0
commit 945e3765e8
65 changed files with 59 additions and 36 deletions

View File

@@ -1,29 +0,0 @@
{ config, lib, pkgs, inputs, ... }: {
options.homeconfig.wal.enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
config = let
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
${pkgs.pywalfox-native}/bin/pywalfox start
'';
in lib.mkIf config.homeconfig.wal.enable {
home.packages = with pkgs; [
inputs.themecord.packages.${pkgs.system}.default
vesktop
pywal16
imagemagick
pywalfox-native
];
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = lib.replaceStrings [ "<path>" ] [
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.12/site-packages/pywalfox/assets/manifest.json");
};
}