2022-01-07 17:44:30 +01:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
2021-04-16 21:33:48 +02:00
|
|
|
{
|
2022-01-07 17:44:30 +01:00
|
|
|
options.my.gui = {
|
|
|
|
enable = lib.mkEnableOption "System has some kind of screen attached";
|
|
|
|
isNvidia = lib.mkEnableOption "System a NVIDIA GPU";
|
|
|
|
};
|
2021-06-01 14:28:20 +02:00
|
|
|
|
2022-01-07 17:20:57 +01:00
|
|
|
config = lib.mkIf config.my.gui.enable {
|
2022-01-07 17:44:30 +01:00
|
|
|
my.displayManager.sddm.enable = true;
|
|
|
|
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
# NOTE: could use `mkOptionDefault` but this feels more explicit
|
|
|
|
videoDrivers = options.services.xserver.videoDrivers.default
|
|
|
|
++ lib.optional config.my.gui.isNvidia "nvidia";
|
|
|
|
windowManager.i3.enable = true;
|
|
|
|
layout = "fr";
|
|
|
|
xkbVariant = "us";
|
|
|
|
libinput.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-01-07 17:20:57 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
element-desktop
|
|
|
|
feh
|
|
|
|
firefox
|
|
|
|
ffmpeg
|
|
|
|
gimp
|
|
|
|
gnome.nautilus
|
|
|
|
imagemagick
|
|
|
|
mpv
|
|
|
|
obs-studio
|
|
|
|
pavucontrol
|
|
|
|
slack
|
|
|
|
spotify
|
|
|
|
tdesktop
|
|
|
|
teams
|
|
|
|
thunderbird
|
|
|
|
virt-manager
|
|
|
|
zathura
|
2021-04-18 14:46:12 +02:00
|
|
|
|
2022-01-07 17:20:57 +01:00
|
|
|
unstable.discord
|
|
|
|
];
|
2021-04-19 16:07:38 +02:00
|
|
|
|
2022-01-07 17:20:57 +01:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
programs.nm-applet.enable = true;
|
|
|
|
programs.steam.enable = true;
|
|
|
|
|
|
|
|
# NOTE: needed for home emacs configuration
|
|
|
|
nixpkgs.config.input-fonts.acceptLicense = true;
|
|
|
|
};
|
2021-04-16 21:33:48 +02:00
|
|
|
}
|