forked from nico/dots
chore: organise modules
Organise modules in a significantly better way with categories.
This commit is contained in:
parent
7444260d7d
commit
3660ef23f1
33 changed files with 77 additions and 76 deletions
52
modules/desktop/de/hyprland.nix
Normal file
52
modules/desktop/de/hyprland.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue