🚀 add gnome

This commit is contained in:
Moritz Böhme 2022-08-20 14:16:13 +02:00
parent 9039fe0dd9
commit 2d308e19b0
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
3 changed files with 46 additions and 2 deletions

View file

@ -14,6 +14,7 @@
./firefox.nix ./firefox.nix
./fish.nix ./fish.nix
./git.nix ./git.nix
./gnome.nix
./gpg.nix ./gpg.nix
./hub.nix ./hub.nix
./kitty.nix ./kitty.nix

View file

@ -0,0 +1,43 @@
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.gnome;
in
{
options.my.programs.gnome = {
enable = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = lib.mkIf cfg.enable {
hardware = {
opengl = {
enable = true;
driSupport = true;
};
pulseaudio.enable = false;
};
programs.xwayland.enable = true;
services.xserver = {
layout = "de";
displayManager = {
autoLogin = {
enable = true;
user = "moritz";
};
gdm.enable = true;
};
enable = true;
desktopManager.gnome.enable = true;
};
environment.systemPackages = with pkgs.gnomeExtensions; [ pop-shell gsconnect ];
};
}

View file

@ -21,8 +21,8 @@ in
}; };
}; };
config = lib.mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.moritz.services.kdeconnect.enable = true; home-manager.users.moritz.services.kdeconnect.enable = mkIf (!config.my.programs.gnome.enable) true;
networking.firewall = { networking.firewall = {
allowedTCPPortRanges = [ ports ]; allowedTCPPortRanges = [ ports ];
allowedUDPPortRanges = [ ports ]; allowedUDPPortRanges = [ ports ];