2024-01-30 14:21:50 +00:00
|
|
|
{pkgs, ...}: {
|
2024-02-02 07:30:57 +00:00
|
|
|
imports = [./desktop.nix ./chromium.nix];
|
2024-01-30 14:21:50 +00:00
|
|
|
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-15 11:00:29 +00:00
|
|
|
webcord
|
2024-02-02 06:43:10 +00:00
|
|
|
teams-for-linux
|
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-02-01 07:24:18 +00:00
|
|
|
xdg.mime = let
|
|
|
|
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
2024-02-02 07:30:57 +00:00
|
|
|
browser = ["nyxt.desktop" "chromium-browser.desktop"];
|
2024-02-01 07:24:18 +00:00
|
|
|
applications = {
|
2024-02-03 13:09:25 +00:00
|
|
|
"inode/directory" = emacs;
|
|
|
|
|
2024-02-01 07:24:18 +00:00
|
|
|
"image/jpeg" = ["swayimg.desktop"] ++ emacs;
|
|
|
|
"image/png" = ["swayimg.desktop"] ++ emacs;
|
2024-01-30 14:21:50 +00:00
|
|
|
"video/mp4" = ["mpv.desktop"];
|
2024-02-01 07:24:18 +00:00
|
|
|
"text/csv" = emacs;
|
|
|
|
"text/html" = browser;
|
2024-02-02 06:43:10 +00:00
|
|
|
|
|
|
|
"application/pdf" = emacs;
|
|
|
|
"application/epub+zip" = emacs;
|
|
|
|
"application/oxps" = emacs;
|
2024-02-01 07:24:18 +00:00
|
|
|
"application/x-extension-htm" = browser;
|
|
|
|
"application/x-extension-html" = browser;
|
|
|
|
"application/x-extension-shtml" = browser;
|
|
|
|
"application/xhtml+xml" = browser;
|
|
|
|
"application/x-extension-xhtml" = browser;
|
|
|
|
"application/x-extension-xht" = browser;
|
|
|
|
"application/x-mozilla-bookmarks" = browser;
|
2024-02-02 06:43:10 +00:00
|
|
|
|
|
|
|
"x-scheme-handler/http" = browser;
|
|
|
|
"x-scheme-handler/https" = browser;
|
|
|
|
"x-scheme-handler/about" = browser;
|
|
|
|
"x-scheme-handler/chrome" = browser;
|
|
|
|
"x-scheme-handler/webcal" = browser;
|
|
|
|
"x-scheme-handler/ms-word" = emacs;
|
|
|
|
"x-scheme-handler/ms-powerpoint" = emacs;
|
|
|
|
"x-scheme-handler/ms-excel" = emacs;
|
|
|
|
"x-scheme-handler/unknown" = emacs;
|
2024-01-23 19:53:52 +00:00
|
|
|
};
|
2024-02-01 07:24:18 +00:00
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = applications;
|
|
|
|
addedAssociations = applications;
|
2024-01-23 19:53:52 +00:00
|
|
|
};
|
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
|
|
|
}
|