Initial configuration

This commit is contained in:
Chris Josten 2020-05-12 10:53:09 +02:00
commit 44b011a6b4
15 changed files with 328 additions and 0 deletions

30
common/gui/default.nix Normal file
View file

@ -0,0 +1,30 @@
# Defines comfig for a "gui" system, in most cases a Desktop or Laptop
{ config, ... }:
{
imports = [ ./pkgs.nix ];
# Basic X11/display manager config
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
networking.networkmanager.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
# Additional services
services.syncthing.enable = true;
services.flatpak.enable = true;
xdg.portal.enable = true;
# Input config
services.xserver = {
synaptics.tapButtons = false;
libinput.enable = true;
};
}

35
common/gui/pkgs.nix Normal file
View file

@ -0,0 +1,35 @@
{ pkgs, ...}:
{
environment = {
systemPackages = with pkgs; [
# Internet
firefox
keepassxc
riot-desktop
syncthing
qsyncthingtray
# Wire(less) internet support
dnsmasq
hostapd
iw
plasma-nm
# KDE plasma and applications
kate
latte-dock # My PC has enough RAM by now
kleopatra
networkmanager
okular
plasma-desktop
plasma-integration
sddm
# To show of your distro
neofetch
# Communication
tdesktop
];
};
}