1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../shared/services/desktop.nix

206 lines
3.2 KiB
Nix
Raw Normal View History

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"
];
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 = {
enable = true;
2022-09-27 22:07:46 +02:00
};
};
security = {
polkit = {
enable = true;
};
};
2022-09-27 22:07:46 +02:00
programs = {
dconf = {
enable = true;
};
light = {
enable = true;
};
2022-09-27 22:07:46 +02:00
};
hardware = {
2024-07-17 16:05:33 +02:00
graphics = {
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;
cpuFreqGovernor = "powersave";
2022-09-27 22:07:46 +02:00
};
fonts = {
enableDefaultPackages = true;
2022-09-27 22:07:46 +02:00
fontDir = {
enable = true;
};
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
];
};
# 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
2022-09-27 22:07:46 +02:00
services = {
# 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
avahi = {
enable = true;
nssmdns4 = true;
};
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;
};
};
};
};
};
}