nixos,graphical: move xdg.nix to users/guanranwang/nixos/presets/desktop.nix

This commit is contained in:
Guanran Wang 2023-11-09 13:09:19 +08:00
parent 112ae500c3
commit 99d810e25b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 6 additions and 10 deletions

View file

@ -5,6 +5,5 @@
./gnome-keyring.nix
./graphical.nix
./polkit.nix
./xdg.nix
];
}

View file

@ -1,8 +0,0 @@
{pkgs, ...}: {
# XDG portal
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk]; # disable if on gnome
};
}

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./core.nix
@ -11,4 +11,9 @@
home-manager.users.guanranwang = import ../../home-manager/nixos/presets/desktop.nix;
fonts.enableDefaultPackages = false;
security.pam.services.swaylock = {};
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
};
}