2022-09-27 22:07:46 +02:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.personal.services.desktop;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
personal = {
|
|
|
|
services = {
|
|
|
|
desktop = {
|
|
|
|
enable = mkEnableOption "Desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment = {
|
|
|
|
pathsToLink = [
|
|
|
|
"/libexec"
|
|
|
|
];
|
2024-01-30 14:00:15 +01:00
|
|
|
|
|
|
|
gnome = {
|
|
|
|
excludePackages = with pkgs; [
|
|
|
|
gnome-tour
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
gnome.gnome-tweaks
|
|
|
|
];
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
plymouth = {
|
2022-10-04 13:58:14 +02:00
|
|
|
enable = true;
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-30 14:00:15 +01:00
|
|
|
security = {
|
|
|
|
polkit = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-27 22:07:46 +02:00
|
|
|
programs = {
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2022-09-29 11:50:06 +02:00
|
|
|
|
|
|
|
light = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
2024-07-17 16:05:33 +02:00
|
|
|
graphics = {
|
2022-10-04 13:58:14 +02:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2022-09-27 22:07:46 +02:00
|
|
|
bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sound = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
mediaKeys = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
2022-12-04 23:16:02 +01:00
|
|
|
cpuFreqGovernor = "powersave";
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
2024-01-30 14:00:15 +01:00
|
|
|
enableDefaultPackages = true;
|
2022-09-27 22:07:46 +02:00
|
|
|
|
|
|
|
fontDir = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-01-30 14:00:15 +01:00
|
|
|
packages = with pkgs; [
|
2022-09-27 22:07:46 +02:00
|
|
|
corefonts
|
|
|
|
fira-code
|
|
|
|
font-awesome
|
|
|
|
nerdfonts
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji
|
|
|
|
noto-fonts-extra
|
|
|
|
roboto
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-01-30 14:00:15 +01:00
|
|
|
# TODO:
|
|
|
|
# - org.gnome.Calendar
|
|
|
|
# - org.gnome.Contacts
|
|
|
|
# - org.gnome.eog
|
|
|
|
# - org.gnome.Evince
|
|
|
|
# - org.gnome.Lollypop
|
|
|
|
# - org.gnome.TextEditor
|
|
|
|
# - org.gnome.Totem
|
2024-07-17 16:05:33 +02:00
|
|
|
# - org.gnome.Geary
|
2024-01-30 14:00:15 +01:00
|
|
|
|
2022-09-27 22:07:46 +02:00
|
|
|
services = {
|
2024-01-30 14:00:15 +01:00
|
|
|
# gnome = {
|
|
|
|
# core-utilities = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# evolution-data-server = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# gnome-keyring = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# gnome-online-accounts = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# gnome-remote-desktop = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# gnome-settings-daemon = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# sushi = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
# udev = {
|
|
|
|
# packages = with pkgs; [
|
|
|
|
# gnome.gnome-settings-daemon
|
|
|
|
# ];
|
|
|
|
# };
|
2022-09-27 22:07:46 +02:00
|
|
|
|
2024-01-30 14:00:15 +01:00
|
|
|
avahi = {
|
2022-10-04 13:58:14 +02:00
|
|
|
enable = true;
|
2024-01-30 14:00:15 +01:00
|
|
|
nssmdns4 = true;
|
2022-10-04 13:58:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fstrim = {
|
2022-09-27 22:07:46 +02:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
thermald = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-07-17 16:05:33 +02:00
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
touchpad = {
|
|
|
|
disableWhileTyping = false;
|
|
|
|
tapping = true;
|
|
|
|
tappingDragLock = false;
|
|
|
|
middleEmulation = true;
|
|
|
|
naturalScrolling = true;
|
|
|
|
scrollMethod = "twofinger";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-27 22:07:46 +02:00
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
autorun = true;
|
2024-07-17 16:05:33 +02:00
|
|
|
|
|
|
|
xkb = {
|
|
|
|
options = "eurosign:e";
|
|
|
|
layout = "de";
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
displayManager = {
|
2022-11-10 16:01:39 +01:00
|
|
|
gdm = {
|
2022-09-27 22:07:46 +02:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-11-10 16:01:39 +01:00
|
|
|
desktopManager = {
|
|
|
|
gnome = {
|
2022-09-27 22:07:46 +02:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|