🚀 add gnome
This commit is contained in:
parent
9039fe0dd9
commit
2d308e19b0
3 changed files with 46 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
./firefox.nix
|
||||
./fish.nix
|
||||
./git.nix
|
||||
./gnome.nix
|
||||
./gpg.nix
|
||||
./hub.nix
|
||||
./kitty.nix
|
||||
|
|
43
modules/programs/gnome.nix
Normal file
43
modules/programs/gnome.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -21,8 +21,8 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.moritz.services.kdeconnect.enable = true;
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.moritz.services.kdeconnect.enable = mkIf (!config.my.programs.gnome.enable) true;
|
||||
networking.firewall = {
|
||||
allowedTCPPortRanges = [ ports ];
|
||||
allowedUDPPortRanges = [ ports ];
|
||||
|
|
Loading…
Reference in a new issue