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:
@@ -6,12 +6,14 @@
|
||||
"https://nixvim-superredstone.cachix.org"
|
||||
"https://spotiflac-cli.cachix.org"
|
||||
"https://attic.xuyh0120.win/lantian"
|
||||
"https://noctalia.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nixvim-superredstone.cachix.org-1:mEXHVxEv5dKka3FOxTMFDfdk/DJ0baydsahi+zZIcQE="
|
||||
"spotiflac-cli.cachix.org-1:UgpE8P0TO8NuF03vF117r/vgTkjq13Z3JqGzaQdC7xE="
|
||||
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
|
||||
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
|
||||
];
|
||||
trusted-users = [
|
||||
"root"
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -24,6 +24,27 @@
|
||||
[ ]
|
||||
);
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config = {
|
||||
common = {
|
||||
default = [
|
||||
"gnome"
|
||||
"gtk"
|
||||
];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = "gnome";
|
||||
"org.freedesktop.impl.portal.Screenshot" = "gnome";
|
||||
"org.freedesktop.impl.portal.RemoteDesktop" = "gnome";
|
||||
};
|
||||
};
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-gnome
|
||||
];
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
# Select internationalisation properties.
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
pulseaudio.enable = false;
|
||||
};
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
unzip
|
||||
wget
|
||||
wl-clipboard
|
||||
xwayland-satellite
|
||||
zip
|
||||
zoxide
|
||||
zulu
|
||||
@@ -60,6 +61,9 @@
|
||||
inputs.nixvim.packages.${stdenv.hostPlatform.system}.default # The only and one great editor improved even further
|
||||
|
||||
inputs.spotiflac-cli.packages.${stdenv.hostPlatform.system}.default
|
||||
|
||||
inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
gnome-keyring
|
||||
]
|
||||
++ (
|
||||
if currentSystemDe != "none" then
|
||||
@@ -76,6 +80,7 @@
|
||||
gapless
|
||||
gnome-boxes
|
||||
mpv
|
||||
nautilus
|
||||
nextcloud-client
|
||||
obs-studio
|
||||
piper
|
||||
|
||||
Reference in New Issue
Block a user