Evie Litherland-Smith
21c0dc8176
Move stylix target control into individual expressions Remove thunar Remove dex, enable systemd services for blueman-applet and network-manager-applet Remove mpg123 Qualify package calls in hyprland config using nixpkg definitions Remove "make switch" from Makefile, replaced by (preferred) nixos-update
76 lines
3 KiB
Nix
76 lines
3 KiB
Nix
{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; [
|
|
xdg-utils
|
|
wtype
|
|
wl-clipboard
|
|
swayimg
|
|
pamixer
|
|
pavucontrol
|
|
playerctl
|
|
brightnessctl
|
|
protonvpn-gui
|
|
mpv
|
|
streamlink
|
|
libreoffice
|
|
webcord
|
|
];
|
|
};
|
|
security.pam.services.swaylock = {};
|
|
services = {
|
|
blueman.enable = true;
|
|
udisks2.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" = ["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"];
|
|
};
|
|
addedAssociations = defaultApplications;
|
|
};
|
|
programs = {
|
|
dconf.enable = true;
|
|
light.enable = true;
|
|
hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
};
|
|
}
|