infra/module/aspect/desktop/desktop-config.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

2025-12-01 13:23:24 +07:00
{
den.aspects = {
desktop = {
nixos =
{ pkgs, ... }:
{
programs = {
dconf.enable = true; # desktop-config gnome
adb.enable = true; # android-debug
};
environment.systemPackages = [
# ----- gtk
pkgs.gtk3
pkgs.zenity
# ----- screenshot (wayland)
pkgs.grim
pkgs.slurp
pkgs.satty
# ----- screenshot (x11)
pkgs.flameshot
# ----- output monitor (wayland)
pkgs.kanshi
pkgs.wlr-randr
pkgs.way-displays
# ----- output monitor (x11)
pkgs.autorandr
# ----- wallpaper (x11 + wayland)
pkgs.waypaper
# ----- wallpaper (wayland)
pkgs.swww
# ----- wallpaper (x11)
pkgs.feh
# ----- clipboard-tool (wayland)
pkgs.wl-clipboard-rs
# ----- notification-lib
pkgs.libnotify
pkgs.dunst
];
programs.xwayland.enable = true;
# ----- force electron-app to wayland-compatible
environment.variables = {
NIXOS_OZONE_WL = "1";
};
# ----- x11 services
services = {
xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
};
};
};
};
};
};
}