Add Gnome desktop

This commit is contained in:
Andreas Zweili 2023-02-14 20:33:59 +01:00
parent 77ee4c6080
commit 240e4f23cd
4 changed files with 34 additions and 7 deletions

View File

@ -32,7 +32,7 @@
# Enable the X11 windowing system.
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
displayManager.gdm.enable = true;
displayManager.defaultSession = "none+qtile";
windowManager.qtile.enable = true;
layout = "us";
@ -57,10 +57,6 @@
# Enable Flatpack
services.flatpak.enable = true;
xdg = {
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
mime = {
addedAssociations = {
"x-scheme-handler/http" = "firefox.desktop";

30
modules/gnome/default.nix Normal file
View File

@ -0,0 +1,30 @@
{ pkgs, ... }: {
services.xserver.desktopManager.gnome.enable = true;
environment = {
systemPackages = with pkgs; [
gnome.gnome-tweaks
];
gnome.excludePackages = (with pkgs; [
gnome-console
gnome-text-editor
gnome-tour
]) ++ (with pkgs.gnome; [
atomix # puzzle game
cheese # webcam tool
epiphany # web browser
geary
gedit # text editor
gnome-characters
gnome-clocks
gnome-logs
gnome-maps
gnome-music
gnome-weather
hitori # sudoku game
iagno # go game
tali # poker game
totem # video player
yelp
]);
};
}

View File

@ -1,5 +1,6 @@
{ custom }: { ... }:
{ custom }: { lib, ... }:
{
hardware.pulseaudio.enable = lib.mkForce false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;

View File

@ -8,10 +8,10 @@
"${custom.inputs.self}/hardware/nvidia"
"${custom.inputs.self}/hardware/dvd"
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
"${custom.inputs.self}/modules/gnome"
"${custom.inputs.self}/modules/lockscreen"
"${custom.inputs.self}/modules/logs-share"
"${custom.inputs.self}/modules/rdp"
"${custom.inputs.self}/modules/tlp"
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
];
boot.initrd.availableKernelModules = [