mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 03:33:55 -05:00
restructured desktopConfig
This commit is contained in:
parent
0679717dc9
commit
41a6e55ba3
|
@ -78,7 +78,7 @@ in {
|
|||
desktopConfig = {
|
||||
enable = true;
|
||||
windowManagers.hyprland.enable = false;
|
||||
gnome.enable = true;
|
||||
desktopEnvironments.gnome.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports =
|
||||
[ ./displayManagers/lightdm ./gnome ./plasma ./windowManagers/hyprland ];
|
||||
[ ./displayManagers/lightdm ./desktopEnvironments ./windowManagers ];
|
||||
|
||||
options = {
|
||||
desktopConfig.enable =
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports = [ ./gnome ./plasma ];
|
||||
}
|
|
@ -6,11 +6,12 @@
|
|||
];
|
||||
|
||||
options = {
|
||||
desktopConfig.gnome.enable =
|
||||
desktopConfig.desktopEnvironments.gnome.enable =
|
||||
lib.mkEnableOption "Enables GNOME desktop session.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopConfig.gnome.enable {
|
||||
config = lib.mkIf config.desktopConfig.desktopEnvironments.gnome.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.blur-my-shell
|
|
@ -1,11 +1,11 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopConfig.gnome.fprintdFix.enable = lib.mkEnableOption
|
||||
desktopConfig.desktopEnvironments.gnome.fprintdFix.enable = lib.mkEnableOption
|
||||
"Fixes fprintd and pam issues with GNOME Display Manager.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopConfig.gnome.fprintdFix.enable {
|
||||
config = lib.mkIf config.desktopConfig.desktopEnvironments.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;
|
|
@ -1,11 +1,11 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopConfig.gnome.tripleBuffering.enable =
|
||||
desktopConfig.desktopEnvironments.gnome.tripleBuffering.enable =
|
||||
lib.mkEnableOption "Enables dynamic triple buffering for GNOME.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopConfig.gnome.tripleBuffering.enable {
|
||||
config = lib.mkIf config.desktopConfig.desktopEnvironments.gnome.tripleBuffering.enable {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
gnome = prev.gnome.overrideScope (gnomeFinal: gnomePrev: {
|
|
@ -6,6 +6,7 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.desktopConfig.plasma.enable {
|
||||
|
||||
# Enable SDDM + Plasma Desktop.
|
||||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
4
nixosModules/desktopConfig/windowManagers/default.nix
Normal file
4
nixosModules/desktopConfig/windowManagers/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports = [ ./hyprland ];
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopConfig.windowManagers.hyprland.enable = lib.mkEnableOption
|
||||
"Enables hyprland window manager session.";
|
||||
desktopConfig.windowManagers.hyprland.enable =
|
||||
lib.mkEnableOption "Enables hyprland window manager session.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopConfig.windowManagers.hyprland.enable {
|
||||
|
@ -22,6 +22,8 @@
|
|||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
services.tumbler.enable = true; # Thumbnail support for images
|
||||
|
||||
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue