configuration.nix/home/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-06 22:19:14 +05:30
{ config, pkgs, ... }:
let
hyprland = config.wayland.windowManager.hyprland.finalPackage;
in
{
2023-11-04 16:12:45 +05:30
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
2023-06-02 11:28:54 +05:30
home.stateVersion = "23.11";
2023-10-02 17:23:23 +05:30
xdg = {
2023-07-16 17:32:38 +05:30
enable = true;
2023-10-02 17:23:23 +05:30
mime.enable = true;
mimeApps = {
enable = true;
defaultApplications = {
2023-11-04 16:12:45 +05:30
"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" ];
2023-10-02 17:23:23 +05:30
};
2023-07-16 17:32:38 +05:30
};
2024-02-17 16:28:05 +05:30
portal = {
2024-02-18 15:32:45 +05:30
enable = true;
xdgOpenUsePortal = true;
2024-03-06 22:19:14 +05:30
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
(xdg-desktop-portal-hyprland.override { inherit hyprland; })
];
2024-02-17 16:28:05 +05:30
config = {
common = {
default = [ "gtk" ];
};
};
2024-03-06 22:19:14 +05:30
configPackages = [ hyprland ];
2024-02-17 16:28:05 +05:30
};
2023-10-02 17:23:23 +05:30
userDirs.enable = true;
2023-10-02 17:23:23 +05:30
desktopEntries."nixos-manual" = {
name = "NixOS Manual";
exec = "nixos-help";
noDisplay = true;
};
};
}