Add gnome GUI
This commit is contained in:
parent
c38432e2a0
commit
5d78f0fc9c
4 changed files with 23 additions and 2 deletions
|
|
@ -23,6 +23,7 @@
|
|||
bluetooth.enable = true;
|
||||
uefi.enable = true;
|
||||
gui.enable = true;
|
||||
gui.desktop = "gnome";
|
||||
workstation.enable = true;
|
||||
sdr.enable = false;
|
||||
#autologin.enable = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,14 @@
|
|||
|
||||
{
|
||||
options.jalr = {
|
||||
gui.enable = lib.mkEnableOption "GUI";
|
||||
gui = {
|
||||
enable = lib.mkEnableOption "GUI";
|
||||
desktop = lib.mkOption {
|
||||
type = lib.types.nullOr (lib.types.enum [ "sway" "gnome" ]);
|
||||
default = "sway";
|
||||
description = "Desktop environment to install";
|
||||
};
|
||||
};
|
||||
workstation.enable = lib.mkEnableOption "Workstation";
|
||||
};
|
||||
|
||||
|
|
@ -17,6 +24,7 @@
|
|||
./dnsmasq.nix
|
||||
./fish.nix
|
||||
./fonts.nix
|
||||
./gnome.nix
|
||||
./journald.nix
|
||||
./kdeconnect.nix
|
||||
./kvm-switch-enable-screen.nix
|
||||
|
|
|
|||
12
modules/gnome.nix
Normal file
12
modules/gnome.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf (config.jalr.gui.enable && config.jalr.gui.desktop == "gnome") {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
autoSuspend = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf config.jalr.gui.enable {
|
||||
lib.mkIf (config.jalr.gui.enable && config.jalr.gui.desktop == "sway") {
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
# FIXME: move to home manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue