fixed formatting
This commit is contained in:
parent
7ec36e8a2b
commit
d8dd32193d
15 changed files with 167 additions and 76 deletions
|
|
@ -1,28 +1,35 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.modules.graphical;
|
||||
cfg = config.modules.graphical;
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
modules.graphical = {
|
||||
options = {
|
||||
modules.graphical = {
|
||||
enable = lib.mkEnableOption "Enable the GUI";
|
||||
waybar = lib.mkEnableOption "Enable waybar";
|
||||
quickshell = lib.mkEnableOption "Enable quickshell";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.niri.enable = true;
|
||||
services.displayManager.ly.enable = true;
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.niri.enable = true;
|
||||
services.displayManager.ly.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
wl-clipboard
|
||||
]
|
||||
++ lib.optional cfg.quickshell quickshell;
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
alacritty
|
||||
wl-clipboard
|
||||
]
|
||||
++ lib.optional cfg.quickshell quickshell;
|
||||
|
||||
programs.waybar.enable = lib.mkIf cfg.waybar true;
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue