2024-07-21 23:04:27 +02:00
|
|
|
{ inputs, pkgs, ...}:
|
2024-05-24 21:33:00 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../sets/fonts.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
hyprpaper
|
|
|
|
rofi-wayland
|
|
|
|
foot
|
|
|
|
wl-clipboard
|
2024-07-25 21:23:11 +02:00
|
|
|
nautilus
|
2024-06-25 01:28:34 +02:00
|
|
|
pavucontrol
|
2024-07-21 22:47:19 +02:00
|
|
|
nvidia-vaapi-driver
|
2024-05-24 21:33:00 +02:00
|
|
|
];
|
|
|
|
|
2024-05-26 01:01:52 +02:00
|
|
|
environment.sessionVariables = {
|
2024-05-24 21:33:00 +02:00
|
|
|
LIBVA_DRIVER_NAME = "nvidia";
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
GBM_BACKEND = "nvidia-drm";
|
|
|
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
2024-07-21 22:47:19 +02:00
|
|
|
NVD_BACKEND = "direct";
|
|
|
|
MOZ_DISABLE_RDD_SANDBOX = 1;
|
2024-06-23 12:13:07 +02:00
|
|
|
NIXOS_OZONE_WL = 1;
|
2024-05-24 21:33:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.hyprland.enable = true;
|
2024-07-21 23:04:27 +02:00
|
|
|
programs.hyprland.package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
2024-05-24 21:33:00 +02:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
2024-06-23 12:13:07 +02:00
|
|
|
security.pam.services.greetd.enableGnomeKeyring = true;
|
|
|
|
|
|
|
|
systemd.services.greetd.serviceConfig = {
|
|
|
|
Type = "idle";
|
|
|
|
StandardInput = "tty";
|
|
|
|
StandardOutput = "tty";
|
|
|
|
StandardError = "journal";
|
|
|
|
TTYReset = true;
|
|
|
|
TTYHangup = true;
|
|
|
|
TTYVTDisallocate = true;
|
|
|
|
};
|
2024-05-24 21:33:00 +02:00
|
|
|
|
2024-06-23 12:13:07 +02:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default_session = {
|
|
|
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --asterisks --cmd hyprland";
|
|
|
|
user = "greeter";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-24 22:47:23 +02:00
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
];
|
|
|
|
};
|
2024-05-24 21:33:00 +02:00
|
|
|
}
|
|
|
|
|