2024-03-21 15:00:36 +01:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
with lib.metacfg;
|
|
|
|
let cfg = config.metacfg.gui;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.metacfg.gui = with types; {
|
|
|
|
enable = mkBoolOpt false "Whether or not to enable a GUI.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services = {
|
|
|
|
gnome.tracker-miners.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
flatpak.enable = true;
|
|
|
|
|
|
|
|
pcscd.enable = lib.mkDefault false;
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
printing.enable = true;
|
|
|
|
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
# If you want to use JACK applications, uncomment this
|
|
|
|
#jack.enable = true;
|
|
|
|
|
|
|
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
|
|
# no need to redefine it in your config for now)
|
|
|
|
#media-session.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
udev.packages = [
|
|
|
|
pkgs.libu2f-host
|
|
|
|
pkgs.yubikey-personalization
|
|
|
|
];
|
|
|
|
|
|
|
|
xserver = {
|
2024-07-18 10:47:01 +02:00
|
|
|
xkb.layout = lib.mkDefault "de+us";
|
2024-03-21 15:00:36 +01:00
|
|
|
enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#security.pam.p11.control = "sufficient";
|
|
|
|
#security.pam.p11.control = "required";
|
|
|
|
#security.pam.p11.enable = true;
|
|
|
|
# services.fprintd.enable = true;
|
|
|
|
#security.pam.yubico.enable = true;
|
|
|
|
#security.pam.yubico.control = "sufficient";
|
|
|
|
#security.pam.yubico.mode = "challenge-response";
|
|
|
|
|
|
|
|
#security.tpm2.pkcs11.enable = true;
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
2024-09-16 10:22:32 +02:00
|
|
|
hardware.opengl = {
|
2024-09-17 10:13:07 +02:00
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
onevpl-intel-gpu
|
|
|
|
intel-compute-runtime
|
|
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
|
|
#intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
2024-09-16 10:22:32 +02:00
|
|
|
};
|
2024-09-17 10:13:07 +02:00
|
|
|
environment.sessionVariables = {
|
|
|
|
LIBVA_DRIVER_NAME = "iHD";
|
2024-10-07 09:14:33 +02:00
|
|
|
# NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
2024-09-17 10:13:07 +02:00
|
|
|
|
|
|
|
metacfg.home.configFile."mpv/mpv.conf".text = ''
|
|
|
|
hwdec=auto-safe
|
|
|
|
vo=gpu
|
|
|
|
profile=gpu-hq
|
|
|
|
gpu-context=wayland
|
|
|
|
'';
|
2024-03-21 15:00:36 +01:00
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
enableBrowserSocket = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-08-28 14:33:13 +02:00
|
|
|
#pcsctools
|
2024-03-21 15:00:36 +01:00
|
|
|
bat
|
|
|
|
cardpeek
|
|
|
|
ccache
|
2024-08-28 14:33:13 +02:00
|
|
|
chromium
|
2024-03-21 15:00:36 +01:00
|
|
|
clang
|
|
|
|
dive
|
|
|
|
file
|
|
|
|
firefox
|
|
|
|
gh
|
|
|
|
gimp
|
2024-08-28 14:33:13 +02:00
|
|
|
git
|
2024-07-18 10:29:38 +02:00
|
|
|
gnome-browser-connector
|
2024-05-21 11:28:43 +02:00
|
|
|
gnome.cheese
|
2024-03-21 15:00:36 +01:00
|
|
|
gnome.gnome-software
|
|
|
|
gnomeExtensions.appindicator
|
2024-07-18 10:29:38 +02:00
|
|
|
gnomeExtensions.autohide-battery
|
2024-03-21 15:00:36 +01:00
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.hibernate-status-button
|
|
|
|
gnomeExtensions.vitals
|
|
|
|
gnupg
|
|
|
|
go
|
|
|
|
jetbrains-toolbox
|
|
|
|
jq
|
|
|
|
kbfs
|
|
|
|
libu2f-host
|
|
|
|
mosh
|
|
|
|
mosh
|
|
|
|
nixpkgs-fmt
|
|
|
|
opensc
|
|
|
|
pasystray
|
2024-06-03 10:11:12 +02:00
|
|
|
pinentry-gnome3
|
2024-03-21 15:00:36 +01:00
|
|
|
pkg-config
|
2024-05-21 11:28:43 +02:00
|
|
|
pstree
|
2024-03-21 15:00:36 +01:00
|
|
|
ripgrep
|
2024-08-28 14:33:13 +02:00
|
|
|
rustup
|
2024-03-21 15:00:36 +01:00
|
|
|
slack
|
|
|
|
spotify
|
|
|
|
statix
|
|
|
|
thunderbird
|
|
|
|
tmux
|
|
|
|
vim
|
|
|
|
wl-clipboard
|
|
|
|
yubikey-manager-qt
|
2024-08-28 14:33:13 +02:00
|
|
|
yubikey-personalization
|
2024-03-21 15:00:36 +01:00
|
|
|
zellij
|
|
|
|
];
|
|
|
|
|
|
|
|
#----=[ Fonts ]=----#
|
|
|
|
fonts = {
|
|
|
|
enableDefaultPackages = false;
|
|
|
|
packages = with pkgs; [
|
|
|
|
noto-fonts-emoji
|
|
|
|
liberation_ttf
|
|
|
|
freefont_ttf
|
|
|
|
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono" ]; })
|
|
|
|
];
|
|
|
|
|
|
|
|
fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
defaultFonts = {
|
|
|
|
serif = [ "Liberation" ];
|
|
|
|
sansSerif = [ "Liberation" ];
|
|
|
|
monospace = [ "JetBrainsMono" ];
|
|
|
|
emoji = [ "Noto Color Emoji" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# remote desktop
|
|
|
|
networking.firewall.allowedTCPPorts = [ 3389 ];
|
|
|
|
};
|
|
|
|
}
|