nixos-config/modules/gnome/default.nix
Sean Buckley ca2edd4ae8 add files
2020-09-18 09:54:09 -04:00

34 lines
1.1 KiB
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}
'';
};
}