2024-05-20 21:15:16 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.myConfig;
|
|
|
|
in {
|
2024-05-18 13:45:54 +02:00
|
|
|
imports = [./git ./music ./programs ./shell ./sway];
|
2024-05-20 21:15:16 +02:00
|
|
|
|
|
|
|
options.myConfig = {
|
|
|
|
enable = lib.mkEnableOption "custom home-manager config";
|
|
|
|
desktop = lib.mkEnableOption "custom home-manager config for desktop use";
|
|
|
|
laptop = lib.mkEnableOption "extra settings for laptop use";
|
|
|
|
};
|
|
|
|
|
|
|
|
config.myConfig = lib.mkIf cfg.enable {
|
|
|
|
shell.enable = true;
|
|
|
|
git.enable = true;
|
|
|
|
|
|
|
|
sway.enable = lib.mkIf cfg.desktop true;
|
|
|
|
music.enable = lib.mkIf cfg.desktop true;
|
|
|
|
programs.enable = lib.mkIf cfg.desktop true;
|
|
|
|
|
|
|
|
sway.laptop = lib.mkIf cfg.laptop true;
|
|
|
|
};
|
2024-05-18 13:45:54 +02:00
|
|
|
}
|