dotfiles/modules/programs/gnome.nix

49 lines
1020 B
Nix
Raw Normal View History

2022-08-20 14:16:13 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.gnome;
2023-01-04 13:23:21 +01:00
extensions = with pkgs.gnomeExtensions; [
gsconnect
vitals
gtile
blur-my-shell
];
2022-08-20 14:16:13 +02:00
in
{
2022-10-15 20:00:09 +02:00
options.my.programs.gnome.enable = mkEnableOption "gnome";
2022-08-20 14:16:13 +02:00
config = lib.mkIf cfg.enable {
hardware = {
2024-07-01 07:06:23 +02:00
opengl.enable = true;
2022-08-20 14:16:13 +02:00
pulseaudio.enable = false;
};
services.xserver = {
layout = "de";
displayManager = {
autoLogin = {
enable = true;
user = "moritz";
};
gdm.enable = true;
};
enable = true;
desktopManager.gnome.enable = true;
};
2023-01-04 13:23:21 +01:00
environment.systemPackages = extensions;
home-manager.users.moritz.dconf.settings = {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = map (p: p.extensionUuid or p.uuid) extensions;
};
"org/gnome/desktop/interface".enable-hot-corners = false;
"org/gnome/desktop/wm/preferences".focus-mode = "sloppy";
};
2022-08-20 14:16:13 +02:00
};
}