Refactor: Avoid use folder for one file
All checks were successful
check / check (push) Successful in 32s
All checks were successful
check / check (push) Successful in 32s
Fix #3
This commit is contained in:
parent
c8d1f9f65a
commit
a425abee8b
34 changed files with 26 additions and 27 deletions
29
modules/system/desktop/gnome.nix
Normal file
29
modules/system/desktop/gnome.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.desktop.gnome;
|
||||
in
|
||||
{
|
||||
options.modules.system.desktop.gnome = {
|
||||
enable = mkEnableOption ''
|
||||
Enable gnome with my custom configurations
|
||||
'';
|
||||
|
||||
enableGdm = mkOption {
|
||||
type = types.bool;
|
||||
description = "Enable gdm with custom gnome";
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the Gnome Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = cfg.enableGdm;
|
||||
|
||||
# Enable the GNOME shell.
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue