Modularized GUI for potentially new environments in the future

This commit is contained in:
Bryan Ramos 2024-01-28 10:07:49 -05:00
parent d725ffdbfa
commit 46682b9b42
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
23 changed files with 77 additions and 39 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ lib, config, ... }:
with lib;
let
@ -6,39 +6,10 @@ let
in
{ options.modules.gui = { enable = mkEnableOption "gui"; };
imports = [ ./modules ];
imports = [ ./desktopEnvironments ];
config = mkIf cfg.enable {
wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; };
programs.rofi = import ./config/rofi.nix { inherit pkgs config lib; };
programs.bash.profileExtra = import ./config/shellHook.nix;
modules = {
alacritty.enable = true;
browsers.enable = true;
corn.enable = true;
fun.enable = true;
guiUtils.enable = true;
neovim.enable = true;
sway.enable = true;
};
gtk = {
enable = true;
theme.package = pkgs.juno-theme;
theme.name = "Juno-ocean";
iconTheme.package = pkgs.qogir-icon-theme;
iconTheme.name = "Qogir";
};
qt = {
enable = true;
style.package = pkgs.juno-theme;
platformTheme = "gtk";
};
programs = {
imv.enable = true;
};
fonts.fontconfig.enable = true;
};
}