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,5 +1,3 @@
{ {
nixup = "sudo nixos-rebuild switch --flake /etc/nixos/.#desktop"; nixup = "sudo nixos-rebuild switch --flake /etc/nixos/.#desktop";
chat = "weechat";
open = "xdg-open";
} }

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: { lib, config, ... }:
with lib; with lib;
let let
@ -6,39 +6,10 @@ let
in in
{ options.modules.gui = { enable = mkEnableOption "gui"; }; { options.modules.gui = { enable = mkEnableOption "gui"; };
imports = [ ./modules ]; imports = [ ./desktopEnvironments ];
config = mkIf cfg.enable { 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 = { modules = {
alacritty.enable = true; sway.enable = true;
browsers.enable = true;
corn.enable = true;
fun.enable = true;
guiUtils.enable = true;
neovim.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;
}; };
} }

View file

@ -0,0 +1,5 @@
{
imports = [
./sway
];
}

View file

@ -14,9 +14,9 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
terminus-nerdfont terminus-nerdfont
monocraft noto-fonts
ranger noto-fonts-cjk
highlight noto-fonts-emoji
]; ];
}; };
} }

View file

@ -2,10 +2,8 @@
imports = [ imports = [
./alacritty ./alacritty
./browsers ./browsers
./corn ./corn
./fun ./fun
./guiUtils ./guiUtils
./neovim ./neovim
]; ];

View file

@ -10,7 +10,9 @@ in
programs.btop.enable = true; programs.btop.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
gimp gimp
okular
pdftk pdftk
teams-for-linux teams-for-linux
zoom-us zoom-us
exercism exercism

View file

@ -0,0 +1,61 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.sway;
in
{ options.modules.sway = { enable = mkEnableOption "sway"; };
imports = [ ../modules ];
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;
shellAliases = {
open = "xdg-open";
};
};
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;
};
home.packages = with pkgs; [
xdg-utils
grim
slurp
wl-clipboard
autotiling
ranger
highlight
];
fonts.fontconfig.enable = true;
modules = {
alacritty.enable = true;
browsers.enable = true;
corn.enable = true;
fun.enable = true;
guiUtils.enable = true;
neovim.enable = true;
};
};
}

View file

@ -10,5 +10,8 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
weechat weechat
]; ];
programs.bash.shellAliases = {
chat = "weechat";
};
}; };
} }