1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../shared/services/desktop/default.nix

160 lines
2.4 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"
];
};
boot = {
plymouth = {
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 = {
opengl = {
enable = true;
};
2022-09-27 22:07:46 +02:00
bluetooth = {
enable = true;
package = pkgs.bluez;
2022-09-27 22:07:46 +02:00
};
pulseaudio = {
enable = true;
package = pkgs.pulseaudio;
2022-09-27 22:07:46 +02:00
};
};
sound = {
enable = true;
mediaKeys = {
enable = true;
};
};
powerManagement = {
enable = true;
powertop = {
enable = false;
};
};
fonts = {
enableDefaultFonts = true;
fontDir = {
enable = true;
};
fonts = with pkgs; [
corefonts
fira-code
font-awesome
nerdfonts
noto-fonts
noto-fonts-emoji
noto-fonts-extra
roboto
siji
2022-09-29 10:20:17 +02:00
source-code-pro
2022-09-27 22:07:46 +02:00
];
};
services = {
avahi = {
2022-09-27 22:07:46 +02:00
enable = true;
nssmdns = true;
2022-09-27 22:07:46 +02:00
};
blueman = {
enable = true;
};
fstrim = {
2022-09-27 22:07:46 +02:00
enable = true;
};
fwupd = {
enable = true;
};
thermald = {
enable = true;
};
printing = {
enable = true;
};
logind = {
lidSwitch = "suspend";
extraConfig = "IdleAction=lock";
};
xserver = {
enable = true;
autorun = true;
layout = "de";
xkbOptions = "eurosign:e";
libinput = {
enable = true;
touchpad = {
disableWhileTyping = true;
tapping = true;
tappingDragLock = false;
middleEmulation = true;
naturalScrolling = true;
scrollMethod = "twofinger";
};
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;
};
};
};
};
};
}