Some more work toward a modular config
This commit is contained in:
6
modules/nixos/bundles/default.nix
Normal file
6
modules/nixos/bundles/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, lib, config, ... }: {
|
||||
imports =
|
||||
[
|
||||
./graphical-desktop.nix
|
||||
];
|
||||
}
|
||||
20
modules/nixos/bundles/graphical-desktop.nix
Normal file
20
modules/nixos/bundles/graphical-desktop.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user