mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
feat(de): add niri
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
currentSystemDe,
|
||||
...
|
||||
}:
|
||||
@@ -10,6 +11,31 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.niri.enable = true;
|
||||
services.dbus.packages = [ pkgs.nautilus ];
|
||||
services.dbus.implementation = "broker";
|
||||
services.xserver.desktopManager.runXdgAutostartIfNone = true;
|
||||
|
||||
# For god's sake, never touch this code again, so much pain has been released on the following lines.
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = lib.mkForce [
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config = {
|
||||
niri = {
|
||||
default = lib.mkForce [
|
||||
"wlr"
|
||||
"gtk"
|
||||
];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver.enable = true;
|
||||
xserver.excludePackages = with pkgs; [
|
||||
@@ -31,8 +57,15 @@ in
|
||||
gnome.enable = libDe.ifGnome true;
|
||||
};
|
||||
|
||||
gnome.gnome-keyring.enable = libDe.ifGnome true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
};
|
||||
environment.etc."xdg/autostart/niri.desktop".text = ''
|
||||
[Desktop Entry]
|
||||
Name=Niri
|
||||
Exec=${config.programs.niri.package}/bin/niri-session
|
||||
Type=Application
|
||||
X-GDM-SessionRegisters=true
|
||||
'';
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
elisa
|
||||
konsole
|
||||
@@ -54,11 +87,6 @@ in
|
||||
yelp
|
||||
];
|
||||
|
||||
xdg = {
|
||||
autostart.enable = true;
|
||||
portal.enable = true;
|
||||
};
|
||||
|
||||
programs.kdeconnect = libDe.ifNotNone {
|
||||
enable = true;
|
||||
package =
|
||||
|
||||
Reference in New Issue
Block a user