2024-01-30 14:21:50 +00:00
|
|
|
{pkgs, ...}: {
|
|
|
|
imports = [./desktop.nix ./chromium.nix];
|
|
|
|
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
2023-10-30 15:02:25 +00:00
|
|
|
environment = {
|
2023-12-11 11:16:33 +00:00
|
|
|
sessionVariables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
XDG_SESSION_DESKTOP = "Hyprland";
|
|
|
|
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
|
|
|
|
};
|
2023-10-30 15:02:25 +00:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
xdg-utils
|
|
|
|
wtype
|
|
|
|
wl-clipboard
|
|
|
|
swayimg
|
|
|
|
pamixer
|
|
|
|
pavucontrol
|
|
|
|
playerctl
|
|
|
|
brightnessctl
|
2024-01-03 15:40:21 +00:00
|
|
|
protonvpn-gui
|
2024-01-14 18:32:53 +00:00
|
|
|
mpv
|
2024-01-14 11:18:48 +00:00
|
|
|
streamlink
|
2024-01-03 15:40:21 +00:00
|
|
|
libreoffice
|
2024-01-15 11:00:29 +00:00
|
|
|
webcord
|
2023-10-30 15:02:25 +00:00
|
|
|
];
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
security.pam.services.swaylock = {};
|
2023-08-02 10:23:16 +01:00
|
|
|
services = {
|
|
|
|
blueman.enable = true;
|
2023-11-04 15:51:05 +00:00
|
|
|
udisks2.enable = true;
|
2024-01-03 15:40:21 +00:00
|
|
|
xserver.enable = false;
|
2024-01-30 14:21:50 +00:00
|
|
|
greetd.settings = let
|
|
|
|
command = "Hyprland";
|
2024-01-03 15:40:21 +00:00
|
|
|
in {
|
2024-01-30 14:21:50 +00:00
|
|
|
default_session = {inherit command;};
|
|
|
|
initial_session = {inherit command;};
|
2024-01-03 15:40:21 +00:00
|
|
|
};
|
2023-08-02 10:23:16 +01:00
|
|
|
};
|
2024-01-23 19:53:52 +00:00
|
|
|
xdg.mime = rec {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
2024-01-30 14:21:50 +00:00
|
|
|
"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" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"x-scheme-handler/http" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"x-scheme-handler/https" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"x-scheme-handler/about" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"x-scheme-handler/chrome" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-extension-htm" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-extension-html" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-extension-shtml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/xhtml+xml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-extension-xhtml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-extension-xht" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
|
|
|
"application/x-mozilla-bookmarks" = ["firefox.desktop" "chromium-browser.desktop"];
|
|
|
|
"x-scheme-handler/msteams" = ["firefox.desktop" "chromium-browser.desktop"];
|
|
|
|
"x-scheme-handler/zoomus" = ["firefox.desktop" "chromium-browser.desktop"];
|
2024-01-23 19:53:52 +00:00
|
|
|
};
|
|
|
|
addedAssociations = defaultApplications;
|
|
|
|
};
|
2023-08-03 16:01:13 +01:00
|
|
|
programs = {
|
2024-01-03 15:40:21 +00:00
|
|
|
dconf.enable = true;
|
|
|
|
light.enable = true;
|
2023-08-08 10:45:13 +01:00
|
|
|
hyprland = {
|
|
|
|
enable = true;
|
2023-09-11 23:04:29 +01:00
|
|
|
xwayland.enable = true;
|
2023-08-08 10:45:13 +01:00
|
|
|
};
|
2023-08-03 16:01:13 +01:00
|
|
|
};
|
2023-08-02 10:23:16 +01:00
|
|
|
}
|