52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ config, lib, pkgs, self, ... }:
|
|
|
|
{
|
|
programs.hyprland.enable = true;
|
|
# Optional, hint electron apps to use wayland:
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
# have portals
|
|
xdg.portal.enable = true;
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
programs.hyprlock.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
ghostty
|
|
|
|
waybar
|
|
swww
|
|
grim
|
|
slurp
|
|
wl-clipboard
|
|
brightnessctl
|
|
helvum
|
|
walker
|
|
playerctl
|
|
swaynotificationcenter
|
|
hyprshot
|
|
matugen
|
|
pywalfox-native
|
|
hyprshade
|
|
];
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
# enable polkit
|
|
security.polkit.enable = true;
|
|
systemd = {
|
|
user.services.polkit-gnome-authentication-agent-1 = {
|
|
description = "polkit-gnome-authentication-agent-1";
|
|
wantedBy = [ "graphical-session.target" ];
|
|
wants = [ "graphical-session.target" ];
|
|
after = [ "graphical-session.target" ];
|
|
serviceConfig = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
Restart = "on-failure";
|
|
RestartSec = 1;
|
|
TimeoutStopSec = 10;
|
|
};
|
|
};
|
|
};
|
|
}
|