diff --git a/configuration.nix b/configuration.nix index 127e575..6affd41 100644 --- a/configuration.nix +++ b/configuration.nix @@ -83,7 +83,6 @@ in programs.dconf.enable = true; programs.xwayland.enable = true; - xdg.portal.enable = true; # exclude packages from plasma5 environment.plasma5.excludePackages = with pkgs.libsForQt5; [ @@ -147,8 +146,6 @@ in # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; - programs.java.enable = true; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = (with pkgs; [ @@ -218,8 +215,6 @@ in # networking.firewall.enable = false; environment.sessionVariables = rec { - _JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd"; - # rust CARGO_TERM_COLOR = "always"; RUST_BACKTRACE = "1"; diff --git a/core/default.nix b/core/default.nix index 06df6f2..ca99987 100644 --- a/core/default.nix +++ b/core/default.nix @@ -3,5 +3,6 @@ ./java.nix ./dotnet.nix ./printing.nix + ./xdg.nix ]; } diff --git a/core/xdg.nix b/core/xdg.nix new file mode 100644 index 0000000..89f14b8 --- /dev/null +++ b/core/xdg.nix @@ -0,0 +1,15 @@ +{ pkgs, config, ... }: { + + xdg.portal = { + enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + pkgs.xdg-desktop-portal-kde + ]; + }; + + environment.systemPackages = with pkgs; [ + pkgs.xdg-desktop-portal-gtk + pkgs.xdg-desktop-portal-kde + ]; +}