47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
let
|
|
hyprland = config.wayland.windowManager.hyprland.finalPackage;
|
|
in
|
|
{
|
|
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
xdg = {
|
|
enable = true;
|
|
mime.enable = true;
|
|
mimeApps = {
|
|
enable = true;
|
|
defaultApplications = {
|
|
"application/pdf" = [ "org.gnome.Evince.desktop" ];
|
|
"image/gif" = [ "org.gnome.eog.desktop" ];
|
|
"image/jpeg" = [ "org.gnome.eog.desktop" ];
|
|
"image/png" = [ "org.gnome.eog.desktop" ];
|
|
"image/webp" = [ "org.gnome.eog.desktop" ];
|
|
"x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ];
|
|
};
|
|
};
|
|
portal = {
|
|
enable = true;
|
|
xdgOpenUsePortal = true;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-gtk
|
|
xdg-desktop-portal-gnome
|
|
(xdg-desktop-portal-hyprland.override { inherit hyprland; })
|
|
];
|
|
config = {
|
|
common = {
|
|
default = [ "gtk" ];
|
|
};
|
|
};
|
|
configPackages = [ hyprland ];
|
|
};
|
|
userDirs.enable = true;
|
|
|
|
desktopEntries."nixos-manual" = {
|
|
name = "NixOS Manual";
|
|
exec = "nixos-help";
|
|
noDisplay = true;
|
|
};
|
|
};
|
|
}
|