updated regreet.nix

This commit is contained in:
serenity-F 2024-12-12 04:52:22 +10:00
parent eb1d8d8ecc
commit e9b50f4d43
2 changed files with 29 additions and 35 deletions

View file

@ -12,17 +12,6 @@
## xserver still needed for xwayland stuff ## xserver still needed for xwayland stuff
xserver.enable = true; xserver.enable = true;
## Current login greeter/display manager,
## set to run wayland.
#displayManager = {
#enable = true;
#defaultSession = "sway";
#sddm = {
#enable = true;
#wayland.enable = true;
#};
#};
}; };
programs = { programs = {
@ -31,7 +20,7 @@
xwayland = { xwayland = {
enable = true; enable = true;
#package = [ ]; #package = [ ];
#defaultFontPath = "/run/current-system/sw/share/X11/fonts"; defaultFontPath = "/run/current-system/sw/share/X11/fonts";
}; };
## enable sway window manager ## enable sway window manager
@ -62,12 +51,35 @@
after = [ "graphical-session.target" ]; after = [ "graphical-session.target" ];
}; };
xdg = {
portal = {
#enable = true;
#xdgOpenUsePortal = true;
#config = {
#common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
#common.default = [ "gtk" "gnome" ];
#sway.default = [ "gtk" "gnome" ];
#};
#configPackages = with pkgs; [
#xdg-desktop-portal-gtk
#xdg-desktop-portal-wlr
#xdg-desktop-portal-gnome
#];
#extraPortals = with pkgs; [
#xdg-desktop-portal-gtk
#xdg-desktop-portal-wlr
#xdg-desktop-portal-gnome
#];
};
};
environment = { environment = {
variables = { variables = {
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "sway"; XDG_CURRENT_DESKTOP = "sway";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
xorg.xhost xorg.xhost
#qt5.wayland #qt5.wayland
@ -77,6 +89,7 @@
#xdg-desktop-portal-wlr #xdg-desktop-portal-wlr
#xdg-desktop-portal-gnome #xdg-desktop-portal-gnome
]; ];
}; };
## I put fonts here because i didn't know where tf else to put them lol ## I put fonts here because i didn't know where tf else to put them lol
@ -98,24 +111,6 @@
}; };
}; };
#xdg.portal = {
#enable = true;
#xdgOpenUsePortal = true;
#config = {
#common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
#common.default = [ "gtk" "gnome" ];
#sway.default = [ "gtk" "gnome" ];
#};
#configPackages = with pkgs; [
#xdg-desktop-portal-gtk
#xdg-desktop-portal-wlr
#xdg-desktop-portal-gnome
#];
#extraPortals = with pkgs; [
#xdg-desktop-portal-gtk
#xdg-desktop-portal-wlr
#xdg-desktop-portal-gnome
#];
#};
} }

View file

@ -40,7 +40,6 @@ in
etc."greetd/environments".text = '' etc."greetd/environments".text = ''
sway sway
fish fish
bash
''; '';
}; };