add gnome
This commit is contained in:
parent
e4b192b2c3
commit
bce2fbf0c8
1 changed files with 36 additions and 0 deletions
36
modules/desktop/gnome/default.nix
Normal file
36
modules/desktop/gnome/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.gnome;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.gnome = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
gdm = {
|
||||
enable = true;
|
||||
# not taking any chances
|
||||
wayland = false;
|
||||
};
|
||||
};
|
||||
desktopManager = {
|
||||
gnome = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
# gnome extensions
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.appindicator
|
||||
];
|
||||
# gnome udev settings
|
||||
services.udev.packages = with pkgs; [
|
||||
gnome.gnome-settings-daemon
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue