moved xdg to core/

This commit is contained in:
Sven Vogel 2023-12-14 21:56:53 +01:00
parent 932ab66aad
commit 16dc04416f
3 changed files with 16 additions and 5 deletions

View File

@ -83,7 +83,6 @@ in
programs.dconf.enable = true; programs.dconf.enable = true;
programs.xwayland.enable = true; programs.xwayland.enable = true;
xdg.portal.enable = true;
# exclude packages from plasma5 # exclude packages from plasma5
environment.plasma5.excludePackages = with pkgs.libsForQt5; [ environment.plasma5.excludePackages = with pkgs.libsForQt5; [
@ -147,8 +146,6 @@ in
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
programs.java.enable = true;
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
@ -218,8 +215,6 @@ in
# networking.firewall.enable = false; # networking.firewall.enable = false;
environment.sessionVariables = rec { environment.sessionVariables = rec {
_JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd";
# rust # rust
CARGO_TERM_COLOR = "always"; CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "1"; RUST_BACKTRACE = "1";

View File

@ -3,5 +3,6 @@
./java.nix ./java.nix
./dotnet.nix ./dotnet.nix
./printing.nix ./printing.nix
./xdg.nix
]; ];
} }

15
core/xdg.nix Normal file
View File

@ -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
];
}