moved desktopConfig apps to homeManagerModules

This commit is contained in:
Aly Raffauf 2024-03-29 08:23:23 -04:00
parent d85bf503ea
commit 0679717dc9
8 changed files with 57 additions and 15 deletions

View file

@ -5,15 +5,25 @@
./alacritty ./alacritty
./chromium ./chromium
./firefox ./firefox
./fractal
./fuzzel ./fuzzel
./librewolf ./librewolf
./mako ./mako
./obsidian
./tauon
./vsCodium ./vsCodium
./waybar ./waybar
./webCord
./zoom
]; ];
guiApps.firefox.enable = lib.mkDefault true; guiApps.firefox.enable = lib.mkDefault true;
guiApps.alacritty.enable = lib.mkDefault true; guiApps.alacritty.enable = lib.mkDefault true;
guiApps.vsCodium.enable = lib.mkDefault true; guiApps.vsCodium.enable = lib.mkDefault true;
guiApps.chromium.enable = lib.mkDefault true; guiApps.chromium.enable = lib.mkDefault true;
guiApps.obsidian.enable = lib.mkDefault true;
guiApps.tauon.enable = lib.mkDefault true;
guiApps.fractal.enable = lib.mkDefault true;
guiApps.webCord.enable = lib.mkDefault true;
guiApps.zoom.enable = lib.mkDefault true;
} }

View file

@ -1,12 +1,8 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
options = { options = { guiApps.firefox.enable = lib.mkEnableOption "Enables Firefox."; };
guiApps.firefox.enable = lib.mkEnableOption "Enables Firefox.";
};
config = lib.mkIf config.guiApps.firefox.enable { config = lib.mkIf config.guiApps.firefox.enable {
programs.firefox = { programs.firefox = { enable = true; };
enable = true;
};
}; };
} }

View file

@ -0,0 +1,11 @@
{ pkgs, lib, config, ... }: {
options = {
guiApps.fractal.enable =
lib.mkEnableOption "Enables Fractal Matrix client.";
};
config = lib.mkIf config.guiApps.fractal.enable {
home.packages = with pkgs; [ fractal ];
};
}

View file

@ -0,0 +1,10 @@
{ pkgs, lib, config, ... }: {
options = {
guiApps.obsidian.enable = lib.mkEnableOption "Enables Obsidian.";
};
config = lib.mkIf config.guiApps.obsidian.enable {
home.packages = with pkgs; [ obsidian ];
};
}

View file

@ -0,0 +1,8 @@
{ pkgs, lib, config, ... }: {
options = { guiApps.tauon.enable = lib.mkEnableOption "Enables Tauon."; };
config = lib.mkIf config.guiApps.tauon.enable {
home.packages = with pkgs; [ tauon ];
};
}

View file

@ -0,0 +1,8 @@
{ pkgs, lib, config, ... }: {
options = { guiApps.webCord.enable = lib.mkEnableOption "Enables WebCord."; };
config = lib.mkIf config.guiApps.webCord.enable {
home.packages = with pkgs; [ webcord ];
};
}

View file

@ -0,0 +1,8 @@
{ pkgs, lib, config, ... }: {
options = { guiApps.zoom.enable = lib.mkEnableOption "Enables Zoom."; };
config = lib.mkIf config.guiApps.zoom.enable {
home.packages = with pkgs; [ webcord ];
};
}

View file

@ -32,15 +32,6 @@
}) })
]; ];
# Enable basic assortment of GUI apps.
environment.systemPackages = with pkgs; [
fractal
obsidian
tauon
webcord
zoom-us
];
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true; desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
}; };
} }