nixos-config/modules/gnome/default.nix
2020-09-24 01:45:48 -04:00

35 lines
996 B
Nix

{ pkgs, ... }:
{
environment = {
gnome3.excludePackages = with pkgs.gnome3; [ epiphany vinagre gnome-software ];
systemPackages = with pkgs; [
numix-icon-theme
gnome3.gnome-tweaks
gnome3.gnome-boxes
qemu_kvm
(callPackage ./bottom-panel.nix { })
(writeScriptBin "red" ''
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
[ "$x" = "true" ] && x=false || x=true
echo "Nightlight: $x"
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled $x
'')
] ++ (with pkgs.gnomeExtensions; [
appindicator
dash-to-panel
drop-down-terminal
sound-output-device-chooser
]);
};
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome3.enable = true;
desktopManager.xterm.enable = false;
displayManager.sessionCommands = ''
${./settings.sh}
'';
};
}