nixos-config/modules/gnome/default.nix

36 lines
996 B
Nix
Raw Normal View History

2020-09-18 13:54:09 +00:00
{ pkgs, ... }:
{
2020-09-24 05:45:48 +00:00
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
]);
};
2020-09-18 13:54:09 +00:00
2020-09-24 05:45:48 +00:00
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome3.enable = true;
desktopManager.xterm.enable = false;
displayManager.sessionCommands = ''
${./settings.sh}
'';
};
2020-09-18 13:54:09 +00:00
}