reorganized module structure

This commit is contained in:
Aly Raffauf 2024-04-17 21:22:22 -04:00
parent f46827b48a
commit 5536aaa466
29 changed files with 29 additions and 54 deletions

View file

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

View file

Before

Width:  |  Height:  |  Size: 716 KiB

After

Width:  |  Height:  |  Size: 716 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View file

Before

Width:  |  Height:  |  Size: 3 MiB

After

Width:  |  Height:  |  Size: 3 MiB

View file

Before

Width:  |  Height:  |  Size: 7.4 MiB

After

Width:  |  Height:  |  Size: 7.4 MiB

View file

Before

Width:  |  Height:  |  Size: 4.6 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

View file

Before

Width:  |  Height:  |  Size: 5.6 MiB

After

Width:  |  Height:  |  Size: 5.6 MiB

View file

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

View file

Before

Width:  |  Height:  |  Size: 1 MiB

After

Width:  |  Height:  |  Size: 1 MiB

View file

Before

Width:  |  Height:  |  Size: 7.6 MiB

After

Width:  |  Height:  |  Size: 7.6 MiB

View file

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 4.7 MiB

View file

Before

Width:  |  Height:  |  Size: 4 MiB

After

Width:  |  Height:  |  Size: 4 MiB

View file

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View file

@ -28,5 +28,5 @@
extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";};
};
xdg.dataFile."backgrounds/".source = ./files/wallpapers;
xdg.dataFile."backgrounds/".source = ../files/wallpapers;
}

View file

@ -34,9 +34,9 @@
zramSwap = {enable = true;};
};
desktopConfig = {
desktop = {
enable = true;
windowManagers.hyprland.enable = true;
hyprland.enable = true;
};
apps = {

View file

@ -26,7 +26,7 @@
};
homeLab.enable = true;
desktopConfig.enable = true;
desktop.enable = true;
apps = {
flatpak.enable = true;

View file

@ -71,9 +71,9 @@ in {
environment.systemPackages = [cs-adjuster cs-adjuster-plasma pp-adjuster];
desktopConfig = {
desktop = {
enable = true;
windowManagers.hyprland.enable = true;
hyprland.enable = true;
};
systemConfig = {

View file

@ -52,9 +52,9 @@
};
};
desktopConfig = {
desktop = {
enable = true;
windowManagers.hyprland.enable = true;
hyprland.enable = true;
};
apps = {

View file

@ -3,5 +3,5 @@
pkgs,
...
}: {
imports = [./desktopConfig ./homeLab ./apps ./systemConfig ./userConfig];
imports = [./apps ./desktop ./homeLab ./systemConfig ./userConfig];
}

View file

@ -4,14 +4,14 @@
config,
...
}: {
imports = [./displayManagers/lightdm ./desktopEnvironments ./windowManagers];
imports = [./gnome ./hyprland ./lightdm ./plasma];
options = {
desktopConfig.enable =
lib.mkEnableOption "Enables basic GUI X11 and Wayland environment.";
desktop.enable =
lib.mkEnableOption "Enable basic GUI X11 and Wayland environment.";
};
config = lib.mkIf config.desktopConfig.enable {
config = lib.mkIf config.desktop.enable {
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Mount, trash, etc.
@ -32,6 +32,6 @@
})
];
desktopConfig.windowManagers.hyprland.enable = lib.mkDefault true;
desktop.hyprland.enable = lib.mkDefault true;
};
}

View file

@ -11,11 +11,11 @@
];
options = {
desktopConfig.desktopEnvironments.gnome.enable =
lib.mkEnableOption "Enables GNOME desktop session.";
desktop.gnome.enable =
lib.mkEnableOption "Enable GNOME desktop session.";
};
config = lib.mkIf config.desktopConfig.desktopEnvironments.gnome.enable {
config = lib.mkIf config.desktop.gnome.enable {
environment.systemPackages = with pkgs; [
gnomeExtensions.appindicator
gnomeExtensions.blur-my-shell

View file

@ -5,12 +5,12 @@
...
}: {
options = {
desktopConfig.desktopEnvironments.gnome.fprintdFix.enable =
desktop.gnome.fprintdFix.enable =
lib.mkEnableOption
"Fixes fprintd and pam issues with GNOME Display Manager.";
};
config = lib.mkIf config.desktopConfig.desktopEnvironments.gnome.fprintdFix.enable {
config = lib.mkIf config.desktop.gnome.fprintdFix.enable {
# Need to change the order pam loads its modules
# to get proper fingerprint behavior on GDM and the lockscreen.
security.pam.services.login.fprintAuth = false;

View file

@ -6,11 +6,11 @@
...
}: {
options = {
desktopConfig.windowManagers.hyprland.enable =
lib.mkEnableOption "Enables hyprland window manager session.";
desktop.hyprland.enable =
lib.mkEnableOption "Enable hyprland and greetd.";
};
config = lib.mkIf config.desktopConfig.windowManagers.hyprland.enable {
config = lib.mkIf config.desktop.hyprland.enable {
services.greetd = {
enable = true;
settings = rec {
@ -22,6 +22,7 @@
security.pam.services.greetd.enableKwallet = true;
security.pam.services.greetd.enableGnomeKeyring = true;
security.pam.services.swaylock = {};
programs.hyprland.enable = true;
programs.hyprland.package =

View file

@ -5,12 +5,12 @@
...
}: {
options = {
desktopConfig.displayManagers.lightdm.enable =
desktop.lightdm.enable =
lib.mkEnableOption
"Enables lightdm and slick greeter with Catppuccin theme.";
};
config = lib.mkIf config.desktopConfig.displayManagers.lightdm.enable {
config = lib.mkIf config.desktop.lightdm.enable {
security.pam.services.lightdm.enableKwallet = true;
security.pam.services.lightdm.enableGnomeKeyring = true;

View file

@ -5,11 +5,11 @@
...
}: {
options = {
desktopConfig.plasma.enable =
lib.mkEnableOption "Enables plasma desktop session.";
desktop.plasma.enable =
lib.mkEnableOption "Enable plasma desktop session.";
};
config = lib.mkIf config.desktopConfig.plasma.enable {
config = lib.mkIf config.desktop.plasma.enable {
# Enable SDDM + Plasma Desktop.
services = {
desktopManager.plasma6.enable = true;

View file

@ -1,8 +0,0 @@
{
pkgs,
lib,
config,
...
}: {
imports = [./gnome ./plasma];
}

View file

@ -1,8 +0,0 @@
{
pkgs,
lib,
config,
...
}: {
imports = [./lightdm];
}

View file

@ -1,10 +0,0 @@
{
pkgs,
lib,
config,
...
}: {
imports = [./hyprland];
security.pam.services.swaylock = {};
}