nixos/system/hyprland.nix

75 lines
1.7 KiB
Nix

{ pkgs, ... }: {
imports = [ ./desktop.nix ./emacs.nix ./firefox.nix ./chromium.nix ];
nixpkgs.config.chromium.commandLineArgs =
"--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = {
sessionVariables = {
NIXOS_OZONE_WL = "1";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
};
systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent
swaylock
swaynotificationcenter
xdg-utils
hyprpaper
pipewire
wireplumber
wtype
wl-clipboard
grim
slurp
swayimg
pamixer
pavucontrol
playerctl
brightnessctl
networkmanagerapplet
bluez
protonvpn-cli
protonvpn-gui
mpv
streamlink
mpg123
tagger
libreoffice
webcord
teams-for-linux
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
];
};
security.pam.services.swaylock = { };
services = {
blueman.enable = true;
udisks2.enable = true;
gvfs.enable = true;
tumbler.enable = true;
xserver.enable = false;
greetd.settings = let command = "Hyprland";
in {
default_session = { inherit command; };
initial_session = { inherit command; };
};
};
xdg.portal.enable = true;
programs = {
dconf.enable = true;
light.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ];
};
hyprland = {
enable = true;
xwayland.enable = true;
};
};
}