154 lines
3.4 KiB
Nix
154 lines
3.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./common.nix
|
|
];
|
|
|
|
# XDG Portals
|
|
xdg = {
|
|
autostart.enable = true;
|
|
portal = {
|
|
enable = true;
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
];
|
|
};
|
|
};
|
|
|
|
# Security
|
|
security = {
|
|
pam.services.swaylock = {
|
|
text = ''
|
|
auth include login
|
|
'';
|
|
};
|
|
};
|
|
# Services
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
layout = "us";
|
|
xkbVariant = "";
|
|
excludePackages = [pkgs.xterm];
|
|
videoDrivers = ["amdgpu"];
|
|
libinput = {
|
|
enable = true;
|
|
touchpad.tapping = true;
|
|
touchpad.naturalScrolling = true;
|
|
touchpad.scrollMethod = "twofinger";
|
|
touchpad.disableWhileTyping = true;
|
|
touchpad.clickMethod = "clickfinger";
|
|
};
|
|
displayManager.gdm = {
|
|
enable = true;
|
|
wayland = true;
|
|
};
|
|
};
|
|
blueman.enable = true;
|
|
dbus.enable = true;
|
|
gvfs.enable = true;
|
|
tumbler.enable = true;
|
|
gnome = {
|
|
sushi.enable = true;
|
|
gnome-keyring.enable = true;
|
|
};
|
|
};
|
|
|
|
# Enable sound with pipewire.
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.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;
|
|
};
|
|
|
|
programs = {
|
|
hyprland = {
|
|
enable = true;
|
|
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
|
xwayland = {
|
|
enable = true;
|
|
};
|
|
};
|
|
waybar = {
|
|
enable = true;
|
|
package = pkgs.waybar.overrideAttrs (oldAttrs: {
|
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
|
});
|
|
};
|
|
thunar = {
|
|
enable = true;
|
|
plugins = with pkgs.xfce; [
|
|
thunar-archive-plugin
|
|
thunar-volman
|
|
];
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
pipewire
|
|
wireplumber
|
|
polkit_gnome
|
|
libva-utils
|
|
fuseiso
|
|
#udiskie
|
|
gnome.adwaita-icon-theme
|
|
gnome.gnome-themes-extra
|
|
gsettings-desktop-schemas
|
|
swaynotificationcenter
|
|
wlr-randr
|
|
ydotool
|
|
wl-clipboard
|
|
hyprland-protocols
|
|
hyprpicker
|
|
swayidle
|
|
swaylock
|
|
xdg-desktop-portal-hyprland
|
|
waypaper
|
|
tofi
|
|
firefox-wayland
|
|
swww
|
|
grim
|
|
xdg-utils
|
|
xdg-desktop-portal
|
|
xdg-desktop-portal-gtk
|
|
qt5.qtwayland
|
|
qt6.qmake
|
|
qt6.qtwayland
|
|
adwaita-qt
|
|
adwaita-qt6
|
|
mako
|
|
swaybg
|
|
];
|
|
|
|
environment.sessionVariables = {
|
|
POLKIT_AUTH_AGENT = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
|
|
XDG_SESSION_TYPE = "wayland";
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
NIXOS_OZONE_WL = "1";
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
SDL_VIDEODRIVER = "wayland";
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
CLUTTER_BACKEND = "wayland";
|
|
WLR_RENDERER = "vulkan";
|
|
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
XDG_SESSION_DESKTOP = "Hyprland";
|
|
GTK_USE_PORTAL = "1";
|
|
NIXOS_XDG_OPEN_USE_PORTAL = "1";
|
|
WLR_NO_HARDWARE_CURSOR = "1";
|
|
};
|
|
}
|