2023-09-15 00:21:07 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
desktopManager.xfce.enable = true;
|
|
|
|
videoDrivers = [ "nvidia" ];
|
2023-09-22 12:32:13 +02:00
|
|
|
layout = "us,no";
|
|
|
|
xkbVariant = "intl";
|
2023-09-15 00:21:07 +02:00
|
|
|
};
|
2023-12-25 13:31:43 +01:00
|
|
|
|
2024-01-15 10:06:10 +01:00
|
|
|
services.openssh.settings.X11Forwarding = true;
|
|
|
|
|
2023-12-25 13:31:43 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
xfce.xfce4-pulseaudio-plugin
|
|
|
|
];
|
|
|
|
|
2023-09-15 00:21:07 +02:00
|
|
|
services.picom.enable = true;
|
|
|
|
hardware.opengl.enable = true;
|
2023-12-25 13:31:43 +01:00
|
|
|
|
2023-09-15 17:12:47 +02:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
2023-09-15 17:04:17 +02:00
|
|
|
|
|
|
|
fonts = {
|
|
|
|
fontDir.enable = true;
|
2023-12-25 13:31:43 +01:00
|
|
|
packages = with pkgs; [
|
2023-09-15 17:04:17 +02:00
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji
|
|
|
|
noto-fonts-cjk-sans
|
|
|
|
font-awesome
|
|
|
|
fira-code
|
|
|
|
hack-font
|
|
|
|
(nerdfonts.override {
|
|
|
|
fonts = [
|
|
|
|
"Hack"
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-09-22 12:32:13 +02:00
|
|
|
|
|
|
|
# Remote:
|
|
|
|
services.xrdp = {
|
|
|
|
enable = true;
|
|
|
|
defaultWindowManager = "xfce4-session";
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-12-26 16:45:25 +01:00
|
|
|
|
2024-01-15 10:06:10 +01:00
|
|
|
security.polkit.enable = true;
|
2023-12-26 16:45:25 +01:00
|
|
|
services.flatpak.enable = true;
|
|
|
|
users.users."felixalb".packages = [ pkgs.flatpak ];
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
};
|
2023-09-15 00:21:07 +02:00
|
|
|
}
|