nixos/system/hyprland.nix

97 lines
3.1 KiB
Nix
Raw Normal View History

{ pkgs, ... }: {
imports = [ ./desktop.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
2024-01-27 08:31:11 +00:00
swaylock-effects
2024-01-03 19:18:40 +00:00
swaynotificationcenter
xdg-utils
hyprpaper
pipewire
wireplumber
wtype
wl-clipboard
swayimg
pamixer
pavucontrol
playerctl
brightnessctl
networkmanagerapplet
bluez
protonvpn-gui
mpv
2024-01-14 11:18:48 +00:00
streamlink
mpg123
libreoffice
webcord
];
};
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.mime = rec {
enable = true;
defaultApplications = {
"application/pdf" = [ "emacsclient.desktop" "emacs.desktop" ];
"application/epub+zip" = [ "emacsclient.desktop" "emacs.desktop" ];
"application/oxps" = [ "emacsclient.desktop" "emacs.desktop" ];
"image/jpeg" =
[ "swayimg.desktop" "emacsclient.desktop" "emacs.desktop" ];
"image/png" = [ "swayimg.desktop" "emacsclient.desktop" "emacs.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"text/csv" = [ "emacsclient.desktop" "emacs.desktop" ];
"text/html" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"x-scheme-handler/http" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"x-scheme-handler/https" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"x-scheme-handler/about" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"x-scheme-handler/chrome" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-extension-htm" =
[ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-extension-html" =
[ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-extension-shtml" =
[ "chromium-browser.desktop" "nyxt.desktop" ];
"application/xhtml+xml" = [ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-extension-xhtml" =
[ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-extension-xht" =
[ "chromium-browser.desktop" "nyxt.desktop" ];
"application/x-mozilla-bookmarks" = [ "chromium-browser.desktop" ];
"x-scheme-handler/msteams" = [ "chromium-browser.desktop" ];
"x-scheme-handler/zoomus" = [ "chromium-browser.desktop" ];
};
addedAssociations = defaultApplications;
};
2023-08-03 16:01:13 +01:00
programs = {
dconf.enable = true;
light.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ];
};
hyprland = {
enable = true;
2023-09-11 23:04:29 +01:00
xwayland.enable = true;
};
2023-08-03 16:01:13 +01:00
};
}