Big refactor (#1)
All checks were successful
check / check (push) Successful in 34s

Reviewed-on: https://gitea.mrdev023.fr/florian.richer/nixos/pulls/1
Co-authored-by: Florian RICHER <florian.richer@protonmail.com>
Co-committed-by: Florian RICHER <florian.richer@protonmail.com>
This commit is contained in:
Florian RICHER 2024-05-28 10:12:33 +02:00 committed by florian.richer
parent e9329e63dc
commit b7f82f87e8
84 changed files with 1100 additions and 1247 deletions

View file

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

View file

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.desktop.gnome;
in
{
options.modules.system.desktop.gnome = {
enable = mkEnableOption ''
Enable gnome with my custom configurations
'';
};
config = mkIf cfg.enable {
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the Gnome Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
# Enable the GNOME shell.
services.xserver.desktopManager.gnome.enable = true;
};
}

View file

@ -0,0 +1,42 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.desktop.plasma;
in
{
options.modules.system.desktop.plasma = {
enable = mkEnableOption ''
Enable plasma with my custom configurations
'';
};
config = mkIf cfg.enable {
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.displayManager = {
sddm.enable = true;
defaultSession = "plasma";
};
services.desktopManager.plasma6.enable = true;
programs.kdeconnect.enable = true;
environment.systemPackages = with pkgs; with kdePackages; [
krfb # Use by kdeconnect for virtualmonitorplugin "krfb-virtualmonitor"
discover
# Usefull for automatic informations collect software like KDE
vulkan-tools # For vulkaninfo command
wayland-utils # For wayland-info command
glxinfo
clinfo
];
# Uncomment when kwin is available in nixpkgs and NVIDIA 555
nixpkgs.overlays = [
(import ../../../../overlays/kwin)
];
};
}