Some more work toward a modular config

This commit is contained in:
2025-08-04 22:15:59 -04:00
parent 94f0ce50ae
commit ac6c3688ef
11 changed files with 252 additions and 42 deletions

View File

@@ -0,0 +1,6 @@
{ pkgs, lib, config, ... }: {
imports =
[
./graphical-desktop.nix
];
}

View File

@@ -0,0 +1,20 @@
{ pkgs, lib, config, ... }: {
options = {
grapfical-desktop.enable = lib.mkEnableOption "enable graphical desktop";
};
config = lib.mkIf config.grapfical-desktop.enable {
# Enable the X11 windowing system.
services.xserver.enable = true;
# Hyprland
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
programs.waybar.enable = true;
};
}